At 12:06 PM 12/12/2013, Brad Davidson wrote:

Pardon if this question has been asked/answered:

If one uses the TreeView object, is it currently possible to hide/unhide
(PROPERTY [cid] VISIBLE 'TRUE' or 'FALSE') the nodes desired?

Brad,

By design, you can set the VISIBLE property to TRUE or FALSE for the
entire TreeView control but not the Item or Sub-Item of a given Node.

However, you can use the ENABLED property to TRUE or FALSE to enable
or disable the entire node itself or dependent Item(s) or Sub-Items.

-- Example (To disable a given node of TreeView control)

   IF (CVAL('NETGROUP')) NOT IN (Administrators,Accounting) THEN
      PROPERTY TreeViewAdmin ENABLED 'FALSE'
   ENDIF
   RETURN

In this specific example, the "Administration" node of the TreeView
control will be "disabled" if the logged-in user does not belong to
Administrators or Accounting global groups of your network domain.

A new (CVAL('NETGROUP')) function in R:BASE eXtreme 9.5 retrieves
a list of global groups to which a logged-in user belongs.

Hope that helps!

Very Best R:egards,

Razzak.

www.rbase.com
www.facebook.com/rbase
--
30+ years of continuous innovation!
15 Years of R:BASE Technologies, Inc. making R:BASE what it is today!
--


Reply via email to