Skip to main content

pass store variables from macro to Line Loop UF

Answered

Comments

4 comments

  • Official comment
    Naama Aharoni

    Hi Kevin,

    You can try passing the Item Code to a UDF field and then you will have access to that value in the line loop.

    Thanks, Naama

  • Scott McClure

    Is it simply not possible to use @STORE values in SQL() statements in a UF?  You didn't answer his question.  I'm trying to find a way to use the results of one SQL statement as a parameter for the WHERE clause in another SQL statement.  Is this only possible through screen fields?

  • Scott McClure

    Kevin,

    I've been working with (and asking for documentation on) the @STORE quite a bit.  First, they do persist from UF to UF and even from screen to screen.

    Second, it seems that in the SQL statements they need to be in single quotes and put within some kind of SQL function.  For instance, using @STORE1 as an argument in a WHERE clause I find that WHERE Field = @STORE1 fails with and error as does WHERE Field = '@STORE1' but WHERE  Field = LTRIM('@STORE1') works.  There might be more elegant ways  to make it work but these can be used as variables.

    Sure would love to see some of this clarified and documented in a Guide - understanding the Stores system kind of doc!

    Thanks,

    Scott

     

  • Yaremi Miranda Lopez

    Hello Kevin,

    Yes you can, here is the link to a guide that can help you use @STORE statements and conditions like IF and CASE:

    https://support.boyum-it.com/hc/en-us/articles/204284198-Guide-Understanding-Macro-Conditional-Commands

     

Please sign in to leave a comment.