Pass a value in textbox from choose from list.

Hi SAP experts,
How to pass a value from a choosefrom list into textbox.?
i'd created a form then in my one textbox, i inserted a choosefrom list. im trying to pass a CardCode but im getting a Bad Value ERROR.
whis is my code in Creating a textbox with choosefrom list
oItem = oForm.Items.Add("txtCFrom", SAPbouiCOM.BoFormItemTypes.it_EDIT)
            oItem.Left = 40
            oItem.Width = 80
            oItem.Top = 10
            oItem.Height = 14
            oItem.Enabled = True
            'Set txtCFrom
            oForm = SBO_Application.Forms.GetForm("60004", 0)
            oForm.DataSources.DBDataSources.Add("OCRD")
            Dim oCFLs As SAPbouiCOM.ChooseFromListCollection
            oCFLs = oForm.ChooseFromLists
            Dim oCFL As SAPbouiCOM.ChooseFromList
            Dim oCFLCreationParams As SAPbouiCOM.ChooseFromListCreationParams
            oCFLCreationParams = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
            oCFLCreationParams.ObjectType = "2" 
            oCFLCreationParams.UniqueID = "DVDCFL"
            oCFL = oCFLs.Add(oCFLCreationParams)
            oEditText = oItem.Specific
            oEditText.DataBind.SetBound(True, "OCRD", "CardCode")
            oEditText.ChooseFromListUID = "DVDCFL"
AND this is my code in ITEM  PRESSED - when choosing a BP
Select Case pVal.BeforeAction
                Case False
                    Select Case pVal.FormType
                        Case "60004"
                            oForm = SBO_Application.Forms.GetForm("60004", 0)
                            Select Case pVal.ItemUID
                                Case "txtCFrom"
                                    Select Case pVal.EventType
                                        Case BoEventTypes.et_CHOOSE_FROM_LIST
                                            oCFLevent = pVal
                                            Dim oDataTable As SAPbouiCOM.DataTable
                                            oDataTable = oCFLevent.SelectedObjects
                                            oItem = oForm.Items.Item("txtCFrom")
                                            oForm.Items.Item("txtCFrom").Specific.value = oDataTable.GetValue(0, 0).ToString
                                            SBO_Application.MessageBox(oDataTable.GetValue(0, 0))
                                    End Select
                            End Select
                    End Select
            End Select
thanks,

First create userdatasource.
frmPayment.DataSources.UserDataSources.Add("AFolder", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 1)
Second bind the datasource to editText
fl_DP = frmPayment.Items.Item("fl_DP").Specific
fl_DP.DataBind.SetBound(True, , "AFolder")
Third in ChooseFromList event
frmAmortSched.DataSources.UserDataSources.Item("AFolder").ValueEx = oDataTable.GetValue(0, 0)

