$eb.getField

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

HarryDeBoer
Ebase User
Posts: 118
Joined: Tue Oct 23, 2012 7:01 am
Location: The Netherlands

$eb.getField

#1

Postby HarryDeBoer » Tue Aug 20, 2013 8:50 am

Hi

I followed the alert($eb.getField(“NAME”).displayValue) example from the docs. Created a field, a button and a button onclick jquery event. It works except that the value that is edited in the field (edit value - TABkey - click button) shown in the alert message is the last but one fieldvalue not the edited (new) value.

Regards, Harry
0 x
Kind regards,

Harry

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Tue Aug 20, 2013 3:27 pm

Harry,

As explained in separate email, this is a call from the client to the server so the response is going to be the value of the field on the server. If the user has typed something into the field but not yet submitted it to the server, you won't see this value. It's very easy to get confused between client and server values when you have Javascript executing on both and calls going in between. If you need to submit the current form to the server before invoking something on the client API, it's best to use the executefunction() method and request the "full submit" option.

Regards
Jon
0 x


Who is online

Users browsing this forum: No registered users and 14 guests