Re: question about user tabs

13 views
Skip to first unread message

Brian Schlining

unread,
Jun 28, 2011, 4:35:56 PM6/28/11
to Andy Ritchie, mbari...@googlegroups.com
Hi Andy


On Tuesday, June 28, 2011 at 11:28 AM, Andy Ritchie wrote:

>
> I was looking at the database structure and it wasn't intuitive to me where the user tabs are or how I might be able to move/share them between users so I can set up duplicate data entry tabs for different users. Are they in the database, or a preferences file somewhere?
The user tabs are stored in the 'Prefs' table in the VARS database. The tags were designed to be user specific, but you could write a script to copy an existing set of tabs to a new username.

-------------------------------------------------
The tab itself is stored in a single row in the Prefs table as:

NodeName = /<username>/vars.annotation.ui.cbpanel.ConceptButtonPanel/tab<number>
PrefKey = tabName
PrefValue = <the name of the tab>

For example:

NodeName = /brian/vars.annotation.ui.cbpanel.ConceptButtonPanel/tab0
PrefKey = tabName
PrefValue = benthic

-------------------------------------------------
The buttons on the tab are stored using 2 rows in the Prefs table as:

NodeName = /<username>/vars.annotation.ui.cbpanel.ConceptButtonPanel/tab<number>/<buttonname>
PrefKey = order
PrefValue = <the order of the button on the tab>

NodeName = /<username>/vars.annotation.ui.cbpanel.ConceptButtonPanel/tab<number>/<buttonname>
PrefKey = name
PrefValue = <the name of the tab>

For example

NodeName = /schlin/vars.annotation.ui.cbpanel.ConceptButtonPanel/tab1/Scotoplanes globosa
PrefKey = order
PrefValue = 60

NodeName = /schlin/vars.annotation.ui.cbpanel.ConceptButtonPanel/tab1/Scotoplanes globosa
PrefKey = name
PrefValue = Scotoplanes globosa


--
Brian Schlining


Reply all
Reply to author
Forward
0 new messages