Copy user setting

Hi,
    I used this query for copy user setting from Manager to all other users. This query running successfully but problem is this all the setting is copied but manager user lost all settings i.e all udf's come under general category which is previously distributed to different category. Which is fine for rest of the users.
ALTER PROCEDURE [dbo].[CopyUserSettings] AS
Declare @ManagerId int
Declare @MaxId int
Declare @NextId int
Declare @TempId int
-- Change value below if copying from other than Manager(1)
Select @ManagerId = 1
Select @MaxId = max(UserID) + 1 FROM OUSR
Select @TempId = 1
Select @NextId = @ManagerId
if exists (select 1 from sysobjects where name = 'temp_dev_sup')
Begin
drop table temp_dev_sup
End
select * into temp_dev_sup from cprf where usersign=@ManagerId
Delete from cprf where usersign= @ManagerId
WHILE @TempId < @maxid
BEGIN
If @tempid <> @managerid
BEGIN
Update temp_dev_sup Set usersign= @TempID where usersign=@NextId
Insert into cprf Select * from temp_dev_sup where usersign= @TempId
END
Select @NextId = @TempId
Select @TempId = @TempId + 1
If @TempId >= @maxid
BREAK
Else
CONTINUE
END
Thanks
Rahul

Hi Rahul,
Change Select @ManagerId = 1 from 1 to some other user id having correct form settings and execute belwo procedure again.
ALTER PROCEDURE [dbo].[CopyUserSettings] AS
Declare @ManagerId int
Declare @MaxId int
Declare @NextId int
Declare @TempId int
-- Change value below if copying from other than Manager(1)
Select @ManagerId = 1
Select @MaxId = max(UserID) + 1 FROM OUSR
Select @TempId = 1
Select @NextId = @ManagerId
if exists (select 1 from sysobjects where name = 'temp_dev_sup')
Begin
drop table temp_dev_sup
End
select * into temp_dev_sup from cprf where usersign=@ManagerId
--Delete from cprf where usersign= @ManagerId
WHILE @TempId < @maxid
BEGIN
If @tempid <> @managerid
BEGIN
Update temp_dev_sup Set usersign= @TempID where usersign=@NextId
Insert into cprf Select * from temp_dev_sup where usersign= @TempId
END
Select @NextId = @TempId
Select @TempId = @TempId + 1
If @TempId >= @maxid
BREAK
Else
CONTINUE
END
Thanks,
Neetu

