Programmatically changing user preferences when creating an InfoView user in code

Post Author: rickp101
CA Forum: .NET
I am very new to BO (using Business Objects 11.5) so bear with me if I am not clear or seem to have no idea what I'm talking about.
As a .NET Developer I have been asked to work on a project that involves creating new BO users and logging them in from an ASP.NET application (in order to mimic a single sign in system from another piece of software). I have found most of the information I require for this in the .NET SDK. However there is one function the client would like that I have not been able to find a solution for, and that is to change the users document viewing preferences.
Within InfoView, if you go into user preferences, under the General tab there is the following option:
For each document, show me ...
descriptionownerdateinstance countactions and description (if selected) initially not hidden
I think by default all of the boxes are checked however the client only wants the description showing for each user when they are set up. Is this something that can be modified within the code when the user is created or is each user going to have to change this themselves manually once logged in?
Any help will be much appreciated.
Richard

Post Author: Ted Ueda
CA Forum: .NET
The InfoView settings aren't documented, unfortunately, but with sufficient trial-and-error, you'd be able to determine the correct values.
The settings are stored in the SI_DATA property 'desktopsettings' for a User object - you can have a look by logging onto 'Query Builder', accessible from the admin launchpad, and entering a query of the form: "Select SI_ID, SI_NAME, SI_DATA From CI_SYSTEMOBJECTS Where SI_KIND='User' And SI_NAME='<username here>'".
You'd see that, if you've specified the properties manually in InfoView (the property is not there by default) that it consists of '&'-separated key=value entries. 
You'd retrieve the value via Enterprise .NET SDK call User.GetProfileString("desktopsettings"), and set new values via User.SetProfileString("desktopsettings", <new string value here>). 
The specific values you're interested in are booleans dv0=1, dv1=1, dv2=1, dv3=1, and dv4=1.
Sincerely,
Ted Ueda

