Calling java function in onload from rpg
Posted: Mon Nov 03, 2025 6:23 am
Hello.
We have a rcd format with the following java script in the onload:
from the rpg we want to call this java function. We found the hint to do this by using pui_runscript
Does anyone know how we can do this?
Greetings
Sebastian
We have a rcd format with the following java script in the onload:
Code: Select all
function runNextStep(step) {
switch (step) {
case 1:
changeElementValue("ButtonSel", "B1");
break;
case 2:
changeElementValue("ButtonSel", "B2");
break;
case 3:
changeElementValue("ButtonSel", "B3");
break;
case 4:
changeElementValue("ButtonSel", "B4");
break;
case 5:
changeElementValue("ButtonSel", "B5");
break;
case 6:
changeElementValue("ButtonSel", "B6");
break;
case 7:
changeElementValue("ButtonSel", "B7");
break;
default:
return; // kein weiterer Schritt
}
// führt einen Submit an das RPG-Programm aus (so als hätte der User geklickt)
pui.click();
}RPG CODE
But it doesnt know this pui_runscript when compiling.Does anyone know how we can do this?
Greetings
Sebastian