Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Please Help to open a response window

Status
Not open for further replies.

jancypaul

Programmer
Aug 3, 2007
20
GB
Hai

Please need your help to get answer for my simple question .

I have a window name wi_customer (main window). This window is used for the entry of the customer details. I am using another window ie, wi_cust_search (response window) for customer search. the response window will be opened from wi_customer command button object. After searching a customer code I need to bring some value in to wi_customer window.

So how I can refer wi_customer as parentwindow in wi_cust_search.
 
One approach with a response window is to use the Openwithparm method to open it from the parent and then use Closewithreturn to close it (and I assume return the selected customer code back). The script in the parent can then take the returned value and do whatever you want to do.

Matt

"Nature forges everything on the anvil of time
 
To further Matt's suggestion, to catch the passed parm, you will have to use the Message object...

As simple as one of the following:

Long ll_cust = Message.DoubleParm //if passing number
String ls_cust = Message.StringParm //if passing string
s_some_structure lstr_parms = Message.PowerObjectParm //if passing something other than a number or string

In you response window you will handle this in the Open event, and in your main window, it will come directly after your Open( w_cust ) function call.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top