on 05-22-2007 5:01 AM
Hi,
I am using 2005A.
How to copy form setting (rows and UDFs at header) from one user to another user?
Thanks
You can use the addon "Copy Express".
Regards,
WB
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ming Ming On,
I found a note couple of years ago.
I can't remember the note number, and I attach the note here.
Solution
The following queries enables you to set preferences for one user and copy those to another user who is supposed to have the same preferences.
Explanation for the queries variables:
dest - Company database name
sourcid - Represents the user ID from whom the preferences will be copied.
destid - Represents the user ID to whom the preferences will be copied.
How to get the user ID?
From SAP Business One query interface or from the SQL Query Analyzer, run the query as follows:
1. SELECT T0.U_NAME, USERID FROM OUSR T0 FOR BROWSE
2. From the query's results, identify both the sourcid and the destid.
3. In order to copy the preferences from sourcid to destid, run the query as follows:
a) Replace the text dest with the company database name.
b) Replace the text sourceid with the user ID from which the preferences will be copied.
c) Replace the text destid with the user ID to which the preferences will be copied.
d) Use dest, if exists (select 1 from sysobjects where name = 'temp_dev_sup')
e) Begin - drop table temp_dev_sup
f) End - select * into temp_dev_sup from cprf where usersign='sourcid'
Deleting a certain user:
Delete from cprf where usersign='destid'
Update userid in temporary table:
1. Update temp_dev_sup
2. Set usersign='destid'where usersign='sourcid'
Insert preferces into CPRF table
1. Insert into cprf
2. Select "" from temp_dev_sup where usersign='destid*'
예제)
1. Use TEST_MONAMI
2. drop table temp_dev_sup
3. Delete from cprf where usersign='2'
4. select * into temp_dev_sup from cprf where usersign='1'
5. Update temp_dev_sup
Set usersign='2'where usersign='1'
6. Insert into cprf
Select * from temp_dev_sup where usersign='2'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.