How to populate specific list view rows based on a conditional logic.

  • 24 December 2015
  • 0 replies
  • 1 view

Userlevel 3
Badge +10


 

Symptoms


Unable to conditionally populate rows in an editable list view.
 

Diagnoses


Possible with 'For Each', 'Advanced Condition', and 'Transfer Data' rules.
 

Resolution

[Example] Adding the value 'None' to empty list view columns:

In the initialize rule of the List View, after the Get List and populate methods, add the following:

for All rows
if an advanced condition is true
then edit the selected row on the editable list
then transfer data (configure)
then apply the changes made to the row on the editable list

The advanced condition should check if your field 'is empty' (currently only works when using this with non-numeric data types). The transfer data step transfers the text 'None' into the SmartObject reference field that you are checking (not any of the controls of display fields).

Upon page load, after the SmartObject values are filled in, all empty values in that row will be 'None'. Note that they won't transfer that data to the SmartObject until someone hits save.




 

0 replies

Be the first to reply!

Reply