Hide a Table Row

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

User avatar
jig
Ebase User
Posts: 30
Joined: Sun Oct 09, 2011 10:16 am
Location: UK

Hide a Table Row

#1

Postby jig » Thu Mar 14, 2013 8:18 am

Hi All,

Is it possible to hide a table row?

Regards
Jignesh
0 x
Regards,
Jignesh

Jignesh Vaducha, MSc, MCA
Mobile: +44 (0) 77 325 47 112
Telephone: +44 (0) 1462 488 311
Email: [email protected]

Steve
Moderator
Moderator
Posts: 423
Joined: Fri Sep 07, 2007 3:44 pm
Location: Sandy, UK
Contact:

#2

Postby Steve » Thu Mar 14, 2013 8:59 am

Hi Jig,

You cannot do this as we do not have a table row.

Here are a couple of possible workarounds for you:

1) Use JQuery too loop through the table rows and search for the row you want to hide and then set the CSS property 'display:none' on the TR tag.

2) Copy the main table to another displayed table and filter out the rows in the display table.


It might be something we add to the enhancements list. As this could be handy.

Steve
0 x

User avatar
Wai
Moderator
Moderator
Posts: 165
Joined: Wed Sep 12, 2007 9:04 am
Location: Sandy, UK
Contact:

#3

Postby Wai » Thu Mar 14, 2013 9:04 am

Do you need to hide it when the user does something on the page or on fetch?

There are several approaches and the easiest is to use the Filter Expression property on the table.

For example, in the filter expression

Code: Select all

table1-secure = 'N'
Displays rows where secure column is N
0 x

Steve
Moderator
Moderator
Posts: 423
Joined: Fri Sep 07, 2007 3:44 pm
Location: Sandy, UK
Contact:

#4

Postby Steve » Thu Mar 14, 2013 9:11 am

Jig,

Wai's suggestion looks easiest to implement.

Steve
0 x

User avatar
jig
Ebase User
Posts: 30
Joined: Sun Oct 09, 2011 10:16 am
Location: UK

#5

Postby jig » Thu Mar 14, 2013 3:30 pm

Thanks Wai/Steve. I am aware of the Table Filter expression. It's one of the many powerful feature :) I thought that there will some function/api call which I don't know about so asked the questions.

Anyway, it would be good to have a 'hide currentRow' like command.

Should I raise a official enhancement request or should I assume it will be in the next service pack 8)
0 x
Regards,
Jignesh

Jignesh Vaducha, MSc, MCA
Mobile: +44 (0) 77 325 47 112
Telephone: +44 (0) 1462 488 311
Email: [email protected]

Steve
Moderator
Moderator
Posts: 423
Joined: Fri Sep 07, 2007 3:44 pm
Location: Sandy, UK
Contact:

#6

Postby Steve » Thu Mar 14, 2013 3:37 pm

You can add to the enhancements. :D

Steve
0 x


Who is online

Users browsing this forum: No registered users and 50 guests