Skip to main content

Dialog Boxes

Hi, I am back once again. Have been working on the script and its been smooth with serveral ups and downs.
The current issue I am facing is that I cannot seem to store information within an object and I have the same error coming back to me each time.
My Dialog box's name is NewDialogX
sFieldName = listBox1$(NewDialogX.DialogBoxDropListBox2)
 
Error : Invalid Qualifier
If I were to remove NewDialogX the code runs but no information will be store in sFieldName.
p.s I ran a message box right after this.
 
Cheers!
 
 
 

Brian Element Thu, 04/05/2018 - 07:08

Hi Jeremy,

The code you have with the sFieldName = listBox1$(NewDialogX.DialogBoxDropListBox2) should work, I did note that you have an extra end sub at the end of your script so that might be screwing things up.  Also can you reattach the complete script as the one you have attached doesn't have the dialog so I can't see if there is anything wrong there.  The dialog code is hidden in the IDEAScript editor but if you open the script in notepad or notepad ++ you will be able to see it.

Thanks

Brian

jeremycheong1993 Mon, 04/09/2018 - 23:44

cant seem to run the code with sFieldName=listBox1$(NewDialogX.DropListBox2). It says invalid qualifier
 
Thanks! (: Ive uploaded the file!
 
 

jeremycheong1993 Tue, 04/10/2018 - 02:22

Just an update at the moment i managed to solve the problem relating to the DropListBox2 by inserting a new case "DropListBox2" and changing to sFieldName=listBox1$(SuppValue%).
However, I still have a problem with the input box as it constantly returns a blank when i run a message box to debug it.
 
Help! Cheers!

Brian Element Tue, 04/10/2018 - 07:10

Hi Jeremy,

For the text box try:  sNewField = NewDialogX.Field_Name

For the dropdown try: sFieldname= listBox1$(NewDialogX.DropListBox2)

Make sure your variables to store this information are global variables, they need to be defined before the main sub line.

Good luck, let me know if this helps.

Brian

jeremycheong1993 Tue, 04/10/2018 - 09:46

In reply to by Brian Element

Dear Brian, I have defined sNewField and sFieldname as String but when i sNewField as NewDialogX.Field_Name they show an error called invalid qualifer.
 
May i know what that mean? 
 It seems like my editbox is broken...
Cheers!

Brian Element Tue, 04/10/2018 - 10:30

Hi Jeremy,

I managed to get it working by making the dlg variable global and access it in the displayit function.  I have attached the updated script for you to have a look at.

Brian

jeremycheong1993 Tue, 04/10/2018 - 21:24

Hi Brian, it works! Goodness I cant do it without you ! I'll take a thorough look at it to sieve out my mistakes. Thanks so much!

Brian Element Wed, 04/11/2018 - 07:27

In reply to by jeremycheong1993

Actually what you were doing should have worked, I am not sure what the problem is but there is something there and sometimes with the dialog it is hard to tell what exactly the error is.  Generally if I had more time I would rebuild the dialog.