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
$eb.getField
Moderators: Jon, Steve, Ian, Dave
-
- Ebase User
- Posts: 118
- Joined: Tue Oct 23, 2012 7:01 am
- Location: The Netherlands
-
- Moderator
- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 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
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