cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
robsahm
Level 4

Custom Dialog Issues :( Please help!

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 ?
Labels (1)
0 Kudos
(2) Replies
enanrum
Level 9

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");
0 Kudos
robsahm
Level 4

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.
0 Kudos