Dynamically displaying a new region (row?) based on immediate user input

Whew, figuring out a title was almost as hard as trying to explain what I want to do!
Okay, a little background first.
My app has 178 main data fields, spread across about 35 tables. The users want to be able to search any and all data fields. So, I wrote a PL/SQL package that for each master record, loops through all of the child tables and creates (more or less) an XML file for each master record (which I store in a CLOB field). When any data in any table is changed, a trigger fires to re-update that CLOB field as well. I then used Oracle Text to create an index on the CLOB field, and now the users can search across all of the available information for each master record and get a list of which records contained what they were looking for.
So here's the first part of the problem. The app is a Mineral Occurence database for all mineral information world-wide. Say they enter "Brazil" as what they want to search for, they not only retreive all of the mineral sites in Brazil, but also all of the sites where one of the mining companies may be based in Brazil, or Brazil is one of the comments, etc. While this is the expected behaviour, it's still not quite what they expected (but they also don't want to get rid of this behaviour either).
So, since the CLOB field is already formatted with XML-type tags, what I want to do is to have an Advanced Search page, where the user can specify the table name to search, or the field name, or both. What I'd like to do is at the end of each line, have a select list with an "AND" or "OR' box, and if that gets a value, then dynamically create another 'row' underneath the first row, with the same three 'boxes' (actually select lists), and continue on until the user has specified exactly what they want to search for.
I would rather not have to create a whole bunch of regions or rows, and then determine at runtime whether or not to display them.
So i would have (using underscores as the boxes/fields):
Table to Search        Field to Search          And/Or
______________          _____________          _______Each of the above would be a select list.
Anybody have ideas on how I can accomplish this? Any Javascript or AJAX-type solutions that a dummy like me can easily implement? I've seen something almost similar on Carl's example pages to Hide/Show a region(?), but understanding the underlying code and then modifying it for what I want to do is extremely complicated (for me) at best.
Thanks.
Bill Ferguson

Well, after searching through the QBE results (even some of mine), the only thing that comes close is Earl's (http://htmldb.oracle.com/pls/otn/f?p=36337:14). Actually his layout is almost perfect and pretty identical to what I want/need. Vikas' example seems like what I've toyed with on some other pages in my app, using a simple UNION ALL with nulled fields in the select statement, which won't work for what I need, at least I can't seem to visualize how I could incorporate that same code logic.
However, unlike Earl's, when/if the last column (which I'd have as the 'AND/OR' select list) is populated, I'd like to dynamically display another new row.
Now I know I could do it by making the last column a 'Select List With Submit', but that would neccessitate my creating about 25 regions (to hopefully cover the max any of the users would ever need), and then conditionally display the region based on whether or not the previous 'AND/OR' condition field was populated. It would also require a whole slew of page refreshes, which is clunky.
It seems like there should probably be a way with AJAX to accomplish something similar. I think I remember seeing something along these lines in the last year or so on here, but I can't find it.
Something like a cross-breed of Earl's example page above mixed with Carl's example at http://htmldb.oracle.com/pls/otn/f?p=11933:39:4740898821262791902::NO:RP:: which would automatically fire on the poplulation of the last select list is probably the best I can accomplish, unless somebody has some better ideas on how to do this. Using Carl's htmldb_remix code, I can avoid all the submits and the resulting page refreshes, but the code itself will take an old dummy like me a while to figure out.
Thanks for the ideas though.
Bill Ferguson

