User Defined Fields Form

Hi Philipp,
This is in reference to ur post Dated Jan13,2005. "Opening User Defined Fields Form via API".
Is it possible for u to give a code snippet. what i'm unable to get is
- Check if i can get a handle of the UDF-Form in the Mainform Activate-Event
and
-disable the close button
Thanx in anticipation.
Manu.

Hi Manu,
Here is a code snipet where looks for the related UDF form. The FormTypeNum´s value is the same as pVal.FormType property.
Dim oUDFForm As SAPbouiCOM.Form
Try
oUDFForm = con.Forms.GetForm("-" + FormTypeNum.ToString.Trim, con.Forms.Item(FormUID).TypeCount)
Catch ex As Exception
   con.ActivateMenuItem("6913")
   oUDFForm = con.Forms.GetForm("-" + FormTypeNum.ToString.Trim, con.Forms.Item(FormUID).TypeCount)
End Try
The other issue is solved in your other post.
Regards,
Ibai Peñ

Similar Messages

  • 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

  • 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.

  • Update User Defined Field using DBDataSource

    Hi All,
    I'm trying to update the user defined field using the DBDataSource object.  However an error occurred - "Item is not a User-Defined Field".
    The code used is as follows:
    Dim oDS as SAPbouiCOM.DBDataSource
    Dim oForm as SAPbouiCOM.Form
    Set oForm = SBO_Application.Forms.GetForm("139", 1)
    Set oDS = oForm.DataSources.DBDataSources.Item("ORDR")
    oDS.SetValue("U_Field1",oDS.Offset,"abc")
    Please help.

    If you haven´t put the field directly in the standard form the user defined fields are in a different form. This form has the same type but with "-" before it.
    So so should use this code to get the user defined fields form:
    Set oForm = SBO_Application.Forms.GetForm("-139", 1)
    Maybe this can be the cause

  • 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?

  • 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 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

  • 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

  • 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

  • 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

  • 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

  • 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.

  • Retreve current form value in user define field

    Hi,
    I got a questions, please help.
    I want to retrieve values in current form, like the quantity and discount in Sales order, into a user define field with formatted search, is it possible?
    Many Thanks!
    Paddy

    This is the Syntax of FOrmatted Search Query. This syntax will work only with SBO.
    $[$38.11.0]
    38 Represents the Matrix(Table) in a Marketing Document
    11 Represents the Quantity Field in the Matrix
    0 Represents the Number Format.
    Place your Cursor on the Matrix and Press CTL + SHFT + D, you'll find the Column information in the Left side of the Status Bar

  • User-defined field assignment  in Contact object

    Good Day
    Experts:
    I guess this might apply to all SAP Business Objects.  Specifically, I am working with the oContact object.  A User-defined field has been added to the OCLG table.  I need to populate the field with the current logged on User.  I see that I can do the following with the intellisense but I am not sure where to go from here.
    vContact.UserFields.Fields.Item
    I tried but I get a message "Expression is a value and therefor cannot be the target of an assigment:
    vContact.UserFields.Fields.Item("U_Creator") = (GetUserCodeSess(g_B1Connection.Company.UserName))
    It feels like I should be able to set the User-defined variable through the object but I don't think I am doing it correctly.
    Any helpful hints?
    Thanks,
    Ed

    Hi Robert,
    I think the only supported way is to give full rights to the users and block changing field in the Item Master Data form through your addon.
    A non supported way is to use a query to update the item master fields
    Regards
    Ad

Maybe you are looking for

  • Full Duplex Lost with Wave Files on SB Live! Value (W

    <SPAN>Following a clean install upgrade from WinME to WinXP SP2 on a Dell Dimension 400 with an OEM-installed SB Li've! Value (WDM) PCI card onboard, full duplex wave audio (recording one wave file while playing back one or more other wave files) ups

  • Frequent heartbeat failure alerts on the server

    Hi Experts, we are getting the heartbeat failure alert  for xxxxxxx server. We have reinstalled the SCOM agent again on the server but still the alert is generating frequently Server is hosted on Cloud and we have verified the server resource utiliza

  • Wireless Sync without an enterprise server?

    Hello! I'm not sure if this is even possible and it's probably a really dumb question....but here goes...I'm familiar the ability to wirelessly sync email, contacts, calendar, etc., in Outlook via a Microsoft Exchange Server.   I'm trying to help a f

  • Set business closure for a users

    i created a business closure in crm 2015 on a particular date,business closure is associating successfully with facility and equipment's but not associating with users. So how can be set business closure for a users ????

  • SAP Instances on Solution Manager

    Hi Gurus I would like to find out on where on the Solution Manager do you maintain SAP Instances and how this is done? Regards Khuselwa Mabandla