cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid instruction on FORMULASCRIPT (pass param from DM package to logic)

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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