EditText , ComboBox : How to reffer  edittext in UDO forms

I had Generated an UDO Form and on the form Load Event.
i had created a Combobox(RunTime) and Filled some values from the database;
now i want to act with the select event of that combobox.
<b>where can i write the code for the Events of this runtime generated ComboBox(i.e ComboBox.Selected Event) in UDO Forms.</b>
More over i am also facing the problem as
<b>how to refer the edittext of the UDO generated form to assign some values. when i tried</b>
eItemNo = (EditText)(form.Items.Item("13").Specific);
where 13 is the uid of the EditText
I am getting the error as
EXCEPTION: Form_MyForm.OnAfterFormLoad raised
Item - Invalid item  [66000-3]. Form Unique Id: 'MyForm_0',
Item Unique Id: '13'
can any one please help me

First , you have to get the event for the combo like this ...
            If pVal.Before_Action = True Then
                Select Case pVal.EventType
                    Case SAPbouiCOM.BoEventTypes.et_COMBO_SELECT ' on Combo Select
                         'your code here
                End Select
             End if
on the second case, you have to make sure of that the <b>form</b> UniqueID is correct
eItemNo = (EditText)(form.Items.Item("13").Specific);

Similar Messages

  • In sales stage combobox how to display the step of the process coach

    On the business talk page, in sales stage combobox how to display the step of the process coach and can be selected, not only sale stage?
    thank you.

    For example, in salesprocess list, there are SystemSaleProcess, RenewalSalesProcess and DefaultSalesProcess.
    And SystemSaleProcess includes grasp of the situation, the first proposal, estimate submitting, the second proposal 4 salesstages.
    And grasp of the situation, including needs confirmation, background of the case confirmed, current problem confirmation, schedule and estimate confirmations, current system configuration confirmation 5 steps.
    Now in deal page, the deal type selected SystemSaleProcess, the salesstage is grasp of the situation, the first proposal, estimate submitting, the second proposal 4 salesstage can be selected in the salesstage drop-down box.
    But if want to choose more than salesstage, would like to choose needs confirmation, background of the case confirmed, current problem confirmation, schedule and estimate confirmations, current system configuration confirmation 5 steps in the salesstage drop-down box, then how to do it?
    thank you.

  • How to use default UDO form from new menu

    Hello,
    I've created a UDO form which shows just the code field and the name field on a matrix.
    Is it possible to call this default form from a new created menu?
    Thank you

    Hello,
    If you don't want to keep using the default form - just launch it from somewhere else, simply "Activate" the appropriate menu item.
    Remember that in SAP Business One 2004 every menu item has its own UniqueID. You might want to check-out the sample "AddingMenuItems" from the SDK-CD installation...;
    it has some code (commented out) that will save the menu in a XML file...
    Maybe you have to check the menu string for the appropriate default form as well, if you want to make the code generic.
    Regards,
    Frank

  • Copy data from a UDO form to Goods Receipt PO using UI API

    Hi, all
    I tried to copy data from a UDO form to Goods Receipt PO using UI API through following codes.
    It works fine while copying to a Item-type Goods Receipt PO.
    But when the doctype is set to service, I got errors.
    I use for-loop to copy two items, Description and LineTotal, into the matrix of Goods Receipt PO form, but both failed.
    any suggestion?
    Edited by: Chao-Yi Wu on Aug 25, 2009 5:50 AM

    Hi  Chao-Yi Wu ,
    SBO_Application.ActivateMenuItem("2306")
    Dim oFormGR As SAPbouiCOM.Form = SBO_Application.Forms.ActiveForm
    Dim omtxIQC, omtxGR As SAPbouiCOM.Matrix
    Dim oedIQC, oedGR, oed As SAPbouiCOM.EditText
    Dim ocbIQC, ocbGR As SAPbouiCOM.ComboBox
    oFormGR.Mode = SAPbouiCOM.BoFormMode.fm_ADD_MODE
    oedIQC = oFormIQC.Items.Item("13").Specific
    oedGR = oFormGR.Items.Item("4").Specific
    oedGR.Value = oedIQC.Value
    oedIQC = oFormIQC.Items.Item("21").Specific
    oedGR = oFormGR.Items.Item("24").Specific
    oedGR.Value = oedIQC.Value
    oedIQC = oFormIQC.Items.Item("edComments").Specific
    oedGR = oFormGR.Items.Item("16").Specific
    oed = oFormIQC.Items.Item("3").Specific
    oedGR.Value = oedIQC.Value + ", Goods Recript PO:" + oed.Value
    ocbIQC = oFormIQC.Items.Item("cbDocType").Specific
    ocbGR = oFormGR.Items.Item("3").Specific
    If ocbIQC.Selected.Value = "I" Then
         ocbGR.Select(0, SAPbouiCOM.BoSearchKey.psk_Index)
    Else
         ocbGR.Select(1, SAPbouiCOM.BoSearchKey.psk_Index)
    End If
    omtxIQC = oFormIQC.Items.Item("mtx_0").Specific
    For i As Integer = 1 To omtxIQC.RowCount
    omtxGR = oFormGR.Items.Item("38").Specific
           If ocbIQC.Selected.Value = "I" Then
                oedIQC = omtxIQC.Columns.Item("c_ItemCode").Cells.Item(i).Specific
                oedGR = omtxGR.Columns.Item("1").Cells.Item(i).Specific
                oedGR.String = oedIQC.String
                oedIQC = omtxIQC.Columns.Item("c_AQty").Cells.Item(i).Specific
                oedGR = omtxGR.Columns.Item("11").Cells.Item(i).Specific
                oedGR.String = oedIQC.String
                oedIQC = omtxIQC.Columns.Item("col_19").Cells.Item(i).Specific
                oedGR = omtxGR.Columns.Item("14").Cells.Item(i).Specific
                oedGR.String = oedIQC.String
       Else  
    omtxGR = oFormGR.Items.Item("39").Specific
               oedIQC = omtxIQC.Columns.Item("c_Descrp").Cells.Item(i).Specific
               oedGR = omtxGR.Columns.Item("1").Cells.Item(i).Specific
               oedGR.String = oedIQC.String
               oedIQC = omtxIQC.Columns.Item("col_16").Cells.Item(i).Specific
               oedGR = omtxGR.Columns.Item("12").Cells.Item(i).Specific
               oedGR.String = oedIQC.String
      End If
                Next
    for items the matrix is 38 and for service the matrix is 39
    Rgds
    Micheal

  • Udo form

    Hi,
    i created a form by using UDO Form generator.
    in that for add line i am writing the code like in item event,
           Try
                If (FormUID = "JBWISSUES" And pVal.Before_Action = True) Then
                    ' Click on Add Row
                    If (pVal.ItemUID = "add") And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED) Then
                        Dim f As SAPbouiCOM.Form
                        Dim omtx_0rix As SAPbouiCOM.Matrix
                        f = SBO_Application.Forms.Item(FormUID)
                        omtx_0rix = f.Items.Item("mtx_0").Specific
                        f.DataSources.DBDataSources.Item(1).Clear()
                        omtx_0rix.AddRow(1)
                        omtx_0rix.Clear()
                    End If
                 end if
    But, when i run the application, when i click addline button , its not showing any result. when i check by putting break point, that form itself not finding..
    plz help me in that. how to enter the values in marix? and i want to create a combobox on form. but with udo form generator all fields are comming as edit boxes. but i want in that one fields as combo. how can i set like a combo?
    plz help me asap

    hi babu,
    Try this code for adding row in the matrix:
    Try
    If (FormUID = "JBWISSUES" And pVal.Before_Action = True) Then
    If (pVal.ItemUID = "ADD") And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED) Then
    Dim f As SAPbouiCOM.Form
    Dim omtx_0rix As SAPbouiCOM.Matrix
    f = SBO_Application.Forms.ActiveForm
    omtx_0rix = f.Items.Item("mtx_0").Specific
    omtx_0rix.AddRow()
    End If
    End If
    For your second requirement of including a combo in the UDO form:
    While declaring field in the UDT, set some valid values and then register the UDO.
    When you generate the form using the UDO Form Generator, the combo box comes automatically.
    If the values in the combo are dynamic, you can open the srf / xml form in screen painter, replace the edit box with a combo box. and populate it thru the code.
    HTH,
    Lakshman.
    Message was edited by:
            Lakshman

  • View Crystal Report Layout for my UDO Form

    Hi all,
    I try to view a report created for my UDO form. I set all settings in Administration -> Setup -> General -> Report and Layout Manager. Now I wonder what should be assigned to  eventInfo.LayoutKey. I tried assigned report's DocCode from RDOC, DocEntry of my UDO object or UDO Code but nothing works. Always get an error: Incorrect format of argument or something like that - I didn't get an error in English so I tried to translate it.
    How to show a report layout for my UDO form?
    Regards
    Szymon Lipnicki

    Hi and thanks for Your reply.
    Help file contains example how to open report layout prepare in Crystla Reports designer for UDO form.
    //Add Layout Key Event Handler
    SBO_Application.LayoutKeyEvent += new SAPbouiCOM._IApplicationEvents_LayoutKeyEventEventHandler(SBO_Application_LayoutKeyEvent);
    void SBO_Application_LayoutKeyEvent(ref SAPbouiCOM.LayoutKeyInfo eventInfo, out bool BubbleEvent)
        BubbleEvent = true;
        if (eventInfo.ReportTemplate == "A001" && eventInfo.ReportCode == "A001001")
            eventInfo.LayoutKey = 1; //Set the key of the layout
    I am using SAP 8.81.
    Regards
    Szymon

  • Error when open UDO form generator

    when i try to open udo form gen .the following error arises.
    ERROR The Type initializer for 'B1 Wizard.Globals' threw an exception
    Pls tell me how to resolve it

    Have you searched the forum?
    You may check this first: ERROR: The type initializer for B1Wizard.Globalsu2019 threw an exception.
    Thanks,
    Gordon

  • Problem Connecting B1DE UDO Form Generator in SAP 8.8

    Hello All,
    I have installed the B1DE Tool for SAP 8.8 Patch - 17 machine but while running the UDO Form Generator
    when i am ginving the User Name & Password of the selected company then system throws an error
    "ERROR - Connection to Company Failed ; Resource Error "
    and i am not able to use the UDO Form Generator .
    Please suggest how to resolve this problem,
    Thanks
    Amit

    Hi AmitSharma_061985
    you can download B1DE UDO new version here http://www.sdn.sap.com/irj/sdn/downloads?rid=/webcontent/uuid/a175fb62-0c01-0010-a8b5-fa58a13b1cf7 [original link is broken]
    1.change name server (server database)
    2.user name and password must have lincence.
    Regards
    H

  • Udo form matrix binding

    Hi,
    I created one UDO form.
    in that i am trying to fill the matrix with recordset.
    becoz i am selecting the value from combobox and i run the query with this value.
    so this resultant record set i want to fill in matrix rows.
    oForm = SBO_Application.Forms.Item("JBWISSUES_")
                oItem = oForm.Items.Item("mtx_0")
                oMatrix = oItem.Specific
                oColumns = oMatrix.Columns
                'frm = app.Forms.ActiveForm
                'oMat = frm.Items.Item("gd_act").Specific
                'oMatrix.Clear()
                oComboBox = oForm.Items.Item("27").Specific
                ds = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                ds.DoQuery("select a.code as Code,b.Itemname as Desc1,a.quantity as Quantity from itt1 a,oitm b where a.code=b.Itemcode and a.code='" & oComboBox.Selected.Value & "'")
                ds.MoveFirst()
                'oColumn = oColumns.Item("col_0")
                For i = 0 To ds.RecordCount - 1
                 oColumn.ValidValues.Add(ds.Fields.Item("Code").Value, ds.Fields.Item("Desc1").Value)
                    ds.MoveNext()
                Next
                oMatrix.AddRow()
    here i am getting error like Object reference not set to instance error at oColumn.validvalues....... plz hel p me in that.
    Regards,
    Ravi

    That's because you have commented out the line where you set the oColumn object:
    'oColumn = oColumns.Item("col_0")
    Regards,
    Frank

  • New Instance of UDO-Form

    Hi experts,
    how can i create a second or instances of my UDO-FORM?
    Thanx
    Kind Regards
    Sebastian

    Hi,
    You can refer these below threads
    Multiple instances of a User defined form
    how to open a form multiple times
    how to open multiple instances of same form thru menu items
    Open Multiple SDK Forms
    Creating Multiple Forms
    Regards,
    Noor Hussain

  • Printing Crystal Reports from UDO form

    Dear Experts,
    I want to open a Crystal report from an addon. I've already found [the following thread|http://forums.sdn.sap.com/thread.jspa?threadID=2039424&start=0&tstart=0] and the [mentioned blog post|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/26720], and applied the solutions given there, but setting the parameters still does not work.
    The report is opened, but the report gives me the message "Input string was not in a correct format", and asks for the parameter. When I enter the parameter, the report shows correctly.
    My form is an UDO form loaded from XML, ObjectType set to my UDO. According to the latest answers, this ObjectType setting is the problem.
    My code is the following:
    Setting the form (the report is already imported into SAP, its DocCode is RCRI0002):
    AddOn.Application.LayoutKeyEvent += new SAPbouiCOM._IApplicationEvents_LayoutKeyEventEventHandler(SetPrinter);
    SAPbobsCOM.ReportTypesService rptTypeService = (SAPbobsCOM.ReportTypesService)
         AddOn.Company.GetCompanyService().GetBusinessService(SAPbobsCOM.ServiceTypes.ReportTypesService);
    SAPbobsCOM.ReportTypeParams rptParams = (SAPbobsCOM.ReportTypeParams)
         rptTypeService.GetDataInterface(SAPbobsCOM.ReportTypesServiceDataInterfaces.rtsReportTypeParams);
    rptParams.TypeCode = "RCRI";
    SAPbobsCOM.ReportType updateType = rptTypeService.GetReportType(rptParams);
    updateType.DefaultReportLayout = "RCRI0002";
    rptTypeService.UpdateReportType(updateType);
    SboForm.ReportType = "RCRI";
    the eventlistener function:
    public void SetPrinter(ref SAPbouiCOM.LayoutKeyInfo eventInfo, out bool BubbleEvent)
         BubbleEvent = true;
         if (eventInfo.ReportTemplate == "RCRI" && eventInfo.ReportCode == "RCRI0002")
              eventInfo.LayoutKey = "21"; //Set the key of the layout - hardcoded for testing
    I work on version 8.81 PL08
    Has anyone found a solution? Is there a solution on higher patch?
    Thanks
    Andrea

    OK, so we returned to this problem, and now I managed to make it work on 8.82 PL11. And now I can't remember anymore how I tried it back then. Maybe I did not use the DocKey@ parameter in the Crystal report.
    Anyhow, it looks like it works now.

  • Help in adding UDO Form to Project

    Hi all,
    I need some help with calling a UDO form in VB.Net
    I have created a new project in VB.NET
    I have created a UDo through Object Registration wizead.
    I also create a form through UDO form generator.
    Since I am new to SAp I want to know how do i call this form into my project.
    I have already created a menu event and on its click I write the folwing code
    Dim SBO_Application As SAPbouiCOM.Application
                Dim oXmlDoc As Xml.XmlDocument
                oXmlDoc = New Xml.XmlDocument
                '// load the content of the XML File
                oXmlDoc.Load("C:\XXX_NEW\poc\form\" + "XXX_POC_MASTERForm.xml")
                '// load the form to the SBO application in one batch
                SBO_Application.LoadBatchActions("oXmlDoc.XML")
    However the above line throws error
    Can someone please tell me what shoud I be doing to make it work
    thanks Dibakar

    Hi Dibakar,
    You should change the last line of your code from
    SBO_Application.LoadBatchActions("oXmlDoc.XML")
    to
    SBO_Application.LoadBatchActions(oXmlDoc.XML)
    There should not be quotation marks around the variable with the XML values in it as the SDK then interprets it as a string.
    Hope it helps,
    Adele

  • Stopping UDO form from committing to database

    Hi All,
    This has actually been bothering me for quite some time. I would like to know how others are handling this problem.
    When we create a UDO form, SBO will handle the Add/Update/Delete function automatically.
    Normally before committing to database, we need to do a validation on the form, making sure no dirty record gets into our table.
    But if the user turn off the addon when the UDO form is already opened, they can commit the record and bypass our validation.
    I can think of a few ways :
    1. Put the Validation in SP Notification. But this will be troublesome if a lot of fields to be validated and more if the validation gets complicated.
    2. Set the Addon as mandatory. This has also a drawback, since when we set as mandatory, every user must run this addon regardless whether they are using it or not.
    Can anybody share how you do this ?
    Regards
    Edy

    Hi Edy,
    As you said " if the user turn off the addon when the UDO form is already opened, they can commit the record and bypass our validation":
    As far as I know then the things are not in our hands in that case. This can be bypassed only using SP Transaction Notification.
    Secondly yes, Setting the addon as mandatory has a drawback. Every user must run this addon whether he/she uses it or not.
    So if I were you, I will go with the SP Transaction Notification.
    Hope it helps.
    Thanks & Regards
    Ankit Chauhan

  • OIM11gR2 - How to migrate an Application Instance Form

    Hello,
    I'm trying to migrate an Application Instance Form from my Dev env to my QA env.
    My target system is SAP
    I performed the following steps in Dev:
    1. Installed and configured the SAP Connector (no problem here)
    2. Created a sandbox
    3. Created an Application Instance
    4. Created the Application Instance Form
    5. Ran a target reconciliation to confirm everything is working properly
    6. Exported the sandbox
    7. Published the sandbox
    8. Via Deployment Manager I exported all objects related to SAP (Resource object, Process Forms, Lookups etc.)
    In QA I did:
    9. Installed and configured the SAP Connector (no problem here)
    10. Via Deployment Manager I imported the objects related to SAP
    11. Imported the sandbox
    Problem:
    To my surprise, the Application Instance does not have a Form in the QA env.
    I had to create it manually by performing the following:
    12. Create a sandbox
    13. Open the Application Instance definition
    14. Click on create (to create a form)
    15. Entered the same name I used in my Dev environment
    16. Received an error message saying that the form already exists
    17. Entered a different name for the Form
    18. Saved
    19. Exported the sandbox (to import in Prd)
    20. Published the sandbox
    21. Ran a target reconciliation to confirm everything is working properly
    I tried to reproduce the problem with another (test) destination environment because I don't want to have the same problem when migrating to Prd.
    I repeated the steps 9,10,11 except that I imported the sandbox exported from QA (step 19) instead.
    The same problem: Application Instance definition has no Form attached to it in my test destination environment.
    If I try to create the form with the same name, it gives an error message saying it is already there.
    Is my procedure wrong?
    Is there an official procedure explaining how to migrate only Application Instance Form from one env to another?
    My env:
    OS: Windows 2008 R2 SP1
    OIM: 11gR2 BP7
    SAP connector: 9.1.2.2.0
    Thanks,
    Adr

    This is a bug: Bug:16027176
    Check the [Article ID 1515225.1] which proposes a workaround that might be useful in your case (it was not in mine).
    In short the workaround is:
    The following order should be observed to export :
    - IT Resource & Application instance in one xml
    - Request DataSet in another xml
    - SysAdmin Sandbox (the one defined while creating the Application Instance and the Form)
    - Identity URL Sandbox (defined while customizing the fields on the Form, in the Catalogue page)
    Adr

  • HT1438 dont i have to submit a slip before giving back in my ipod for fixing? what do i do? how do i fill in the form?

    how do i fill in the form to give back my ipod and get a new one? whats the website i go to and what do i type in? can i change the color of my ipod from black to white?

    Follow the instructions here:
    Apple - Support - iPod - Service FAQ
    I do not think you can change the color but you can ask.

Maybe you are looking for

  • Performance management

    HI Gurus, We are working on Performance management we are facing a p[roblem in OPR over all performance rating Can any one help us where can we see the overall performance rating in R/3 like in which table OPR strores Regards Renuka

  • SCA BB Console report - Subscriber Average Consumption

    Hi All I'm just studying how to implement the multiple thresholds of subscriber quota on my network. I'm generating the report on subscriber average consumption as below to determine what is the right value of quota to be set for each of my subscribe

  • PFCG Role Upload Issue

    Hi all, we are performing an upgrade from SAP 46C to ECC 6.0 and I download one Role from PFCG (46C). I use a sandbox system ECC 6.0 for testing PFCG Upload but I obtain the popup message: Incorrect release; see long text Incorrect release; see long

  • Call methods from view controller to another (enhanced) view controller!

    Dear All, Is it possible to use/call methods from view controller to another (enhanced) view controller? Iu2019ve created a view using enhancement in standard WD component. I would like to call one method from standard view controller in the enhanced

  • How to create delta data

    Hello Gurus,       I want to test a delta datasource in sap bw, how can I create delta data for that testing? Many thanks.