05-02-21 09:45 PM
i want to identify with Decipher a specific element from a table,
I want a specific column value based on a label
for example I've the following table:
header1|header2|header3|header4
value1 | 1 | 1 | 1
value2 | 2 | 2 | 2
I want to define through a DFD field, to only recognize the content of header1 if it's equal to "value2" and then assign to that field the value of header4
what could be the best approach to do this and if it's possible to do it through decipher
Thanks
12-02-21 03:44 AM
So you would have to create the table in the DFD and get all the values for column 1 and column4. Then you would use the formula option of the result field to store the value of column4 as your result. The formula will depend on the type of the value that you would get from header1 column. If the value is text then the formula will go sort of like this:
IF(STRCMP(FT_HEADER1, "value2"),FT_HEADER4,"")
This compares the string capture for header1 with value and if it is true then it stores the value in header4 in the result field. The result field will be added as an additional column on the table that contains the result from the expression. Also it must contain the autocalculate and assignable flags. If value2 is a number then you will have to use the "EQ()" function instead of the "STRCMP()". For more information on formula language see the link below:
Decipher Online User Guide - Formula Language
19-02-21 07:11 AM
25-02-21 03:58 PM