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

Can I set item in datawindowchild using setitem function

Status
Not open for further replies.

jAvinash

Programmer
Aug 13, 2003
1
US
I am facing a problem regarding dynamically populating my dropdown datawindow. I want to populate the dropdown datawindow in datawindow 1 with the column values of the 2nd datawindow.
for this I have created dddw from a dummy table by selecting null from dual. and now I want to populate this dddw. can someone help me in doing this....
 
Avinash,

You don't really need the external dw when you have the source data already populated in dw 2. Simply use ShareData() to share data from dw 2 to your dddw:

////////////////////////////////////////////////////////////

dataWindowChild ldwc
//
IF dw_1.GetChild( &quot;<dddw-col-name>&quot;, ldwc ) = 1 THEN
ldwc.SetTransObject( SQLCA )
dw_2.ShareData( ldwc )
END IF

////////////////////////////////////////////////////////////

ShareData() is so very easy to use!

---
PowerObject!
-----------------------------------------
PowerBuilder / PFC Developers' Group
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top