UnionSystems wroteCreate an AwareIM Process that calls EXEC_SCRIPT (example below calls javascript function AwareApp.startProcess2 passing the ID of an object in Context)
EXEC_SCRIPT 'AwareApp.startProcess2(`Person_View`,`Person`,'+AS_STRING(Person.ID)+',{modeless: true, position: {top: 100, right: 100 }}); '
Then add an Operation (button) to your Query that calls that AwareIM Process.
This doesn't work for me.. Perhaps I'm doing something wrong? I did pretty much exactly what you said, just changing Person_View to my process name, and Person to my object name. I get a regular popup, not a modal window..
To confirm, I have a process saying "EDIT Object USING form_name" - this process has Object as an input.
I have a second process saying "EXEC_SCRIPT AwareApp.startProcess2('Process_name','Object',
+AS_STRING(Object.ID)+,{modeless:true,position:{top:60}}
" - also with Object as an input.
On my custom query I have a button that calls the second process, using:
<button class="..." onclick="AwareApp.startProcess2('second_process_name','Object',{ID},'main');">button_text</button>
Anything I'm missing?