Skip to Content
author's profile photo Former Member
Former Member

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

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 12, 2009 at 06:27 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.