Set a default layout for all users via DIAPI

Hello everyone,
I am attempting to set a default report for all users/business partners using the DI-API. 
I can accomplish this in the B1 application via Tools> Layout Designer...>Set as Default
If there are entries in the RDFL table for this layout, I am prompted to delete these entries and set this layout as the default for all users/BP's
Based on the SDK Documentation, the following code should accomplish the same thing via the DI-API
(stripped down for clarity)
Dim oDefaultReportParams As DefaultReportParams
oDefaultReportParams = oLayoutService.GetDataInterface(ReportLayoutsServiceDataInterfaces.rlsdiDefaultReportParams)
oDefaultReportParams.LayoutCode = sMyLayoutCode
oDefaultReportParams.ReportCode = sMyReportCode
Me.oLayoutService.SetDefaultReport(oDefaultReportParams)
Code executes fine, but it doesn't have the expected impact on settings.  The above code adds an entry to the RDFL table rather than changing the DfltReport field in the RTYP table like I expected, so instead of setting the default report globally for all bps/users, its adding an entry to the RDFL table to set the value for a specific user/bp
I experimented by including and setting the following properties to every combination I could think of with the same results
        oDefaultReportParams.UserID = 'tried 1, 0, -1
        oDefaultReportParams.CardCode = 'tried "", "0", "-1"
Am I misunderstanding the API, or using the wrong objects/calls...? If all else fails I could accomplish this via the UI-API instead, but the application was intended to be a stand alone app that didn't rely on SAP B1 application running, so any help or suggestions would be much appreciated.
Thanks!

Hi,
Please repost at SDK forum to get quick response. Close this thread here with helpful answer.
Thanks.

