PDA

View Full Version : Custom Dialog Issues :( Please help!



robsahm
03-01-2006, 04:00 AM
Ok here is what I am doing :

I am buildign a custom dialog and am trying to validate some controls in the queryExit(xxx) method. Im trying to get a control such as :

try{

ISTextField textField = context.getISPanel().getTextField("ISTextFieldSAPSID");

String SAPSID = textField.getText();
System.out.println("SAPSID");

.....

Im 100% sure of the control name. When I do the textField.getText its always null, however there was data entered in the fied. What am I doing wrong ?

enanrum
03-07-2006, 05:44 PM
Can you try it a different way and look at the variable you associated with the text field!

String SAPSID = context.getServices().getISDatabase().getVariableValue("SAPSID");

robsahm
03-08-2006, 03:08 AM
Yes this is the way I eventually got it to work. The problem is that its a question dialog and the getISPanel() returns the wrong part of the dialog. Seems this way of doing it does not work for Question dialogs.