communication between DSPF and IFrame DSPF
Posted: Thu Jan 17, 2019 5:28 am
Hi,
I created a DSPF with a Tab Panel(main DSPF). Every Tab has its own IFrame(child DSPF).
If I click on a button(Speichern) in my main DSPF I am able to change a input field in my child DSPF's. That works. Buttons onclick:
var iframe = document.getElementById("IFrame1");
var innerDoc = iframe.children[0].contentDocument || iframe.children[0].contentWindow.document;
var box = innerDoc.getElementById("TXTSPEICHE");
parent.changeElementValue(box,'1');
My question is how can I detect the changes I made with JavaScript to the field in my child DSPF's?
Onchange or Oninput in the input field does not work. I need to place a pui.click().
I attached the main(zztst1fm) and a child(zztestdba) DSPF.
Hope you can help me!
Thanks
David
I created a DSPF with a Tab Panel(main DSPF). Every Tab has its own IFrame(child DSPF).
If I click on a button(Speichern) in my main DSPF I am able to change a input field in my child DSPF's. That works. Buttons onclick:
var iframe = document.getElementById("IFrame1");
var innerDoc = iframe.children[0].contentDocument || iframe.children[0].contentWindow.document;
var box = innerDoc.getElementById("TXTSPEICHE");
parent.changeElementValue(box,'1');
My question is how can I detect the changes I made with JavaScript to the field in my child DSPF's?
Onchange or Oninput in the input field does not work. I need to place a pui.click().
I attached the main(zztst1fm) and a child(zztestdba) DSPF.
Hope you can help me!
Thanks
David