When clicking an action button from within a form, I get a pop up dialog box and want to “Press the Enter Key” automatically using the formula Language code. Is this possible?
Thanks, Paul
When clicking an action button from within a form, I get a pop up dialog box and want to “Press the Enter Key” automatically using the formula Language code. Is this possible?
Thanks, Paul
Subject: No but you can do it using LotusScript…
…and I suppose you could put the LotusScript into an agent that you call from your formula before you open the dialog (it has to be before because the Enter has to be in the keyboard queue when the dialog opens; your code after whatever opens the dialog doesn’t open until the dialog is closed by the user.
To do it in LotusScript requires OS-specific code such as the SendKeys library for Windows which can be found here: Domino Design Library Examples
Subject: Detail of problem…
Andre, thanks for your response! The background of this problem is my need to clear a Rich Text field using formula language which I am doing using the below code:
@Command([EditGoToField];“Your field name”);
@Command( [EditSelectAll] );
@Command([Clear]);
Unfortunately what happens is that if an attachment is present, a dialog box opens asking “Are you sure…” or if no data is present, I get a message “Cannot locate field”. In either case, I just want to clear the fields without these messages being displayed. Any ideas?
Thanks again, Paul
Subject: test failed
disregard this…