Similar Messages

  • How to pass multiple values while invoking bpel process from ADF?

    Hi,
    I want to call a bpel process from my ADF application. The bpel process is having one input parameter. I have created webservice data control by using WSDL url.
    Lets say, I have an Emp multi select table. I drag and drop the data control into Emp table selection facet to create an "Invoke" button.
    I am able to pass single value (lets say Empid) to the bpel process after clicking the "Invoke" button.
    But, my requirement is to pass all the selected values ( as its a multi select table) to the bpel process after clicking the "Invoke" button once.
    How can I achieve this?
    --Abhijit                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi,
    if the BPEL method that you access allows you to pass arrays or lists, then you can get a list of selectedRowKeys from the table, which then you use to get the value from the underlying binding or the table. This however requires some Java coding instead of directly invoking the executable on the binding layer
    - you create the BPEL method in the binding layer
    - from a Java managed bean you call ADFBindingContext --> get current instance and access Binding container
    - OperationBinding oper = (OperationBinding ) bindings.get("method to invoke");
    oper.gerParamsMap().put("the BPel argument name", value);
    oper.execute();
    - To access the table selected rows
    RowKeySet rks = _table.getSelectedRowKeys();
      //iterate over the set of selected row keys and delete
      //each of the found rows
      Iterator selectedRowIterator = rks.iterator();
      while (selectedRowIterator.hasNext()){
        //get the first key
        Object key = selectedRowIterator.next();
        //make the row current
        _table.setRowKey(key);
        //the row is an instance of the ADF node binding class
        JUCtrlHierNodeBinding rowWrapper = null;
        rowWrapper = (JUCtrlHierNodeBinding) _table.getRowData();
        //get the actual oracle.jbo.Row object
        Row row = rowWrapper.getRow();
        ... get attribute values by calling row.getAttribute("name"); assuming you used ADF BC to build the tableFrank

  • How to pass a value of 130 odd characters from a subroutine to a script

    Hi Friends,
    I am passing a value of 130 odd characters(say) from subroutine to script through ITCSY structure (VALUE- 255 characters), however, while debugging the script I find that the whole length is not getting passed into the script.
    Is this a limitation, or is there any solution to this?
    Thanks and Regards,
    Birendra Chatterjee

    Hi,
    Check the size of that Window in which you are displaying this Text of 130 characters.
    May be it is less
    in that case split that string into 2 strings and pass the two strings from ITCSY structure to script and use.
    reward if useful
    regards,
    ANJI

  • How to pass a value to a BC4J method from JSP/ADF and get a return value.

    How i can access and application module method from my jsp using JSTL passing a value and hope a return value from BC4J method already exposed using interfase and droped from data control to my jsp page
    Any suggestions ?
    Mensaje editado por:
    mr2k

    Hi,
    Check the size of that Window in which you are displaying this Text of 130 characters.
    May be it is less
    in that case split that string into 2 strings and pass the two strings from ITCSY structure to script and use.
    reward if useful
    regards,
    ANJI

  • How to pass a value to a standard screen from program

    My requirement is to pass a value from the program to a standard screen.
    I m using transaction CU01. i have to get the dependency name from the program and displayed in CU01 first screen, after tht i have to create a dependency.
    Set parameter Id is not working for this screen so can any one help me to pass the value to standard screen from program.
    its urgent
    Thanks in advance.

    hi,
    consider filling up t_bdcdata for the single field and passing it as
    call transaction 'CU01' using itab. as in BDC
    santhosh

  • Passing a value to a Parameter Field From a VB Form

    Post Author: as1971
    CA Forum: General
    Hello everyone
    I'm using Visual Basic 6.0 and Crystal Report 9.0
    I built a report using Crystal Report and named it Player_Statement.rpt. I then included it to my VB project and named it Player_Statement.Dsr
    In this report I have a Parameter Field called P_Player_ID which I'm using in Record Selection Formula.
    I'm using the following code to pass a value to the parameter:
    Dim Report As CRAXDRT.ReportSet Report = New Player_StatementReport.ParameterFields.GetItemByName("P_Player_ID").AddCurrentValue CLng(cmbPlayerNB.BoundText)
    When I execute the application I get the error message "The value or range you are adding has already existed" at the last line of code (Where I'm assigning the parameter a value)
    Could anybody help me please

    Post Author: VinoTinto
    CA Forum: General
    Dim Report As CRAXDRT.ReportSet Report = New Player_StatementReport.GetItemByName("P_Player_ID").ClearCurrentValueAndRange                                               Report.ParameterFields.GetItemByName("P_Player_ID").AddCurrentValue = CLng(cmbPlayerNB.Boundtext)

  • How to pass variable value into module pool scren from a report program

    Hi,
    I have created a report program with selection screen parameters. when the inputs are filled and executed it generates the purchase evaluation sequence number. i have created a screen and passed that number to display on it with print option and back option buttons as required. but variable alone is not getting passed from the program to module pool screen. buttons are working fine. value alone is not coming. can anyone please help me.
    regards,
    sudha.

    Hi ,
    you need to declare that variable param at Global.
    sample code...
    report xyz....
    data: g_no type ekko-ebeln.
    start-of-selection...
    g_no = '12345'.
    call screen 0100.

  • Passing Null value to MS SQL Server from Oracle BPEL

    Hi,
    We are using the DB adapter to invoke a procedure on MS SQL Server database. We need to pass null parameter to one of the parameters.
    When we pass 'null', we are getting a conversion error.
    Please provide your inputs.
    Regards.
    John

    The datatype is int.
    When we pass "null" we are getting the following error.
    Error while converting to a Java object. Unable to convert the XSD element ss_status_id whose SQL type is INT and JDBC type is INTEGER. Cause: java.lang.NumberFormatException: For input string: "null" ; nested exception is: ORABPEL-11803 Error while converting to a Java object. Unable to convert the XSD element ss_status_id whose SQL type is INT and JDBC type is INTEGER. Cause: java.lang.NumberFormatException: For input string: "null" Check to ensure that the XML data describing the object matches the definition of the element in the XSD. Contact oracle support if error is not fixable.
    After using xsi:nil="true", we are not getting any error as such. But the procedure is not giving expected data.

  • How to pass condition values fom sales order to packing list

    Hi!
    I need to show price amounts on the packing list printout from VL03N based on the condition value from the sales order document. Can anyone suggest how this can be achieved?
    Thanks!
    Cholen

    I think I have found a solution:
    - select vbak-knumv from sales order of delivery then select the condition values from table konv where vbak-knumv = konv-knumv.
    One can filter by kschl (condition type) if only particular amounts based on condition type need to show up.

  • How to pass the parameter values to the stored procedure from java code?

    I have a stored procedure written in sqlplus as below:
    create procedure spInsertCategory (propertyid number, category varchar2, create_user varchar2, create_date date) AS BEGIN Insert into property (propertyid, category,create_user,create_date) values (propertyid , category, create_user, create_date); END spInsertCategory;
    I am trying to insert a new row into the database using the stored procedure.
    I have called the above procedure in my java code as below:
    CallableStatement sp = null;
    sp = conn.prepareCall("{call spInsertCategory(?, ?, ?, ?)}");
    How should I pass the values [propertyid, category, create_user, create_date) from java to the stored procedure?[i.e., parameters]
    Kindly guide me as I am new to java..

    Java-Queries wrote:
    I have a stored procedure written in sqlplus as below:FYI. sqlplus is a tool from Oracle that provides a user interface to the database. Although it has its own syntax what you posted is actually PL/SQL.

  • Problem in Passing the value from child window to Parent window.

    Hi Frenz,
    I have a requirement like this. i have to pass a value from child window to parent window to one test field. That text field is not a normal text field.
    It was created like the following as SQL query.
    select
    ''LNo,
    apex_item.text(25,'',0,15,
    'style="width:100px;" onblur="javascript:showUpsell(this.value);" onkeypress="javascript:validateKeyPress(event,this.value,this.id);" onkeyup="javascript:this.value=this.value.toUpperCase();" id="P37_ITEMNO"') ItemNo
    Now i want to pass a value to the Item no from child window.
    i wrote the java script like this,
    opener.document.forms[0].f25.value="100";
    It was not working..Any suggestions for that..
    Thanks in advance

    Dear Baaju,
    How do you redirect your control from Child to Parent window.
    If you use a button to do this, then you can set this value in the branching of page.
    Rana

  • Passing column values to another tab if check box selected in that row

    Hi
    I have the following requirement.
    I have a table that gets populated by a web service. Have added one more field to it which is a check box. Th requirement is that I need to pass the values of column (say id) from each row which has it's check box selected, as input parameters to a web service in another tab.
    example: table has fileds id, name, address,checkbox. If there are 5 rows and the user select 1 and 2 then I need the ids of 1 and 2 to be passed to another tab.
    Is this possible  ........
    Thanks

    Hi
    I just don't want to make multiple selection but pass the values of a column from the selected rows to another tab to be used as input parameters to a web service.
    I want to know how to pass the values(of one filed) of the selected rows across tabs/switches.
    Thanks

  • About passing the values attributes of UI components

    Hi,
    I have a question related to passing the values attributes of UI components from JSF to a baking bean.
    Assume I have inputText and I need to pass its value to the data model via an application module. So, this will be done as follows:
    <h:inputText value= "#{bindings.MyValue.inputValue}";
    I need also to pass this value to a managed bean. Therefore I used EL class prepared by Steve Muench available at:
    http://radio.weblogs.com/0118231/stories/2006/12/18/sourceForMyFavoriteElHelperClass.html
    So, in the JSF page will be as follows:
    <h:inputText value="#{myBean.myValue}";
    In managed bean:
    String myValue;
    public String get MyValue () {
    return EL.getAsString("#{bindings.MyValue.inputValue }");
    public void set MyValue t(String value) {
    EL.set("#{bindings.MyValue.inputValue }",value);
    Then when I want to use myVlaue in the managed bean just I use this line:
    myVlaue = get MyValue ();
    I tried to use the same steps to pass the value of selectOneMenu but I always get errors such as cannot be cast to java.lang.String.
    But I achived this by binding the value of selectOneMenu to a HtmlSelectOneMenu attribute in the managed bean as follows:
    In JSF page:
    <h:selectOneMenu value="#{bindings.TaskView1TaskName.inputValue}"
    binding= "#{projectBean.selectOneChoice1}">
    In managed bean:
    private HtmlSelectOneMenu selectOneChoice1;
    public void setSelectOneChoice1(HtmlSelectOneMenu selectOneChoice1) {
    this.selectOneChoice1 = selectOneChoice1;
    public HtmlSelectOneMenu getSelectOneChoice1() {
    return selectOneChoice1;
    Then I can used the selectOneChoice1 value as follows :
    somenu= getSelectOneChoice1();
    somenuValue = (Integer)somenu.getValue();
    task= taskName(somenuValue);
    this works with me. Now what is the different between this way and using EL class
    And how can I use EL class to pass the value of selectOneMenu to the managed bean
    Thank you
    Waheed

    they are look like:
    <list id="TaskView1TaskName" IterBinding="TaskView1Iterator"
    ListOperMode="0" StaticList="true">
    <AttrNames>
    <Item Value="TaskName"/>
    </AttrNames>
    <ValueList>
    <Item Value="value1"/>
    <Item Value="value2"/>
    <Item Value="value3"/>
    </ValueList>
    </list>
    and TaskName is String

  • RRI passing variable values

    Hi,
    I have a sender query wher I have two infoobjects Fiscal Year and Posting period. I am taking the input from a variable for the two infoobjects.
    I have a receiver query which has a infoobject OFISCPER3 which has the combined value of Fiscal year and period.
    How can I pass the value of two seperate infoobjects from the sender query to one infoobject in the receiver query (say concateneting the values etc)?
    Can anyone give some idea!!
    Thanks in advance
    Prashant

    Hi Roberto,
    I found the following text in the SAP online help / SAP Business Information Warehouse / Report to report interface:
    "Previous to BW 3.0A, a BAdl or user exit
    was available for these types of assignments. This is now obsolete and only still exists for
    reasons of compatibility."
    I tried to enable the Badi, but could not get it working.
    Our problem is that we call from BW a R/3 transaction to display a financial document. However in BW the financial document is only "a part" of a field (in Bex report): the field consists of "financial yearfinancial period document number".
    I could not get the R/3 transaction to pick up only the document number from this field only. That is why I tried the Badi, but this seems not to be in use anymore.
    Any ideas?
    Rgrds,
    Luc

  • How to bind the value of textbox with View object's bind variable?

    Hi all,
    In my use case I need to pass the value of textbox in the jsf page to the View Object's bind variable.
    I should not hard code this in my backing bean. I need to configure in the Jdeveloper itself.
    I am using Jdeveloper 11.1.1.4.0 version. Kindly come up with your help.
    Thanks,
    Phani.

    Hi,
    You have to use Named Bind Variables(ExecuteWithParams)
    http://download.oracle.com/docs/cd/B31017_01/web.1013/b25947/web_search_bc004.htm
    http://www.cloudsolid.com/2008/10/using-named-bind-variables.html

Maybe you are looking for

  • IPod restore error 1604

    iPod Touch 1.1.3 restore error in iTunes 7.6 -- Windows XP Pro I,ahem... JB'd... my iTouch, and I "DID NOT LIKE IT" so I tried restoring it. Now I get the error 1604 right after it is "Preparing iPod for restore..." screen, saying, "The iPod "iPod" c

  • ITunes wants to start another app?

    A while back I installed an iTunes helper app. I can't remember what it was but it was something to upload 'now playing info' to the web or something similar. To cut a long story short, it wasn't very good so I uninstalled it. However, every time I s

  • Want to Buy Already Downloaded Trial Version PSE 13

    I downloaded a trial of PSE 13 and now I wish to buy it. However, when I try to do so, a window appears asking for a serial number, which, of course, is what I wish to purchase. I tried entering the serial number I have for PSE 12, but the window inf

  • Arranging output on writing to file

    i need to arrange out put in proper format while writing to a file.For this purpose i set maxium length as 50.My idea is generated substring is less than 5O add that much blank space and write to file.For this ineed to know one "\t" is how much chara

  • While inserting in FCP 7 the sdi leave black in tape

    Hi! I am using FCP 7.0 with decklink HD extreme 3D card with decklink driver 7.7.3. The storage is XSAN Volume sharing in 8 edit suits. When we go for mastering with print to tape in Digibeta cam with SDI the master print smooth. But when we go for I