Morning
Has anybody ever found a way to open a Form in modeless window from a process?
I looked in the forum and looks like Forms always open as a popup?
Modeless Dialog From a Process. &hilit=modeless#p42738
I have a Client Form with a button to 'Send Email' to the Client.
The button runs a process with about 10 lines which (Button output is set to 'modeless') and I want to run a process, pause on a form to make changes, and then send the email.
The process currently:-
- creates the new email,
- add all the email addresses,
- some records in child relative grid (which I use later to generate attachments for the final email to send),
- display the form with 'VIEW Email WITH SendMailForm'.
- after completing selections/changes to the Email Form by the user, runs another process that generates the 'outbound email' with changes made in step 4 and sends it.
The problem is that the form displays as a popup in step 4 and then any changes I try to make to the displayed form pops up with a message 'Do you want to cancel the current operation'.
I tied using EXEC_SCRIPT 'AwareApp.startProcess2(viewEmail
,Email
,'+AS_STRING(Email.ID)+',{modeless: true, position: {top: 100, right: 100 }}); '
but the process never pauses or brings up the Form, just runs to completion or pops up with a message 'Do you want to cancel the current operation'..
Pulling my hair out here!
Any suggestions?
Tj