Accessing user defined fields when multiple forms as open SBO 2005

Hi
I have a program which updates a user defined field on the sales order screen. This works fine but fails to work correctly when they have more than one sales order screen open.
It updates the first sales order screen and not the active one.
Is there any easy way of accessing the correct user defined form which is attached to the active screen please ?
Code below -
            For lc = 0 To B1Connections.theAppl.Forms.Count - 1
                If B1Connections.theAppl.Forms.Item(lc).TypeEx = "-139" Then
                    form2 = B1Connections.theAppl.Forms.GetFormByTypeAndCount("-139", 1)
                    form2.Items.Item("U_bpremarks").Specific.string = orecset.Fields.Item(0).Value
                End If
            Next
Many thanks
Regards Andy

Hi Paul,
you got the point - as long as you have always the udf screens open the count is the same !
no need to say sorry
iam relaxed - i have a EURO 08 livestream open
lg David

Similar Messages

  • OIM user defined field in process form

    I am trying to create a user defined field (UDF) in a process form. The UDF would be a drop down list of values for the status field.
    I've tried to do this by going to the Administration list, and double clicking on User Defined Field Definition. Then selecting the Form Designer. I can add a column but I cannot add values to the drop down. I know I'm probably doing this wrong.
    How do I add a UDF drop down and its values to a process form?
    Thanks!

    1. Create lookup table for the drop down contents.
    2.In the process form--->go to the properties tab-->select the User defined filed name-->add property--->property Name drop down list -->select lookup code-->in the property value-->provide the lookup table name-->save
    Edited by: user13513300 on Feb 24, 2011 1:45 AM

  • User Defined Fields on System Form

    Dear All,
                   I want to know that how much User Defined Fields can be added on a system form. My problem is that I am developing an add-on for the Item Master Data. And I have used a lot of User Defined Fields on Item Master Data Forms which contains table 'OITM'. Now if I am trying to add any extra User Defined fields in OITM Table, I am not able to do so. I am getting an error as  'Internal Error Occurred'. What can i do regarding this problem.?  Help me. It is something very important.
    Thanks and Regards

    Hi,
    There is theoretically no limit on the number of UDF for a table. there is however a maximum number of characters for a record in SQL Sever.
    As far as I know this is 4000 in SQL Server 2005 and older and 8000 in SQL Server 2008.
    pls check Microsoft for the exact numbers
    Regards
    Ad

  • User defined field values

    Hi,
    i Created an add-on on VB.net code.I have an user defined field.when i try to COPY TO Return or A/R Invoice the user defined field value is not pushing into the field.
    could you help me .
    Thanks
    Ravi

    Hi Ravi
    if it is a document header  level
    oForm = SBO_Application.Forms.ActiveForm
                oItem = oForm.Items.Item("uf_id")
                oEdit = oItem.Specific
                oEdit.Value = "value"
           OR
    it is a document row level
    oForm = SBO_Application.Forms.ActiveForm
            oItem = oForm.Items.Item("38")
            POMat = oItem.Specific
    POMat.Columns.Item("UF_id").Cells.Item(i).Specific.value ="value"
    try this it will workout
    vijju

  • User-Defined Fields - Management

    Hi Friends,
                 I need to update the User Defined Fields. In particular company(database),   the User-Defined Fields - Management window does not open otherwise SAP will be Closed.Friend, can u tell me why it has taken too much time.
    Version: SAP Business One 8.8(8.80.233)   SP:00  PL:15
    Regards,
    Silambu

    Hi Silambu,
    This database probably has inconsistent issue already. You need try restart SQL server and perform DBCC first.
    Thanks,
    Gordon

  • Multi Value User Defined field on OIM user form

    Hi Everyone,
    I have a requirement where i need to assign multiple resources to user as per access policy. These resources should be assign by virtue of some role (custom attribute as of now). The specific requirement is that one user may have multiple roles (and hence resources) and all these values should capture in any user defined field. As the requirement contains multiple Roles so we have to create multi-value user defined field for User form to capture all these role values under single attribute. Does OIM provides any such multi-value field OOTB (lookup, drop down--any customize way we can make them multivalue)?

    He's right. Multi Valued attributes on the User Profile are not available in OIM. If you want to do this, and you have a finite number of possible roles, you can create UDFs for each and map a checkbox or something to it if the user has that value. Then base your acccess policies off those.
    -Kevin

  • Not found Users Form in User Defined Field Definition!!

    I want to add new filed into Users form, As my subject, but when I query "Users" in User Defined Field Definition, no result return, just exist Orgnizations, Roles, Resource Objects,Structure Utility.
    FYI, OIM Version: oim 11g
    Thanks,
    Edited by: 793495 on 2010-10-11 上午2:53

    this you can find in Web console
    configuration>>user configuration>>action>>attributes
    I am able to add attribute but not able to make field as mandatory,while creating attribute we are not getting option like that you want this field mandatory or not but while modifying the attribute we are getting option like required field radio button if i select that i am getting error "you cant change an attribute to required unless all the user have value for this field"

  • User defined fields in Resource object; Resource object form

    Hi,
    Can anyone tell me what is the purpose of having user defined fields for resource object and resource object form and how can we use those fields while requesting for target resource.
    Regards,
    Alabhya Goel

    Thanks for your reply!!!!!!!!!!
    I know about resource object form i am just asking what is the use of user define field in resource object form. How can we use it. Like when we create any user defined field in under User form those fields display on create user form but when we create any user defined field in resource object from those are not displayed in form.
    If anyone has used or worked on user defined fields in Resource Object or resource object form; please give me an overview over the same.
    Regards
    Alabhya Goel

  • Opening User defined Fields Form via API

    Hi
    Is there a posiibility to open those user defined field - forms via API. If yes is it possible to check if it is already open?
    TIA
    Phile

    Hi,
    In your eventhandler, you can use this:
    Set oSboForm = Sbo_application.Forms.GetFormByTypeAndCount(-pval.FormType, pval.FormTypeCount)
    form and udf-form are linked through a minus sign.
    I do not know of a nice way to check if they are anebled. What I'm currently doing is running the above line of code contained in an error handler. The error handler does a sendkeys of control shift u (which enables the udf-form) and displays a message. Problem is after control shift u, screen is not yet updated so your code cannot continue immediatelly. Development knows of this problem, but I never received a promise when this will be fixed.
    Hope this helps,
    Jacques

  • SBO crashes on changing user defined field setting for a form

    Hi,
    when i try to change the user defined field settings(Tools->User-Defined Fields->Settings) for a form, say Sales order form, on clicking on OK button SBO crashes displaying runtime error messagebox.
    This happens only when my addon is running.
    Anyone encounter this behavior?
    Thanks,
    Satish.

    Hi Barend,
    I have put in the filters.The form 38(user-defined fields settings form) is not included in the filters.So it should not get any events. I get the following error
    Microsoft Visual C++ Runtime Library
    Runtime Error!
    Program ..m Files\SAP Manage\SAP Business One\SAP Business One.exe
    This application has requested the runtime to terminate it in an unusual way.Please contact the application's support team for more information.
    Thanks,
    Satish.

  • Prevent closure of user defined field forms

    Hi.
    I need to prevent the closure of a user defined fields form while the parent form is opened. I can trap the et_FORM_UNLOAD before event but seems is too late to prevent the closure. Have anyone some idea about it?
    Ciao. Nicola

    Hi Martella,
    You need to do two things to achieve this.
    1. Make sure that when parent form is opened, the user defined field form is always opened at that same time.
    you can do that as follows
    If pVal.FormTypeEx = [Parent form type] And pVal.EventType = et_FORM_ACTIVATE Then
       Set oForm = SBO_Application.Forms.GetForm(-Val(pVal.FormTypeEx), pVal.FormTypeCount)
       If oForm Is Nothing Then
            If applic.Menus.Item("6913").Enabled = True And applic.Menus.Item("6913").Checked = False Then
               applic.Menus.Item("6913").Activate
            End If
       End If
    End If
    2. Disable the close button(X) on the user defined field form as follows:
    If pVal.FormTypeEx = [User defined form type] And pVal.EventType = et_FORM_LOAD And pVal.Before_Action = False Then
         Set oForm = SBO_Application.Forms.GetForm(pVal.FormTypeEx, pVal.FormTypeCount)
         Set oItem = oForm.Items.Item("4") ' Item 4 is close button
          oItem.Enabled = False
    End if
    Hope this helps.
    Satish.

  • Want to add a prepopulated User defined field in create user form

    Hi,
    I have an entity adapter which will perform a pre-insert check on the user group of the user logged in to the oim.
    If the logged in user belongs to a group say "IT ADMIN", another validation check will be imposed on the create user action performed by him.
    If not from "IT ADMIN" group then create user action will be handled normally.
    Now the catch is, how would I determine the group name of the user logged in from the adapter code I have written?
    I decided to keep an User defined field "Created by" in the create user form which will be non-editable and auto-prepopulated with the group name of the logged in user. This way I will be able to map the variable field from the User definition drop down list while mapping the adapter variables.
    May you please guide me how I can achieve this?
    Would highly appreciate suggestion/inputs.

    Thanks for all your replies!
    However I am still in dark.
    I tried to retrieve the groupname using tcUSerOperationsIntf. But iit tries to retrieve the group name of the user getting created.
    Please note, the group name I want is not of the user yet to get created, but that of the user creating it i.e., the logged in user.
    My requirement is to have this created_by field in the create user form already prepopulated with the group name of the logged in user.
    So that I can put a check based on this field value in the netity adapter.
    If the group is IT ADMIN then proceed with the validation.
    Else no validation required.
    In short, I want to know,how can I auto-prepopulate a UDF in Create USer form?

  • Error -5002 when adding linked user defined field using DI API

    Hello,
    When I try to add a linked user defined field using DI API I get the error number -5002 with description:
    "The field 'Related Table' should consist of 8 alphanumeric characters with no valid or default values"
    I Get the error when I use the Add method.
    What is the solution for this problem? I use SBO 2005 A SP1 Patch 18
    The code I use is (.NET C# 2.0):
    SAPbobsCOM.IUserFieldsMD uf = (SAPbobsCOM.IUserFieldsMD)company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields);
    uf.Name = "S_BUCO";
    uf.TableName = "OPOR";
    uf.Type = SAPbobsCOM.BoFieldTypes.db_Memo;
    uf.SubType = SAPbobsCOM.BoFldSubTypes.st_Link;
    uf.LinkedTable = "S_BU";
    uf.Description = "Description";
    uf.Add()
    Regards,
    Jeffrey

    Hi Jeffrey,
    Your code above does not match the settings you are using in the UI. In particular, the type and subtype you are setting in code are not correct.
    To create the UDF via code, set the field types as follows:
    SAPbobsCOM.IUserFieldsMD uf = (SAPbobsCOM.IUserFieldsMD)company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserFields);
    uf.Name = "S_BUCO";
    uf.TableName = "OPOR";
    uf.Type = SAPbobsCOM.BoFieldTypes.db_Alpha;
    uf.EditSize = 8;
    uf.LinkedTable = "S_BU";
    uf.Description = "Description";
    uf.Add()
    There's no need to set the SubType property as you require a regular alphanumeric field.
    Kind Regards,
    Owen

  • User-Defined Fields and Form Settings

    I have a User-Defined Field in the table "OCLG" and I'd like to show it in the "Activities Overview for Business Partner - xxx" window.
    Is possibile to do that by the "Form Settings" window? Here I don't find U-D Fields. Is there a way to show them?
    Or is there an other solution?

    Hi,
    This report is hardcoded. You need to create your own report for it. Better by Crystal Report.
    Thanks,
    Gordon

  • Problem Occurs when CFL is added with User defined field

    form-672-BOM
    item-3-datagrid
    U_EmpNo - user defined field column
    if i will give following codes under form load event will CFL bound with U_EmpNo
    or else plz suggest me with write codes
    oForm = SBO_Application.Forms.Item("672")
                oItem = oForm.Items.Item("3")
                oClmn = oItem.Specific
                oClmns = oClmn.Item("U_EmpNo")
                oClmns.DataSources.UserDataSources.Add("U_EmpNo", SAPbouiCOM.BoDataType.dt_SHORT_TEXT)
                MessageBox.Show("Did")
                AddChooseFromList()
                oClmns.DataBind.SetBound(True, "", "U_EmpNo")
                oClmns.ChooseFromListUID = "CFL1"
                oClmns.ChooseFromListAlias = "CardCode"

    hi

Maybe you are looking for

  • Problem in opening the INTEGRATION REPOSITORY

    Hi, in my system java web starter is installed,  but when i enterd sxmb_ifr transaction in xi client , web page ( which contains intgration repository, integration directory , Run time work bench, and system landscape directory ) is getting opened. b

  • Use macbook as a monitor???

    Is there a way to us my macbook as a monitor?? IE play my playstation 3 on it??

  • Moving Multiple Audio Transitions

    This is a big one for me. I'm trying to apply and modify audio transitions to multiple tracks at the same time. First off it appears that I cannot move more than one transition at a time.  Is this true? If it is it will slow me down a ton. I'm used t

  • Oraclemaps.js - Where is it?

    Hello everyone, I have downloaded and installed the latest version of MapViewer and I would like to use OracleMaps and its API to access MapViewer and display maps on web pages. From what I've read, I'll need to include 'oraclemaps.js' in my page, th

  • Intel graphics SNA acceleration - QT apps and firefox problem

    Hi guys. I have a laptop with an integrated Intel HD4000 graphic card. Since the gnome 3.8 update, I had problem with GDM, which sometimes got stuck on login, refusing to load gnome-shell. So I since use the SNA acceleration method instead of UXA, wh