Skip to main content

While designing a form in smartforms, Calling a SmartObject Get List Items Method.


 


 16166iB411763D37E781B2.jpg


 16279i5081107F21815A8F.jpg


If your project necessitates an advanced smartobject filter from the form level causes the smartobject to not respond.


 


The filter works fine if there is no filter, or a standard filter


 


 15362i2DAD0D3C4BE076A8.jpg


 


 


From the standard filter, press advance and the data from the drop down disappear.


16229iD6DE1E6B049BEEE6.jpg


 


The advance filter works in the Smartobject service tester, but breaks on Smartobject call on a form.


In this scenario, the data needed to be returned a value of ID if (A=1 & B = 1) OR C =1 or D=1


 11641i70B3ABFC3A537E23.jpg


 


 


 


The bug is if you save and leave your form and come back, look at the Advanced Filter and you will see yUnresolved SmartObject property]


 


Before:


16663i1ABE823DC88E8154.jpg


After:


 11023i990166B89AC1178F.jpg


 


 


 


The workaround:


Create a listview, using the necessary Smartobject as the datasource.


 15173iEED50B6C9CE76B90.jpg


 


The list view does not need to contain any data.


11286iD21A24BF8731B943.jpg


 


Back on the original form, place the hidden list view on the form and uncheck the Visible checkbox in the properties pane.


12542i56BDB6846C806C6A.jpg


 


 


 


 


Change the Execute a Smartobject Method to Execute a View Method.


11854i466831FCCFD387B4.jpg


 


When configuring the filter, use the smartobject data under the hidden view. NOT the normal Smartobject data.


12909iEB527E451DC48073.jpg


 


Now all the filters stay in place.


17035i73EBB9E12F979A59.jpg

Be the first to reply!

Reply