on 11-12-2009 5:37 PM
Hi there,
I'm tryingto pass a value from DM package to scriptlogic using the FORMULASCRIPT and LOGICMODE 1 (Override default)
This is my code;
PROMPT(RADIOBUTTON,%STATUS%,"Select Status.",1,{"Unlocked","Sended","Locked"},{"1","2","3"})
TASK(Execute formulas,USER,%USER%)
TASK(Execute formulas,APPSET,%APPSET%)
TASK(Execute formulas,APP,%APP%)
TASK(Execute formulas,LOGICFILE,%APPPATH%\..\AdminApp\%APP%\Status.lgx)
TASK(Execute formulas,RUNMODE,1)
TASK(Execute formulas,LOGICMODE,1)
'TASK(Execute formulas,CHECKLCK,%CHEKCLCK%)
TASK(Execute formulas,FORMULASCRIPT,"*FUNCTION STAT=%STATUS%")
And here my Scriptlogic
//=============================================
// Status
//=============================================
*RUN_STORED_PROCEDURE=ZSP_CHECK_STATUS([%APP%],[%CATEGORY_SET%],[%TIME_SET%],STAT,[%SCOPETABLE%],[%LOGTABLE%])
*commit
When I exec the package I get an Execute formulas error, invalid instruction *FUNCTION STAT=1 (when I select radiobutton 1, so values are passed but there is something wrong as it's not able to add the *FUNCTION line to my logic....maybe is some include missing?
Any ideas on this?,
Regards,
Carlos
Ok, it's working now. For using FORMULASCRIPT the LOGFILE has to be especified as LGF not LGX.
TASK(Execute formulas,LOGICFILE,%APPPATH%\..\AdminApp\%APP%\Status.LGF)
I hope this helps to someone else,
Regards,
Carlos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
15 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.