JavaScript handler to update the data of the multiple choice field to include any newly added tags.
Posted: 2020-02-21 13:42
Hi everybody.
I hope someone can help me:
I have an "activity" table with an "employee" field. The "employee" field is a multiselect field that takes the employees registered in the "employee_name" field of the "human_ resources" table.
When a new record is inserted in the "human_resources" table, a script updates the "cs_employee_activity" file by adding the name of the new employee to the .csv file.
This allows me to insert new employees in the "employee" field of the "activity" table as new records are inserted in the "human_ resources" table.
I created an "add employee" link in the "activity" table that allows you to open the "human_resources" table in a "add record" mode in a separate window (the link is http: //mywebsite.ext/human_resource_view.php? AddNew_x = 1).
And here's my problem:
I need that after creating the new record in the "human_ resources" table, on closing the modal window (by the add new button) a JavaScript handler would update the data of the multiple choice field to include any newly added tags.
My post is related to the blog post A work-around to implement a multiple choice lookup field in your AppGini apps†see link: https://bigprof.com/blog/appgini/a-work ... gini-apps/
Thank you very much!
Fabiano
I hope someone can help me:
I have an "activity" table with an "employee" field. The "employee" field is a multiselect field that takes the employees registered in the "employee_name" field of the "human_ resources" table.
When a new record is inserted in the "human_resources" table, a script updates the "cs_employee_activity" file by adding the name of the new employee to the .csv file.
This allows me to insert new employees in the "employee" field of the "activity" table as new records are inserted in the "human_ resources" table.
I created an "add employee" link in the "activity" table that allows you to open the "human_resources" table in a "add record" mode in a separate window (the link is http: //mywebsite.ext/human_resource_view.php? AddNew_x = 1).
And here's my problem:
I need that after creating the new record in the "human_ resources" table, on closing the modal window (by the add new button) a JavaScript handler would update the data of the multiple choice field to include any newly added tags.
My post is related to the blog post A work-around to implement a multiple choice lookup field in your AppGini apps†see link: https://bigprof.com/blog/appgini/a-work ... gini-apps/
Thank you very much!
Fabiano