How can I pass the value of one for two binding settings

Hi all
I have a search query

Select Distinct CONSOLIDATION_SUMMARY_ID, CREATION_DATE CREATED_BY BATCH_ID, PROCESS_FLAG, ERROR_MESSAGE, CUSTOMER_ID, BILLING_FREQUENCY
CONSOLIDATION_LEVEL, SOLD_TO_ORG_ID, SHIP_TO_ORG_ID, TRANSACTIONAL_CURR_CODE, INVOICE_TO_ORG_ID, PRICE_LIST_ID
ORIG_SYS_DOCUMENT_REF, INVENTORY_ITEM_ID, ORGANIZATION_ID, ORDERED_ITEM, ORDERED_QUANTITY, UNIT_LIST_PRICE
UNIT_SEELING_PRICE, ORDER_QUANTITY_UOM, ORDER_NUMBER, ORDER_DATE, INVOICE_NUMBER, INVOICE_DATE
FEE_CALCULATION_WORKSHEET_PDF, TRADE_DETAILS_PDF, INVOICE_REPORT_PDF, PRICING_ATTRIBUTE_CONTEXT
PRICING_ATTRIBUTE, PRICING_ATTR_VALUE_FROM
of xxcurrnx.xxcur_trade_consol_summary XXSTR
WHERE XXSTR. BATCH_ID = NVL (: 1, XXSTR.) BATCH_ID)
and XXSTR. CUSTOMER_ID = nvl (: 2, XXSTR.) CUSTOMER_ID)

But I need to pass only one value to this query: throw the code below

public void passTocusttrxn (String vcustid)
{
System.out.println ("trxn vo customer id:" + vcustid);

XxcurtradeconsummaryVOImpl vOrdnumb = getXxcurtradeconsummaryVO1 ();
vOrdnumb.setWhereClauseParam(0,vcustid);
vOrdnumb.setWhereClauseParam(1,null);
vOrdnumb.executeQuery ();

System.out.println ("the query that is run after is:" + vOrdnumb.getQuery ());
}

But it throws the exception below.
java.sql.SQLException: parameter IN or OUT to missing index: 1

could you please tell me how can I achieve this.

Thank you

Hello

I hope that the problem solved, pls, close it.

Regads
Meher Irk

Tags: Oracle Applications

