I have a query related to setting null values in multiple local variables in one

I have a query related to setting null values in multiple local variables in one go. Let me clarify the context ; I have around 10 fields which are displayed to user.For the purpose of discussion let's call one field as "PrimarySearch" and all other 9 fields are "SecondarySearch".He can enter appropriate values in any of the 10 fields and on submitting "SEARCH" ,it will fetch values from DB based on search criterion and display in GRID. But the issue is ,whenever he enters anything in "PrimarySearch" text box ,all other fields should be set to null and search is based only on the value entered in "PrimarySearch" text field.May be I can go with the below approach;but I need to move null values explicitly to all 9 secondaryFields.Is ther a better way of implementing this logic

a!textField(
label: "PrimarySearch",
value: local!primarySearch,
saveInto: {
                     local!primarySearch,
                     a!save(
local!secondaryFie...

OriginalPostID-154571

OriginalPostID-154571

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data