Filtered browse screen and new records
Posted: Thu May 21, 2020 11:24 am
Hi,
I have this scenario:
A company with 3 departments, say A, B and C, and a shared human resource office that edit data for all employees (e.g. name, surname, address, and so on).
I made a table (and a form) that collects data from all departments, inserting a column "department" into the table itself.
Then I insert three buttons in the home screen, say HR-A, HR-B, HR-C, each one run same form but with A, B or C in the Filter field, because I need to have three separate lists.
But when I add a new record, I want to write into the database table (PHP After Save) the right department value based on filter applied to the browse screen in the run/filter field... or, that it's the same, populate a hidden field in the edit screen with filter value A, B or C, so that the employee doesn't have to choose department from a dropdown list when he adds a new person.
But if I do a nuDebug(nuHash()) in PHP Before Edit, I cannot read "filter" hash variable, this is present only in the Before Browse.
Please can someone help me?
Thank you in advance.
Alessandro
I have this scenario:
A company with 3 departments, say A, B and C, and a shared human resource office that edit data for all employees (e.g. name, surname, address, and so on).
I made a table (and a form) that collects data from all departments, inserting a column "department" into the table itself.
Then I insert three buttons in the home screen, say HR-A, HR-B, HR-C, each one run same form but with A, B or C in the Filter field, because I need to have three separate lists.
But when I add a new record, I want to write into the database table (PHP After Save) the right department value based on filter applied to the browse screen in the run/filter field... or, that it's the same, populate a hidden field in the edit screen with filter value A, B or C, so that the employee doesn't have to choose department from a dropdown list when he adds a new person.
But if I do a nuDebug(nuHash()) in PHP Before Edit, I cannot read "filter" hash variable, this is present only in the Before Browse.
Please can someone help me?
Thank you in advance.
Alessandro