Hello, I would like to ask a question regarding the reevaluation of S

Hello,

I would like to ask a question regarding the reevaluation of SAIL interfaces, one that I have not been clear on so far.
Does ANY user interaction with SAIL components cause the whole interface to be reevaluated?
For example, changing the value of a radioButton or the value of a textField, would that cause the whole SAIL interface to be reevaluated?
And reevaluation, if I have understood correctly, means that all expressions within all SAIL components of an interface will be reevaluated, even to return the same result that is already being displayed.

Also, I have a question regarding the with() function, in relation to my previous question, that stems from the implementation of cascading drop down fields.

We have been using a series of cascading drop down fields where the choices of each drop down field must be updated from the database using the selected value of the previous drop down field. Now, given that each drop down field is within a ...

OriginalPostID-156756

OriginalPostID-156756

  Discussion posts and replies are publicly visible

Parents
  • ...with() function, the query of each drop down field would be executed every time any other SAIL component of that interface changes regardless of the fact that the value of any drop down field has NOT been changed and regardless of the fact that result of each query is the same as what is already displayed in the list of choices of the drop down fields.

    Since this seems like an overhead in terms of DB execution, we have found another way to implement cascading drop down field scenarios, a way that I have not seen mentioned in the documentation. The way we have implemented these scenarios is by removing the with() functions for the drop down fields and by executing the query to the DB, in order to retrieve the choices of the next drop down field, in a a!save() function in the saveInto section of the drop down field whose value has just been changed.

    Is anyone aware if the implementation I have just described is not recommended or if anyone has had issues with this?
    ...
Reply
  • ...with() function, the query of each drop down field would be executed every time any other SAIL component of that interface changes regardless of the fact that the value of any drop down field has NOT been changed and regardless of the fact that result of each query is the same as what is already displayed in the list of choices of the drop down fields.

    Since this seems like an overhead in terms of DB execution, we have found another way to implement cascading drop down field scenarios, a way that I have not seen mentioned in the documentation. The way we have implemented these scenarios is by removing the with() functions for the drop down fields and by executing the query to the DB, in order to retrieve the choices of the next drop down field, in a a!save() function in the saveInto section of the drop down field whose value has just been changed.

    Is anyone aware if the implementation I have just described is not recommended or if anyone has had issues with this?
    ...
Children
No Data