PDA

View Full Version : Client/Server business procedure integration in web/mobile apps



barrymavin
2015-12-28, 01:55
Details on how to transparently call server-side business procedures from JavaScript running in a web browser or mobile app can be found at:
http://www.lianja.com/resources/blog/39-coding-tips/465-clientserver-business-procedure-integration-in-webmobile-apps

pauln
2015-12-29, 02:23
Hi Barry and thanks for this short example.

In your example:
var result = myfunc1("hello world", 2015, true);

I notice you send 3 parameters but do not define this when declaring myfunc1? Do I assume if the VFP function on the Server only has 1 LPARAMETERS statement we get an error? Also how are multiple results returned? JSON in all three examples? Further to this Multiple record sets?

Bold of me to ask this as I have not ventured far as yet but this topic I feel will become very important.
Happy Holidays!

HankFay
2015-12-29, 10:04
I notice you send 3 parameters but do not define this when declaring myfunc1?

Hi Paul,

as I look at the explanation page, the definition of myfunc1 is not shown. It would have 3 parameters. The declaration in the .conf file simply alerts the framework where to find the code.

hth,

Hank