Dialog Box (OpenInsight 32-bit)
At 31 MAY 2012 08:41:18AM Bob Whiteman wrote:
Can anyone tell me what makes a parent id inavlid when calling a Dialog Box?
It would help if Open Insight generated meaningful (or indeed any) error messages instead of just ignoring what it can't cope with.
At 31 MAY 2012 09:02AM Dave Harmacek wrote:
Can you show this portion of your code?
The Parent ID is just the name of the Window (Form) that resumes processing after the Dialog Box is closed.
Thus, it is usually @WINDOW.
Dave Harmacek
Harmacek Database Systems
At 01 JUN 2012 04:27AM Bob Whiteman wrote:
Thanks Dave, I am using @window but the dialog box isn't opening, it doesn't even hit the create event.
I have also tried hard coding the calling window name instead of using @window but still no luck.
I have also tried subtituting a dialog box name that works elsewhere and like wise no luck. My query about the validation of parent id is just clutching at straws as with no error messages and with what else I've tried, I can't think of any other reason why the box won't open.
At 01 JUN 2012 09:07AM Dave Harmacek wrote:
Make sure the name of the dialog box is specified in upper case (more straws)
Have you tried Start_Window on that form?
Dave Harmacek
Harmacek Database Systems
At 01 JUN 2012 03:09PM Dave Harmacek wrote:
Can you show this portion of your code?
Dave Harmacek
Harmacek Database Systems
At 05 JUN 2012 03:15PM Andrew McAuley wrote:
The most likely cause is that you have reversed the order of the parameters and put the parent first followed by the dialog. As the parent already exists OI sees no reason to inform you of this. If this is not the case use get_status to return any error messages. Remember to set_status 0 before making the dialog box call.
World leaders in all things RevSoft
At 06 JUN 2012 11:43AM Bob Whiteman wrote:
Code which does work:
CREATEPARAM = 'Enter text here'
PARA.DATA = DIALOG_BOX('SMS_FREE_TEXT',@WINDOW,CREATEPARAM)
Code which does not work:
CREATEPARAM = ''
REASON.FOR.SENDING = DIALOG_BOX('SMS_REASON',@WINDOW,CREATEPARAM)
The dialog box SMS_REASON is a copy of the dialog box SMS_FREE_TEXT.
As what I wanted was a fairly simple reply, I've used MSG instead.