Quantcast
Channel: AssetWise ALIM
Viewing all articles
Browse latest Browse all 6419

Wiki Page: How to Initially set all user preferences to the same parameters

$
0
0

  
 Applies To 
  
 Product(s):eB Web
 Version(s):15.04.01 and higher
 Environment: N/A
 Area: Documents
 Subarea: N/A
 Original Author:Bentley Technical Support Group
  

 

 

 

 

 

 

 

 

Problem

For a community, we would like to set User preferences for one user, then populate all other users with the same preferences.

Solution

User preferences are stored in the eB Database for the whole system, and when configured, for individual users. If you identify the user and settings to be stored, you can use ebp_set_setting stored procedure to save those settings.

We will use an example to show  how to use the ebp_set_setting stored procedure. The syntax of the stored procedure is :

 

 

Where the options are:

a. The name of the setting

b. User id (Not used when c=20)

c. Setting is 20=Community, 4=User & 229=Session

d. Value to set

e. Cascade to all users. ‘N’ will just set the Default, ‘Y’ will replace User & Session settings

f. 1, Always ‘1’

 

 

Example #1 – to set the following for the whole community (all users):


 

You’ll need to run:

exec ebp_set_setting 'DefaultCheckoutFolder',0,20,'c:\eBCheckout',Y,1

 

To determine the name of the setting, you’ll need to find out from the setting_defs table. Do a “select * from setting_defs” and you’ll see a list of codes (as seen below). The CODE column will contain the value that you need to specify as the first parameter in the stored procedure:

 

Example #2 – to set the following for a specific user:

In addition to the value to identify the setting to be defined from the setting_defs table , we also need to retrieve the numericc identifier of the specific user we want to change.

Retrieve the numeric identifier value for the users by accessing the users table. as an example, for user name "RGD", I can use SQL to retrieve the numeric identifier:

 

With that value, we can now build our stored procedure command , using the parameters described above:

 

exec ebp_set_setting 'DefaultCheckoutFolder',6,4,'c:\eBCheckout',Y,1

 

 

 

 

Comments or Corrections?

Bentley's Technical Support Group requests that you please confine any comments you have on this Wiki entry to this "Comments or Corrections?" section. THANK YOU!

 


Viewing all articles
Browse latest Browse all 6419

Trending Articles