Hi,
I am adding the concept of confidentiality to a number of items in our app. In datawindow lists, I am attempting to do this by putting a 'Confidential' label, with a white background, over top of the entire row and controlling the visibility of the label. This works fine, but if the row is selected the text underneath the confidential label bleeds through completely.
I've attached a sample application (PB2017 R3) to illustrate the problem.
Is this expected behaviour? I realize I could set the visibility of everything underneath the confidential label as well (opposite of that of the confidential label), but that seems like it should be unnecessary (I have a large number of datawindows that I'm modifying/maintaining).
I'd appreciate any advice, maybe there are other solutions I can't see?
Thanks,
Dan
Michaels solution is interesting, but part of the functionality is that users should be able to see that there is a confidential item and they may have permission to override it.
I think that Miguel's solution will work nicely going forward. (although this seems like a PowerBuilder bug that I'm having to work around)
Thank you both for your ideas!
Whatever you do be careful if user can select or TAB through the DataWindow white-on-white or too-big-to-show may still grab focus and let user (copy + paste) or (multi-row-select + copy + paste) or (export to Excel) or some other "clever" breach of security.
BTW: Putting a rectangle on top may hide "deeper" content better than a label. Then put the label on top of the rectangle. There are many ways to approach a requirement when it comes to the DataWindow. Some suit better than others depending on context.