|
| Iniciado por guest, 10,ago. 2016 13:53 - 4 respuestas |
| |
| | | |
|
| |
| Publicado el 10,agosto 2016 - 13:53 |
Hi All,
i need to fetch a row data from a file and load in popup window using ajaxexecution method. In this how can i return the result from server side to browser.
HReadSeekFirst(tbl_events,pk_int_event_id,13)
This is my result. and i am using awp page
using this result i need to update the controls in pop up window.
Expecting your reply
Thank You
Shijo S Philip |
| |
| |
| | | |
|
| | |
| |
| Publicado el 10,agosto 2016 - 16:58 |
Hi
just set your server code to work in ajax mode (click on the ajax icon in the code editor), and set your fields with your data
Best regards
-- Fabrice Harari International WinDev, WebDev and WinDev mobile Consulting
Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM (open source)
More information on http://www.fabriceharari.com
Le 8/10/2016 à 5:53 AM, Shijo S Philip a écrit :
Hi All,
i need to fetch a row data from a file and load in popup window using ajaxexecution method. In this how can i return the result from server side to browser.
HReadSeekFirst(tbl_events,pk_int_event_id,13)
This is my result. and i am using awp page
using this result i need to update the controls in pop up window.
Expecting your reply
Thank You
Shijo S Philip |
| |
| |
| | | |
|
| | |
| |
| Publicado el 10,agosto 2016 - 18:46 |
Hi Shijo.
Well You can return in a string separated by a character (TAB for example) the record of the HReadSeekFirst sentence. for example
Procedure Seek() [ajaxmode on] MyRecord is string = ""
IF HReadSeekFirst(tbl_events,pk_int_event_id,13) then MyRecord += tbl_events.Fild1 + tab MyRecord += tbl_events.Fild2 + tab MyRecord += tbl_events.Fild3 END
Return MyRecord
and in your browser code:
Procedure SetData : sRecord is string = Ajaxexecute(Seek)
if not NoSpace(sRecord) in ("",null)
EDT_Name = ExtractString(sRecord,1,TAB) EDT_LastName = ExtractString(sRecord,2,TAB)
end
best regards |
| |
| |
| | | |
|
| | |
| |
| Publicado el 11,agosto 2016 - 08:58 |
Hi NickMarlu,
Its working. Thank you
Is there any other way by converting the result into array and pass to browser
Shijo S Philip |
| |
| |
| | | |
|
| | |
| |
| Publicado el 11,agosto 2016 - 18:31 |
Hi Again Shiro.
You can try with StringToArray() function but you cant return a array (or any type except a string) in a server procedure invoked by ajaxexecute() function.
I hope this information will be useful to you.
Regards. |
| |
| |
| | | |
|
| | | | |
| | |
|