Similar Messages

  • Can't change user preferences when Acting As a user

    I've configured the 'Act As' functionality so as an administrator (Proxy User) I can log in as another user. However when I attempt to change any of target user's preferences I get the following message :-
    "Exception occurred when saving user preferences to the catalog access denied for user to path /users/[email protected]/_prefs/userprefsxmlstore"
    Proxy Level is set at full for all users.
    I've tried changing the permissions on the users folders via the Catalog manager but doesn't seem to make any difference.
    Any help would be great!
    Edited by: 876718 on 28-May-2012 03:56

    Hi All,
    You can check this topic on suppot.oracle.com
    https://support.oracle.com/epmos/faces/ui/km/SearchDocDisplay.jspx?id=1474923.1&type=DOCUMENT&displayIndex=1&returnToSrId=&srnum=&org.apache.myfaces.trinidadinternal.webapp.AdfacesFilterImpl.IS_RETURNING=true&_adf.ctrl-state=sixc8by79_9

  • How to display all authentication providers when creating a new user?

    I have configured active Directory with weblogic 10.3.1. Users and groups display correctly under the users and groups tab. When creating a new user only the defaultauthenticator provider is displayed in the drop-down selection. How do I get my active directory authenticator to display here also for selection?

    I'm confident that the Active Directory provider is read-only. You could write your own Authentication Provider for AD that supports create/update/delete functionality, but it is not included in the out of the box AD Authentication Provider to my knowledge.
    I know both the Default Authenticator and the database authenticator are read/write.

  • How to set default User preferences in Analyzer for all users

    How to set default User preferences in Analyzer for all users<BR><BR>Hi,<BR><BR>I would like to set some settings in Analyzer as default for all users. For example:<BR>1. Display | Char<BR>2. right mouse click on char | Chart Properties<BR>3. Axes tab<BR>4. "Format: Currency" i would like to change to "Format: Number".<BR><BR>How to set default values to all users? Is this possible?<BR><BR>Thanks,<BR>Grofaty

    I'm pretty sure higher access superceedes, so you could set up a group with no actual access, just to get the preferences working, then their individual security will dictate what they can do. I haven't tested this fully, but I beleive this is how it will work.<BR>As far as setting the preferences, go into the admin console and right click on the group, then select Preferences. To apply the group preferences to a user, add the user to the group, then right click on the user, select preferences and from the upper left corner, use the drop down to select the active preference, in this case, it will be the group you created and added them to.<BR><BR>HTH

  • When trying to download it pops up with a window saying with current user i may not be able to do everything and is asking for administrater password or continue with current user? when i click current user it does nothing and i dont know the password

    when trying to download it pops up with a window saying with current user i may not be able to do everything and is asking for administrater password or continue with current user? when i click current user it does nothing and i dont know the password
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)

    Not from your end. Click here and ask the iTunes Store staff for assistance.
    (126716)

  • Programmatically changing Dock preferences

    Hi,
    Using OS X 10.6.8, I am trying to programmatically change Dock settings to enforce some security guidelines at our company.
    Everything is done through a perl script, and works absolutely flawlessly when I run it locally on the computer I want to change, logged on as myself.
    Here is a basic snippet of what I've got:
    #!/usr/bin/perl
    $user = "bob";
    $file = "/Users/$user/Library/Preferences/com.apple.dock";
    # Force Top-Right hot corner to "Start Screen Saver"
    `defaults write $file wvous-tr-corner -integer 5`;
    `defaults write $file wvous-tr-modifier -integer 0`;
    `killall Dock`;
    However, when the change is executed from our policy server, it is doing something odd...The change is made to the dock plist file, however the Dock is reset to the system default settings. It looks like this only happens if the script actually makes a change. (i.e., if wvous-tr-corner was already set to 5, that would blow away the dock preferences) If we do not kill the Dock, the changes do not take effect, so we need a way to kill the Dock without it reverting back to the system default settings.
    We can also duplicate this by issuing the "defaults write"  and "killall" commands via Terminal. Note the "sudo"... When this script gets evoked from the policy server, it is called with a sudo, so we included it in our testing on the Terminal.
    For example:
    1.) Remove an icon or two from the Dock
    2.) "sudo defaults write /Users/bob/Library/Preferences/com.apple.dock wvous-tr-corner -integer 5"
    3.) "killall Dock"
    4.) Once the Dock restarts, the icons removed in Step 1 reappear
    Anybody know what is going on here? Is there any way to restart the Dock so that ~our~ changes take effect immediately, but the Dock doesn't revert back to the System default?
    Thanks!

    Problem Solved.
    When we were running the script, it was being executed as root, which means the "defaults write" commands were also being executed as root. This ended up changing ownership of the file from the user who was supposed to be the owner to root, such that when the "killall Dock" statement was issued, it could not read the plist file, and freaked out and replaced it with the system default.
    After we are done with all "defaults write" statements, and immediately prior to issuing the "killall Dock" statement, we added the following:
    `chmod 0600 $file.plist`;
    `chown bob:bobsgroup $file.plist`;

  • PDF Bookmarks - Change Default Width When Creating PDF File from InDesign

    When creating a PDF file (from Indesign CS4) I automatically create the PDF bookmarks based on the InDesign document's Table of Contents.
    But by default the width in the bookmarks is always set at "Fit Page".
    Is there a way to change the default to "Fit Width" in Indesign before the PDF is created?
    It's too much trouble to change every bookmark in the PDF after it's created.
    Thanks for any help in advance!

    Thanks, Steve. I have actually previously done what "fogharty" suggests and it does work if I want to set the pages to "fit width" or a variety of other options. However, none of the options is inherit zoom which is what I, and many other from the sound of the thread, need and want. We want to respect our end users--not dictate how they must view our PDFs. Hopefully, Adobe will listen and make this option available soon.

  • Remove prefix when creating menu for user in pfcg

    Can I change the way pfcg creates a use menu? It now starts with the rolename and then the logical SAP menu path. When I have different roles with the same path the "collapse menu" option does not work as the two start with a diffent role name. Can I change this that pfcg starts with the logical path and not with the role name?

    Hi
    If you are getting the role as prefix in the user menu 
    Go to the initial screen (when you logon onto the screen)
    Menu Tab click on Extras
    ->Settings
    In the settings if  you have checked the option of show first level
    -> Show first Level (if un checked you will not get the role name)
    This is what my understanding of your question.
    If not let me know exact problem try to help you.
    Cheers
    Soma
    Message was edited by:
            soma pradeep

  • Using Automator to change System Preference when opening an app

    Hello everyone,
    I have been using a Mac for a good 8 years now and I'm a happy user. I recently found out about Automator ('hey what is this little robot for?') and what it can do, yet I lack the knowledge of finding out what I must do to make a script to perform the following thing:
    When I launch an app (FL Studio), I want the box checked next to 'Use F1 and F2 as standard function keys' in the Keyboard preferences pane in the System Preferences app.
    When I close the same app (FL Studio), I want the box unchecked next to 'Use F1 and F2 as standard function keys' in the Keyboard preference pane in the System Preferences app.
    I have found several other topics about this subject, however, those were about scripts when logging in to your computer, and not upon opening/closing an app. Please note that I am seeking for the setting to be changed when the app is opened and closed.
    I hope you can help,
    Sander

    This kind of question comes up a lot - how to run a script when an application launches/quits.
    The short answer is that it's not easy to do directly, unless the application itself supports launching scripts on startup/quit (hint: few do).
    Fortunately, a little difference in thinking can give you the same effect.
    Rather than trying to have your script trigger AFTER the app launches, rethink your process to a script that FIRST changes the preference, THEN launches the app. You get the same result but about 14 billion times easier to implement.
    In this case, write a script to set the function key preference, then launch FL Studio. The script can then hang around to wait for the app to quit and reset the pref.
    Furthermore, don't try to do this the human way (open System preferences, select Keyboard, check the box). You can set the preference directly via the defaults command line utility:
    on run
      do shell script "defaults write .GlobalPreferences com.apple.keyboard.fnState 1"
      tell application "FL Studio" to activate
    end run
    Resetting the preference is a little trickier since you need to detect when FL Studio has quit. You can do this with an idle() handler in your script that hangs around, periodically checking if the app is still running and then taking action:
    on idle
      tell application "System Events"
      if (name of every application process) contains "FL Studio" then
      -- app is still running, so come back and check later:
      return 10
      else
      do shell script "defaults write .GlobalPreferences com.apple.keyboard.fnState 0"
      tell me to quit
      end if
      end tell
    end idle
    Putting these together in a Stay Open script should do much of what you want.

  • Error when creating a new user

    Hi all
    When I try to create a new user I'm getting an error message Unknown message (ID = LOWERCASE_REQUIRED)
    I entered all the required fields in the way it was defined and still I get this error.
    I never had this problem before. Can anyone please help me with this issue.
    Thanks
    regards
    Luke

    Hi
    Go to visual admin >> services >> UME Provider >> check the property default value is for ume.logon.security_policy.userid_lowercase
    Hope it solve the problem
    Cheers
    Jawahar Govindaraj
    PS:Reward pts

  • Images changed to negatives when creating PDF

    I'm using Creative Suite 4, OSX 10.5. I'm finding that on occasion, images in my documents are changed to negatives when I'm creating PDF files.  I can submit more details here, but I thought I'd check quickly to see if there is an obvious answer that I may have missed.
    Thanks,
    John

    Sounds like it might be an inversion caused by Windows RGB to Mac RGB. I have a haxie called Flip4Mac which inverts windows stuff to be displayed on my Mac.

  • Howto change NLS_ENV variables when creating Oracle Scheduler jobs

    Hello,
    i have installed EMGrid 10.2.0.3 x86_64 and 10.2.0.3 agent on other computer. With standard NLS_LANGUAGE='AMERICAN' NLS_TERRITORY='AMERICA' settings.
    When I create DB job with EMGrid Oracle Sheduler interface, NLS_xx parameters are set as NLS_LANGUAGE='AMERICAN' NLS_TERRITORY='AMERICA'.
    How can I change the default settings to NLS_LANGUAGE='CZECH', NLS_TERRITORY='CZECH REPUBLIC' when creating DB jobs with EMGrid?
    Thanks for reply.
    Regards,
    Stanislav Studeny

    Hi,
    You need to call the create_job (or submit) procedure from a session which has the appropriate NLS settings set. I can think of two ways of doing this from EMGrid
    - create a stored procedure which takes in job parameters, does appropriate "alter session" statements and then calls create_job/subit with the passed in parameters. You can then call that stored procedure from EMGrid
    - create a job from EMGrid which as the action does the alter session statements and then creates the real job
    Hope this helps,
    Ravi.

  • Userexit or BADI to change service price when create PO reference from PR

    Hi,
    I need userexit or Badi to change the gross price ( ESLL-TBTWR ) when create PO reference from PR.  Currently , when I do this it will recalculate the gross price based on the service master and ignoring whatever the price put in PR.  Could anyone tell me userexit or Badi that would allow me to change the price when i create PO from PR via ME21N.
    Thanks,
    Gilbert

    Hi Gilbert,
    You can try using Function Exit EXIT_SAPLMLSP_030 of Enhancment SRVESLL.
    This Function Exit has ESLL data as changing parameter.
    But this Function Exit is called from a number of transaction. So do put in correct checks (like sy-tcode or sy-ucomm) before substituting any values. If proper checks are not put in then values may be substituted when this function exit is called from other transactions (like tcode "ML81N").
    Hope this will help.
    Regards,
    Abhisek.

  • Respect user preferences when doing an upgrade

     If on a Install I had unchecked click-to-call, Set bing as home page and search engine. on the windows desktop client upgrader,  the next upgrade wizard prompt should remember that and keep it unchecked. How hard is it to respect user preferences?   

    You are not supposed to lose the double-the-data promotion as long as you maintain a 4G phone on the line.  If for some reason it drops off when you activate the new phone, call Customer Service and have them reinstate it (you'll have a 14-day window from the time it drops off for them to reinstate it, otherwise it's lost forever).  Buying phones at places other than Corporate Verizon stores or VZW on-line, such as third-party retailers, can be tricky when maintaining these type promotions.  If you are paying full retail price for the phone and then activating it yourself on-line, you probably won't have an issue.  But if you get a subsidized phone and activate it at the third-party retailer, they may not be able to maintain your double-the-data promotion due to their system ... then you'd need to contact Customer Service and get them to reinstate it.

  • Change usercode instead of creating a new user?

    hi,
    i miss the functionality to change the usercode. There is no way to change the usercode. The only way is to create a new user.
    Will this feature be implemented in the future?
    kind regards
    Markus

    hi,
    Check this link
    https://websmp209.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700000092542009E
    Jeyakanthan

Maybe you are looking for