RhinoTrac
LassoSoft Ticket Tracking System
NOTE: If you are using Lasso Server 9.3 please Log your ticket directly via the LUX admin as this will give us more information about your issue.
Ticket #7578: Defining Type with Lasso 8 syntax not working
- Reported by:
- Starmark
- Date:
- 30 Aug, 2013
- Priority:
- critical
- Component:
- Lasso 9
- Version:
- 9.2.6
- Keywords:
- Platform:
Example Code:
<?=
DEFINE_TYPE('partnerOBJ') => {
DEFINE_TAG( 'onCreate',
-required='partnerID');
return 'here'
/DEFINE_TAG;
}
partnerOBJ('')
partnerOBJ(-partnerID='')
?>
Expected Result:
Two instances of the type to be created
Actual Result:
Error Code: -1
Error Msg: Position was out of range: 0 max is 1
Error Stack:
3:9 /Users/bladmin/Desktop/smtest.lasso
9:1 /Users/bladmin/Desktop/smtest.lasso
73:12 lasso9.lasso
68:3 lasso9.lasso
66:3 lasso9.lasso
60:3 lasso9.lasso
58:15 lasso9.lasso
46:3 lasso9.lasso
19:8 lasso9.lasso
182:2 error.lasso
182:2 error.lasso
176:2 error.lasso
175:2 error.lasso
45:2 lasso9.lasso
14:25 lasso9.lasso
This appears to be a regression in 9.2.6 as this code used to work in 9.2.5
Please log in to your LassoSoft account to comment
Comments
define_tag( 'debug',
-req='input', -copy,
-opt='label', -copy);
!local_defined('label') ? local('label') = '' | #label += ': ';
local('output') = '<div style="font: 11px \'Tahoma\'; color: #888; border-bottom: 1px dotted #bbb; width: 500px; padding: 3px;">' + #label + #input + '</div>';
return(#output);
/define_tag;
debug('hello', 'test label');
fixes #7578
fixes #7578 for 9.2
fixes #7578 for 9.2
1. Downgrade to 9.2.5
2. Check values of parameters before attempting to invoke the tag/type.
3. Other?
Please advise.