Is it possible to get the row change event?

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

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

Is it possible to get the row change event?

#1

Postby t4nu » Wed Aug 31, 2016 3:09 am

Hi,
If I want to detect the row change (either in table or in repeater), what should I do?
Thanks in advance for the help.
0 x

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

#2

Postby Jon » Wed Aug 31, 2016 8:34 am

You can use this on the server at any time to check for a modified row:

Code: Select all

var rows = t.rows;
while (rows.next())
{
  if (t.isRowModified())
  {
     ...
  }
}
The modified status is cleared by a fetchtable or updatetable.

There are no explicit row level events in Ebase. If you want to react immediately to a row change, the easiest way will be to add the immediate validation option to each editable field/column in the row.
0 x

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

#3

Postby t4nu » Wed Aug 31, 2016 9:15 am

Hi,
I don't want to check the change or inserted status, but I want to check if the user is change row from row 1 to row 2 or vice versa (for e.g. by clicking the page number at the bottom of repeater or grid).
Jon wrote:You can use this on the server at any time to check for a modified row:

Code: Select all

var rows = t.rows;
while (rows.next())
{
  if (t.isRowModified())
  {
     ...
  }
}
The modified status is cleared by a fetchtable or updatetable.

There are no explicit row level events in Ebase. If you want to react immediately to a row change, the easiest way will be to add the immediate validation option to each editable field/column in the row.
0 x


Who is online

Users browsing this forum: No registered users and 15 guests