Changing formsettings via UI-Api has no effect

Hy Everyone!
I try to modify the FormSettings via the UI-Api. (show and hide Columns in a matrix)
The Collumns are still visible also if i set all -> VisibleInForm = tNo.
The only way to see an effect was to close and restart SBO, then open the form again.
Does anybody knows a way to change the FormSettings so that i can open a certain
Form without closing SBO first and have all the collumns visible or invisible?
Here is my code, it only works with close and reopen SBO....
    Dim oCmpSrv As SAPbobsCOM.CompanyService
    Dim oFormPreferencesService As FormPreferencesService
    Dim oColsPreferences As ColumnsPreferences
    Dim oColPreferencesParams As ColumnsPreferencesParams
    Dim oColsPreferencesXmlFile As ColumnsPreferences
    Dim i As Integer
    'get company service
    Set oCmpSrv = oSBC.oDICompany.GetCompanyService
    'get Form Preferences Service
    Set oFormPreferencesService = oCmpSrv.GetBusinessService(ServiceTypes.FormPreferencesService)
    'get Columns Preferences Params
    Set oColPreferencesParams = oFormPreferencesService.GetDataInterface(FormPreferencesServiceDataInterfaces.fpsdiColumnsPreferencesParams)
    'set the form id (e.g. A/R invoice=133)
    oColPreferencesParams.FormID = "149"
    'set the user id (e.g manager= 1)
    oColPreferencesParams.User = oSBC.oDICompany.UserSignature
    'get the Columns Preferences according to the formId & user id
    Set oColsPreferences = oFormPreferencesService.GetColumnsPreferences(oColPreferencesParams)
    'change the width of all the visible items
    For i = 0 To oColsPreferences.Count - 1
        'check if the item is visible
        'If oColsPreferences.Item(i).VisibleInForm = BoYesNoEnum.tYES Then
            'set the width of the item
            oColsPreferences.Item(i).VisibleInForm = tYES
            oColsPreferences.Item(i).VisibleInExpanded = tYES
            oColsPreferences.Item(i).EditableInForm = tYES
            'oColsPreferences.Item(i).Width = 150
        'End If
    Next
    oFormPreferencesService.UpdateColumnsPreferences oColPreferencesParams, oColsPreferences

Hi Andreas,
This behavior is "by design":
The preferences are loaded during B1 start - and cached until it is closed...
Sorry,
Frank

