I have a table control with a Filter expression on. How can I loop through the table and run a command for only the rows that have been filtered?
I.e. something like the below but where the row is showing rather than the table control.
var rows = tables.STREETS.getRows();
while (rows.next()) {
if (tables.STREETS.control.showing){
fields.TOTAL_PROPERTIES.value += tables.STREETS.NUMADDRESS.value;
}
}
Loop through filtered table
Moderators: Jon, Steve, Ian, Dave
-
- Ebase User
- Posts: 53
- Joined: Wed Jan 02, 2013 4:23 pm
- Location: Lyndhurst, Hampshire
- Contact:
-
- Moderator
- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 pm
Re: Loop through filtered table
I don't think the control.isShowing() method will work. You will need to add the filter criteria check as an if statement inside the table loop - replacing the line: if (tables.STREETS.control.showing).
0 x
-
- Ebase User
- Posts: 53
- Joined: Wed Jan 02, 2013 4:23 pm
- Location: Lyndhurst, Hampshire
- Contact:
Who is online
Users browsing this forum: No registered users and 10 guests