How to select a table based on a button event

Can we make control in row selection?
For eg, i have added a button in my column. So it will be displayed in all rows.Clicking on the button the entire row should be selected.How to do it.
Thanks in advance

Hi Kishore,
Add the press event handler for your button as below,
new sap.ui.commons.Button({press:function(oEvent){
  oTable.setSelectedIndex(oEvent.getSource().getParent().getIndex());
Refer to this snippet http://jsbin.com/kikubupa/1/edit
regards
sakthi

Similar Messages

  • How to populate a table based on a row selection from another table.

    Hi, i just started to use ADF BC and Faces. Could some one help me or point me a solution on the following scenario .
    By using a search component , a table is being displayed as a search result. If i select any row in the resulted table , i need to populate an another table at the bottom of the same page from another view. These two tables are related by primary key . May i know how to populate a table based on a row selection from another table. Thanks
    ganesh

    I understand your requirement and the tutorial doesn't talk about Association between the views so that you can create a Master-Detail or in DB parlance, a Parent-Child relationship.
    I will assume that we are dealing with two entities here: Department and Employees where a particular Department has many Employees and hence a Parent-Child relationship.
    Firstly, you need to create an Association between the two Entities - Department and Employees. You can do that by right clicking on the model's entity and then associating the two entities with the appropriate key say, DepartmentId.
    Once you have done that, you need to link the two entities in the View section with this Association that you created. Then go to AppModule and make sure that in the Available View Objects: 'EmployeesView' appears under 'DepartmentView' as "EmployeesView via <link you created>". Shuttle the 'DepartmentView' to the right, Data Model and then shuttle
    "EmployeesView via <link you created>" to the right, Data Model under 'DepartmentView'.
    This will then be reflected in your Data Controls. After that, you simply would have to drag this View into your page as a Master-Detail form...and then when you run this page, any row selected in the Master table, would display the data in the Detail table.
    Also, refer to this link: [Master-Detail|http://baigsorcl.blogspot.com/2010/03/creating-master-detail-form-in-adf.html]
    Hope this helps.

  • How to select different Querys based on Variable Value

    Hi guys i need to know how to select different Querys, based on variable values selected by the user, i try to do it using a Web Template but i don´t know how to program a Dynamic Query.....
    I hope sombody could help me with this
    Message was edited by: Oscar Diaz

    Hi Diaz,
    Can you explain the exact scenario which you are looking for!!!
    regards
    Happy Tony

  • Select the table based on 2 months ? Query no working

    I have a table TEST1 in schema MESSAGE_REPORT. What i want to do is select the table based on 2 months ( JULY and AUGUST ). The requirement is Whole JULY data should be there and for AUG the data should be till 01 aug . Below is the query i m using but its giving me error . Moreover the Where clause "TRUNC(HIRE,'MONTH') " part is compulsary to be used ,changes have to be made in the ">= timestamp '2010-07-01 00:00:00' and frd.sent_timestamp < timestamp '2010-08-10 00:00:00';" part only . please can anyone help me out
    NAME        HIRE
    SALE     01.07.2010 00:00:00,000000000
    cops     15.07.2010 00:00:00,000000000
    NAVEED     31.07.2010 00:00:00,000000000
    HEN     01.08.2010 00:00:00,000000000
    BEN     10.08.2010 00:00:00,000000000
    CROSS     15.08.2010 00:00:00,000000000
    select * from MESSAGE_REPORT.test1 where
    TRUNC(HIRE,'MONTH') >= timestamp '2010-07-01 00:00:00' and frd.sent_timestamp < timestamp '2010-08-10 00:00:00';
    ERROR:
    ORA-00904: "FRD"."SENT_TIMESTAMP": invalid identifier
    00904. 00000 -  "%s: invalid identifier"
    *Cause:   
    *Action:
    Error at Line: 24 Column: 60Edited by: user12633486 on Aug 11, 2010 1:13 PM
    Edited by: user12633486 on Aug 11, 2010 1:51 PM

    Thats becuase you are comparing with Month and not the complete date.
    Check this:
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select 'SALE' col1,'01.07.2010 00:00:00' col2 from dual
      2  union all select 'cops','15.07.2010 00:00:00' from dual
      3  union all select 'NAVEED','31.07.2010 00:00:00' from dual
      4  union all select 'HEN','01.08.2010 00:00:00' from dual
      5  union all select 'BEN','10.08.2010 00:00:00' from dual
      6  union all select 'CROSS','15.08.2010 00:00:00' from dual)
      7  select * from t
      8  where
      9  TO_DATE(col2,'DD.MM.RRRR HH24:MI:SS') >= timestamp '2010-07-01 00:00:00'
    10* and TO_DATE(col2,'DD.MM.RRRR HH24:MI:SS') < timestamp '2010-08-10 00:00:00'
    SQL> /
    COL1   COL2
    SALE   01.07.2010 00:00:00
    cops   15.07.2010 00:00:00
    NAVEED 31.07.2010 00:00:00
    HEN    01.08.2010 00:00:00
    SQL>
    -- For less than equal to
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select 'SALE' col1,'01.07.2010 00:00:00' col2 from dual
      2  union all select 'cops','15.07.2010 00:00:00' from dual
      3  union all select 'NAVEED','31.07.2010 00:00:00' from dual
      4  union all select 'HEN','01.08.2010 00:00:00' from dual
      5  union all select 'BEN','10.08.2010 00:00:00' from dual
      6  union all select 'CROSS','15.08.2010 00:00:00' from dual)
      7  select * from t
      8  where
      9  TO_DATE(col2,'DD.MM.RRRR HH24:MI:SS') >= timestamp '2010-07-01 00:00:00'
    10* and TO_DATE(col2,'DD.MM.RRRR HH24:MI:SS') <= timestamp '2010-08-10 00:00:00'  -- less than equal to includes data for 10th august as well
    SQL> /
    COL1   COL2
    SALE   01.07.2010 00:00:00
    cops   15.07.2010 00:00:00
    NAVEED 31.07.2010 00:00:00
    HEN    01.08.2010 00:00:00
    BEN    10.08.2010 00:00:00
    SQL> Edited by: AP on Aug 11, 2010 1:31 AM
    Edited by: AP on Aug 11, 2010 1:32 AM

  • How to update the table value in the valuechange event?

    I have an input field in the datatable with the valueChangeListener
    <rich:dataTable id="cart" value="#{cart.cartList}" var="item">
    <h:inputText value="#{item.cost}" id="qty" valueChangeListener="#{items.updateCost}" onchange="submit()">
    <h:outputText value="#{item.errorMsg}"> </h:outputText>
    in the backing bean
         Item item = (Item) model.getRowData();
    // do some update, if the cost too larger, change to max_cost
         item.setCost(max_cost);
         item.setErrorMsg("Error Msg");
    After calling the valuechange method, the screen output doesn't update the cost.
    How to update the table value in the valuechange event?

    As you're misusing the valueChangeListener to set another input field, you need to skip the update model values phase. Otherwise the value set in the valueChangeListener will be overridden by the submitted value. You can do this by calling the FacesContext#renderResponse() inside the valueChangeListener method. This will shift the current phase immediately to the render response phase, hereby skipping the update model values and invoke application phases.

  • How to fill setup table based on date???

    Hi Experts,
    I need to do repair full request for 2lis_11_vaitm datasource, I want to load from 1st Apr 2008 to 31st March 2009, but in OLI7BW t-code i am unable to find date field in selection screen.
    1) How can I fill setup table based on date?
    2) In RSA7 containing records even though  is it possible to fill setup table ?
    Helpful answer will be appreciated with points,
    Thanks in advance,
    Venakt.

    Venkata,
    1) How can I fill setup table based on date?
    --> If date not possible then try to setup with available options/characteristics.
    --> While pulling into BW, extract data selectively. Give date selection at infopcakge.
    2) In RSA7 containing records even though is it possible to fill setup table ?
    --> Yes, you can do it.
    Srini

  • How to update one table based on another table ??

    Hello Friends:
    I am trying to run the following query in oracle but it won't run.
    UPDATE BOYS
    SET
    BOYS.AGE = GIRLS.AGE
    FROM GIRLS
    WHERE
    BOYS.FIRSTNAME = GIRLS.FIRSTNAME AND
    BOYS.LASTNAME = GIRLS.LASTNAME;
    This query runs fine in sql server but in oracle its saying can't find "SET". PLease tell me what is the correct syntax in oracle to update one table based on another table.
    thanks

    See if this helps.
    If you wrote an SQL statement:
    update boys set age = 10;
    Every row in the boys table will get updated with an age of 10. But if you wrote:
    update boys set age = 10
    where firstname = 'Joe';
    Then only the rows where the firstname is Joe would be updated with an age of 10.
    Now replace the 10 in the above statements with (select g.age from girls g where g.firstname = b.firstname and g.lastname = b.lastname) and replace where firstname = 'Joe' in the second statement with where exists (select null from girls g where g.firstname = b.firstname and g.lastname = b.lastname). The same concepts apply whether 10 is an actual value or a query and whether you have a where clause with the update statement to limit rows being updated.
    About the select null question regarding the outer where clause:
    Since the query is checking to see if the row in the girls table exists in the boys table what the column is in this select statement doesn't matter, this column isn't being used anywhere. In this case Todd chose to use null. He could have also used a column name from the table or a lot of times you'll see the literal value 1 used here.

  • How to get  current row(Based on Radio button check)  submit button Click

    Hi i hava Query Region Search(Based On Auto Customization Criteria).
    For Showing Results iam Using Table Region.
    Using Radio button How we get the row reference value using Submit button Click.
    Please Help on this .
    Thanks & Regards
    San

    Hi san ,
    Try this
    if ("EventID".equals(pageContext.getParameter(EVENT_PARAM)))
    String rowRef = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    OARow row = (OARow)am.findRowByRef(rowRef);
    VORowImpl lineRow = (YourVORowImpl)findRowByRef(rowRef); // Replace your vo name .
    Please refer this link , Let me know if its not clear .
    Single Selection in table Region in OAF .
    Keerthi

  • How to select a table in plsql

    hello,
    I have to select a complete table in a plsql block . But I am facing a problem of into clause with select statement in plsql. What should i do?
    If anybody knows how to do this then please help me out.
    Thanks,

    This one also you can try.
    DECLARE
    TYPE l_mobile_no IS TABLE OF main_mast.mobile_no%TYPE;
    TYPE l_cust_name IS TABLE OF main_mast.cust_name%TYPE;
    TYPE l_email IS TABLE OF main_mast.email%TYPE;
    tab_mobile_no l_mobile_no();
    tab_cust_name l_cust_name();
    tab_email l_email();
    BEGIN
    SELECT mobile_no,cust_name,email
    BULK COLLECT INTO tab_mobile_no,tab_cust_name,tab_email
    FROM  main_mast
    where rownum<10;
    FOR z in tab_mobile_no.first..tab_mobile_no.last
    loop
    dbms_output.put_line('Mobile_no'||' '||tab_mobile_no(z)||'NAME'||' '||tab_mobile_name(z)||' '||'EMAIL'||' '||tab_email(z));
    end loop;
    END;You can write into a file using of utl_file if the table contains more number of records.
    Regards,
    Achyut K
    Edited by: Achyut K on Aug 5, 2010 2:09 AM

  • How to turn a table-based form into a master/detail ?

    Hello, I have a form based on a table on which I have spent quite a bit of time adjusting presentation and adding dynamic actions.
    Now comes the requirement to handle an open number of related records, ideally on the same page.
    Has someone documented the steps needed to turn a record-based form into a master/detail one ?
    I am using APEX 4..2.1

    If you think your are missing something you could create the master detail pages for comparison. And delete these dummy pages when your done.
    I finally got around to working on this. You got me on the right track Nicolette, so thank you for that.
    I also had to fix bits in making processes conditional, and branching, too.
    Mainly this has to do with the "delete checked" button which deletes detail records, and submits the page to itself.
    One also needs to rename the REQUEST used in that case from MUTLI_ROW_DELETE to APPLY_CHANGES_MRD
    (as this pattern will trigger an UPDATE for the master record)
    All in all doable but one needs to be careful and generating a quick example M/D page for reference is useful.
    In my case I reckon this was still faster than re-doing all the layout adjustments and DA's
    (plus I got to better understand how this all works - there are a couple moving parts, all interdependent)

  • How to select a value based on message choice

    Hi,
    I want to display a value into screen based on message choice selection.
    Message choice contains absence type infomation and it will return absence type id .
    I have created a view object (XxpmAbsenceCategoryVO , in this view only one column category_name) for selecting category name from the database using message choice selected value.
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    if ("displayCategory".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
    OAViewObject AbsenceCategory = (OAViewObject)am.findViewObject ("XxpmAbsenceCategoryVO1");
    String absenceTypeId = pageContext.getParameter("AbsenceTypeId");
    System.out.println("type "+absenceTypeId);
    AbsenceCategory.executeQuery();
    I will apppreciate, if somebody can help me how to set value for my UI field "CategoryName" when message choice selecting time. I already set an PPR event.
    Regards
    Satheesh Kumar

    Hi,
    I have tried to create a view link betwwen VO used for the poplist and XxpmAbsenceCategoryVO and assign category name to UI field.
    But when I run the screnn following error message appearing:
    Error Page
    Exception Details.
    oracle.apps.fnd.framework.OAException: oracle.jbo.NoDefException: JBO-25002: Definition XxpmCategoryVL of type View Link Definition not found
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1223)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1969)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    oracle.apps.fnd.framework.OAException: oracle.jbo.NoDefException: JBO-25002: Definition XxpmCategoryVL of type View Link Definition not found
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1969)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    oracle.apps.fnd.framework.OAException: oracle.jbo.NoDefException: JBO-25002: Definition XxpmCategoryVL of type View Link Definition not found
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1969)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:502)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:423)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    Regards

  • How to select drop down based on country selected in one field

    Dear Experts,
    I am facing a problem,
    I have a table in webdynpro, where there are two columns namely Country and its Subtype.
    here both the fields are drop down by key type.
    when i am selecting Country field from drop down. I am getting its subtype correctly populated in other column.
    But when i am selecting the country in next row, It is removing the subtype text of 1st row and giving its code.
    Also Now In Column Subtype, It is Showing the dropdown related to the current selected country.
    Kindly help.
    Regards
    Sushil

    Hi Sushil,
    I guess the value for subtype is depending on the country value, which is fetch from the static value( Usually lead selected value). To avoid this we can either set the current row as lead selected row before populating subtype value or with the following code which will give the element value for the row which is selected rather than the lead selected row and then pass the value for fetching country type.
    data: lr_element type ref to if_wd_context_element.
    lr_element = wdevent->get_context_element( 'CONTEXT_ELEMENT' ). " Wdevent is the paramter in the                                                                                                              "event handler
    Regards,
    Harsha

  • How to select few columns based on certain conditions

    i have a table with n columns, of which in 2 columns each may have similar values for certain number of rows
    i want to find if one of the entries in a column has same value in the next few rows
    For example the two columns are
    supplier_name supplier_code
    hll 013
    hll 013
    hll 013
    hll 013
    if i first encounter hll with 013 i have to check whether hll with 013 record is further available
    if it is so i have to display the columns for which multiple entries is available
    can anyone send the query

    Duplicate thread?
    selecting certain columns in oracle

  • How to display advance table based on parameter pls give me solution urgent

    Co code:
    public class PosASEBacklogCO extends OAControllerImpl
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    // PosASEBackShipAMImpl am = (PosASEBackShipAMImpl)pageContext.getApplicationModule(webBean);
    //am.showPrintNShip();
    // System.out.println("i am in Pfreq ");
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    PosASEBackShipAMImpl am = (PosASEBackShipAMImpl)pageContext.getApplicationModule(webBean);
    OAViewObjectImpl ASEBacklogVO = (OAViewObjectImpl)am.findViewObject("ASEBacklogVO");
    String CSDTxt = pageContext.getParameter("CSDTxt");
    String Csdto = pageContext.getParameter("CSDTo");
    String partnumberTxt = pageContext.getParameter("partnumberTxt");
    String CustomerTxt = pageContext.getParameter("CustomerTxt");
    String salesorderlineTxt = pageContext.getParameter("salesorderlineTxt");
    String ASE = pageContext.getParameter("ASE");
    if( "Submit".equals(pageContext.getParameter(EVENT_PARAM)) )
    if(CSDTxt !=null && CSDTxt!="") {
    am.getASEBacklogVO1().setWhereClauseParam(0,CSDTxt);
    else {
    am.getASEBacklogVO1().setWhereClauseParam(0,null);
    if(Csdto !=null && Csdto!="") {
    am.getASEBacklogVO1().setWhereClauseParam(1, Csdto);
    else {
    am.getASEBacklogVO1().setWhereClauseParam(1,null);
    if(partnumberTxt !=null && partnumberTxt!="") {
    am.getASEBacklogVO1().setWhereClauseParam(2, partnumberTxt);
    else {
    am.getASEBacklogVO1().setWhereClauseParam(2,null);
    if(CustomerTxt !=null && CustomerTxt!="") {
    am.getASEBacklogVO1().setWhereClauseParam(3, CustomerTxt);
    else {
    am.getASEBacklogVO1().setWhereClauseParam(3,null);
    if(salesorderlineTxt !=null && salesorderlineTxt!="") {
    am.getASEBacklogVO1().setWhereClauseParam(4, salesorderlineTxt);
    else {
    am.getASEBacklogVO1().setWhereClauseParam(4, null);
    if(CSDTxt == "" && Csdto == "" && partnumberTxt == "" && CustomerTxt == "" && salesorderlineTxt == "")
    am.getASEBacklogVO1().setWhereClauseParam(0, null);
    am.getASEBacklogVO1().setWhereClauseParam(1, null);
    am.getASEBacklogVO1().setWhereClauseParam(2, null);
    am.getASEBacklogVO1().setWhereClauseParam(3, null);
    am.getASEBacklogVO1().setWhereClauseParam(4, null);
    am.getASEBacklogVO1().executeQuery();
    // am.showPrintNShip();
    System.out.println("Execute Query:- "+ASEBacklogVO.getQuery());
    if(pageContext.getParameter("event").equals("ShippingDetailsAction"))
    pageContext.setForwardURL("OA.jsp?page=/oracle/apps/pos/salesorder/webui/PosASEShippingDetailsPG", null, (byte)0, null, null, true, null, (byte)99);
    else
    if(pageContext.getParameter("event").equals("printCS"))
    String salesOrderLineShippement = pageContext.getParameter("SalesOrderLineShippement");
    am.printCS(salesOrderLineShippement);
    } else
    if(pageContext.getParameter("event").equals("ShipConfirmAction"))
    String OperatingUnitform = pageContext.getParameter("OperatingUnitform");
    am.shipConfirmAction(OperatingUnitform);
    } else
    if(pageContext.getParameter("event").equals("SelectRowAction"))
    am.showPrintNShip();
    Vo:
    SELECT
    'N' selectRow
    ,customer_name
    ,so_line_shipment
    ,part_number
    ,customer_item_number
    ,cust_po_number
    ,ordered_date
    ,promise_date
    ,schedule_ship_date
    ,shipping_terms
    ,shipping_method
    ,ordered_quantity
    ,shipping_instructions
    ,ship_to_address
    ,ship_to_contact
    ,ship_to_phone
    ,"Hold Name"
    ,"Hold Release Flag"
    ,order_number
    ,OPERATING_UNIT
    FROM APPS.XXSY_SYNA_ASE_BACKLOG
    where (to_date(promise_date,'dd-mm-rrrr')
    between nvl(:1,to_date(promise_date,'dd-mm-rrrr')) and nvl(:2,to_date(promise_date,'dd-mm-rrrr')))
    and part_number = NVL(:3, NVL(part_number,1))
    AND customer_name = NVL(:4, NVL(customer_name,1))
    and so_line_shipment = NVL(:5, NVL(so_line_shipment,1))
    AM:
    public class PosASEBackShipAMImpl extends OAApplicationModuleImpl {
    /**This is the default constructor (do not remove)
    public PosASEBackShipAMImpl() {
    /**Sample main for debugging Business Components code using the tester.
    public static void main(String[] args) {
    launchTester("xxsy.oracle.apps.pos.salesorder.server", /* package name */
    "PosASEBackShipAMLocal" /* Configuration Name */);
    public void executegetASEShippingInfoVO(String salesOrderLineShippement) {
    this.getASEShippingInfoVO1().getDetails(salesOrderLineShippement);
    public void printCS(String salesOrderLineShippement)
    OADBTransaction dbtrans = getOADBTransaction();
    String sql = "BEGIN xxsy_call_wrapper_pkg.Invoice_wrapper(?,?,?); END;";
    OracleCallableStatement callablestatement = (OracleCallableStatement)dbtrans.createCallableStatement(sql,1);
    try{   
    callablestatement.setString(1,salesOrderLineShippement);
    callablestatement.registerOutParameter(2,Types.VARCHAR);
    callablestatement.registerOutParameter(3,Types.VARCHAR);
    callablestatement.executeUpdate();
    String Returncode = callablestatement.getString(3);
    String ReturnMsg = callablestatement.getString(2);
    callablestatement.close();
    if(Returncode != null && (!Returncode.equalsIgnoreCase("2")) )
    throw new OAException(ReturnMsg,OAException.ERROR);
    if(Returncode != null && (!Returncode.equalsIgnoreCase("0")) )
    throw new OAException(ReturnMsg,OAException.INFORMATION);
    }catch(SQLException _sqle)
    try{
    callablestatement.close();
    }catch (Exception e) {e.printStackTrace();}
    throw OAException.wrapperException(_sqle);
    String sql1 = "BEGIN xxsy_call_wrapper_pkg.Ship_wrapper(?,?,?); END;";
    callablestatement = (OracleCallableStatement)dbtrans.createCallableStatement(sql1,1);
    try{
    callablestatement.setString(1,salesOrderLineShippement);
    callablestatement.registerOutParameter(2,Types.VARCHAR);
    callablestatement.registerOutParameter(3,Types.VARCHAR);
    callablestatement.executeUpdate();
    String Returncode = callablestatement.getString(3);
    String ReturnMsg = callablestatement.getString(2);
    callablestatement.close();
    if(Returncode != null && (!Returncode.equalsIgnoreCase("2")) )
    throw new OAException(ReturnMsg,OAException.ERROR);
    if(Returncode != null && (!Returncode.equalsIgnoreCase("0")) )
    throw new OAException(ReturnMsg,OAException.INFORMATION);
    }catch(SQLException _sqle)
    try{
    callablestatement.close();
    }catch (Exception e) {e.printStackTrace();}
    throw OAException.wrapperException(_sqle);
    public void shipConfirmAction(String OperatingUnitform)
    OADBTransaction dbtrans = getOADBTransaction();
    String sql = "BEGIN xxsy_call_wrapper_pkg.One_Touch_wrapper(?,?,?); END;";
    OracleCallableStatement callablestatement = (OracleCallableStatement)dbtrans.createCallableStatement(sql,1);
    try{
    callablestatement.setString(1,OperatingUnitform);
    callablestatement.registerOutParameter(2,Types.VARCHAR);
    callablestatement.registerOutParameter(3,Types.VARCHAR);
    callablestatement.executeUpdate();
    String Returncode = callablestatement.getString(3);
    String ReturnMsg = callablestatement.getString(2);
    callablestatement.close();
    if(Returncode != null && (!Returncode.equalsIgnoreCase("2")) )
    throw new OAException(ReturnMsg,OAException.ERROR);
    if(Returncode != null && (!Returncode.equalsIgnoreCase("0")) )
    throw new OAException(ReturnMsg,OAException.INFORMATION);
    }catch(SQLException _sqle)
    try{
    callablestatement.close();
    }catch (Exception e) {e.printStackTrace();}
    throw OAException.wrapperException(_sqle);
    public void showPrintNShip() {
    System.out.println("i am show Print Method1 ");
    ASEBacklogVOImpl aseBacklogVOImpl = getASEBacklogVO1();
    for(int i=0; i < aseBacklogVOImpl.getRowCount(); i++){
    ASEBacklogVORowImpl aseBacklogVORowImpl = (ASEBacklogVORowImpl) aseBacklogVOImpl.getRowAtRangeIndex(i);
    System.out.println("i am show Print Method2 ");
    if(aseBacklogVORowImpl != null){
    String selectRow = aseBacklogVORowImpl.getSelectrow();
    System.out.println("i am show Print Method3 ");
    if(selectRow != null && selectRow.equalsIgnoreCase("Y")) {
    System.out.println("i am show Print Method4 ");
    aseBacklogVORowImpl.setShowPrintReport(new Boolean(true));
    aseBacklogVORowImpl.setShowShipConfirm(new Boolean(true));
    aseBacklogVORowImpl.setShowShippingDetails(new Boolean(true));
    }else {
    System.out.println("i am show Print Method5 ");
    aseBacklogVORowImpl.setShowPrintReport(new Boolean(false));
    aseBacklogVORowImpl.setShowShipConfirm(new Boolean(false));
    aseBacklogVORowImpl.setShowShippingDetails(new Boolean(false));
    public void enableToUpdate() {
    ASEShippingInfoVOImpl aseShippingInfoVOImpl = this.getASEShippingInfoVO1();
    Row row = aseShippingInfoVOImpl.getRowAtRangeIndex(0);
    if(row != null)
    row.setAttribute("EditFlag", new Boolean(false));
    public void setDefaultReadonly() {
    /**Container's getter for ASEShippingInfoVO1
    public ASEShippingInfoVOImpl getASEShippingInfoVO1() {
    return (ASEShippingInfoVOImpl)findViewObject("ASEShippingInfoVO1");
    /**Container's getter for ASEShiplogVO1
    public ASEShiplogVOImpl getASEShiplogVO1() {
    return (ASEShiplogVOImpl)findViewObject("ASEShiplogVO1");
    /**Container's getter for ASEBacklogVO1
    public ASEBacklogVOImpl getASEBacklogVO1() {
    return (ASEBacklogVOImpl)findViewObject("ASEBacklogVO1");
    it is showing null pointer exception pls help me asap

    Exception Details.
    oracle.apps.fnd.framework.OAException: java.lang.NullPointerException
         at oracle.apps.fnd.framework.OAException.wrapperException(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at OA.jspService(_OA.java:71)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    ## Detail 0 ##
    java.lang.NullPointerException
         at oracle.apps.pos.salesorder.webui.PosASEBacklogCO.processFormRequest(PosASEBacklogCO.java:107)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at OA.jspService(_OA.java:71)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    java.lang.NullPointerException
         at oracle.apps.pos.salesorder.webui.PosASEBacklogCO.processFormRequest(PosASEBacklogCO.java:107)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(Unknown Source)
         at OA.jspService(_OA.java:71)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    jest i change code in co so i am getting this type of error the query executing i given sop in evety block
    CO:
    // if(CSDTxt == "" && Csdto == "" && partnumberTxt == "" && CustomerTxt == "" && salesorderlineTxt == "")
    thanks.

  • How to update standard table based on the custom table

    Hi,
    I have requirement , I have custom table whatever changes done to the custom table must be updated in the standard table
    i have tried the table maintenance events but unable to handle delimit , what is the base solution for this.
    1) create
    2) change
    3) delimit
    4) delete
    6)copy

    the table im updating is t710
    the custom table is same as the standard table except for one field . whatever the user maintains the values in custom table except for the one field everything should update back to the standard table. Im able to update when we create delele but the problem is delimition. when im delimiting the record in custom table its just changing the startdate and it is not actually delimiting the record itself .I want both records the latest one and previous one and should be update back into the standard table same as the custom table

Maybe you are looking for

  • Links don't work when I export to .pdf

    I am using the newest version of Pages (5.1).  I updated some old documents from Pages '09 and made some edits to them.  Then I exported them to .pdf and in Preview (7.0) none of the links are clickable!  They show up as blue and underlined, but cann

  • Is it possible to add an attachment in an adapter module

    Hi, I'm trying to add an attachment to the main payload in a SOAP communication channel, like this: XMLPayload extraInfoAsAttachment = new XMLPayloadImpl(); //com.sap.engine.interfaces.messaging.spi.XMLPayloadImpl //XMLPayload extraInfoasAttach = msg

  • Why do I get duplicates in lightroom upon import?

    I am getting duplicates in LR even though I don't have any in my orignal files? I am importing from a library on my hard drive. Not everything duplicates itself but at least a third. These are JPEGs, I am using Creative Cloud on a PC running WIndows

  • Smart objects rotating unexpectedly

    Hi All, I don't use smart objects very much, so I hope someone will save me the time of learning too quickly... I have a supplied .psd file which has several faults in method of construction by noobie, but the one throwing me is that two of the 3 or

  • What does chromeappsstore.sqlite in the profile do?

    I just noticed an unfamiliar file in my Firefox 6 profile, chromeappsstore.sqlite. What is that for?