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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

openwithparm() 1

Status
Not open for further replies.

paul102384

Programmer
Oct 5, 2007
30
hi to all pb programmers:

i have a hidden datawindow_1 in window_1, i would like to get all the data of datawindow_1 and put
it all in datawindow_2 in window_2.How can I do this using openwithparm?. datawindow_1 and datawindow_2
have the same structure. I also created a user-defined structure, to pass and hold several values.

i named the structure as: str_validate

thanks..
 
If you are using PB9 or above and your dw doesn't have a very large number of rows you can save the data in dw1 using the saveas method as XML. Send the XML as a string parm to the other window and use importfile to get it into the other dw. Or you can pass dw1 as a parameter to window2.

Matt

"Nature forges everything on the anvil of time
 
As one of the arguments of str_validate, add a DataWindow type, adw_validate.


//calling event
str_validate lstr_parms

lstr_parms.adw_validate = datawindow_1

OpenWithParm( window_2, lstr_parms )


//open event of window_2
istr_parms = Message.PowerObjectParm //istr_parms is an instance variable of type str_validate

datawindow_2 = istr_parms.adw_validate
 
hi,
i m just a beginer of powerbuilder. and i want to use controls in my window so let me know about using the controls.
 
hi,
i m just a beginer of powerbuilder. and i want to use controls in my window so let me know about using the controls
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top