Welcome Guest! Log in
×

Notice

The forum is in read only mode.
Due to some maintenance operations, stambia.org will be switched to read-only mode during the 13th November. It will be possible to read and download, but impossible to post on the forums or create new accounts. For any question please contact the support team.

Topic-icon Question Condition on a DirectBind Link

More
05 Feb 2016 12:07 #1 by Afaf ABOUTABIT
Afaf ABOUTABIT created the topic: Condition on a DirectBind Link
Hello,

I'm using an SQL Operation to select some records. For each record I need to do a test in order to know whether to execute an action or not
For that I set a condition to the DirectBind Link as follows :





But action "ExecuteDelivery" is executed anyway even if the condition I set is not verified.
Can anybody please tell me what is wrong about my settings ?

Thank you :)
Attachments:
More
09 Feb 2016 14:30 #2 by Cyril Dussud
Cyril Dussud replied the topic: Condition on a DirectBind Link
Hello,

Why not filtering the rows directly in your SQL Query, with a WHERE clause for example ?
This would optimize the data flow and simplify the process.

Otherwise, to use the bind variables on a bind link, you have to use the following rhino syntax
%b(rhino){<yourExpressionhere>}b(rhino)%

E.g.
%b(rhino){":{CUS_ID}:"=="1"}b(rhino)%
More
12 Feb 2016 16:23 #3 by Afaf ABOUTABIT
Afaf ABOUTABIT replied the topic: Condition on a DirectBind Link
In fact, I don't want to filter the data. I want to do two tests on two Direct Bind links coming from the select sql operation. The condition I used in my question is just a simplified condition of what I need.

Now it's working thank you, i just needed to use the rhino syntax :)