SaudaFurkhana
8 years agoQrew Cadet
Button on Dashboard (HomePage) to invoke Await-Async JS code
Hi Dan,
As advised, starting a new post on "how to configure a button on the home page to concatenate text from all the child records using await/async technique."
Can you please share regarding this
1) Background on using Await/Sync technique setup
1) The iol field is placed on the parent record form to invoke the JS code.
2) Theawait/async loops through the report on the child table. Child report contains two columns: Text Field (that needs to be concatenated), Record ID of the parent record. The report is sorted and grouped based on the record id of the parent.
3) The code concatenates text from all the child records of a parent record, edits the parent record to set the concatenated text to a field.
So, instead of placing the iol field on the parent record and seeing the "reload behavior", it is probably best to have it triggered via button on the home page.
2) Performance: What do you think is causing the performance to degrade? - My child report has 1200+ records that belong to almost 1000+ parent records. Code is taking very long time to calculate the concatenated text. The code is not fast and the speed reduces gradually. It edited 50+ parent records in 2 hours!
Thank you, and as your help and guidance is highly appreciated!
As advised, starting a new post on "how to configure a button on the home page to concatenate text from all the child records using await/async technique."
Can you please share regarding this
1) Background on using Await/Sync technique setup
1) The iol field is placed on the parent record form to invoke the JS code.
2) Theawait/async loops through the report on the child table. Child report contains two columns: Text Field (that needs to be concatenated), Record ID of the parent record. The report is sorted and grouped based on the record id of the parent.
3) The code concatenates text from all the child records of a parent record, edits the parent record to set the concatenated text to a field.
So, instead of placing the iol field on the parent record and seeing the "reload behavior", it is probably best to have it triggered via button on the home page.
2) Performance: What do you think is causing the performance to degrade? - My child report has 1200+ records that belong to almost 1000+ parent records. Code is taking very long time to calculate the concatenated text. The code is not fast and the speed reduces gradually. It edited 50+ parent records in 2 hours!
Thank you, and as your help and guidance is highly appreciated!