Skip to main content

SQL statment in items placement tools

Answered

Comments

2 comments

  • Patrice Vigier

    Maybe that is a bug, because the SQL statement

    SELECT Code, Name FROM @VT_SGRP  WHERE U_GRP =$[$39.0.NUMBER]

    works in a button.

     

  • Patrice Vigier

    I got an answer: it does not work this way.

    The solution is:

    1) To add a validation configuration that fire on click before action

    2) In "No condition, just execute function" field, link it to a macro

    3) Create a macro with this function: SetValidValues($[$item.col.0]|SQL:<sql>); 

    As an example,in my case it was:

    SetValidValues($[$BOYX_7.0.0]|SQL:SELECT Code,Name FROM @MYTABLE WHERE U_MYFIELD = $[$39.0.NUMBER]);

    This works as I expected.

     

Please sign in to leave a comment.