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!

Linkage Error

Status
Not open for further replies.

bigpapi

Programmer
Aug 1, 2006
16
CA
Could someone post a link or show me how you link one datawindow to another data window in Powerbuilder 9


Here is my specific error:
I am getting a linkage error on my datawindows and was hoping someone could help me.

I have a master datawindow and i have added another datawindow on top of the master.

I am getting the following error message box:
No. of Aruments not matched

No. of argument in Master is 2
No. of argument in Detail is 0

Current Master datawindow is dw_equipment_header
Current Detail datawindow is dw_2

No. of rowws in Master is 1
No. of rows in Detail is 0

Current Row in Master is 1
Current Row in Detail is 0

Then a second message box pops open saying:
Retrieve Argument 1 does not match expected type.


If someone can help with the more specific problem that would be great, but i'll settle for the first part at the least.

Hope someone can help
thanks
 
When you're calling the dw.Retrieve( ) function, you're not providing the correct variables in both type and number. Let's say your master dw has two retrieval arguments: 1.) as_key (string) 2.) an_id (long) When you call the retrieve of that dw, it needs to look similar to this:

String ls_key
Long ll_id

//get the key & id from wherever

dw_master.SetTransObject( SQLCA )
dw_master.Retrieve( ls_key, ll_id )

Hope this helps...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top