Similar Questions

  • How can I pass a value to a variable binding in a report query?

    I did a query of report to print a PDF report, with a dinamyc source query that has a connection variable, like this:

    SELECT EMPNO, EMPNAME, EMPDEPT

    FROM EMP

    WHERE EMPNO =: PARAMETER;

    I want to call the report print directly from a page, by using the url print showed by apex:

    f? p = & APP_ID.:0 : & SESSION. : PRINT_REPORT = MYREPORT

    How can I pass the value of the variable binding: PARAMETER using this URL?

    I don't think you can use the url parameter passes in a report query.

    the binding variable: PARAMETER must be a page element or an element of the application.

    use the "include session information and application" in the defination of report query to bind the value when the report is run

  • How can I write the value of floats Unitronics vision230 PLC with modbus Ethernet

    How can I write the value of type Float in unitronics PLC Vision230 modbus ethernet (Ethernet Master Query.vi MB) usinsg I read and write register 32 bits, for example, I want to write the value 23.45 2nd Add. MF. And registry MF is the 32-bit registry. I read and write register 32-bit.

    Narendra.

    Narendra,

    Two characters can type cast into a uint16 you VI supports.

    To summarize. Take one (4 bytes). Flatten it to a string (4-byte) divided this string into two parts of 2 bytes each. Cast in u16 (16 x 2 = 32-bit).

    However, if you really want to follow the IEEE standards then you will need refer this KB. His is not that simple, but seems closer to what you are looking for.

    Amit

  • Passing the value from one page to the other page

    Hi gurus,

    I need to pass the value from one page to the other page and two pages use different AMs.
    In the first page I have sellers results region table where the $vendor_name column is a hyperlink that navigates to the page Vendor_Sites. Now after accessing the second page, I want to excute the VendorSitesVO in PR of CO based on the value passed to VendorsVO (vendor_id) of first page.

    can someone help me on this?

    Thank you
    Vincent.

    Published by: user4933347 on December 4, 2009 12:19 AM

    You can set parameters of Pagecontext and transmit values through them. These values can be passed between pages, even if the AMs are different.

    Try:
    pageContext.putParameter ("Parameter1", value1);
    pagecontext.setForwardURL (second page)

    Concerning
    Sumit

  • How can I change the value of a control on front panel?

    On the front panel, I'm doing a complex control that consists of a Slider control and control of the digital inputs. Both controls display the same information and either may be used for entry. When changing value, I want the other control to display the same value.

    How can I change the value of a control on front flap when another control changes the value? I know how to use a structure of the event to detect value has changed, but I do not know how to impose control on front panel to change its value in the block diagram.

    Why do you not use a digital display on the slider, and no code is required:

    EDIT: Yes, he said. ***

  • How can I change the value of a print job in Visio 2003. It is for 1 or 2 pages, I want that he 9 printing pages. Thank you.

    How can I change the value of a print job in Visio 2003.  He is currently configured to print pages 1 and 2, but I want to print all 9 pages at a time.  Thank you

    You can remove 1-2 and type 1-9? All HP and Epson printers I have worked this way.

    That's all I can offer as I'm not familiar with your printer.

  • How can I chage the direction of one of my extended in MS XP desktop monitors

    How can I chage the direction of one of my extended in MS XP desktop monitors

    In your notifications area, right-click on the icon for your graphics driver. Since I did not lnow what grapiics driver you have, I can't help you much here. However, this will give you many settings and menus that should include one to change the orientation of a specific moniter.

  • How can I chang the language from one to the other?

    How can I chang the language from one to the other?

    Change the language of Adobe Creative Cloud applications

  • How can I reinstall the Photoshop from one computer to another? I didn't need a second license...

    How can I reinstall the Photoshop from one computer to another? I didn't need a second license...

    You are allowed to install Photoshop on two computers. Recent versions allow to choose if they are versions Mac or Windows, or one of each!

  • ICF custom connector; How can I get the values of the parameters of the recon calendar task?

    I'm trying to create a custom connector icf with progressive reconciliation. My recon schedule a task, I have the settings "attribute of Date additional Recon ' and 'last token" that should be used for gradual reconciliation.

    How can I get the values of the parameters ' attribute of Date additional Recon ' and 'last token "?

    ICF should handle this for you.

    The value of "attribute of Date additional Recon ' must be filled in the OperationOption (e.g. executeQuery() and PROCESSES of FilterTranslator has this as a method parameter).

    For the "last counter", you need to implement ' createGreaterThanExpression (GreaterThanFilter, filter, is not Boolean) ' in your filter translator class. You can get the attribute of the filter object. Look for a description here: http://docs.oracle.com/cd/E37472_01/apirefs.1112/e28159/oracle/iam/connectors/icfcommon/recon/SearchReconTask.html

  • How can I get the value of the element checked a box to tick LOV?

    Hi all

    I need to insert rows into a table when a checkbox element is checked.
    The checkbox element is a LOV in a form.
    -----------------------
    Select the DESCRIPCIÓN display_value, ID_DOCUMENTO return_value
    of DOCUMENT
    order by 1
    ------------------------------

    Source
    ------------------------------
    DECLARE
    CURSOR C_REG_DOC IS SELECT ID_DOCUMENTO FROM REGISTRO_DOCUMENTO WHERE ID_REGISTRO =: P6_ID_REGISTRO;
    v_id_documento documento.id_documento%TYPE;
    v_results VARCHAR2 (50);
    Boolean v_first_loop: = true;
    BEGIN
    for this loop C_REG_DOC
    If v_first_loop then
    v_results: = it.ID_DOCUMENTO;
    v_first_loop: = false;
    on the other
    v_results: = v_results |': ' | it.ID_DOCUMENTO;
    end if;
    end loop;
    Return v_results;
    END;
    --------------------------

    I need to create a process to insert rows in a relational table, but I do not know how...
    ------------------
    FOR *? *
    LOOP
    INSERT INTO registro_documento (id_reg_documento, id_registro, id_documento)
    VALUES(null,:P4_ID_REGISTRO,???);
    END LOOP;
    ---------------

    How can I get the value of the active element (id_documento) to insert it?

    Thank you!

    Alex

    Hello:

    You can use the apex_util.string_to_table function to retrieve the values of the LOV as shown in the example

    declare
    arr wwv_flow_global.vc_arr2;
    begin
    arr:= apex_util.string_to_table(:P_CHECKBOX_LOV_ITEM)
    for x in arr.first..arr.last loop
    // insert statement
    iNSERT INTO registro_documento( arr(i) ,.........id_reg_documento,id_registro,id_documento)
    end loop;
    end;
    

    CITY

  • How can I download the Apple News app for my iMac

    Hello

    How can I download the Apple News app for my iMac, I have on my iPad but can't find it for the Mac, is it not available on Mac or he has another name for the iMac?

    Thank you

    There is no version for OSX.

  • How can I down the msn toolbar support for Mozilla firefox?

    My computer crashed and lost the msn toolbar. How can I down the msn toolbar support for Mozilla firefox? Edit

    It was more common to ask how to uninstall these toolbars. I think that it will now be known as a Bing toolbar, but as much as I know it is no longer supported for Firefox. You can find a few unofficial addons with similar features.

    You'd better discuss what anyone more about MSN Forum MSN specialist.

  • How can I get the six digit code for my iPad Pro? I have two other iPads and an iPod but I enter the codes I get and the Pro is just off!

    How can I get the six digit code for my iPad Pro? I have two other iPads and an iPod but I get the codes I get and the Pro is just disabled for longer and longer whenever he rejects these codes!

    If you have forgotten the password for your iPhone, iPad or iPod touch, or your device is disabled - Apple supports

  • How can I track the progress of download (for update Iphone via iTunes)?

    How can I track the progress of download (for update IPhone via iTunes)?

    To the right of your account towards the top right of the program name, you'll see a mobile circular icon. Click on that and you will get a dialog box indicating the progress.

Maybe you are looking for

  • Virtual store but I can not connect

    Hello I have buyed a Toshiba Journ.e Touch and I recorded for the online store but I can't connect, you will need to restore my account but I don't know how to do. My account number is 30835. Thank you

  • PX1237E HARD drive - 1 40 disconnects from the "Windows 2000 Server".

    I have 3 USB HARD disk, 2 are the Toshiba model named, and the other is a Seagate HD on a USB enclosure. I put the tree on a server with "200 Windows server" with Sp4 to make copies of security during the night. When I connect I have 3 new units (E,

  • Laser mouse wireless connection PX1215E-1NAC

    I bought one of the devices for a customer. Unfortunately, the documentation does not match the hardware. The bonding in the manual procedure is by pressing the selection button channel on the Receiver USB dongle and then pressing the mouse buttons.

  • To access the internal settings of a block

    Hi all I use the LabVIEW FPGA 2015 for a project. I would like to access the internal got (data type, size, etc.) as the window scaling, FFT, blocks or another block. Or even change the size of an external FIFO without having to open the game menu. I

  • AAC format for windows media player

    Why windows media player aac is not formatted? When I copy my CD to sd cards to play in other players, they're not formatted AAFC. Help!