Similar Messages

  • Dynamic display of the Company Name based on Org

    Hello All,
    I need to dynamically display the Company name based on the Org_id and the ORG is not being populated in the XML data file. How do i achieve this,please let me know.
    Thanks
    Rakesh

    Rakesh,
    It's like getting something from nothing (data template)... If you do not want to modify your report, then Vetri's option will be fine(your going to add not modify)...
    Or,. define a new Oracle report based on the seeded one then do modify...
    regards,
    Rownald

  • Dynamic rows increment according to user input in Table Control Module Pool

    HI All,
    I'm doing a Table Control module pool Program. Now suppose there are two fields - MATNR & MAKTX.
    Our requirement is while weu2019ll give the material No (MATNR field), material desc. will be populated in corresponding field (MAKTX field),
    Now the problem is, while we are entering Material No.  in 1st row it is Material Desc. coming in to corresponding field  but while the data is given to next row it replaces the 1st rows data .
    eg - ...............................  ........                                 MATNR.............................MAKTX
    1st entry in 1st row .....................        23...................................  XXX --after pressing 'ENTER'  mat desc XXX comes. now                 2nd entry in 2nd row 24 ..............................                         YYY         --after pressing 'ENTER'
    1st row details like MATERIAL NO(23) & Desc(XXX) got  deleted  & that is replaced by 24 YYY
    We can not extend that no. of rows of Table Control Table more than one row.
    If you kindly help me how it is possible to increase the no. of rows of that table dynamically without replacing the previous row it will be very helpful for me.
    Thanks & Regards,
    Biswajit

    Hi Biswajit,
    This probably means that the table control PAI is modifying the first line always in the internal table instead of current line
    eg: we wite the code
    loop at screen and then modify the internal table with current line
    table_control => name of table control as given on screen
    in PAI of the screen
    loop at internaltable.
       modify internaltable index table_control-current_line .
    put a break point here and see*
    it will always be updating the first record because of some reason - logic error or coding error*
    endloop.
    Also in PBO we can see that the internal table will be having just one record after the action mentioned above....it is a case of overwrite
    To simply increment the number of lines
    table_control-lines = table_control-lines  + 1. in PAI
    Pls check and revert
    Hope it helps
    Regards
    Byju

  • Auto-populate form fields based on end user input?

    I'm currently attempting to create a new form that has a combo box "Locations" with various options.  What I'm looking to do is have another text field auto populate other fields related to that location (such as address, contact information) to save on time and reduce opportunity for end user errors in input.
    What are my options for accomplishing such a task?  Some form of binding fields with a MS database possibly?
    Thanks in advance for any advice and assistance on this matter!

    Paul,
    The form and (potential) database would be located on a shared drive on the company network in which those that would use the form already have access to.
    The pc's that user's would be using have Reader 9.
    The pc I'm using for developing this form has LC Designer 8, Acrobat Professional 8, and Reader 9.
    Ideally, I would "like" for the end user to have the ability to add new locations, addresses, etc ... in the event it is needed, although this would not be likely to come up.
    Based on the software I have on hand, and the need to not incur additional expenses, what would you suggest?
    Thanks again Paul!

  • Dynamic queryin based on number of inputs provided

    I have 7 columns in a tables for which the user can put in values in the fields in the front end and query. The 7 columns have 7 corresponding fields in the front end. But the querying has to be dynamic ... i.e the user does not have to enter all the items in the front end. He can just enter one column value, or 2 upto 7 values for the different columns and it should pass these values to the back end and query the table based on the user inputs and retrieve the rows.
    This means while doin the select on the table the "where" clause where the user provides inputs should be flexible. It should just filter the data based on how many ever input fields the user types in.
    Please let me know how I can achieve this.
    For Example if the columns are col1,col2,col3 .....col7
    If the user just provides value for col1 = col1value and col3 = col3val from front end the query should be like
    select * from table where col1= col1value and col3 = col3value
    similarly if he just provides col2= col2val and col3 = col3 val then
    select * from table where col2= col2value and col3 = col3value
    Edited by: user635059 on Dec 15, 2008 4:55 PM

    Hi,
    I assume only the WHERE-clause changes, depending on the user inputs.
    In PL/SQL, put the parts of the that do no change into string variables.
    Add lines of the WHERE-caluse as needed.
    When you have a complete query in a string, use EXECUTE IMMEDIATE to run it.
    For example
    before_where_txt  VARCHAR2 (5000) := 'SELECT col_a, col_b, ....';
    after_where_txt   VARCHAR2 (5000) := ' ORDER BY col_b, col_c';  -- Note: no semicolon in string
    where_txt         VARCHAR2 (5000);
    IF  col_a_filter IS NOT NULL
    THEN
        where_txt := where_txt || ' AND col_a = ' || col_a_filter;
    END IF;
    IF  col_b_filter IS NOT NULL
    THEN
        where_txt := where_txt || ' AND col_b = ' || col_b_filter;
    END IF;
    ...  -- All the other columns
    -- Change the AND at the beginning of where_txt to WHERE
    IF  where_txt  IS NOT NULL
    THEN
        where_txt := ' WHERE ' || SUBSTR (where_txt, 4);
    END IF;
    EXECUTE IMMEDIATE before_where_txt
                   || where_txt
                   || after_where_txt;

  • User input selection based on Keyfigure

    Hi All,
    Need your inputs to the below situation.
    We have a report which calculates the difference between processing date and issued date. These dates are calculated in BEx as below.
    Processing date =  Date where status is E0023
    Issued Date = Date where status is E0045
    Difference in Days = Issued Date - Processing Date
    Now, the issue is user wants a selection variable on the " Difference in Days". Based on the user input like 1 day, 2 days etc, the output should be calculated.  Request you to put your thoughts on this.
    Regards,

    Hi,
    you can create the 2 formula variables on 2 date fields Processing date, Issued Date
    type of variable is the formula variable and processing method is - replacement pant.
    if you converting the char to KF you can easily calculate the difference days.
    in rows panel put the Processing date, Issued Date then run the query in RSRT or bex analyzer.
    Thanks,
    Phani.

  • Insert new rows based on user selection on a table display on the screen

    Hi..
    In my requirement i need to display the line items of a PO# to the user on the screen for specific fields. Each row should also include an additonal checkbox when displayed for the user. When the user checks this check box or clicks on it a new row should be inserted below to that row with the existing data of that row being copied to newly inserted row and allowing the user to make any changes.
    The newly inserted row should also include a check box , so that when the user checks it again a new row should get inserted. Finally what ever data user enters on the screen, i should be able to update my internal table with those new values and records.
    Appreciate if anyone can guide me on how to proceed on this or any alternative approaches.
    Will reward helpful answers.
    Thanks.

    Hi ..
    Can you please be more detailed. First I need to know how to create the initial table display for the existing line items and then the techniques for inserting the new rows based on the check marks and finally add those news rows to my existing internal table..
    Appreciate ur help.
    Thanks.

  • How to display dynamic values in poplist at row level in advanced table

    I want to display dynamic values in poplist at row level based on a row value in advanced table, with lov i can achieve it, is there any way to achieve this in poplist
    Thanks
    Bbau

    Babu,
    You have been long enough in forum and still come out with these one liners. Problem statement is not clear.
    --Shiv                                                                                                                                                                                                                                                               

  • Displaying Datagrid Rows Based on User Login Id

    Hey Everyone,
    So the problem I am having is that I am making a product configurator and when a user logs in I want to display there previous creations in a data grid so they can select edit or reorder them....the problem I am having is for some reason I can't get the designs to show up based on specific users...here is the process i am currently using in Flex 4.5
    I create 2 tables in the database (Users and Designs)
         the id for the design is based on the id of the user that created it
    In flex I create 2 php services
         -One generated from the users table for creating a new user for the configurator
         -The other one is generated from the Design table and I use the getAllDesigns(); to display the designs in the data grid
    All of the login info is validated through php files that are used by an httpservice call
    So my idea was to run an if statement to display the designs for specific user, something like this (i know the syntax isn't right this is just to get my idea accross
    Var designId = datagrid.row.id;
    (allready have userId var)
    if(userId != designId)
         row.visible = "false"
    I have tried many different approaches but cant get anything to work
    Any Ideas would be helpful
    Thanks In advance

    Your right, i was trying to wrap my head around that idea earlier but decided to go with this option to just see if i could get this to work then work on the server side filtering...
    How would I do this in theory,
    my thinking is that i query in my php file something like
    SELECT * FROM DESIGNS WHERE DESIGNS.ID = USERS.ID;
    then take the filtered data and pass it to a xml document
    then in flex create an array list out of the xml to insert into the datagrid?
    or do you have a better idea?
    also will that information even be able to be editable because i am parsing the data through the xml?
    Thanks for any input

  • Dynamically hide/display multiple report regions.

    Hi,
    I need to build a dashboard like homepage for users with multiple report regions. Users should be able to pick the regions they want and the display point for those regions.
    Is this possible?
    Thanks in advance

    Hello Asha,
    I think the "where" part would have to come from CSS. If you visit http://apex.oracle.com/pls/otn/f?p=49882:3653 you can see a couple of HTML type regions which I placed using div tags and putting something like<div class="rpt_query" id="rpt_query">in the region Header and </div> in the region footer. You can accomplish the same with Report type regions and maybe any type of region.
    As for whether or not a region is shown, that can be done in the Conditional Display attributes. I do this by selecting "Value of Item in Expression 1 = Expression 2" as the Condition Type, a hidden page item as Expression 1, and a number (perhaps corresponding to check box as mentioned previously) as Expression 2. I'm actually using pseudo tabs and when a user clicks one of the tabs it changes the value of the hidden page item and submits the page to get the new region to show up.
    Hope this helps,
    Gregory

  • Dynamic display based on pageName

    Is there any way to dynamically pull content from Content Server based on the pageName? I've tried the following code, which apparently is invalid because you can't have nested xml tags. Is there any other way I can display some text based on the pageName? Any help would be appreciated!
    <pcs:foreach var="item" expr="folderByPath('PageItems')"> <pcs:if expr="item.Page_Name==<pt:pageName xmlns:pt="http://www.plumtree.com/xmlschemas/ptui/"/>"> <pcs:value expr="item.Description"></pcs:value> </pcs:if> </pcs:foreach>
    -Sue

    No, at least not one I can think of. The issue is much deeper than XML syntax, the pcs tags are evaluated when Content Server publishes the item to a static HTML file. That single file is then sent to the portal for display on multiple pages.
    An analogy: you can't write an if statement in a server-side script (e.g. JSP or ASP) that depends on the output of a client-side Javascript call, because the client-side code is just data to the server-side script, it doesn't run until the server has sent the finished page out to the browser.

  • Display interactive report rows based on user role.

    Hello,
    Can anyone please help me out with this issue. i have an interactive report and now i want to make this report as conditional based on user role. Like i want to dispaly all the report rows for an Admin user role and for a developer I want the report to display only his/her rows. Can anyone please help me how can I resolve this issue.
    Do I need to have two separate reports for each role or can we make achieve this with only one report.
    thanks,
    Orton

    Here is a possible answer.. Build your Interactive report off of a collection. And when you build the collection you can build an if statement to either build your select with or without the filtering of user_id..
    See this blog entry for how to build a interactive report from a collection: http://www.oracleapplicationexpress.com/tutorials/71-oracle-apex-interactive-report-based-on-plsql-function
    Thank you,
    Tony Miller
    Webster, TX

  • How to show regions markers in Google maps based on longitude and latitude. on-click of region marker i want to display all the country locations based on the region from share point list?

    Hello every one,
    In My requirement i am having  some regions with longitude and latitude in one SharePoint list. in another SharePoint list i am having the country values with longitude and latitude and region as look up field.  I want to display all the region
    markers in Google maps. on click of any region marker i want to zoom in the map to region level and i need to display all the country markers in Google maps under the region. can any body help me on this requirement.
    Thanks in advance,
    Venu.

    Not sure about Google Maps but this is fairly easy to do with Bing Maps. I've used Bing Maps with SharePoint lists fairly regularly. Here are some blog posts:
    http://blogs.bing.com/maps/2013/03/26/connecting-a-sharepoint-list-to-bing-maps/
    http://blogs.bing.com/maps/2013/03/07/geocoding-a-sharepoint-list-item/
    Once you have your sharepoint list connected to Bing Maps you can easily filter the list data based on the selected country if you have a country column in your list. If you want to take things a bit further an create a much cooler user experience you can
    also use the Bing Maps GeoData API to get the country boundaries and show them on the map as polygons. These could be color coded based on some metric, or set up as the clickable area on the map rather than a pushpin. Here is a blog post on how to use the
    GeoData API with the JavaScript Bing Maps control:
    http://blogs.bing.com/maps/2013/06/25/retrieving-boundaries-from-the-bing-spatial-data-services-preview/
    http://rbrundritt.wordpress.com

  • Dynamic action on show region

    Hi,
    Application Express 4.1.0.00.32
    I have a report region on a page that is conditionaly displayed based on the value of a page item Pn_ITEM = 'HIDE'.
    I have dynamic actions that run on the page that populate a collection and refresh the report without the need to submit the page. However I need to somehow show the report when the collection has at least one member present.
    I have tried the following:
    1st true action executes pl/sql that adds a record / member to a collection, then a 2nd action sets the value to a page item Pn_ITEM = 'SHOW' and a 3rd true action that should show the region based on the set value from true action 2.
    My collection has a member added. The value 'SHOW' is applied to my page item Pn_ITEM by the dynamic action however the report region that I now want displayed is not showing. Obviously if the page is submitted the report will now be shown however I cannot submit the page at this point thats why I need to do this dynamicaly or through javascript and on demand processes.
    Any ideas how to get my report region to display once the collection has at least one member without submitting the page?
    Thanks in advance.

    Remove the condition for display from the region. You don't want to have this here since it will completely stop the region from rendering if the condition is not fullfilled at rendering time. You want it rendered, just not displayed.
    Add css to the region (inline, class):
    style="display: none;"Add a true action which will do a refresh on your region (Component - Refresh, select your report region as an affected element).
    Now either:
    Add a true action of type execute javascript. Since you can't put conditions on true actions, we'll test the condition in javascript.
    Pick one:
    if($v("Pn_ITEM")=='SHOW'){
    //if you want to target the region to be shown by an ID (static id?)
    $("#region_id").show();
    if($v("Pn_ITEM")=='SHOW'){
    //if the triggering element would be the region to be shown
    $(this.triggeringElement).show();
    if($v("Pn_ITEM")=='SHOW'){
    //if you'd want multiple affected elements to be shown at once drop the [0]
    $(this.affectedElements[0]).show();
    };Create a new dynamic action which has the same triggering conditions as your other dynamic action.
    Specify a when condition:
    $v("Pn_ITEM")=='SHOW'Create one true action of the type 'Show' to show the region.
    End result should be your dynamic action creating an element in the collection, a refresh of the report based on the element (but still not shown), and finally a show of the region.
    Don't forget that the actions will also need fire on page load (so don't forget to check the checkbox on the true actions), otherwise the region will not be shown initially.
    I'd say that the item is probably not necessary anymore, but that depends on any other logic you might have on your page and possibly interacts with it.

  • ALV report with dynamic columns, and repeated structure rows

    Hey Guys,
    I've done some ALV programming, but most of the reports were straight forward. This one is a little interesting. So here go the questions...
    Q1: Regarding Columns:
    What is the best way to code a report with columns being dynamic. This is one of the parameters the user is going to enter in his input.
    Q2: Regarding Rows:
    I want to repeat a structure(say it contains f1, f2, f3) multiple time in rows. What is the best way to do it? The labels for these fields have to appear in the first column.
    Below is the visual representation of the questions.
    Jan 06  , Feb 06, Mar 06....(dynamic)
       material 1
    Current Stock
    current required
    $Value of stock
       material 2
    Current Stock
    current required
    $Value of stock
       material 3
    Current Stock
    current required
    $Value of stock
    Thanks for your help.
    Sumit.

    Hi Sumit,
    Just check this sample from one of the SAP site
    ABAP Code Sample for Dynamic Table for ALV with Cell Coloring
    Applies To:
    ABAP / ALV Grid
    Article Summary
    ABAP Code Sample that uses dynamic programming techniques to build a dynamic internal table for display in an ALV Grid with Cell Coloring.
    Code Sample
    REPORT zcdf_dynamic_table.
    * Dynamic ALV Grid with Cell Coloring.
    * Build a field catalog dynamically and provide the ability to color
    * the cells.
    * To test, copy this code to any program name and create screen 100
    * as described in the comments. After the screen is displayed, hit
    * enter to exit the screen.
    * Tested in 4.6C and 6.20
    * Charles Folwell - [email protected] - Feb 2, 2005
    DATA:
    r_dyn_table TYPE REF TO data,
    r_wa_dyn_table TYPE REF TO data,
    r_dock_ctnr TYPE REF TO cl_gui_docking_container,
    r_alv_grid TYPE REF TO cl_gui_alv_grid,
    t_fieldcat1 TYPE lvc_t_fcat, "with cell color
    t_fieldcat2 TYPE lvc_t_fcat, "without cell color
    wa_fieldcat LIKE LINE OF t_fieldcat1,
    wa_cellcolors TYPE LINE OF lvc_t_scol,
    wa_is_layout TYPE lvc_s_layo.
    FIELD-SYMBOLS:
    <t_dyn_table> TYPE STANDARD TABLE,
    <wa_dyn_table> TYPE ANY,
    <t_cellcolors> TYPE lvc_t_scol,
    <w_field> TYPE ANY.
    START-OF-SELECTION.
    * Build field catalog based on your criteria.
    wa_fieldcat-fieldname = 'FIELD1'.
    wa_fieldcat-inttype = 'C'.
    wa_fieldcat-outputlen = '10'.
    wa_fieldcat-coltext = 'My Field 1'.
    wa_fieldcat-seltext = wa_fieldcat-coltext.
    APPEND wa_fieldcat TO t_fieldcat1.
    wa_fieldcat-fieldname = 'FIELD2'.
    wa_fieldcat-inttype = 'C'.
    wa_fieldcat-outputlen = '10'.
    wa_fieldcat-coltext = 'My Field 2'.
    wa_fieldcat-seltext = wa_fieldcat-coltext.
    APPEND wa_fieldcat TO t_fieldcat1.
    * Before adding cell color table, save fieldcatalog to pass
    * to ALV call. The ALV call needs a fieldcatalog without
    * the internal table for cell coloring.
    t_fieldcat2[] = t_fieldcat1[].
    * Add cell color table.
    * CALENDAR_TYPE is a structure in the dictionary with a
    * field called COLTAB of type LVC_T_SCOL. You can use
    * any structure and field that has the type LVC_T_SCOL.
    wa_fieldcat-fieldname = 'T_CELLCOLORS'.
    wa_fieldcat-ref_field = 'COLTAB'.
    wa_fieldcat-ref_table = 'CALENDAR_TYPE'.
    APPEND wa_fieldcat TO t_fieldcat1.
    * Create dynamic table including the internal table
    * for cell coloring.
    CALL METHOD cl_alv_table_create=>create_dynamic_table
    EXPORTING
    it_fieldcatalog = t_fieldcat1
    IMPORTING
    ep_table = r_dyn_table
    EXCEPTIONS
    generate_subpool_dir_full = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    * Get access to new table using field symbol.
    ASSIGN r_dyn_table->* TO <t_dyn_table>.
    * Create work area for new table.
    CREATE DATA r_wa_dyn_table LIKE LINE OF <t_dyn_table>.
    * Get access to new work area using field symbol.
    ASSIGN r_wa_dyn_table->* TO <wa_dyn_table>.
    * Get data into table from somewhere. Field names are
    * known at this point because field catalog is already
    * built. Read field names from the field catalog or use
    * COMPONENT <number> in a DO loop to access the fields. A
    * simpler hard coded approach is used here.
    ASSIGN COMPONENT 'FIELD1' OF STRUCTURE <wa_dyn_table> TO <w_field>.
    <w_field> = 'ABC'.
    ASSIGN COMPONENT 'FIELD2' OF STRUCTURE <wa_dyn_table> TO <w_field>.
    <w_field> = 'XYZ'.
    APPEND <wa_dyn_table> TO <t_dyn_table>.
    ASSIGN COMPONENT 'FIELD1' OF STRUCTURE <wa_dyn_table> TO <w_field>.
    <w_field> = 'TUV'.
    ASSIGN COMPONENT 'FIELD2' OF STRUCTURE <wa_dyn_table> TO <w_field>.
    <w_field> = 'DEF'.
    APPEND <wa_dyn_table> TO <t_dyn_table>.
    * Color cells based on your criteria. In this example, a test on
    * FIELD2 is used to decide on color.
    LOOP AT <t_dyn_table> INTO <wa_dyn_table>.
    ASSIGN COMPONENT 'FIELD2' OF STRUCTURE <wa_dyn_table> TO <w_field>.
    * Get access to internal table used to color cells.
    ASSIGN COMPONENT 'T_CELLCOLORS'
    OF STRUCTURE <wa_dyn_table> TO <t_cellcolors>.
    CLEAR wa_cellcolors.
    wa_cellcolors-fname = 'FIELD2'.
    IF <w_field> = 'DEF'.
    wa_cellcolors-color-col = '7'.
    ELSE.
    wa_cellcolors-color-col = '5'.
    ENDIF.
    APPEND wa_cellcolors TO <t_cellcolors>.
    MODIFY <t_dyn_table> FROM <wa_dyn_table>.
    ENDLOOP.
    * Display screen. Define screen 100 as empty, with next screen
    * set to 0 and flow logic of:
    * PROCESS BEFORE OUTPUT.
    * MODULE initialization.
    * PROCESS AFTER INPUT.
    CALL SCREEN 100.
    * MODULE initialization OUTPUT
    MODULE initialization OUTPUT.
    * Set up for ALV display.
    IF r_dock_ctnr IS INITIAL.
    CREATE OBJECT r_dock_ctnr
    EXPORTING
    side = cl_gui_docking_container=>dock_at_left
    ratio = '90'.
    CREATE OBJECT r_alv_grid
    EXPORTING i_parent = r_dock_ctnr.
    * Set ALV controls for cell coloring table.
    wa_is_layout-ctab_fname = 'T_CELLCOLORS'.
    * Display.
    CALL METHOD r_alv_grid->set_table_for_first_display
    EXPORTING
    is_layout = wa_is_layout
    CHANGING
    it_outtab = <t_dyn_table>
    it_fieldcatalog = t_fieldcat2.
    ELSE. "grid already prepared
    * Refresh display.
    CALL METHOD r_alv_grid->refresh_table_display
    EXPORTING
    i_soft_refresh = ' '
    EXCEPTIONS
    finished = 1
    OTHERS = 2.
    ENDIF.
    ENDMODULE. " initialization OUTPUT
    Regards
    vijay

Maybe you are looking for

  • Oracle error codes

    Hello, My application is handling exceptions like this: try{ resultSet = pStatement.executeQuery(); catch(SQLException e){ conn.close(); if(e.getErrorCode() == 942) // handle with table or view doesn't exist else // handle with other errors Is there

  • ITunes 10.1.54 will not import CDs

    I have been trying to import CDs since this most recent update and I am presented with the message "iTunes is not working properly". Following this the program shuts down, meaning I can't import any new CDs. I'd like to say I was surprised but I am n

  • Can I use a CDMA chip on a GSM iPhone

    While I live in Mexico I use a United States phone. I had an iPhone 5s with Verizon, as you know it's CDMA. My phone broke and it's cheaper to just buy a brand new one than to try to fix it. I am wondering if I buy an unlocked GSM iPhone 6 will I be

  • Sparsebundle with password, prompts incessantly

    I have a password protected sparsebundle where I keep projects which require a little additional security (I've had a computer stolen recently).  The problem I'm encountering is since the 10.7.1 update of Lion, the computer is constantly prompting me

  • WD Compoenent - Non -Interactive form- Not displaying output

    Hi, I am practicing this adobe form session [https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/a3e2f018-0b01-0010-c7a8-89deb6e63e97] from SDN.Unfortunately this session was not complete so I am trying to complete it. In brief : t