Hi Sergey,
Here are my last 0.02$.
1st 0.01$:
- Does any Warning come up when you press OK? If yes, issue the PressButton(HC &OK) twice.
2nd 0.01$:
- Have you ever debugged the APPL, that PressButton statement executed at all?
- What is the setting for "No Fetch Form Business View" form properties?
>> Development manual states (Appendix: Process Flow for Fix/Inspect Form)
>>>>>
...
11. If "No Fetch Form Business View" is checked
* Perform Event Rules: "Post Dialog Initialized"
...
<<<<<
Maybe your "Post Dialog Initialized" event does not executed at all.
If this is the situation, then you can move PressButton to the "Dialog is Initialized" event.
I already used this technic (pressing OK programatically from ER) on many form, as well on custom forms as on copied vanilla forms.
Really hope, we will find the solution now, because my cash desk balance is 0.00$
GOOD LUCK! - at keep us informed. Thanks.
Regards,
Zoltán