Similar Messages

  • CMDLET commands regarding setting a default font for all users using OWA on an exchange 2010 platform

    HI,
    We are running Exchange 2010 and are migrating users from 2003 to 2010 with no problems.  The client has asked me to set OWA font to LuidaSans which I can do for individuals with no problems.  However, when I try and run the following command
    Get-Mailbox -Resultsize Unlimited | Set-MailboxMessageConfiguration -LucidaSans but then got a message to state
    "property composefontname can't be set on this object becuase it requires the object to have version 0.1 <8.0.535.0> or later.  The object's currant version is 0.0 <6.5.6500.0>"
    What object is this reffered to?  Can anyone help please?
    Thanks
    Paul

    Hi,
    To set a default font for all users, you can use this command: -
    Get-Mailbox | Set-MailboxMessageConfiguration -DefaultFontName "Trebuchet"
    You can use any font style in place of “Trebuchet”.
    I hope this information will be helpful for you.
    Thanks and regards
    Ashish@S 
    Ashish@V

  • How to set the default settings for all users in 11.1.1.3

    I have couple of questions
    1. How can I change the default setting for all the users so that whenever they log in the planning takes them to the Task lists mode. Or is this a one time thing which they need to do individually ?
    2. How can I set the defalut setting for all the users so that they can see the same page when they log into Workspace ?

    For workspace have a read of - http://docs.oracle.com/cd/E12825_01/epm.111/bpmui_admin/assigning_default_preferences.html
    For planning you can't really set it without hacking tables.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How do you set default programs for all users when deploying Windows 8.1?

    I have my Windows 8.1 image set up the way I want including the start screen, theme, etc. But how can I set the default programs for all users. Most of out computers are non-touch and I want the desktop apps (e.g. Windows Photo Viewer), not the store apps
    to be the default for opening pictures, videos, etc. Can that be done?

    Great question, this has been bugging me too!
    So, I did some research by using "Set Default Programs" app in Windows 8. Then I ran the super ProcMon.exe tool from Sysinternals.com <Thanks Mark!>
    After filtering out the junk, I could see some *interesting* writes to the registry:
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.jpg\UserChoice]
    "Hash"="57y87/ogggU="
    "ProgId"="PhotoViewer.FileAssoc.Jpeg"
    But the "Hash" part had me concerned. I did some internet searching for the hash, and came across a post and a pointer to a blog with some answers.  This is both good news and bad.
    Background:
    One of the problems with Windows XP is that any program can come in and party on the entire system. No, I don't want you to put a shortcut on the desktop, install a crappy IE Toolbar, and change the default file association for *.jpg files to your app, I
    just wanted to play a stupid game. Since Windows 7, Microsoft has been attempting to block that functionality from the stupid applications, and give them back to the user. Take note of the last line in the ITaskbarList3 interface:
       Applications cannot programmatically pin themselves to the taskbar. That functionality is reserved strictly for the user.
    Of course that sucks for us IT Pros who may wish to create *default* working environments for corporate images, but there are some tricks we can do.
    Solution:
    This blog appears to have the answer:
    http://blogs.technet.com/b/mrmlcgn/archive/2013/02/26/windows-8-associate-a-file-type-or-protocol-with-a-specific-app-using-a-gpo-e-g-default-mail-client-for-mailto-protocol.aspx
    New for Windows 8 is a dism command: /Get-DefaultAppAssociations that allows you to export a control case from a known good computer. Microsoft the supports importing the exported xml file via GPO. For example, before I changed the file association, .AVI
    was pointing to the Modern App, after the change the /export-DefaultAppAssociations shows change to the new app:
    From:
    <Association Identifier=".avi" ProgId="AppXhjhjmgrfm2d7rd026az898dy2p1pcsyt" ApplicationName="Video" />
    To:
    <Association Identifier=".avi" ProgId="VLC.avi" ApplicationName="VLC media player" />
    I am still doing some investigation to see if a GPO is required, or if you can inject the association into a local user account. Also, if you do have some Modern Windows 8 Touch Tablets, it would recomend keeping most of the Modern App defaults in place,
    perhaps seperate GPO's for Desktops/Laptops vs Tablets?
    -k
    Keith Garner - keithga.wordpress.com

  • Set default password for all users including csv file

    I would like to set the default password for all users
    including the ones imported in the csv file?
    Also now the default passwrd in set to the email address. How
    do i change that setting to the "login" setting in the csv file so
    those users can loin with that password?
    Kinda the same question but do yuo get the idea?
    Thank you,
    Chip

    You could download and install RCDefaultApp 2.1 for all users: check the Read Me and then test it on something to see if it accomplishes what you want.
    http://www.rubicode.com/Software/RCDefaultApp/

  • Set default Skin and Layout for all users

    Hi all,
    Im using UCM 10GR3 and i must set an default skin and layout for all users.
    Into General Configurations Field > System Variables i set
    LMDefaultSkin=MySkin
    LMDefaultLayout=MyLayout
    But this didnt work. Anybody have a clue?
    My skin is working fine but i have to change via My Profile.
    Best Regards
    Daniel

    only new users.
    According to metalink, each one of these will overwrite existing user settings.
    XuiSearchTemplate=slim
    XuiSearchTemplate=dam
    XuiSearchTemplate=myview
    XuiSearchTemplate=none

  • Setting Default Preferences for All Users in Crystal Reports Server 2008 v1

    We are currently looking to set the default preferences in the CMC for all of our users.
    I did locate this page Link: [How to set default preferences for all users in Infoview 3.1/CRS 2008]
    The first part of the thread did seem promising but I am unable to find the sample .jsp code that people recommended.
    I would assume that this scenario is common enough that someone knows a way to set universal preference defaults.
    Thank you

    I thought I could just run it too but when I attempt to I get a Windows Script Host error:
    Script: C:\User Prefs.vbs
    Line: 1
    Char: 1
    Error: Expected statement
    Code: 800A0400
    Source: Microsoft VBScript compilation error.
    I noticed the first most line seems to be markup for a web interface though I am not familiar with vbs so I may be wrong.  I used the publishing wizard to put the script on the CMC to attempt to run it through the CMC but it still does not work.

  • Unable to change keyboard layout for all users on Windows Server 2012 R2

    Hi,
    I have a requirement where I need to support national keyboard layout for Danish for all users on that machine. When I ran the powershell with script Set-WinUserLanguageList
    -LanguageList da-DK it only sets the Danish keyboard layout to the specific logged in user.However the for other users its same English(US) keyboard which is not expected.
    Please help me how to set the Danish keyboard for all users on the machine. Its Urgent!Thanks

    Hi Mike,
    Thanks for reply.
    But I need to configure everything using powershell script. Is it possible to use powershell script to setting group policy/ adding logon script ?
    These are pretty basic administration tasks and almost always quicker to accomplish with the GUI. Why do you want to use a PowerShell script?
    EDIT: Here's some information on the topic however:
    https://technet.microsoft.com/en-us/library/cc781361%28v=ws.10%29.aspx
    http://blogs.technet.com/b/heyscriptingguy/archive/2011/01/06/use-powershell-and-group-policy-for-your-logon-script.aspx
    Don't retire TechNet! -
    (Don't give up yet - 13,225+ strong and growing)

  • How can I set default toolbar layout for all users in my system?

    Hi everybody! I am running a local ubuntu server at my office. I can set some defaults preferences (about:config) for all new users in the system by defining those prefs in the /etc/firefox/syspref.js.
    Now, I want to define default toolbar layout in a similar way (maybe not needed but fun), to copy the toolbar layout for my user. Is there a general way to do that?
    thank you in advance!

    You can try to create a default template folder (defaults/profile) in the Firefox and place the file(s) in that folder for newly created profile.
    The only way to customize an existing profile is to copy files directly to it.

  • Set default application for *all* users

    Hello people, my 1st post here, so forgive me for possible imprecisions, ambiguity, inappropriateness....
    When I search how to set/change the default app for opening some type of file I always find the answer "through the getinfo". But doing that, I only change the default application for the current user.
    I want to do that for all users of my mac, without repeating the getinfo process for each of them.
    Is there any adminstrative tools for doing that?
    Thank you.

    You could download and install RCDefaultApp 2.1 for all users: check the Read Me and then test it on something to see if it accomplishes what you want.
    http://www.rubicode.com/Software/RCDefaultApp/

  • Changing the default keyboard language for all users via command line

    I have about 250 computers, that I set the wrong default language on.
    I am hoping someone here can help me. I have 3 keyboard languages installed in my labs,
    En-English (United States)
    Fr-French (Canada)
    En-English (Canada)
    I'd like to make the Fr-French (Canada) the default keyboard language for all users that login I have tried the following xml but it's not working. I do not see the problem any help would be appreciated.
    I tried to run it by doing this
    control intl.cpl,, /f:"FR-DefaultKeyboard.xml"
    The following code below is called FR-DefaultKeyboard.xml file.
    <gs:GlobalizationServices xmlns:gs="urn:longhornGlobalizationUnattend">
    <!--User List-->
    <gs:UserList>
    <gs:User UserID="Current"/>
    </gs:UserList>
    <!--User Locale-->
    <gs:UserLocale>
    <gs:Locale Name="FR-CA" SetAsCurrent="true"/>
    </gs:UserLocale>
    </gs:GlobalizationServices>

    <gs:GlobalizationServices xmlns:gs="urn:longhornGlobalizationUnattend">
    <gs:UserList>
    <gs:User UserID="Current" CopySettingsToDefaultUserAcct="true" CopySettingsToSystemAcct="true"/>
    </gs:UserList>
    <gs:InputPreferences>
    <!--English US EN-->
    <gs:InputLanguageID Action="add" ID="0409:00000409" Default="false"/>
    <!--French CA CA FR-->
    <gs:InputLanguageID Action="add" ID="0c0c:00000c0c" Default="true"/>
    <!--English CA EN-->
    <gs:InputLanguageID Action="add" ID="1009:00001009" Default="false"/>
    </gs:InputPreferences>
    </gs:GlobalizationServices>
    This worked, thank you

  • Setting the Default Homepage for all current and new users but leave it user modifiable.

    I am in the process of creating our new Windows Deployment Image based on Windows 7. Previously I was able to use the browserconfig.properties file in the Firefox main program files directory to change the default homepage for all new profiles while still allowing the user of any given profile to change their homepage. I have not yet found any equivilent in FireFox 4. Any help would be appreciated. Thanks.

    > The locations of the files are different and none of them show up under
    > the new user, but do show up for existing users.
    Enable logging for GPP files to see what's happening:
    http://blogs.technet.com/b/askds/archive/2008/07/18/enabling-group-policy-preferences-debug-logging-using-the-rsat.aspx
    Martin
    Mal ein
    GUTES Buch über GPOs lesen?
    NO THEY ARE NOT EVIL, if you know what you are doing:
    Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))

  • Layout for all users

    Hi All,
    How can I change the layout for alll the users,
    When i have chnaged it is showing only for me and not for others

    Hi,
    Once you change the layout in the report click on save layout at the top of the report.
    There you have a tab called USER SPECIFIC.
    If that is checked, then the layout is specific to your user name, else it will be set as default for all users.
    Regards,
    Amit

  • Changing file clicking default behaviour for all users

    Is there a way to change the default file clicking behaviour for all users? Each user can do it himself by going via the username menu ("Personal Preferences", "When clicking on a file...") but I would prefer to set it for all users to a value that is different from the default.

    Hi Ganesh,
    Can u pl post how you solved this.
    Regards,
    Reema.

  • Setting a (corporate) Persona for all users

    Hi,
    I've designed a corporate Firefox persona and would like to either
    a) set it as the default persona when a user first opens Firefox
    b) roll it out to all existing users of Firefox where they have not had this persona applied before
    I'm on a Windows Active Directory network and all clients are WinXP/Win7 and have Firefox 3.6 installed.
    Does anyone have an idea of how I can achieve this?

    You can do that for new users via a file user.js in the default template folder for new profiles.
    C:\Program Files\Mozilla Firefox\defaults\profile\
    *http://kb.mozillazine.org/user.js_file

Maybe you are looking for

  • How to add a Folder inside a Folder ? (non)

    I have tried even going directly to the srf file to do the grouping manually. Bear in mind that I have performed this successfully on an existing SAP folder.  But if I tried doing it on a form i've created with the screen painter the results are simp

  • Insertion of extra line item in delivery creation

    Hi, I have a requirement like after the creation of delivery from sale order, if we insert new line item in sale order , created delivery should be overwrite with newly added line item in sale order. Im using RV_DELIVERY_CREATE for creation of delive

  • Reference operation set:tr CO48

    Hi guys, while I 'm running the tr.CO48 to convert partially a planned order the system have given me the message 'Reference operation set ..&..not found(check entry) ' but I have cretaed the operation set and it exist..which is the meaning? Thanks i

  • Syntax for page level process to invoke an on-demand app level process?

    I want to use a page level process (if that's the right thing to do) to run an application process on-demand each time certain pages load. What is the proper syntax for the page level process? I tried many variations of the following but it does not

  • Applying LiveFont causes text to disappear

    When I apply a livefont to my text, the text goes invisible? Anyone have this problem? i've even soloed the track and still, no text. i've moved down the timeline to various locations on the text and still no text. Is it possible the LiveFonts are no