Hi Support,
After some offline post with Tom, here is the problem illustrated.
When the Received Call Form is displayed, the user need to be able to:
. select existing references (Address or Contact) or create them
. return to the Received Call
After 3 days of intense trying, I couldn't find a reasonable solution.
The closest: 2 buttons on Received call Form: Select & Add new.
Select is OK as Pick from 'query' displays in a modal window.
"Add New Contact" has following process rules:
. DISPLAY QUESTION 'Is the new contact a person ?'
. "if Yes": ENTER NEW PERSON
. "if Yes": CREATE CONTACT WITH ... ELSE IF "NO" CREATE CONTACT WITH ...(attributes initialization are different)
. "if YES": VIEW CONTACT USING Contactperson Else VIEW CONTACT USING Contactfunction
Now, Recceived call Form has obviously gone for good !
My html button definition is:
<button type="button" onclick="AwareApp.startProcessFromForm('SelectRecdCallContact', 'main', this, true);">Select</button> <button type="button" onclick="AwareApp.startProcessFromForm('CreateContactInRecdCall', 'main', this, true);" >Add new</button>