Similar Messages

  • Changing bounds origin of UIView has no effect

    I try to pan/scroll a big image(500x500) in a small frame (200,200) like in Google Maps. Changing bounds origin of UIImageView has no effect. The same part of image is displayed by the view.
    IBOutlet UIImageView *image;
    -(void)touchesEnded:(NSSet*)touches withEvent:(UIEvent*)event
    CGRect bounds=[image bounds];
    bounds.origin.x=bounds.origin.x+10;
    bounds.origin.y=bounds.origin.y+10;
    [image setBounds:bounds];
    Does anyone have any idea what is wrong?

    Ok, I found out what's wrong.
    To "pan" an image you have to change bounds origin of PARENT view.
    - (void)applicationDidFinishLaunching:(UIApplication *)application {
    CGRect viewRect = CGRectMake(50, 50, 100, 100);
    UIView* myView = [self createView:viewRect withColor:[UIColor redColor]];
    UIView* childView = [self createView:CGRectMake(0, 0, 50, 50) withColor:[UIColor blueColor]];
    [myView addSubview:childView];
    [window addSubview:myView];
    myView.clipsToBounds=TRUE;
    myView.bounds=CGRectMake(45, 45, 100, 100);
    [myView release];
    [childView release];
    [window makeKeyAndVisible];
    -(UIView*) createView:(CGRect)viewRect withColor:(UIColor*)color
    UIView* myView = [[UIView alloc] initWithFrame:viewRect];
    myView.backgroundColor=color;
    return myView;
    }

  • Change of Min Pool Size has no effect?

    Hi, we are still using odp 9.2.0.4 on windows server 2003 webserver and oracle database 9i on Sun solaris. Recently we discovered a problem using Min Pool Size = 1, it seems that if new connections are required we sometimes get a connection timeout. So we decided to set Min Pool Size = 30, and on the testserver this works fine. In the odp tracefile (tracelevel=2) you see the 30 connections building up immediately. But on the production server we see no difference, it looks like the (new installed, application pool reset) application still uses the Min Pool Size = 1 setting.
    The connection string is build up in application code. On the testserver it was sufficient to stop and start the website and its application pool, on the production server this has no effect.
    Does anyone have an idea what the problem is??? We also tried restarting the IIS server, that did not help either. In production there are more applications using ODP.
    Regards, Paul.

    What problem are you trying to solve at this point? Simply "why is odp not tracing?" The only suggestions I really have there are
    1) make sure you restart the app after enabling tracing parameters
    2) make sure the directory you've set tracing to is open as far as permissions
    3) make sure you've set tracing in the right registry setting if you have multiple versions of ODP installed
    4) if you're trying to write to c:\ root, try creating and pointing to a different (c:\odptrace for example) directory instead.
    Hope it helps,
    Greg

  • Change settings fo Samba(SMB) via smb.conf has no effect in 10.5 nor 10.6

    Hello,
    I would like to change some stuff of my Samba Configuration on my MacBook and PowerMac (10.6.2 and 10.5.8). But on both OS X Versions changing /etc/smb.conf doesn´t do anything and /var/db/smb.conf is written automatically, so how can i make sure the changes will be done correct and permanent.
    thx
    T.

    Had a further play with my system. It seems as though smbclient respects the content in /etc/smb.conf. I tried using the -d4 debug option and my adjustments made in smb.conf were used.
    However Finder seems to be broken and ignores smb.conf. Feedback sent to Apple.
    Try smbclient //ip-address-of-NAS/share-name -W workgroupname -U username -d4
    and see what happens.

  • Changing a mobile users password has no effect

    Hi!
    Changing a mobile account users password on the server doesn't work. On a 10.7.4 server I changed a network user's password, who has a mobile account and was connected to the local network, but he could not log in with either the old or the new password?!?!? I could understand if the change didn't work if the user was off site, but shouldn't this "just work"? I tried both in Server.app and WGM, but still not working. When setting the old password on the server again, it worked!
    Anyone else had this problem? Any solutions. It has happened to 2 users, same story. Clients are 10.6.8 clients.

    Ok, I found out what's wrong.
    To "pan" an image you have to change bounds origin of PARENT view.
    - (void)applicationDidFinishLaunching:(UIApplication *)application {
    CGRect viewRect = CGRectMake(50, 50, 100, 100);
    UIView* myView = [self createView:viewRect withColor:[UIColor redColor]];
    UIView* childView = [self createView:CGRectMake(0, 0, 50, 50) withColor:[UIColor blueColor]];
    [myView addSubview:childView];
    [window addSubview:myView];
    myView.clipsToBounds=TRUE;
    myView.bounds=CGRectMake(45, 45, 100, 100);
    [myView release];
    [childView release];
    [window makeKeyAndVisible];
    -(UIView*) createView:(CGRect)viewRect withColor:(UIColor*)color
    UIView* myView = [[UIView alloc] initWithFrame:viewRect];
    myView.backgroundColor=color;
    return myView;
    }

  • Changing default interface font size has no effect

    Just setup my shiny new iMac with 5K retina display.  Images in Lightroom, of course, look stunning on the display. Problem is that all the interface elements are now displayed at a very small size.  I've tried setting the font size in Preferences/Interface to "Large", but nothing changes.  Any suggestions?  With the increasing use of 4K and now 5K displays, I'd think being able to set a more easily readable font size for the interface elements (while still displaying images in all they retina-resolution goodness) would be an important option to have.  Thanks.,

    Lightroom 5 the font sizes changed to Small, Medium, Large 150% and Largest 200%  (the last one is what you want for QHD displays.)
    LR4 only had 3 font size choices (Auto,Small and Large) and does not support QHD/4K displays.

  • Remote content bar does not appear for some emails with images specifically daily Twitter updates. Changing options to allow all remote content has no effect

    The broken image symbol appears in place of the images but associated web links do work ok.
    Changing options to allow all remote content has no effect. Senders' addresses are in my address book and on the exceptions list.
    Some emails (from other sources) load perfectly. Using Kaspersky Internet Security 2015 on Windows 8.1. Thunderbird 31.4.0
    Any help appreciated.

    You only need to post a URL to your web site. We can see your code in Browser.
    So, your page looks OK to me in Firefox, but when I tried to check it in IE, it choked my browser and closed it.
    You have quite a few code validation errors - no document type declaration, etc... Start by fixing these reported errors.
    http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fntp.neuroscience.wisc.edu%2F
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Changing CardCode via the SDK DI API

    Forum,
    I am trying to change a BP's Cardcode via the SDK DI API that I can change if I do it via the BP Screen inside SAP, but the update method is failing on the BP object and on getting the error message it is telling that "it already exists in the following tables" but does not in fact tell which tables.
    Do you if it is possible to change the Cardcode via DI API?
    The reason we need to be able to do this is that Leads have a certain style of CardCode ie L009988, but on conversion to a Customer the style changes
    to reflect the Customer Name ie ABC Garages may become ABC142 and this needs to be record as well in all of still active non-SAP systems these are used to raised Invoices and Credit Notes.
    Regards,
    Juan

    Once there is a transaction against a CardCode, it cannot be changed.

  • Wrong Channels Being Mapped for 5.1 - Changing Has No Effect.

    I just setup a new edit suite using a Blackmagic Decklink Extreme 3D Card, running on a PC with Windows 7.
    Initially my 5.1 channel mapping required altering in Premier to get the correct output to the correct speakers but once sorted all worked great.... until today! For some reason no matter what I do some of the channels are now mixed up, and changing the mapping preferences has no effect. I am getting the Centre channel coming from the Rear Right and Rear Left is coming out of the Sub! I have my preferences set to output from the BlackMagic Audio Device, but even swapping left and right channels has no effect.
    If I flick over to Audition and map the channels for a 5.1 mix it works fine and has the correct output which I guess rules out a problem with the DeckLink. This is REALLY frustrating me, any suggestions or advice on what could be the issue with premier would be greatly appreciated!

    Moderator advice: Please read the announcement(s) at the top of the forum listings and the FAQ linked from every page. They are there for a purpose.
    Then edit your post and format the code and CSS correctly.
    db

  • Corrupt Credit Note created via DI API

    Hello,
    when i try to create a credit note via di api i get the error message "one of the base documents has been closed", even if the source document is not closed. But this is not the main problem. After this i have a corrupt credit memo in my system, that means a credit memo with out any detail lines. The error occurs only on one customer systems, on a lot of other systems the creation of credit notes works fine. Had anybody the same effect or clue what causes this problem.
    Regards

    Hello we found the problem, i can reproduce it on a belgium database.
    I want you to inform about a critical error in the SBO_SP_TransactionNotification.
    If you check the line data of a document and send an error for this data the front end works fine. But if you use the DI-API the header data of document will be saved and the lines will be not saved.
    if @object_type in ('14','19') and @transaction_type = 'A'
    begin
    declare @corrCRD as varchar(8)
    if @object_type = '14'
    set @corrCRD = (select distinct(correction) from ovtg where code in (select vatgroup from RIN1 where docentry = @list_of_cols_val_tab_del) and correction = 'N')
    else if @object_type = '19'
    set @corrCRD = (select distinct(correction) from ovtg where code in (select vatgroup from RPC1 where docentry = @list_of_cols_val_tab_del) and correction = 'N')
    if @corrCRD = 'N'
    begin
    set @error = 1
    set @error_message = 'You have entered a regular VAT Code on the document, this is not allowed'
    end
    end

  • Retrieve contact list  via the API not with the last updated date but created date?

    I can connect via the API and retrieve a list of contacts  but it seems that the only paramater i can pass is to search since the last Update  Date.
    Is it possible to search on the Created date and to have a date range as well?
    I found the xml result is slow to come as it gives all entries since the "lastUpdateDate" entered.

    A change in score does not cause the Date Modified field to change on the contact record. This field only changes when some data in one of the fields has changed.
    However, some of the confusion can come from the fact that lead scores have a Profile and Engagement portion. So if you have certain fields on the profile section being modified, that would cause a rescore at the same time. Engagement criteria such as form submits often cause the contact record to be modified while website visits and email clicks/opens do not.
    Hopefully this helps clarify,
    Bojan

  • How to generate the User-Input XML Body for executing workflows via REST APIs: The Solution

    I see that executing a workflow via REST APIs requires lot of work to be done just to prepare the right User-input XML body. Any mistake and you have some major debugging to do. Larger the number of User-Inputs, the bigger is the problem.Life is so much easier at the WFA GUI with Display names and tooltip help for User Inputs which are very easy for reading and providing the right values. I don't have any such privileges when manually preparing the User-Input XML body.It’s been asked numerous times how to provide User-Input values for type table, or Query (Multi-Select) etc. These are complex User-Input types and has lots of scope for user mistakes.I can have User-input dependency at WFA GUI which allows me to make the right selection, but while preparing my XML body I need to take care of it myself.An operator is allowed to execute workflows, but the same Display names which help him make the right user-inputs, makes it impossible for him to prepare the user-input body xml. Display names can't be used in in XML body and he can't know the exact parameter names by looking at the Display names. So he need to always contact the Admins/Architects for this. And Architects/Admins can't be expected to keep providing User-Input XML body to operators every operator. How about if I could enter all the User-Input values in my workflow execution at WFA GUI, I can do a preview which passed to my satisfaction and then I can magically get the XML body for it which I can use to execute my workflow from REST APIs from any client. It could be so very much easy for me than building my User-Input XML body manually. This is exactly what I'm going to give you right now. You open the WFA in browser, Go to your workflow, Start execution, you input values from GUI reading carefully the display names, preview it to your satisfaction and then get the XML body. Assume your workflow is called “Workflow to Print a given Message”. It’s a simple workflow with only 1 user-input Displayed as "Message to Print" Prerequisites:  The following are the one-time prerequisites. You need PowerShell 3.0 on your WFA server.Import the attached Generate_Workflow_User_Input_Body_in_XML.dar in your WFA. It’s our magical command called "Generate Workflow User Input Body in XML"Add credentials of a WFA Admin/Architect in you WFA itself with Name/IP: localhostMatch: ExactType: OtherName/IP: localhostUsername: <WFA Admin/Architect Username>Password: <User Password>   Steps: Suppose you have a workflow called "Workflow to Print a given Message". You want to execute it from REST apis and need to prepare the user input XML body.  Select this workflow and clone it. The workflow clone is the exact copy of your original workflow word by word, input-by-input. It will open in Edit mode with name "Workflow to Print a given Message - copy".Add the command "Generate Workflow User Input Body in XML" at the beginning of your workflow. This is a must. This command need to be the first command in your cloned workflow.This command requires no input. So for its Parameters just press okay and save the workflow.You are done.Now Execute the clone workflow. You'll see all the user-inputs available to you. Make your choices as you wish. Preview it to confirm that planning is passed and u have no errors.Execute it now.You'll see that the our magical command "Generate Workflow User Input Body in XML" has failed in our clone workflow execution. Don't worry, its fate was decided to be so. But it didn't fail before giving me what I really wanted. i.e. my XML body for my real workflow. It displayed it in the GUI as well as saved it in your WFA server @ C:\temp\<workflow_name_dd_MM_yyyy_hh_mm_ss_.xmlIt also deleted all the reservations of this particular failed job. So NO major residue left to be cleaned.To summarize: Clone Your workflow and Add the command "Generate Workflow User Input Body in XML" as your first command.    Start Execution, provide your User-inputs and preview it. Be satisfied and Press Okay.   Now Execute it.  After a few scconds this cloned workflow will fail with Error "All done. The Workflow will fail now."     See the command execution logs for this command. You'll see the User-Input XML body. It has also saved the XML file at C:\temp in your WFA server.   Have fun. sinhaa  

    Providing a new version 1.1.0 of the command "WFA Schedular" Changes made: Added conditional String Representation based on the Scheduling parameter provided. Provided check for the right number of parameters passed into the command.Added a new parameter "Expiry Date" to automatically stop the recurring execution upon expiry.Check for Posh3.0 version in code.Have Fun!! sinhaa Below example for:Schedule a workflow for recurring execution every alternate day i.e. once in 2 days at 10:30 PM starting 06-Jul-2015 (Today's date is 02-Jul-2015) . The recurring workflow execution  should expire on 31-Dec-2015 and stop.  

  • Widescreen setting in video - tv out has no effect

    after a couple of hours of experimentation, i have concluded that the widescreen setting (on/off) in the tv out section of the video settings has no effect. i believe what it SHOULD do is adjust the signal to display properly on a widescreen (16x9) tv. i believe it does nothing. video displays stretched and squashed (photos too btw). this is after experimenting with the same itunes-purchased and non-itunes purchased videos on both my ipad and my iphone 3gs, using the same tv and the apple component av cable. the iphone works fine. the only way to get a semi-acceptable display on the tv with the ipad is to the set to tv to normal 4x3 display. (late model sony lcd hdtv). then you get thick black bars around the picture. with the iphone i can leave the tv display setting at it's regular "full" option and the picture fills the screen properly. i tried both sd and hd videos on the ipad. (sd only on the iphone obviously). does anyone else have this issue? is there a bug in the ipad software? is there a problem with MY ipad? will a software restore help?
    Message was edited by: Michael Rosenberg

    i tried a fair amount of stuff. here's 2 examples:
    1) itunes store copy of an episode of the office in both hd and sd.
    2) digital copy of the new star trek movie
    so the first is 16x9 and the second is a widescreen movie 2.35-1.
    both look fine when playing back off the iphone 3gs (sd copy of the office). both looked stretched horizontally and squashed vertically when playing off the ipad. note that everything looks fine on the ipad itself. it just messed up when connecting
    the ipad to my tv. in all cases, the widescreen setting in the tv out section of the video panel on the ipad has NO effect.
    i can change the screen settings ON THE TV to fix the distortion but then i end up with thick black bars on all 4 sides. and i don't need to do this with the iphone 3gs. i continue to believe something is wrong with the ipad (or MY ipad).

  • PO from SO via DI API:Base document card and target document card do not ..

    HI All,
    I am trying to create Purchase Order from Sales Order. This is possible by GUI (on Sales Order on logistics tabs Click On Purcase Orders CheckBox.
    I got the error message: -5002-Base document card and target document card do not match.
    The message itself can be understandable, because the Customer and Supplier has a different CardCode.
    I am sure I am using a correct code
    oPo.Lines.BaseType = BoObjectTypes.oOrders
    oPo.Lines.BaseEntry = sDocEntry
    oPo.Lines.BaseLine = iLineNum
    Where oPo is a Purchase Order document.
    sDocEntry is a Sales Order docentry and iLineNum is a Line number of Sales Order
    For other A/R to A/R and A/P to A/P documents are working fine.
    Has anybody found this error or has anybody created application like this?
    I am using sbo2007PL46
    Regards,
    J.

    Hi guys,
    this is still on the suggestion page:
    Link existing Purchase Orders to (Sales) Orders via DI API : View Idea
    I tryed with 9.1 PL 4 and it didn't work.

  • Error while creating change request via solman support desk message

    I have configured CHARM and my change req. is working for urgent correction, I have tested the entire workflow.
    however when i try to create a new change req. via support desk message --> create a change request open
    I get following error
    An action was terminated due to an exceptional situation.
    Message no. SOCM_ACTION_LOG 090
    Diagnosis
    An exception has been triggered in PPF action processing.
    System Response
    Action processing has been terminated. The status of the transaction is still incorrect.
    Procedure
    You cannot execute the action until the cause of the error has been removed.
    The error messages will be kept until the transaction is next checked for subsequent analysis.
    Procedure for System Administration
    If necessary, analyze other messages in the application log for the incorrect transaction. To analyze the termination, you can activate the breakpoints in the checkpoint group socm_exception.
    Additional Information:
    Exception CX_SOCM_PRECONDITION_VIOLATED occurred (program:
    CL_HF_HELPER==================CP, include:
    CL_HF_HELPER==================CM00A, line: 29).
    pls help

    Hi Yunus,
    Your probably have changed the transaction type SLFN to a the customer namespace Z or Y. If this is the case you MUST also "Define Mapping Rules for Copy Control".
    Goto SPRO -> SAP Solution Manager -> Scenario-Specific Settings -> Change Management -> Change Request Management -> Extended Configuration -> Change Transaction -> Change Transaction Types -> Copy Control for Change Request Management ->  Define Mapping Rules for Copy Control.
    Once at this point in the IMG make a copy of SLFN -> ZLFN. This will resolve your problem.
    Kind regards,
    Latief

Maybe you are looking for

  • Succesful but still the same old bios

    Hi! I'm new to this. I did run your "MSI Forum HQ USB flashing tool" successfully. And i did clear the cmos afterward.  But when i'm going back to the bios i still got the same version as previously. And i still got a boot loop and  the bios failed l

  • How can I convert my 16bit music library to 24bit for better quality?

    I just bought a new stereo system in my room and 16bit music sounds very thin and tingy, so i have been playing vinyl.. 24bit music seems to be a great option, but i don't know how to convert my music to 24bit.. :/ ps: I don't care about HD space.. i

  • HP OFFICE JET 6600 HOW TO TURN OFF ECM ON FAX

    I receive error code 344 when I try to fax only to local numbers and I have lowered the fax speed to the lowest and then I receive an error code 350.  It suggest I turn off the ECM and I don't know how to access it to turn it off, can anyone tell me

  • 1) Make the column read only without coding

    Please guid eme how to make the column read only in the list without using the coding. Vij

  • Configuring business packages in E.P 7.0

    Hi friends,   Can anybody tell me the stpes in brief regarding how to configure the business packages in E.P 7.0. And if something need to be implemented in the business package , say for example in ESS(HR) , where i can go and make changes according