OVS - display result table directly

I have implemented a search help using OVS. I have some search criteria as part of the search help for which I have provided some default value. When the user clicks on the search help the default value is displayed but only when the user clicks on 'Start Search' button the result table is displayed. Is there a way to display the result table as soon as the search help opens with the default criteria applied.
Thanks,
Pooja

HI,
Im just exploring the use of wdr_ovs compoennet....In this component there is a SEARCH view right...In that start search button
there is a action associated with it...I'm just checking this part....
When the  value is entered in the field, wither user needs to hit ENTER key or F4 to trigger the event..But ENTER key doesnot trigger any event...We need to use the F4 which inturn invokes the OVS event handler defined in our compoenent..
When the STARTSEARCH... is clicked one of these phases gets triggered,....we have to explore this way..
Regards,
Lekha.

Similar Messages

  • Problem with OVS search result table..pls hlp

    Hi friends,
    I have crated  an OVS search help. .and its working fine when i hit F4.
    but when i hit search button.. the result table is showing more number of rows(blank), though the result has just 2 records returned.
    there are many no of blank rows. i wnat to get rid of this.
    i also tried to give the default no of rows in my componet (OVS), layout table.
    but still its not decreasing.
    can someone help me howto solve this.
    Niraja

    Hi Niraja,
    When you implement event handler for OVS search, you must have seen the code that gets automatically generated when you assign OVS event to that event handler. i.e.
    case ovs_callback_object->phase_indicator.
      THE FIRST PHASE WHICH SET CONFIG PARAMETERS
    when if_wd_ovs=>co_phase_0.  "configuration phase, may be omitted
        in this phase you have the possibility to define the texts,
        if you do not want to use the defaults (DDIC-texts).....
    and so on.......
    so here inside co_phase_0 you can set the requried data by calling this method:
    ovs_callback_object->set_configuration(
                    label_texts  = lt_label_texts
                    column_texts = lt_column_texts
                    group_header = lv_group_header
                    window_title = lv_window_title
                    table_header = lv_table_header
                    col_count    = 2
                   row_count    = 20 ).
    Here I have hard coded no. of rows to 20 you can just set it to variable which may be holding your rowcount.
    I hope this will help you.
    Regards,
    Neha Modi

  • Alter a BAPI Result Table, how to get into the display "loop" ?

    Hello all,
    i have a problem regarding the result rows of a RFC/BAPI Call.
    There are three views, let's say 1,2,3. In View 1, i call a BAPI, and display the results in a table in View 2. I added a button in each row, which calls View 3 and displays some details concerning the selected row.
    I now want to store a flag for each row, that has been displayed in this way.
    In View 3 i store the key value of the displayed row in an own value node in the context.
    When i go back from View 3 to View 2, i want to see that flag (in an extra column) in every row, that has been selected in this session.
    So i do not know, how to alter a single row in the BAPI result table, how to get into the "loop" that is used by WD to display the table.
    already tried a supply function, but i was not able to alter single rows.
    Any suggestions/tips or perhaps code fragments of working supply functions ?
    Thank you !

    Hello,
    I'm not sure whether I understood your problem correctly, but I will try to give an answer.
    The easiest way I see is to copy the RFC Results to a Component Controller Context structure with an additional Flag field. You can use WDCopyService for copying.
    Then on the event of selecting you set your flag as appropriate for you (e.g. if you want to use an image as flag you set the Image path) on the current element of your table. Then display View 3.
    On going back View 2 should show now the new flag values...
    The trick is to copy the values (as at Time structures can not be expandend with new fields) and set the Flag on the onSelect event.
    Hope this helps,
    Frank

  • How To sort the values of a OVS result table?

    Hello,
    I'm trying (because i'm new je je), to implement an OVS for an inputfield in my WD app. Now i know for sure that my sophisticated value help do the search of the object and stuff, but i'm wondering if i can "sort" or include the sort method in my result table that is show in my OVS rendered view? Plis if you guys could give me some tutorials or info that would be great
    Kisses
    MC

    ok that's another idea that i had in mind, built a new window, but my issue was how call that window fron the table cell, just like an OVS? wich UI Element help me with that, no link to action, no button, it most be something like an inputfield, how did you do that?
    Kisses
    MC

  • Problem in displaying update page when multiple results table regions.....

    Hi,
    In Search page, I have 4 Search result table regions.(1.PropertyResultsTable,2.HouseDetailResultsTable,3.WaterDetailsResultsTable,4.ElectricityResultsTable)
    In PropertyResultsTable Search result table region when I click the update Icon its showing the Last table region's(i.e ElectricityResultsTable) update page.
    Same thing happening for 2.HouseDetailResultsTable,3.WaterDetailsResultsTable also.
    If my search page contain only one result table region I can able to update the record successfully.
    How to get the correct update page if there is more than one results table and each table has the update icon to update the respective record.
    Please suggest.
    Thanks & Regards,
    Sagarika

    Hi,
    Thanks for your response.
    Each search result table has its own controller and I have one RootController for handling 'Go' button click.
    Here is the code,
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    //Transaction
    if (TransactionUnitHelper.isTransactionUnitInProgress(pageContext,
    "waterDetailCreateTxn",
    false)) {
    am.invokeMethod("rollbackServiceInfo");
    TransactionUnitHelper.endTransactionUnit(pageContext,
    "waterDetailCreateTxn");
    else if (TransactionUnitHelper.isTransactionUnitInProgress(pageContext,
    "waterDetailUpdateTxn",
    false)) {
    am.invokeMethod("rollbackServiceInfo");
    TransactionUnitHelper.endTransactionUnit(pageContext,
    "waterDetailUpdateTxn");
    * Procedure to handle form submissions for form elements in
    * a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    if ("update".equals(pageContext.getParameter(EVENT_PARAM))) {
    // The user has clicked an "Update" icon so we want to navigate
    // to the first step of the multistep "Update Employee" flow.
    // Retain AM
    // Do not display breadcrumbs
    pageContext.setForwardURL("OA.jsp?page=/uttara/oracle/apps/uttaraimc/createCitizen/webui/WaterDetailUpdatePG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null, null, true,
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
    OAWebBeanConstants.IGNORE_MESSAGES);
    Thanks & Regards,
    Sagarika

  • Could query form and result table display at seperate pages

    we are new at html db, there are a few of questions we need to clear before we make decision to use HTML DB to develop our next version of application: (I seperate them at differenct topics).
    * Could query form and query result table display at differenct pages?
    Thanks
    Lei

    yeah, this is surely possible...and quite easy. you'd just set your form page up as you'd like. put a button on that page with a branch to your report page. then have your report query refer to the items you defined on the form page. so if your form page had an item called P1_JOB and P1_DEPTNO you could have your report use those items with a query like...
    select ename, job, sal, empno, deptno
    from emp
    where :P1_JOB = job
    and :P1_DEPTNO = deptno
    ...hope this helps,
    raj

  • Hierarchical data display in POWL result table

    Hi All,
    We have a Product BO where each Product is associated with (0..n) product groups and (1..n) distribution chain data. We have a powl  for this Product search where we display results for:
    Product based on predelivered/custom queries and quick search criteria. Now say in the result of a particlualr query we have 5 Product(s). In each row we have columns called Product grp and sales org, where we need to show (0..n) prod grps and (1..n) distribution chain attached to each Product. Can we show this data using nested Column, tree in column, Nested ALV in powl resultset??
    For this, I want to create hierarchy list in POWL. Can anybody tell me how to do that? Are there any configuration settings for this?
    Thanks, Ashish

    Hi Ashish,
    Please use the Grouping and Sub Grouping options with ALV settings.
    Goto results ALV table settings. In that you have tab for Grouping. You can group and Sub Group Columns.
    Also you can define aggregations on the Grouped columns.
    Hope this will be helpful.
    Thanks,
    Anand

  • Is it possible to name the results table.

    Hi, I'm new to java and have hit a brick wall devloping a GUI which access a SAPDB database.
    They layout of the GUI is:
    have a awt lists in card layout, which is populated with the results of a SQL query to table REGION.
    However the number of results returned can be greater then 1Mill. To minimise the mem useage, i'm using the ResultSet absolute(), first() etc methods to collect and display small chunks of the data, for the different card in the gui. This works fine :)
    However, the user is able to select an item from the list to perform a new query, which the results a presented in a dialog box, not dependent on the parent frame. Works :)
    But, when the user (I) try to move anothe card in the parent frame I get this error:
    SAP DBTech JDBC: Object is closed
    com.sap.dbtech.jdbc.exceptions.ObjectIsClosedException: SAP DBTech JDBC: Object is closed
    at com.sap.dbtech.jdbc.ConnectionItem.assertOpen(ConnectionItem.java:54)
    at com.sap.dbtech.jdbc.ResultSetSapDB.beforeFirst(ResultSetSapDB.java:177)
    at blastDb.Table.getResultSetSize(Table.java:205)
    at blastDb.Table.setCursor(Table.java:227)
    at ViewDatabase$RegionPanel.setRegionList(ViewDatabase.java:354)
    at ViewDatabase$TabPanel.showRegionList(ViewDatabase.java:180)
    at ViewDatabase$TabButtonListener.actionPerformed(ViewDatabase.java:289)
    at java.awt.Button.processActionEvent(Button.java:381)
    at java.awt.Button.processEvent(Button.java:350)
    at java.awt.Component.dispatchEventImpl(Component.java:3526)
    at java.awt.Component.dispatchEvent(Component.java:3367)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:191)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
    After some reading I have come up with this hypothesis:
    In the parent frame there is the object (class) RegionTable, which contains the ResultSet (rsR) of the sql query generated by it.
    In the dialog box there is the object (class) ProteinTable which also contains the ResultsSet (rsP) of the sql query generated by it.
    So when RegionTable querys the database the rsR points to the results table in the SAPDB. All good.
    However when ProteinTable querys the database, rsR closes and rsP is valid ie. points to the results table in the SAPDB.
    Thus after the second query RegionTable.rsR is unable to collect the results of its query. BAD :(
    From what i have read, if the results table is named for the first query, the second call which results table is named something diff then rsR will not close, as the results table is not destroyed, thus rsR can read it's results after the second qury.
    This problems occours when the objects share the same connection or diff connections.
    As far as I'm aware i'm using JDBC 1.2 drivers and SAPDB latest build.
    I know i could hold the results in a view, but that requies more coding, being able to name the results table in the SAPDB make it alot easier.
    So my question is:
    1. Are my assumptions correct??
    2. is there a SQL statement to name the results table for a given query?
    From SAPDB:
    A result table name identifies a result table (see table).
    Syntax
    <result_table_name> ::= <identifier>
    And I've got no idea what is beging impiled beyond that it is possible to name a results table. Obtained from :
    http://www.sapdb.org/htmhelp/da/ed9036dfe4b903e10000009b38f889/frameset.htm
    If anyone can help, that would be fantastic!!!
    Cheers
    fauxn

    I've check the code, when the dialog box is opened a new connection is made, and i still get the same error:
    SAP DBTech JDBC: Object is closed
    com.sap.dbtech.jdbc.exceptions.ObjectIsClosedException: SAP DBTech
    JDBC: Object is closed
    at com.sap.dbtech.jdbc.ConnectionItem.assertOpen(Connection
    Item.java:54)
    at com.sap.dbtech.jdbc.ResultSetSapDB.beforeFirst(ResultSet
    SapDB.java:177)
    at blastDb.Table.getResultSetSize(Table.java:205)
    at blastDb.Table.setCursor(Table.java:227)
    at ViewDatabase$RegionPanel.setRegionList(ViewDatabase.java
    :354)
    at ViewDatabase$TabPanel.showRegionList(ViewDatabase.java:1
    80)
    at ViewDatabase$TabButtonListener.actionPerformed(ViewDatab
    ase.java:289)
    at java.awt.Button.processActionEvent(Button.java:381)
    at java.awt.Button.processEvent(Button.java:350)
    at java.awt.Component.dispatchEventImpl(Component.java:3526
    at java.awt.Component.dispatchEvent(Component.java:3367)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Ev
    entDispatchThread.java:191)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Even
    tDispatchThread.java:144)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThr
    ead.java:138)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThr
    ead.java:130)
    at java.awt.EventDispatchThread.run(EventDispatchThread.jav
    a:98)
    when i ask rsR to collect the results from it's query.
    Dosen't make sence, unless its they way I'm implementint the GUI???
    I'll look into the JDBC driver bug.
    Cheers

  • How to get row number of selected entry from OVS search result

    Hi,
    Anyone having any idea on how to get row number of the  selected entry/ how to differentiate rows in OVS search result in ON_OVS method?
    Regards,
    Jatin

    Hi,
    You can get the selected record to <ls_selection> structure in co phase 3.
    From that structure you can get what ever field you want.,
    check the below code for reference,
    << Moderator message - Cut and paste response from F4 help for ALV table field removed. Plagiarism is not allowed in SCN >>
    hope this helps u.,
    Thanks & Regards,
    Kiran
    Edited by: Rob Burbank on Jan 5, 2012 5:24 PM

  • To get checkboxes in the results table of SEARCH page?

    Hi,
    I am trying to create a search form using 'Execute With Params', while doing this I am getting radiobuttons when I go for Enable Selections , but I want Checkboxes to be present there instead of Radio Buttons.
    And also when the page is displayed I want only the search parameter to be prsent and not the results table by default.How can I do that?
    Kindly tell me how can I acheive that?
    Thanks,
    ivaR

    Hi,
    a) create a table with no selection enabled. Then drag and drop the tableSelectMany component into the "Selection" facet of the table
    b) make the default vaue of the bind variable so that no value is returned by the query. Then on the render property of the table, set #{bindings.tableIterator.estimatedRowCount>0}. This hides the table if not query is issued

  • How to sort data in  results table(advanced table) based on some conditons

    I have a requirement like below I have 3 search columns and 3 sort columns in the page. when user enter values in the search columns I will get results into advanced table. After I got results into results table. User will enter values in sort columns and hit sort submit button, Now the final results data should first display the selected sort values first and remaining data in alphabetical order.
    ex: select a,b,c form table1 where a = nvl(:1,a) and b = nvl(:2,b)
    results from main query
    a , b,c,d,e,f
    now user selects a value a1 in column a then results from main query data should display the a1 records first and remaining all records in alphabetical order.
    Please let me know how can we approach to solve this problem.
    Thanks,
    KC.

    Hi
    Use the following method :
    Set the OrderByClause in your voImpl():
    the following is the description of OrderByClause method :
    setOrderByClause
    public void setOrderByClause(java.lang.String expr)
    Sets the ORDER BY clause of the View Object's query statement. Bind variables can be specified using '?' as a place-holder for the value. The new ORDER BY clause does not take effect until ViewObjectImpl.executeQuery() is called.
    regards
    sridhar

  • Unable to display results of multiple query in grid in Oracle SQL Developer

    Hi, I am a newbie to this forum and couldn't find the Oracle SQL Developer forum so posting it here.
    My question: How to display multiple query results in grid in Oracle SQL Developer.
    Example:
    select * from Employee;
    select * from Department;
    - when I select both the queries and hit F5 in Oracle sql developer. By default it displays in output window.
    - How to display result of both the queries in Grid.
    Any thoughts on this would be really helpful.
    Thanks in advance.
    Harsh

    Hi Harsh,
    I'd say that the Results grid is designed to only show the results of 1 query at a time. I don't know/can't see how it would display multiple queries at a time.
    I would suggest either joining your tables to create a single query or opening another SQL Worksheet for one of the queries so that you can display the results side-by-side.
    Maybe you could explain what you're trying to do. Why are you trying to display multiple results in the same query grid?

  • How to use dynamic query for Result table

    Hello Experts,
    I want to use dynamic query and then display the result in the assignment block.
    Using dynamic query BTQAct and BTQRAct and base on some search criteria i want tofilter and then append the result in the result table of that custom context node, and then it should display the result in the view in UI.
    SO can you please provide me the samplle code on how to use the dynamic query and append in the result table.
    Regards.

    Hi,
    Please find below sample code:
    data:  query         TYPE REF TO cl_crm_bol_dquery_service,
               result        TYPE REF TO if_bol_bo_col.
    DATA: lt_params       TYPE crmt_name_value_pair_tab,        
               lwa_params      TYPE crmt_name_value_pair.             
    query = cl_crm_bol_dquery_service=>get_instance( 'BTQAct' ). " Get instance of dynamic query
    Set general query parameter for maximum number of hits
          lwa_params-name = 'MAX_HITS' .
          lwa_params-value = '50'.
          APPEND lwa_params TO lt_params.
          query->set_query_parameters( it_parameters = lt_params ).
          query->add_selection_param( iv_attr_name = 'OBJECT_ID'
                                                    iv_sign      = 'I'
                                                    iv_option    = 'EQ'
                                                    iv_low       = <lv_objectid>
                                                    iv_high      = '' ). " Set your search criteria. Repeat this code if you have multiple parameters
    "You can find possible search options for a query object in  GENIL_BOL_BROWSER
    result ?= query->get_query_result(  ).   " Get result from your search query
    me->typed_context-> <your result context node>->set_collection( result ). 
    Here you will have to create a context node in your view which would refer to query result object like for BTQAct its BTQRAct                      
    Hope this helps.
    e Regards,
    Bhushan

  • Extract the load from file extended results table in a csv file format

    I am trying to figure out a way to extract the extended results table spit out by IDM when we do a load from file. The result generates a table with 10 entries per page. I would like to atleast change that and display all the successes and failures in a single page.
    Edited by: indie on Jan 15, 2008 4:51 PM

    Hi indie,
    I need to do something similar. Did you find a way ?
    TIA,
    AndyDev

  • How to display result of database query in JFrame?

    How to display result of oracle database query in JFrame?
    This is part of my code:
    String username, password;
              DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
              OracleConnection conn = DriverManager.getConnection(String url, String username, String password);
    Statement s= conn.createStatement();
    ResultSet q= s.executeQuery("SELECT A, B, C FROM TABLE X");
    Forget what url, username & password are. Is there any problem with my code?
    What should be next if I want to display result of the query in a table in JFrame?Thx !

    How to create JTable with unknown no. of rows? How to get no. of rows of a query?
    I saw the demo of creating JTable on java.sun.com but the the table has a certain no. of rows which is not applicable to my case.
    Suppose the result of query is a table with 3 attributes so there are 3 columns in the table.
    R contains the result of the query.
    Should it be something like this if I want to create JTable of the query?
    How to make n rows of {R.getString(1),R.getString(2),R.getString(3)};?
    public SimpleTableDemo() {
    super(new GridLayout(1,0));
    String[] columnNames = {"A",
    "B",
    "C",
    while (R.next())
    // content of a row
    Object[][] data = {R.getString(1),R.getString(2),R.getString(3)};
    I can't run it because I still can't debug my code which is said before.
    Thx!

Maybe you are looking for

  • App Server Fails to Start after Installation

    Hi, I've spent a whole day struggling with this, looking through forum discussions and trying out every single suggestion I've come across in the forums. I'm running out of ideas now and really appreciate any help I can get with this problem. I'm try

  • How to choose external drive for Time Machine?

    Having recently changed from a pc to a Mac, I realise that the backup comapny I was using (Carbonite) is not compatible with Mac. I also noticed that Leopard comes with Time Machine and backup features which require an external drive. The website say

  • How do I install Adobe CC on my new iMac?

    How do I install Adobe CC on my new iMac? It was on my old iMac (still is).

  • Make button flash at the end of the content

    is there way to make button flash at the end of the video or auto progress the slide when the video is done?

  • 30" not arriving

    Ordered a 30" cinema display and so far it isn't shipping and no news about when it is, I didn't order it through apple but a large photo store and they tell me that Apple isn't shipping the product, they did tell me 10 days ago that it would be arri