Hi,
I'm working on an H5 Script in Infor M3 and I'm trying to automatically answer a YES/NO dialog after pressing F3, depending on a panel field value.
The field value is correctly detected before the popup appears. The issue is that the dialog button is found, but the click action does not execute.
I already tried:
- targetButton.click();
- targetButton.element.click();
- targetButton.trigger("click");
But none of them actually confirms the dialog.
Has anyone successfully automated a standard YES/NO dialog in M3 H5 scripts?
Specifically:
- What is the correct way to trigger a dialog button action in H5?
- Is there another API instead of
.click()? - Is the standard M3 dialog handled differently internally?
- Should this be done using keyboard simulation instead?
Any guidance or working example would be greatly appreciated.
If it helps, I attached my current script file.
Thanks!