Hi Guys

Still trying to get our heads around this.

We believe :

The app running on the tablet knows nothing about data.
When a JS delegate is called to then call a server side VFP proc, we cannot assume anything about data, record pointers etc.

The VFP server side proc should use PUSH/POP DATASESSION which makes sense if we were changing/opening tables.

Problem :

If we wanted to replace some data in the curent datasession (say using the results of a postcode lookup), how do we tell the server side proc which record to update?

RECNO() doesn't seem to work as a passed parameter - presumably because there is no record number as the tablet doesn't know anything about data.

It works well in desktop mode because the databound controls will update.

In mobile - how do we reference the current record to then tel the VFP proc which record to change?


We have tried the following but no good

// Event delegate for 'dialogbutton' event
function page1_section2_field12_dialogbutton()
{

var lrecno = RECNO();

var result = Lianja.evaluate("serverside('{lrecno}')");
};

Any thoughts?

Being a newbie is great sometimes - not sure that is today !!

Cheers

Simon