DAP Data Transfer problems

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello ,

I have ModalDialogBox window which contains a datagrid of records (approx
500 records) , i need to transfer a row of record back to the main window
using the window.returnValue method . But when i click on any 1 row onthe
datagrid, the textbox on the main window shows 'undefined' as the value
because it doesnt recognize the record source from the ModalDialogBox window.

How can i propogate tht particualar row from ModalDialog to Main window in
DAP?

Waiting for someone to reply.

Andy
 
This sounds more like a vbscript or a javascript problem than a DAP problem.

You cannot transfert back a whole object, only a scalar value (like the
value of the primary key field) or a text string What are you trying to
return as the value for window.returnValue and what this value displays if
you try a MsgBox with it before closing the ModalDialogBox window?

There is a newsgroup about DAP: m.p.a.dataaccess.pages .
 
Thank You Sylvain,

THe value it returns is the first record from the rows of records even if i
click on any row record . Wht I want is the Modal Window to return the record
which I clicked on and not the first record of that recordset .

So basically , an Onclick event shoould select that particular row and
propogate that row of data to the main window using window.returnValue.

Hope you understand this situation.

Thank You,
Andy
 
Back
Top