Change Backcolor on a UDF

Hi All,
I am trying to change the backcolor on a Business Partner UDF without success.  It will work on the standard form, but not on the UDF.  Does anyone have a solution?
Me.ActiveSboForm.Items.Item("40").BackColor = RGB(193, 255, 193) <========== WORKS
Me.UDFForm.Items.Item("U_DropShipComment").BackColor = RGB(193, 255, 193)  <=========== DOES NOT WORK
Thanks!
Ramona

Something like this...
//Add EditText to main form and databind it (ItemEvent)
//This bind a UDF called U_BOY_DIR to the form
if(pVal.EventType == BoEventTypes.et_FORM_LOAD && pVal.BeforeAction) {
  Form f = sboApp.Forms.Item(FormUID);
  Item i = f.Items.Add(”BOY_1”,BoFormItemTypes.it_EDIT);
  i.Left = 440;
  i.Top = 82;
  i.Height = 14;
  i.Width = 100;
  i.Backcolor = //The color
  EditText et = (EditText)i.Specific; //Get specific
  //Databind (OCRD from systemform)
  et.DataBind.SetBound(true,”OCRD”,”U_BOY_DIR”);

Similar Messages

  • Changing NP User ID UDF in business One

    Hey All,
    We have a client who had all of their netpoint userids created automatically by netpoin. (numeric ids). They want to change some user ids to sensible user ids for their users. If they change the netpoint user UDF in business one the synch runs and starts getting SQL constraint errors because it is trying to link the  same contact more then once. Surely there is a way for them to rename a userid through the interface?
    Any help would be appreciated.
    Thanks.

    I would try to rename the userid in netpoint, then before synchronization, change th NPUserid in B1, so that when it synchs the Userid exists, and it should still be linked to orders, etc

  • On change one value of UDF, value of other UDF should be change

    Hi to all,
    I have set formatted search on A/R Invoice Form, there is two udf one is BillFrom and second is Jurisdiction. On change of BillFrom the value of the udf should be replace in Jurisdiction. I have write below given query for the same. It is working fine in update mode of existing records. Till time working fine in new record add mode too. Since last 3 days it is not working in add mode.
    Query :
    SELECT case when $[oinv.U_BillFrom] = 'BLR' then 'Bangalore'
                         when $[oinv.U_BillFrom] = 'MUM' then 'Mumbai'
                         when $[oinv.U_BillFrom] = 'GNR' then 'Gandhinagar'
                         when $[oinv.U_BillFrom]  = 'DLH' then 'Delhi'
             end 
    from OINV
    where OINV.DocNum = $[OINV.DocNum]
    Can i have your expert advice to resolve the issue.
    With Warm Regards,
    Chintesh Soni

    Chintesh,
    How does INV1 factor in the query? That has not been mentioned in your post.
    When does the query run? What field is the query assigned to?
    I can only guess at the issues if you don't give me complete information.
    Remember you cannot mass update child records from the parent record via a formatted search.
    If you assign this search to field in OINV and link it to oinv.U_BillForm it will work:
    SELECT case when $[oinv.U_BillFrom] = 'BLR' then 'Bangalore'
    when $[oinv.U_BillFrom] = 'MUM' then 'Mumbai'
    when $[oinv.U_BillFrom] = 'GNR' then 'Gandhinagar'
    when $[oinv.U_BillFrom] = 'DLH' then 'Delhi'
    end
    You don't need the docnum logic at all. Remove it.
    If you are trying to change the values in the matrix based on the oinv.U_Billform changing it will NOT work. To do this you must use the SDK or the SBO_SP_TransasctionNotification.

  • Change The Sequence of UDF

    Hi ALL,
                   Merry Christmas
                   I have  30 UDF for a particulat form(i.e ITEM MASTER DATA)  they are not comes in sequence ,now i have to change it's sequence is it possible? how?
    Thanks in Advance

    You  can do that, Sandeep. Open up the screen with the UDFs and then click Tools > User-Defined Fields and them select Settings. Or just press Ctrl + **** + B.
    In the Settings - User-Defined Fields screen, you set decide which field is Visible or Active. You can order them by entering a nunber in the Order column. You also can put them into different Category.
    Unfortunately, I don't know a way to drag and drop to arrange the sequence of the UDFs.

  • Stored Procedure to Block Changing of a particular UDF Field by a particular USER ID

    Hi,
    I have a case where a particular UDF Field in Sales Order  must not be changed by a particular USER ID.
    My SP is,
    IF @object_type='17' AND ( @transaction_type='U')
    BEGIN
      if(Select T0.XXX  from ORDR T0
      where T0.UserSign='1' and T0.DocEntry=@list_of_cols_val_tab_del)>0
      begin
      SET @error = 1
         SET @error_message= 'You Cannot Change this Field'
      GOTO EXITLINE
      end
    end
    It throws me with the Error : -
    [Microsoft][SQL Server Native Client 10.0][SQL Server]Conversion failed when converting the nvarchar value 'ABC' to data type int. (CINF)
    The UDF Field is Alphanumeric in type.
    Can any one please suggest me what could be the error.
    Thanks

    Hi Gopi Krishnan,
    Please check below SP Transaction Notification.
    if @object_type = '17' and @transaction_type in ('U')
    begin
    If Exists (SELECT T0.[DocEntry] FROM ORDR T0 
    INNER JOIN RDR1 T1 ON T0.[DocEntry] = T1.[DocEntry]
    INNER JOIN OUSR T2 ON T0.[UserSign] = T2.[USERID]
    WHERE T0.[UserSign] = '1'  AND T0.DocEntry = @list_of_cols_val_tab_del)
        Begin
            SET @error = 1002
            SET @error_message = N'You are not Authorized to Update Sales Order'
        End
    End
    Hope this help
    Regards::::
    Atul Chakraborty

  • UDF Settings Change By Themselves

    Hello,
    We have had cases where it seems like our UDF setting change by itself.  We have tried to set our UDF so that the same UDF's appear for each user.  The way we made this change is in the UDF Settings is we created a category called Hidden.  We select Hidden for everything we do not want to see -- which is most of the UDF options.  Then on the screen itself we select General so we only see those UDF's that we want to see.
    After making this change for each individual user, the next day we may go back and find that for one user one or two of the fields that were originally marked as Hidden are now marked as General and can be viewed on the screen?!
    Why is this happening!!
    Any ideas would be very much appreciated -- very frustrating!
    Thanks,
    Mike

    What key combinations could accidentally do this? 
    We created a category in the UDF other than General called Hidden. We then selected Hidden as their category in the Settings.  Then selected General in the main screen to view only those we wanted to see.
    Any other suggestions on how we could make sure people don't change the UDF?  Is there any other possibility as to why sometimes UDF's we do not want shown all of a sudden show up?
    Thanks,
    Mike

  • UDF field in Crystal in Sales Order Layout

    Hi,
    I want to Include UDF field in sales order layout, when i open default layout it shows only standard in RDR1(UDF for rowlevel ) it doesn't shows UDF fields. Now i connected database and re-established OLE DB connection and pulled the RDR1 table, here i can get those UDF created by me. but if i use this UDF field in report details area and this results no values in the layout while preview the report in SAP B1.
    Anyone guide me on this....
    Regards
    sree

    Hi Ivan,
    If you want to populate UDF fields into crystal reports layout then you have to do wat i mentioned earlier.
    1. Go to Menu
    2. choose Database
    3. choose verify database
    4.enter Object Id and Document Number as a input
    5.system will retrieve the values from database and pull all the fields including UDF
    but this doesn't change field length of UDF you have to change it on UDF fields management in SAP by updating the field properties.
    Note: later you can't reduce the length
    Regards
    Sree

  • Trigger is not working while updating the values of UDF

    Dear Freind,
    I have created one Trigger for ORDR for Sales order. It is working fine. For that i have created two UDF to Title level. When i fill all fields it shows the correct result in DocTotal. But problem is that, while updateing specific record it also update but only refresh the DocTotal.
    Means suppose i change the value of UDF fields that time it is not working it gives following error.
    "There is difference between the document total and component total"
    ALTER TRIGGER AmountForPC1
    ON dbo.ORDR
    AFTER INSERT,
    UPDATE
    AS
    SET NOCOUNT ON
    UPDATE x
    SET x.DocTotal = COALESCE(i.DocTotalSy, 0) + COALESCE(i.U_Ref, 0) + COALESCE(i.U_Sub, 0)
    FROM dbo.ORDR AS x
    INNER JOIN inserted AS i ON i.DocEntry = x.DocEntry
    Thanks
    Swapnil

    Hi Swapnil,
    Are you aware that you might run into trouble, at least when it comes to a support case, because you have created triggers?
    Accordingly to note [896891|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMSZ3PTU4ODAwMDAr)/bc/bsp/spn/smb_searchnotes/display.htm?note_langu=E&note_numm=896891] triggers are not supported.
    Regards
    Mario

  • UDF mapping to split string

    Hi,
    I'm starting with UDF functions.
    How can i split source string at '-' and take first part into target.
    ex : 123-456 -> 123
    Easy points for those who know...
    Thanks in advance,
    Laurent.

    Hi Laurent,
    Use an Advanced User Defined Function. Adavnced user Defined Functions can return Multiple values.
    UDF1:
    1.Takes renmark as input.
    2.Does the split on the basis of ;
    3. Splits each split of step 2 on the basis of /
    4. Add the output of step 3 to the resultlist with a context change.
    UDF2:
    1.Takes renmark as input.
    2.Does the split on the basis of ;
    3. Splits each split of step 2 on the basis of /
    4. Add the output of step 3 to the resultlist with a context change.
    For Advanced UDF's,
    http://help.sap.com/saphelp_nw04/helpdata/en/f8/2857cbc374da48993c8eb7d3c8c87a/content.htm.
    You can try this piece of code in your mapping...
    You need 3 UDFs each for <detail>, <field1>,<field2>
    UDF1: For <detail>
    String arr[] = a[0].split(";");
    for (int i=0;i<arr.length;i++)
    result.addValue(arr);
    UDF2: For ><field1>
    String str = a[0];
    String str1 = null;
    String sarr1[] = str.split(";");
    for (int i=0; i<sarr1.length;i++)
    str1 = sarr1;
    String sarr2[] = str1.split("/");
    for (int j=0; j><sarr2.length;j++){
    result.addValue(sarr2[j]);
    j++;
    result.addContextChange();
    UDF2: For ><field2>
    String str = a[0];
    String str1 = null;
    String sarr1[] = str.split(";");
    for (int i=0; i<sarr1.length;i++)
    str1 = sarr1;
    String sarr2[] = str1.split("/");
    for (int j=0; j><sarr2.length;j++){
    j++;
    result.addValue(sarr2[j]);
    result.addContextChange();
    ..All these functions requires one input <remark>
    Hope this helps you ..
    *Reward with points if helpful*
    Regards,
    Shibani

  • Mapping UDF Question.

    All,
    We have the following structure from the input XML... We want to extract the PSTLZ node value into the target structure where PARVW = "WE" - Im trying to use a UDF but - im getting an error because the PSTLZ is an optional node under E1EDKA1 and not all the E1EDKA1 segments have this field. i was trying to UDF to take 2 parameters - PARVW (context at IDOC level) and PSTLZ (context at IDOC level).
    Any help would be appreciated...
    <IDOC>
          <E1EDKA1 SEGMENT="1">
             <PARVW>AG</PARVW>
             <PARTN>1</PARTN>
             <TELFX>XXXXX1</TELFX>
             <BNAME>Mike</BNAME>
             <PAORG>100</PAORG>
             <ORGTX>US Purchasing</ORGTX>
             <PAGRU>UG1</PAGRU>
          </E1EDKA1>
          <E1EDKA1 SEGMENT="1">
             <PARVW>RE</PARVW>
             <NAME1>SomeName</NAME1>
             <STRAS>Street 1</STRAS>
             <ORT01>City1</ORT01>
             <PSTLZ> 12345</PSTLZ>
             <REGIO>NY</REGIO>
          </E1EDKA1>
          <E1EDKA1 SEGMENT="1">
             <PARVW>LF</PARVW>
             <PARTN>2</PARTN>
             <SPRAS>E</SPRAS>
             <SPRAS_ISO>EN</SPRAS_ISO>
          </E1EDKA1>
          <E1EDKA1 SEGMENT="1">
             <PARVW>WE</PARVW>
             <LIFNR>XYZ</LIFNR>
             <NAME1>NAME1</NAME1>
             <NAME4>Name4</NAME4>
             <STRAS>some street</STRAS>
             <ORT01>BUFFALO</ORT01>
             <PSTLZ>12345</PSTLZ>
             <LAND1>US</LAND1>
             <ABLAD>YYY</ABLAD>
             <PARNR>YYY</PARNR>
             <SPRAS>E</SPRAS>
             <REGIO>US</REGIO>
          </E1EDKA1>
    </IDOC>

    rkk,
    Try this
    Parvw[Change Context to IDOC] --->UDF
    PSTLZ[Don't Change Context] --->Map With Default[] -->Remove Context---> UDF
    If there are no values from PSTLZ what u want to do? According to the above logic, it will give blank value are u ok with it?
    raj.

  • UDF for Price Lists

    Hi Guys,
    I have created 3 udf in item master data and whenver the price for a particulat item changes then these 3 udf has to be updated based on that price value..
    There willl be different prices for the same item .
    3 udf's--> MRP(Price),Abatement %, Abatement Value(Assessable Value).
    Item1 unit price-7500(Direct Marketing Price)
    MRP(Price) will be 5000 and abatement % will 65% for all items and 65% of MRP will be Abatement Value.
    Item1 unit price-7000(BPCL Price)
    MRP(Price) will be 4000 and abatement % will 65% for all items and 65% of MRP will be Abatement Value.
    Item1 unit price-8000(TamilNadu Price)
    MRP(Price) will be 5500 and abatement % will 65% for all items and 65% of MRP will be Abatement Value.
    If i select the Direct Marketing Price then the above 3 udf fields has to be updated and next time if i select BPCL price then the 3 udf's have to be updated.
    Pls give me solution to achieve this.(If possible give me solution without doing in SDK).
    Thanks in advance,
    Regards,
    Vamsi.

    Hi,
    I suggest u create a FMS on the Price list field in the Item Master Data screen. So on the change of the Price List, the UDF values would get refreshed based on the calculation.
    Hope it helps,
    Vasu Natari.

  • CrystalReportViewer TabPages BackColor

    Hello,
    Is it possible to change TabPage BackColor of CrystalReportViewer since subreport is loading.
    I'm able to change BackColor using such code
    foreach (Control control in viewer.Controls)
                    if (control is PageView)
                        System.Windows.Forms.TabControl tab = (System.Windows.Forms.TabControl)((PageView)control).Controls[0];
                            for (int i = 0; i < tab.TabPages.Count; i++)
                                tab.TabPages<i>.BackColor = Color.FromArgb(157, 188, 227);
                                tab.TabPages<i>.ForeColor = Color.FromArgb(157, 188, 227);
    but when I click on link of the subreport (I use On-demand Subreport) second TabPage has default color. I try to change that while crystalReportViewer_DrillDownSubreport rising but TabPages is not created yet. Is there any solution for that?
    I use Crystal Reports Basic for Visual Studio 2008.
    Regards,
    Sebastian

    The way that I found that I could change the gray background that is around the report page was by using the crystalReportViewer_Layout method.  This method is called all the time, so you may want to use a flag that you set on the drilldown, and unset at the end of the Layout method. 
    Additionally, if you are trying to set the tab at the top of the page color, this is not possible as it is a limitation of the .NET object that is used.

  • Limiting Authorization of one of many UDF in marketing documents

    Hi
    I have created a Additional Authorization Creator for limiting the user from changing the values of  UDF Field and its working fine,  but the issue is i need to block only one UDF which i have created.
    For Eg.
    There are some 5 UDF (Header Level UDF) in a marketing document, namely
    UDF 1 - Transport Name
    UDF 2 - Transport Type
    UDF 3 - Vehicle Number
    UDF 4 - Driver Number
    UDF 5 - Driver Name
    I need to block only the UDF 5 from changing and the other UDF's can be changed.
    The Additional Authorization Creator which i created block's me from changing all the five UDF Values instead of only that UDF 5 .
    What could be reason?  Should i need to give any  Form Number like what i give  63771 which is for Form Settings?

    Hi
    you can open the document , open the user defined field
    go to tools---customization tools ---settings
    you will see the list of UDF you can just select which UDF you want to update
    you can mark 4 UDF as active and the 5-th UDF as not active but visible
    shachar

  • UDF fields from Active to not Active suddenly

    Hi everyone,
    a customer has submitted a problem which is quite strange. For one of the users, about once a month UDF fields in Item Master Data that are set to Visible and Active suddenly are not Active anymore. The user has no permission to change these settings. But there is something even more strange than that: at the same time, the master data for two items are displayed. For one item, the UDF are active, and for the second one they are not ! I have not yet created a message with the support because I don't have enough clues at what is taking place.
    Has someone already seen that ? Does anyone as a clue at what I should look at ?
    Thanks
    Gilles Plante

    Hi
    Since there is a duplication of data , I would suggest you to log support to SAP.
    Please check also if change log is activated on Item master which you can see from Menubar - Tools --change log
    If regarding UDF concern ,
    You could check --go to tools --customisation tools --setting  (or CtrlShiftB) 
    Check what it up there .
    I guess it is too hard for troubleshooting because we don't know what exactly trigger your problem.
    If you can get more details  like user 1 was doing ...,then...  we can probably look more in detail .
    So far i will first, I would suggest you to log support to SAP because your data is duplicated and also check how many data are duplicated also ..
    Thank you
    Bishal

  • Select CD-ROM Boot Type Error installing Windows 7 in Boot Camp walkthrough

    Much thanks to John Anderson at AndersonHatch.com for his excellent
    walkthrough for installing Windows 7 x64 in Boot Camp.
    Since his post there has been an update to ImgBurn which adds a few
    screens and dialogues whose proper navigation may not be obvious. He
    also left out a few choices that SHOULD be obvious but you know how
    THAT goes.
    Here then, cribbing liberally (plagiarizing, actually) from John's
    walkthrough, but including some "for idiots" footnotes (which are
    more for my own benefit than yours), is the most current (as of March,
    2010) walkthrough, which presumes you have a DVD of Win7 (if you
    downloaded an iso file from somewhere I'm sure the instructions are
    similar but I'm not exactly sure how. Perhaps someone can add a
    comment with this variation?)
    ON A WINDOWS MACHINE:
    1: Download and install ImgBurn.exe from the cloud.
    2: Insert your Windows 7 Install DVD, preferably into your
    ---DVD-ROM drive but if possible into an orifice of whomever is
    ---responsible for ordinary shmoes like you and me having to spend an
    ---entire day Googling this problem and then following a simple
    ---27-step procedure to do the most basic thing you can do on a computer
    ---which is to install an OS. This is before we can even use the computer
    ---to do anything useful which at this point is a dubious prospect. But I
    ---digress...
    3: Extract your boot image as follows:
    ---a. Using ImgBurn, go to "Build" mode. All fields should be blank at
    -----this point.
    ---b. Select the "Advanced" tab.
    ---c. Select the "Bootable Disc" tab
    ---d. In the dropdown under "Extract boot Image" select your DVD drive
    -----and then click on the the little disk icon to the right of the
    -----dropdown. A "Save As" window opens. Choose a location on your hard
    -----drive to save to and keep the filename "BootImage" and click "Save."
    -----This operation only takes a few seconds. ImgBurn presents a dialogue
    -----box upon success.
    ---e. When it asks if you would you like to use the boot image file in
    -----your current project say "Yes."
    4: Add your disk to your new disc image
    ---a. On the left side of the ImgBurn window in the "Source" panel
    -----click the little folder icon (second down from the plus sign)
    -----and browse to select your Windows 7 Install DVD (Just select
    -----the entire drive, no files or folders inside it). Hit OK.
    ---b. Select the "Options" tab on the right. Data Type: MODE1/2048.
    -----File System: ISO9660. UDF Revision 1.02.
    ---c. Only the "Recursive Subdirectories" checkbox should be checked.
    ---d. Select the "Advanced" tab again.
    ---e. Select the "Restrictions" tab
    ---f. Select “Level X – 219 Characters”
    ---g. Select "Standard" character set.
    ---h. Select only the following checkboxes:
    -----Allow More Than 8 Directory Levels
    -----Allow More Than 255 Characters In Path
    -----Allow Files Without Extensions
    -----Don't Add ';1: Version Number To Tiles
    ---i. Select the “Bootable Disc” tab again. Make sure “Make image
    -----bootable” is checked.
    ---j. Select "Emulation Type: None (Custom)" in dropdown.
    ---k. The "Boot Image" (which should already be filled in if you said
    -----"Yes" in 3e) should be a path to the file "BootImage.ima." If not,
    -----select the BootImage.ima file you created in Step 3.
    ---l. Load Segment: 07C0
    ---m. Sectors to Load: 8
    5: Build your new iso.
    ---a. Under "Extract Boot Image" select your DVD-ROM drive again.
    ---b. Enter a name for your new iso on the left under "Destination."
    -----Use the folder icon to the right of the dropdown, or enter a
    -----filename manually. You can call it anything. I called mine "New7."
    -----Make sure you are saving it to your hard drive, not back to the
    -----DVD-ROM drive.
    ---c. The "Source" field in the upper left should be blank but the
    -----directory is "D/:' I know this is confusing but trust me.
    ---d. Click the big folder pointing at a disc document icon at the
    -----bottom left to create your new image! This operation may take
    -----a few more minutes of your precious life. Oh well, there's plenty
    -----where those came from...
    ---e. Here is where ImgBurn gets way too helpful. Decline its offer to
    -----change the setting from "UDF" to ISO9660 + UDF." Just say "No."
    ---f. Laugh at the politically correct dialogue for "Confirm Volume
    -----Label" and click "Yes" or just wait 30 seconds for the
    -----programming gremlin to do it for you.
    ---g. Click "OK" for the useless (to non-propellerheads) "File,
    -----Content, and Data" info dialogue box (but thank you ImgBurn!)
    6: Burn your new iso.
    ---a. Go to burn mode, baby.
    ---b. Select the iso file you created in 5b.
    ---c. Remove your Windows 7 Install DVD and insert a blank DVD,
    -----preferably into your DVD-ROM drive but...
    ---d. Select your destination blank DVD and click the "Burn" button.
    If you have ADHD like me you can skip the "Verify" cycle (the disk is
    probably fine) and use it to install Windows 7 x64 on your Mac and
    return to your regularly scheduled life.
    Enjoy!

    You cannot stuff a UEFI into an EFI32 ROM, there isn't room; EFI32 is 2005-2008; UEFI 2.x was the first to support 64-bit.
    Apple does have an article on which Macs DON'T support 64-bit Windows (I think it actually just says my Mac Pro 2006 doesn't support Windows 7, which of course I am running! But had extra hoops.
    It is possible to install Windows 7 32-bit on one drive, then boot into that, and install Windows 7 64-bit ON A SEPARATE drive or partition (my mac has 4 internal drives). Else, you get into 'triple boot' and the pitfalls and problems.
    Technology changes and you can't always go back. Even having a 64-bit processor is only part of the equation.

Maybe you are looking for