Can I get a return value from a headlessclient?

The forum to discuss the Headless version of Servoy. Web, Java and Servlet development questions can all be posted here.

Can I get a return value from a headlessclient?

Postby jasantana » Mon Jul 04, 2011 6:30 pm

I have an SHC that generates some invoices. Before doing that with an SHC I used to do it in a method that returned an array with all the invoices id that were created, can I get that array from the SHC??

If so, where will I get it: in the callback method? How, inside the event or in a new argument?

Thanks.
Best regards,
Juan Antonio Santana Medina
[email protected]
EAGER BEAVER 2011
EAGER BEAVER 2012
Servoy 6.x - Servoy 7.x - Servoy 8.x - MySQL - PostgreSQL - Visual Foxpro 9
User avatar
jasantana
 
Posts: 540
Joined: Tue Aug 10, 2010 11:40 am
Location: Leeds - West Yorkshire - United Kingdom

Re: Can I get a return value from a headlessclient?

Postby jcompagner » Tue Jul 05, 2011 10:38 am

you return value sits in the data property of the JSEvent (type CALLBACK_EVENT)
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 7969
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Can I get a return value from a headlessclient?

Postby jasantana » Tue Jul 05, 2011 11:22 am

Thanks Johan, one more question.

My headlessclient will have to perform the process thru the records that the user has marked to. That mark is set in a calculation field and I know that calculation is only stored in the foundset for that user in that session so I have been trying to send the foundset to the SHC but nothing seems to happen. Any clue on how to get this done?
Best regards,
Juan Antonio Santana Medina
[email protected]
EAGER BEAVER 2011
EAGER BEAVER 2012
Servoy 6.x - Servoy 7.x - Servoy 8.x - MySQL - PostgreSQL - Visual Foxpro 9
User avatar
jasantana
 
Posts: 540
Joined: Tue Aug 10, 2010 11:40 am
Location: Leeds - West Yorkshire - United Kingdom

Re: Can I get a return value from a headlessclient?

Postby jcompagner » Tue Jul 05, 2011 11:24 am

you can't send a foundset to the HC.

so somehow you have to get that state the other way through the db. or as an array of data (like array of integers) that has the same effect.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 7969
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to Servoy Headless Client

Who is online

Users browsing this forum: No registered users and 3 guests