Hi Friends,
I need help on form refresh / reload.
Here, I have
- a master FORM “A” displaying one record
- a detailed GRID “B” displaying records based on master for.
- an EDITABLE GRID VIEW “C” taking new records.
Once data is entered in to EDITABLE GRID VIEW, I have a “PROCESS” Button to do multiple task including (A) updating a record in MASTER FORM “A”, (B) updating records in DETAILED GRID “B”, and © displaying new records in EDITABLE GRID VIEW “C”
The problem is the data are saved but the ALL FORMS “A”, “B”, “C” are NOT reloading new data. I tried the following :
A) Creating new Javascript method Called “ReloadData”, which contains
//Code also from this forum
var elem = document.getElementById(‘nmsc_iframe_liga_grid_tmp_bill_details’); //grab the detail form
elem.src = elem.src; //cause the form to reload
elem = document.getElementById(‘nmsc_iframe_liga_form_tmp_payment’); //grab the detail form
elem.src = elem.src; //cause the form to reload
B) Within “PROCESS” Button PHP Code, I have a macro “sc_ajax_javascript (‘ReloadData’)”. Still does NOT reload new data.
It seems to me that javascript “ReloadData” is never called but I don’t know why. Is it because it is not “ON EVENTS”?
Any help / suggestions are much appreciated.
Capecode