This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Sep 19, 2013, 8:24 AM
30 Posts
topic has been resolvedResolved

Hide some rows in a data view + bonus question

  • Category: Extension Library
  • Platform: Mobile
  • Release: 8.5.3
  • Role:
  • Tags:
  • Replies: 6

Hello all,

In my mobile app, I have a a data view. I would like to hide some rows, based on a role of the user. Any idea how to do that???

Also, bonus question:
I can't find option to indent response documents in a data view. I Know that there is option for that in a regular view, but what about data view??

Thank you in advance

Sep 19, 2013, 11:04 AM
54 Posts
Hide rows

Use for the column property visible a script statement like: @IsMember("[DocumentEditor]", context.getUser().getRoles().toArray())

 

if your datasource for the table contains response documents you can make it visible like main documents. If you want to change the content against the main documents use document.isResponse()

Sep 19, 2013, 1:34 PM
54 Posts
EL

I overlooked that you ask for a extension dataTable. I don´t work with that. Sorry.

Sep 19, 2013, 5:27 PM
453 Posts
Just as an aside

I have used the dataview from the extension Library and really have not been very happy with the results. I have been working through a process of developing a repeat control 'view' for a number of reasons.

1. if you do a FTSearch before coming into the dataView you have no control of the order of the documents and the categorization is lost.

2. want to do something like you want on a row by row basis easy in a repeat control, not so much in the dataView. for example if the current user has Edit rights to the document open the document in one Xpage, if not use a different one.

3. Much greater control over the look and feel of the output.

downside - takes more time to build.

There is no one design that fits all situations but I'm leaning strongly toward the repeat to maintain look and feel across the application.

Sep 25, 2013, 1:37 PM
14 Posts
I would use readers/authors fields on the document

Use readers/authors fields on the documents to hide the "rows" in the data control. I have sucessfully used roles to hide columns in the dataview control but not rows.

 

Elijah

Sep 27, 2013, 7:46 AM
30 Posts
Thanks

Yaeh Elijah, i did it that way, and now it works good. But it's a pity that dataView control has such a limitation that you practicly can't maniuplate it on a row basis.

Thanks for the input!


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal