Expression Evaluation Error Section Layout

Hi Team,

We are facing a rather weird issue with one of our SAIL Forms. This SAIL has code several sections. One of the section itself is conditional (i.e we display it using IF Conditon). Inside this section there are several components like text box, buttons etc. The button component is created using a!buttonLayout and a!buttonWidget which is again displayed conditionally.
While viewing in TEMPO, form is displayed without this section. When user keys in ,condition is satisfied and this section should be displayed. But we keep getting "Expression Evaluation Error Section Layout....". If I make the button component within this section as un-conditional ,then we get no errors. Can anybody help with this weird issue

OriginalPostID-225634

OriginalPostID-225634

  Discussion posts and replies are publicly visible

Parents
  • It may sound really weird ,the IF Condition was something like this
    if(fn!tointeger(index(local!someVar,"someIndex",{}))= 2,
    a!buttonLayout(...........//CODE GOES HERE ; I changed this as below
    if(fn!tostring(index(local!someVar,"someIndex",{}))= "2",
    a!buttonLayout(...........//CODE GOES HERE ; it started working without any issues. I am not sure how it happened ,but I changed only this. (from numeric I converted to string)
Reply
  • It may sound really weird ,the IF Condition was something like this
    if(fn!tointeger(index(local!someVar,"someIndex",{}))= 2,
    a!buttonLayout(...........//CODE GOES HERE ; I changed this as below
    if(fn!tostring(index(local!someVar,"someIndex",{}))= "2",
    a!buttonLayout(...........//CODE GOES HERE ; it started working without any issues. I am not sure how it happened ,but I changed only this. (from numeric I converted to string)
Children
No Data