Similar Messages

  • Copy Form Setting from one user to another

    Hi,
    I am using 2005A.
    How to copy form setting (rows and UDFs at header) from one user to another user?
    Thanks

    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*'
    &#50696;&#51228;)
    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'

  • Error at Copy Form Setting

    Hi All,
    I've got error message when make copy form setting to user.
    " You can not continue copying from setting, user add-ons currently connected to SAP Business One Exist. Make sure that selected users and add-ons are logged off and try again"
    Why this is happen? There is no one login but me and no add-on connected.
    I've try to relogin several times, the result is the same.
    can any one tell me why this error accure?
    Thanks before
    Fajar

    Hi Fajar,
    Restart your PC/server and try again. Before restarting check in Add-on administration that No addon should be in automatic .
    Regards,
    Bala

  • Copy user attribute from different user to user currently being edited

    Dear all,
    I'm somehow stuck with a requirement I've to implement.
    I've to copy some user attributes from one user to another. I learned that I should be able to use "getResourceObject" for
    this and I tried to implement this in my user form:
    <Field name='otherUser_actvtGrps'>
    <Display class='Text'>
    <Property name='title' value='otherUser_actvtGrps'/>
    </Display>
    <Default>
    <set name='otheruser'>
    <invoke name='getResourceObject' class='com.waveset.ui.FormUtil'>
    <select>
    <ref>context</ref>
    <ref>:display.session</ref>
    </select>
    <s>SAP_System_A</s> <!-- the resource ID -->
    <s>User</s>
    <s>TemplateUser</s> <!-- this is the AccountID that i need as source -->
    <null/>
    </invoke>
    <ref>otheruser.user.attributes.activityGroups</ref> <!-- this is the attribute from the source user I want to copy/read -->
    </set>
    </Default>
    </Field>
    But this does not return anything..
    Any ideas what I did wrong ?
    Many many thanks for any help/ideas !
    Best regards
    Joerg

    Do you know where to get some docs about the topics you mentioned ?
    1. Your adapter might not to support Resource Objects of type User.ResourceReference manual, the "Resource Object Management" section in each adapter chapter. Also the resource description in XML has the ObjectTypes section, for example, for Active Directory adapters:
      <ObjectTypes>
        <ObjectType name="Group" nameKey="UI_RESOURCE_OBJECT_TYPE_GROUP" icon="group">
          <ObjectClasses operator="AND">
            <ObjectClass name="Group"/>
          </ObjectClasses>
          <ObjectFeatures>
            <ObjectFeature name="create"/>
            <ObjectFeature name="update"/>
            <ObjectFeature name="delete"/>
          </ObjectFeatures>
          <ObjectAttributes idAttr="distinguishedName" displayNameAttr="samAccountName" descriptionAttr="description" objectClassAttr="objectclass">
            <ObjectAttribute name="cn" type="string"/>
            <ObjectAttribute name="sAMAccountName" type="string"/>
    2. You can fetch the complete user view with all resource account information.You will find many examples in IdM XPRESS samples.
    Get user view using LighthouseContext and user accountId
    <invoke name='getView'>
      <invoke name='getLighthouseContext'>
        <ref>WF_CONTEXT</ref>
      </invoke>
      <concat>
        <s>UserViewer:</s>
        <ref>accountId</ref>
      </concat>
      <Map>
      </Map>
    </invoke>Or with WorkflowServices (see BusinessAdministration manual):
    <Action id='0' application='com.waveset.session.WorkflowServices'>
      <Argument name='op' value='getView'/>
      <Argument name='viewId'>
        <concat>
          <s>User:</s>
          <ref>accountId</ref>
        </concat>
      </Argument>
      <Return from='view' to='user'/>
    </Action>
    3. You can fetch resource account info directly using ResourceAdapter API (not too well documented way).Example in Java:
        LighthouseContext ctx = <get context here>;
        // Get resource object
        Resource res = (Resource) ctx.getObject(Type.RESOURCE, <resource name>);
        // Pack resource and user accountId into a ResourceInfo object
        WSUser user = new WSUser();
        ResourceInfo info = new ResourceInfo();
        info.setAccountId(accountId);
        info.setResource(res);
        info.setAttributes(null);
        user.setResourceInfo(new ResourceInfo[] {info});
        // Rertrieve ResourceAdapter object
        ResourceAdapter ra = ResourceOp.findAdapter(res, res.getCache());
        // Get account info into the 'user' object
        WSUser result = ra.getUser(user);
        // Now you can get account status from ResourceInfo ...
        info = result.getResourceInfo(res);
        // ... and account attributes from WSAttributes
        WSAttributes attributes = result.getWSAttributes();
        ...

  • Copying user access in Hyperion Planning

    Hi All,
    I am supposed to copy the one user access to another user...I know we can copy user access to a newuser or existing user in Essbase....Is this possible in Hyperion planning 4.0..??Please let me know..
    Regards,
    Prabhas

    Amit Gupta wrote:
    If you dont have access setup by groups, there is no easy way. Well.. what i am suggesting is relatively easy but you need planning server access for this.
    1. Export all security using exportsecurity.cmd, you can set parameters to make sure you are exporting exactly what you need.
    2. find the user whose access you want to copy.
    3. replicate these rows for new user.
    4. then run importsecurity.cmd to import access for new user.Where these Exportsecurity.cmd,Importsecurity.cmd statements available ? and How to use those in Planning web ?
    Please suggest

  • Copy keyword sets across libraries?

    Is is possible to copy a set of keywords from one library to another? I recently created a new library and would like to copy all of my keywords from the old library to the new...
    Thanks

    As a new user, I figured out I can export the keywords to a plain text file that has the keywords that show in the HUD as tab indented text.
    Now, I've exported a Keyword file, added new names in a text editor (Smultron) and then re-imported Keywords. Worked great. I then thought I'd take it one step further and sort my existing keywords into a logical order
    Originally added in HUD before realizing I wanted them in a different order
    People
    Family1
    Son
    Dad
    Daughter
    Mom
    Here's what I want
    People
    Family1
    Dad
    Mom
    Son
    Daughter
    Which I was able to change in the text file, but when importing it kept them in the order as entered in the HUD. Drag/drop in the HUD didn't seem to work either. Any suggestions?
    Aperture 2

  • Default User setting  at Dashboard level

    Hi SAP Users,
    i want default dashboard user setting & all users will only see my setting
    Is it possible to have default user setting for dashboard?
    Regards
    Ravindra

    In the administration mode, you can update the current configuration settings/layout (right-click on the UI group you want to update, can be a dashboard, a field...) and save them as the default (standard) settings.
    Please try with the administration url I provided you with, and let me know if it helps.
    http://server:port/irj/portal?sap/bc/webdynpro/sap/cprojects?sap-config-mode='X'
    Matthias

  • So I just bought a used MacBook from Amazon with OSX 10.5.8.  I am trying to install new software and operating system, but I don't have the passwords to the Users set up in the computer.  What do I do?

    So I just bought a used MacBook from Amazon with OSX 10.5.8.  I am trying to install new software and operating system, but I don't have the passwords to the Users set up in the computer.  What do I do?

    Put your install DVD into the optical drive (CD/DVD drive) and reboot. Be sure to either use the disc that came with your Mac, or, if you installed a later Mac OS X version from disc, use the newer disc. As soon as you hear the boot chime, hold down the "c" key on your keyboard (or the Option Key until the Install Disk shows up) until the apple shows up. That will force your MacBook to boot from the install DVD in the optical drive.
    When it does start up, you'll see a panel asking you to choose your language. Choose your language and press the Return key on your keyboard once. It will then present you with an Installation window. Completely ignore this window and click on Utilities in the top menu and scroll down to Reset Password. After resetting the password use Startup Disk from the same menu to choose your hard drive for startup and restart.

  • Network.http.max-persistent-connections-per-server keeps reverting to user set 4

    I didn't used to have this problem as far as I'm aware, but as of recently, I've noticed that if I try to download more than 4 of one thing at a time from the same site, it would fail. For instance, if I have up 5 web pages of streaming content, only 4 will load, the other 5th one will do nothing until I finish one of the others. Upon looking up some information on this, I saw that the network.http.max-persistent-connections-per-server is set at "user set = 4", and if I change that number to anything else, it corresponds. If I click to 'reset' the number, it goes to the default of 6 - which is still less than what it used to be. I used to not even have a limit on this as far as I'm aware, or if I did, it was well beyond 10 and that wasn't a product of me manipulating it.
    What I'm asking is this:
    1) How do I make this so it permanently switches to a higher number? Every time I reset it to 6 or I manually change the number to something higher, once I close it, those settings go back to 4.
    2) Why is it reverting and not staying the way I change it?
    3) What's the purpose of this and why is it just recently doing it when I haven't put any new add-ons or made any other refinements to Firefox that I'm aware of?
    Any help would be appreciated

    Two possible causes for it resetting to 4 that I can think of.
    # You have an add-on handing that pref and that is resetting it to 4 when Firefox is restarted.
    # That pref is set via user.js and that causes it to go to that value as Firefox starts.
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes <br />
    http://kb.mozillazine.org/User.js_file

  • How to enable user sets from tools in sales order

    Hi,
    How to enable user sets from tools in sales order..it is greyed out..
    and is there anyway we can do to add shipsets from other place?
    Thanks

    Hi Ruchi
    I hope u had gone to the screen fields which u want them not to be editable. So there u select all the fields contents which u do not want to to be changed and check the boxes with W.content and Display and save it. Once evrything is done u have to activate the particular transcation going in to the standard variants and put the name and click the activate button.
    Hope its clear
    Reward if help ful
    Sri

  • AE5.2:Automatic ESS User Set up and email notification to the User

    Forum,
    In AE, stageless ESS user set up creates the ESS user and sends an email to new user like below...
    This is to inform you that your request REQUESTNUMBER provisioning has been done. Your account has been created. Please find the information below.
    User ID:
    Password:
    SAPSystem:
    Is it possible to change the wording in the email? Has anyone tried it? I am aware that it is a system generated Email, but is it configurable?
    Thanks for any insight.
    Edited by: Bhanu Reddy on May 22, 2008 1:26 AM

    Just an FYI - the free Yahoo accounts do NOT use POP mail...If you want this type of access, you have to pay for the upgraded version of Yahoo Mail...
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • Was I supposed to get a hard copy user manual with my new phone??

    Was I supposed to get a hard copy user manual with my new phone??
    I did not get one - but would like one

    http://manuals.info.apple.com/enUS/iPhone_UserGuide.pdf
    There you go!
    Enjoy

  • Is there a user setting which may affect fillable forms?

    On our home PC running Widows 7 Ultimate and Adobe Reader 11, we have 2 users. One which has admin rights the second is just a user. Accessing a Benefit Form on the Sunlife Website which is fillable the regular user is able to complete it  yet the user with Admin rights can only check boxes and is unable to enter any text. Is this a Windows user setting?
    Thanks

    Hello,
    I would suggest you to try clearing the browser cache or try to fill same form using a different browser.
    Note:- Account privileges does not affect the ability to fill on-line forms. 
    Regards,
    Nakul

  • LDAP authentication not minding user set

    I have a publishing rule for an internal website setup with LDAP authentication setup for two different domains, the domain the TMG 2010 is joined to (domain1) and another external domain (domain2).  I want users from either domain to be able to authenticate
    and I thought it was working perfectly, but found that anyone from domain2 can authenticate successfully (anyone can authenticate from domain1, but that's okay).
    I have a LDAP user set with the AD group from domain2 that I want to allow access, but the TMG doesn't seem to adhere to this and lets any authenticated user from that domain in.  I have added both user sets for domain1 and domain2 to the "This
    rule applies to requests from the following user set:" under the Users tab in the publishing rule.
    Any clues?

    Hi,
    Based on my experience,
    Server Authentication Certificates
    should exist on DCs that you want TMG to use for authentication and
    TMG must trust issuer of the Server Authentication Certificate. You can check that in
    Trusted Root Certification Authorities on TMG.
    In addition, when you add LDAP server Set for LDAP user authentication, you need to add the DCs and type the AD domain name. Please note that the domain name
    is the domain in which the user accounts are defined, and not the domain to which Forefront TMG is joined.
    More information:
    Configuring LDAP authentication on AD LDS
    Setting Up and Troubleshooting LDAPS
    Authentication in Forefront TMG 2010
    Best regards,
    Susie

  • How to copy FDM setting (import format, dimension mapping, control table)

    Dear All,
    How to copy FDM setting (import format, dimension mapping, control table) from application to another application.
    I found that only dimension mapping can be imported. Is there any way to copy FDM application quickly?
    Thanks your help

    If you get a chance try the following script, it's so simple and easy to extract all the map data to XML and will help in to import back through Import script.
    Sub MapExtractor()
    'UpStream WebLink Custom Script:
    'Created By:      SatyaK
    'Date Created:      12/08/09
    'Purpose: This Script will produce a Account Map File for
    '                         the current location.
    'Execute the export
    strFilePath = API.IntBlockMgr.InterfaceMgr.fExportMapToXML("File Path", PPOVPeriod)
    End Sub
    -------------

Maybe you are looking for