iam trying to create a text box that asks where it asks for "Enter the required Code" . The user enters the code and clicks on 'Search' button. Then the code entered has to be searched in the script.
dial_wind =New Window("Select Profit Center", Text Box(""), Text Box("Enter you profit center code."), Text Box(""), keyword1 = Text Edit Box("",<< set width (200), <<script(kw1=keyword1<<get text)), Text Box(" "), Button Box( "Search", search_script), Text Box(" "), );
The callback script for the keyword1 text edit box only gets executed if you type something in the box and then tab out or hit CR. Easier to just put it all into the search_script expression. Also, you had kw1=="" when you needed kw1 != "".