Hello again,
I must be missing something obvious. I create a dialog early on, and then later show it from a called function.
This creates it:
	This shows it:
	I have tried everything I could to get it to work. I have another instance where I use a model window that works fine when .show() is called from a button.
In the Develop Console Watch tab I can find the dialog. It is both 'Drawn' and 'Visible'. Yet, when I select it in the Watch tab, I only see a faint red square where it should be on top of the form calling for it.
Since the .show() call is asynchronous, it may be that other canvases that I draw after this code may have been drawn over it.
I will try more things in the morning when I have had my coffee.
Thanks,
Rick
P.S. I am running SmartClient Version: v8.3p_2014-06-27/EVAL on Mozilla Firefox 20.0 with Firebug using Windows 7 Premium 64 bit.
					I must be missing something obvious. I create a dialog early on, and then later show it from a called function.
This creates it:
Code:
	
	isc.Dialog.create({ ID:"NDAloginDialog",
	title:"Non-disclosure agreement required.",
	message : "Thank you for helping to try out...",
	icon:"[SKIN]warn.png",
	isModal:true,
	autoDraw:false,
	visibility:"hidden",
	showCloseButton:false,
	showModalMask:true,
    modalMaskOpacity:20,
	width:800,
//	height:200,
	buttons : [
	  isc.Button.create({ title:"<span style='color:Red;'>I DO NOT AGREE</span>", autoDraw:false, autoFit:true }),
	  isc.Button.create({ title:"<span style='color:Green;'>I AGREE</span>", autoDraw:false, autoFit:true })
	],
	buttonClick : function (button, index) {
		if (index == 0) {
			Application.destroy();
		} else {
			updateTeamMemberNDAstatus(Application.loggedInTeamMemberID, "I AGREE");
			this.hide();
		}
	}
});
Code:
	
	if (teamMemberRecord.NDArequired) {
	m4_ifelse(m4_eval(debugPriority>=5),1,Log.logDebug("************* originalPW: " + originalPW);)
	if (originalPW == "NOT REQUIRED") {
		m4_ifelse(m4_eval(debugPriority>=5),1,Log.logDebug("************* calling updateTeamMemberNDAstatus ");)
		updateTeamMemberNDAstatus(teamMemberRecord.TeamMemberID, originalPW);
	} else { //
		m4_ifelse(m4_eval(debugPriority>=5),1,Log.logDebug("************* showing NDAloginDialog ");)
		//NDAloginDialog.draw();
		NDAloginDialog.show(); // NOTE: dialog destroys Application or just returns from modal.
		//NDAloginDialog.bringToFront();
	}
}
In the Develop Console Watch tab I can find the dialog. It is both 'Drawn' and 'Visible'. Yet, when I select it in the Watch tab, I only see a faint red square where it should be on top of the form calling for it.
Since the .show() call is asynchronous, it may be that other canvases that I draw after this code may have been drawn over it.
I will try more things in the morning when I have had my coffee.
Thanks,
Rick
P.S. I am running SmartClient Version: v8.3p_2014-06-27/EVAL on Mozilla Firefox 20.0 with Firebug using Windows 7 Premium 64 bit.

Comment