Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
New using Peek and I found a problem with that:
Using variables (Peek1 attachement) result is not populated
Using hardcoded values (Peek2 attachment) result is populated correctly
Any suggestions? Thanks
I tried all possible mix with quotes and no-one works
Let vStation= peek($(vStationTableField),$(k),$(vStationName))
Let vStation= peek('$(vStationTableField)',$(k),$(vStationName))
Let vStation= peek($(vStationTableField),$(k),'$(vStationName)')
Let vStation= peek('$(vStationTableField)',$(k),'$(vStationName)')
At the end I found as acceptable solution the following
// PEEK DATA FROM STATIONS
LET variablea = Peek('TABLE_FIELD_A',$(k),'TABLE_STATIONS_A');
LET variableb = Peek('TABLE_FIELD_B',$(k),'TABLE_STATIONS_B');
LET vresult = if(n = '1', variablea , if(n = '2', variableb ));
Hi Tried but is doesn't works.
Attached you can find fields values.
I ran two times one with our solution and one with fields values hard-coded.
When it's used as variables vStation result fail (NULL), when it's used hard-coded it works perfectly.
Hi,
Attached you can find peek without quote but it doesn't work either.
Hi,
Attached you can find peek without quote but it doesn't work either.
I tried all possible mix with quotes and no-one works
Let vStation= peek($(vStationTableField),$(k),$(vStationName))
Let vStation= peek('$(vStationTableField)',$(k),$(vStationName))
Let vStation= peek($(vStationTableField),$(k),'$(vStationName)')
Let vStation= peek('$(vStationTableField)',$(k),'$(vStationName)')
At the end I found as acceptable solution the following
// PEEK DATA FROM STATIONS
LET variablea = Peek('TABLE_FIELD_A',$(k),'TABLE_STATIONS_A');
LET variableb = Peek('TABLE_FIELD_B',$(k),'TABLE_STATIONS_B');
LET vresult = if(n = '1', variablea , if(n = '2', variableb ));