How to implement paging in webdynpro jave based on search criteria.

Hi All,
In a requirement I need to implement paging in webdynpro java development.
I successfully did it when there is no search criteria is available i.e webdynpro fetched all data from the BO object and I did it using a "indexNO" (unique serial no from 1,2,3,4.....) field available in BO object.
But when there is search criteria available , i.e the data to be fetched from the BO based on some specific field , at that time the "indexNo"  field of all data fetched based on search criteria are discrete i.e not continious. In that case how to implement the paging concept.
I am using CE version 7.1 EHP 1.
Thanks in advance
Srikanta Satapathy

Hi,
If you go to your VO and generate the ViewObjectImpl, in there you can create a method which will contain two parameters, 1 the attribute name and 2 the value.
Then you can follow something like explained in this post:
ADF Tutorial: How to apply bulk actions to a view object rows
The only difference is that you will need to create a method like this:
public void updateAttribute(String attribute, Integer value){
        RowSetIterator iter = createRowSetIterator(null);
        while (iter.hasNext()){
            Row row = iter.next();
            row.setAttribute(attribute, value);
Then you expose that as a client interface and then after you filter your table by your criteria you just need to execute this method passing the right parameters.
Regards

Similar Messages

  • How to transfer parameters to Webdynpro Java application ?

    Hello guys,
    I had developed a Webdynpro Java application "ZWD", it's URL is
    "http://jt-pldev:50000/webdynpro/dispatcher/local/ZWD_FLIGHT/ZWD".
    "ZWD" had 2 input parametere "InputField" and "InputField1" .
    Accroding to SAP Online Help  document, we can transfer parameter Webdynpro application .
    I want to transfer parameters to application "ZWD"  via URL
    "http://jt-pldev:50000/webdynpro/dispatcher/local/ZWD_FLIGHT/ZWD?InputField=Frankfurt" .
    But it failed.
    My questions:
    1. How to transfer parameter to Webdynpro Java application "ZWD" ?
    2. Does it possible that transfer input parameter to Webdynpro application and run the applicaiton via specific URL ?
    BR,
    Louis

    Hi Louis,
    You can refer to the following Bertram's article:
    [Inter-Application-Navigation in Web Dynpro|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/library/user-interface-technology/wd%20java/wdjava%20archive/inter-application-navigation%20in%20web%20dynpro.pdf]
    The process of accessing the Application URL parameters is explained for Target Component.
    Regards,
    Alka.

  • How to implement paging in struts

    is any body tell me how to implement paging in struts. because it works on action not on page URI.

    u will get so many TLDs' for this. just go googe

  • Webdynpro Java based application performance testin

    Hi Experts,
    could any one of you please provide me step by step guide to use some tool which can be used for profiling webdynpro java based application?
    this is very urgent...... kindly help
    Best regards
    Falgun

    My recommendations:
    - Always use a BufferedInputStream and BufferedOutputStream around the socket streams
    - Increase the socket send and receive buffers to at least 32k if you are on a Windows platform where the default is a ridiculous 8k, which hasn't been enough for about 15 years.
    - Your 2-second timeout is far too short. Increase it to at least 10 seconds.
    - Your strategy of counting up to N short timeouts of S seconds each is completely pointless. Change it to one single timeout of N*S seconds. There is nothing to be gained by the complication you have introduced to this.

  • How to implement route cipher using java?

    Hi guys,,,
    I really got a headache solving how to implement route cipher using java lang,,i already got the concept but i really dont get how to implement it using java actually i want to make a presentation of how route cipher works using "adobe flash" but first i will implement it using java coz flash actionscripts are closer to java lang.
    Hope you could post some examples or ideas...i would really appreciate it!
    thank you so much...

    just add an action listener (either keypressed or keytyped) to the frame that you want to record. I did this in NetBeans in about 2 seconds. I can simplify it if you need. As for loging it just write the characters to a file output stream.
    public class test extends javax.swing.JFrame {
        /** Creates new form test */
        public test() {
            initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        // <editor-fold defaultstate="collapsed" desc=" Generated Code ">
        private void initComponents() {
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            addKeyListener(new java.awt.event.KeyAdapter() {
                public void keyTyped(java.awt.event.KeyEvent evt) {
                    formKeyTyped(evt);
            pack();
        // </editor-fold>
        private void formKeyTyped(java.awt.event.KeyEvent evt) {
            System.out.println(evt.getKeyChar());
         * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new test().setVisible(true);
        // Variables declaration - do not modify
        // End of variables declaration
    }

  • How to create webservice in Webdynpro java

    Hi Experts,
          I need to develop one application in Visual Composer.Since VC doesn't support coding so i need to create Webservice in webdynpro java and use that webservice in VC.Can any one of you please suggest how to create Webservice in Webdynpro Java.
    Regards,
    Prasanna.

    Hi prasanna,
    Refer this links.
    /people/sridhar.k2/blog/2006/09/12/creating-and-exposing-bapi-as-web-service-and-using-it-in-web-dynpro
    BAPI Exposed as Web Service
    Connect R/3 from Java web application
    Web Dynpro integration with R/3
    http://help.sap.com/saphelp_nw04s/helpdata/en/82/6a0e7bbe744276bf393654b9b576ed/frameset.htm
    Regards,
    karthik.

  • How to track session in Webdynpro Java application

    Hi All,
    How to get the session reference of any Webdynpro Java Application . My purpose is that thr is one WD application is getting launched , now if suppose user didn't perform any action on it and session for that application got expired . After the session got expired i have to update the table with the status . So to track that i need the session reference of WD application which i m looking for .
    How could i get the same . Kindly help me on this .
    Thanks & Regards,
    Mitul.

    Hi ,
    HttpSession session = request.getSession(false); //get the current session, if there is no session yet, return null
    if (session == null) //forward to first page
    else //do normal work
    Then u can update ur session right ,
    Regards ,
    Venkat

  • How to implement paging on SQLSERVER JDBC ResultSet?

    Dear experts,
    Please show me somre tips to implement paging on an JDBC resultset?
    Thanks in advanced.

    JSP pagination ? how many records per page ?

  • How to find table used in java based forms

    In R12 how can i find table name used in Java Based forms.

    Record history for OAF / Selfservice pages is only available in R12.1.1 - pl see MOS Doc 565870.1 (Oracle Application Framework (OAF) Release Notes, Release 12.1.1) - it is not available in 11i and 12.0.x releases.
    HTH
    Srini

  • How many connection opened for webdynpro java

    Hi,
        I have 2 webdynpro java application.The applications sharing  the same backend function module.Could anyone tell me
      How many connection will be established when the same user wants to open 2 different application but these 2 application shares the same function module.
    Thanks
    Kanai

    Hi,
    In webdybnpro ,each Model in an Application utilizes a seperate Connection.If u create JCO connection pool for the User then while connecting to backend
    1)The JCO connection pool Manager will open a new connection pool and opens the first connection.
    The next available connection from the pool is allocated to the model object.
    2)The model object is now able to invoke the required functionality in the ABAP system.
    3) When the connection is no longer required by the application, it is returned to the pool.
    4) The connection remains logged on to the backend system until either the next application
    request is received, or the connection timeout is reached.
    5) If no application requests arrive before the timeout is reached, the connection is flagged
    for closure.
    Note:-If an Application contains 2 models which are connecting to same ABAP system then second Model can be told to share the same JCo connection used by First model This is done by calling its setConnectionProvider() method.
    Regards,
    Sunaina Reddy T

  • How Does Bapi related to WebDynpro Java

    Hi all,
    I am Very new to WebDynpro. AM working as a java Developer.
    I want to know
    What is Bapi? And How does it related to WebDynpro?
    Thanks & Regards,
    Jyothi.

    Hi,
    BAPI:
    Whereas BAPIs (Business API(Application Program Interface)) are used for interfacing between two systems. They are remotely enabled function module ie it can be invoked from remote programs like standalone JAVA programs, web interface etc..
    Function Modules are used in SAP programs to modularze the programs. They are Global ABAP programs created by SAP for reusable purpose. They have IMPORT,EXPORT and TABLE parameters, and EXCEPTIONS to through when error occurs.
    You can create them from TCode SE37.They are similar to Functions we have in C, but with more functionality.
    ECC (Enterprise Control Component):
    Master data will be saved in ECC System only.
    ECC is Standalone and ECC is nothing but a backend system similar to Oracle
    It has two versions: ECC 5.0, ECC 6.0 and Now ECC 7.0 is going to release on coming few months.
    Kernel, support pack and all other tools are very much advance in ecc6.0 compare to any other version of sap. It supports NetWeaver component also like BI, XI and EP. In ECC6.0 all components are integrated in single software.
    Please check this Application. This application relation Between ECC System and WDJAVA.
    [Webdynpro JAVA|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f64e7a90-0201-0010-e0b4-ec1f849ecd4e]
    Hope this helps!!
    Regards
    Vijay K

  • How to implement index array inside case structure for searching a 3D array?

    Well I have a 3D array and I want to index certain elements from that array. And I have thought of one way of doing this is to have multiple index array functions on the block diagram to search the array simultaneously, but that would be messy. Or I could setup some kind of case structure and place each index array function into individual cases. I've tried the latter, but when I connect the 3D array to the case structure at the"?" it doesn't give me permission because it says I'm hooking up two different types of data. Case Structure is for T or F and 3D array is not a boolean.
    So how can I setup the Case Structure to work for a 3D array?

    A case structure's selection tunnel cannot accept an array.  What exactly are your search criteria?  It sounds like a few FOR loops will be needed.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to Override executeQuery() in VOImpl.java for simple search

    Hi,
    When I am going thorugh the dev guide I read that we can override the execute query to add more where conditions for a simple search with queryBean.
    As per dev guide ,
    If your view object's definition requires bind values, or you must manually append an unrelated WHERE clause every time the query is executed, you can proceed in one of two ways. In either scenario, OAFramework appends the user's search criteria to the WHERE clause immediately before executing the query,so any WHERE clause characteristics that you define are preserved.
    1. Override the executeQuery() method in your *VOImpl to modify your WHERE clause and then call super.executeQuery(). This is recommended if you exercise the same logic every time the view object is queried.
    2. Handle the generated Go button's press and call an initQuery() method on your view object where you can modify the WHERE clause and/or set bind values.
    I didnt see the executeQuery() in my *VOImpl , am I missing anything here ? can you please help me to code the above ways of handling the execution.
    I saw another exactly post in this forums and it didnt help much . (https://forums.oracle.com/thread/541807) .

    Shobhit,
    Thank you so much for your help .
    I tried like you said and its working . Below is the code I used please correct me if I am wrong or  if there is a better way to do it.
    In controller added the following code
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
            OADBTransaction oadbtransaction = am.getOADBTransaction();
            oadbtransaction.putTransientValue("vnumber", "000016161");
    In VOImpl added the following code
    import oracle.apps.fnd.framework.server.OAApplicationModuleImpl;
    public void executeQuery()
            OAApplicationModuleImpl oaapplicationmoduleimpl = (OAApplicationModuleImpl)getApplicationModule();
            OADBTransaction oadbtransaction =   oaapplicationmoduleimpl.getOADBTransaction();
           String vnumber1 = (String)oadbtransaction.getTransientValue("vnumber");
            setWhereClause("segment1 = nvl(:1,segment1)");
            setWhereClauseParam(0, vnumber1);
            super.executeQuery();
    And ran the page everything working fine .
    I have couple of questions
    1. Is "oadbtransaction.putTransientValue " places the value is transaction cache ? If so is that value available across multiple pages ?
    2. I see there is another option for the above  using pageContext.putSessionValue and pageContext.getSessionValue, I am able to use the pageContext.putSessionValue in controller,
    but I dont know how to use the pageContext.getSessionValue as I didnt see the pageContext in VOImpl and I tried to "import oracle.apps.fnd.framework.webui.OAPageContext" but still no use.

  • How to add a standard field to the Product search criteria ?

    Hello all,
    despite my searches on google and sdn, i'm still  confused on how to add a standard field in the search criteria of the Product seach screens (component/view PRD01QR/Search for example) , I mean a standard Product field that is not included in the available fields list in the UI configuration tool.
    I found some explanations for adding a specific Z-Field, this is ok , but I'd like to add a standard field as a search criterion, namely the item category group.
    Could someone give me the needed detailed steps for this?
    thanks
    Ludovic

    Hi
    Chk ths link out :
    http://wiki.sdn.sap.com/wiki/display/CRM/Howtoaddanexistingfieldtoasearchpageofadifferent+component
    Rgds,
    Swati

  • How can we access the value set to a search criteria's attribute

    Hi guys,
    Is there any way to access the value which was set to a search criteria's attribute programmatically in the backing bean?
    Regards !
    Sameera

    Check sample 85 from the adf code corner sampleshttp://www.oracle.com/technetwork/developer-tools/adf/learnmore/85-querycomponent-fieldvalidation-427197.pdf
    Frank shows how to access the variables.
    Timo

Maybe you are looking for