How to retrieve filter in edit form
Posted: Wed Apr 25, 2018 9:21 am
There's a run button that opens a browse form with a given filter (e.g. Google)
Then I set a Hash Cookie with nuSetProperty:
When a record is selected from the browse table, the edit form is shown. Now I'm trying to get this hash cookie with nuGetProperty but it gives me an empty result.
What I'm trying to get is the filter of the browse form while the edit form is shown. Or is there a method like previousForm.filter ? (the previous form would be a reference to the browse form)
While the browse form is open, the filter can be retrieved with nuCurrentProperties().filter Then I set a Hash Cookie with nuSetProperty:
Code: Select all
if (nuFormType() == 'browse') {
nuSetProperty('project', nuCurrentProperties().filter);
}
Code: Select all
if (nuFormType() == 'edit') {
alert(nuGetProperty('project'));
}