Display all records from 4 select list

Hi,
trying to associate 4 select list where i could display all records from a list linked to an other list.
1./ Created an item for each select list
P1_employee_name
P1_departments
P1_employee_type
P1_locations
2./Set both null and default values to '-1' for each item
3./Associated these items to source columns in the Region:
where employee_name=:P1_employee_name
or :P1_employee_name ='-1'
and departments=:P1_departments
or :P1_departments ='-1'
and ......
When running the report, couldn't display all records from a given list associated to an other list.
e.g: Display all emp and type of emp for sales dept in Paris.
Thks for your help

I believe the issue is that you need to group your predicates such as:
where (employee_name=:P1_employee_name
or :P1_employee_name ='-1')
and
(departments=:P1_departments
or :P1_departments ='-1')
Also, if you are not already using the "select list with submit" type items, these work great for this case as the page will be submitted when the user changes the value of employeenam and the report will then reflect this change.

Similar Messages

  • Form does not display all records from table

    Hi guys
    I modified one form that was based on a signle DB table. I removed certain fields from the table and added some extra fields to that table. Then based on the new table I also modified the form and removed the text items related to old fields in the table and added new text items pointing to the new fields now. II have checked all the new items properties and they have don't seem to be wrong or so. But now the problem is the form does not display all the records from the table. before it used to display all records from the table when qureied but not now. It only certain records from the table containing all new data and also old data but the form does not display other records though I don't see any obvious discrepancy. Remember that the before doing the modifications, I have table back for the old, created another table that contained new records for the new fields, and then I inserted the old records and updated the new table data in the new table with these new table values. So this way I have got my new table. Could someone help why the new modified form fails to display all records from the new table updated table though it display some of them successfully.
    Any help will be appreciated.
    Thanks

    hi
    Set the block property of "Query All Records" to "YES"
    hope it will work.
    Faisal

  • How to display a value from Select List by default

    I have a Select List on a form and I need to on page load show an entry from the SL depending on the user Id of the user logged on.  For example, if the SL had 3 entries: 'Div1', 'Div2', and 'Div3', depending on the division the user belongs to (I can determine that from his user Id using a SQL), say, I need to display 'Div2' to the user in the SL instead of the usual NULL or '---- Select Div ----'.  'Div1' and 'Div 3' entries will still be part of the SL, but for user's convenience I need to display their division.
    Any ideas?
    Thanks,

    Hi Ajay,
    you need to specify your apex version, database version and so on to make our help specific.
    Anyhow you can create a page process- for example one at On Load before header.
    For example;
    [code]
    declare
      v_division varchar2(32);
    begin
      --select default division
       select my_division
       into v_division
      from my_division
      where my_division=:APP_USER;
    :P_DIVISION:=v_division;
    end;
    [/code]
    Then in the default of your select list, specify P_DIVISION as the default. Using one of several methods
    Understanding Page-Level Items
    Kofi

  • How to display all record from table?Please help

    I mean, if table has for example 5 records this5 records are displayed, if table has 100 records this 100 is displayed. If there are many records which are not visible in the window the scroll is added to window or to canvas that i could see them all.
    And one more, i want to separate each record with some separator like line or picture.
    TIA

    You can increase the space between each record by setting the Distance Between Records property for each item.
    If you want "sth like line" tnh u cn uz a nndtbs itm wiv 2 pxl hi plcd blw teh ovr itms. Alternatively, if you can write proper English, then for the separator you can use a non-database item 2 pixels high placed below the other items. Set the bevel, colour etc as you require, and set the Enabled property to false.
    As an alternative, to make each record distinct from the next you could give each a different colour by creating a visual attribute, and setting the colour of each item on alternate rows with code similar to this, in the post-query trigger
    if mod(to_number(:system.trigger_record),2) != 0 then
         set_item_instance_property('block.item1',current_record,visual_attribute,'VA_ODD');
         set_item_instance_property('block.item2',current_record,visual_attribute,'VA_ODD');
         etc...
    end if;finished this bit after steve's post below...
    To hide unused records you could try putting the items on a stacked canvas and change the viewport and scrollbar heights depending on the number of records retrieved. This might work or it might give you an error about items being off-canvas.
    It looks like you're intending this to look like a blog's comments page so you'll probably have disabled inserts in the block and will be inserting new comments in some other fields. If not then there will be a problem if the user is on the last record and presses the down arrow or uses the 'Record > Insert' menu option, as this could put them on a record which is not visible on the form. You might be able to get round this by extending the height of the viewport in the key-crerec and key-nxtrec triggers (check for :system.last_record = 'TRUE'. Obviously, you'll need to resize the viewport when you delete records if that will leave fewer rows of data than there are rows of fields.

  • About selecting record from a list

    hai sir ,
               i have displayed on list using alv function module . but ,i want to select one or more record from the list.
    and press any function key it shoud display the records which i was selected.how its possible give some idea.

    hi,
    u can easily do ot using a alv grid control as follows
    1.create a class with handle toolbar method by which u can create customized button .Here i have given the function code as DISPLAY.In the handle user commad u have to write the command for displaying the selected row.Using the get selected row methos ,u will get the selected row index so that u can read the internal table with that index to get the record.After getting the selected row u can display it as pop up by calling the function module POPUP_WITH_TABLE_DISPLAY
    For enabling the selection in grid ,set the layout like this ls_layout-sel_mode = 'A'.
    for pasiing it to set_table_for_first_display
    *--->class defenition and implementation
    *class defenition
    CLASS cl_eventhandler DEFINITION.
      PUBLIC SECTION.
        METHODS:
          handle_toolbar FOR EVENT toolbar OF cl_gui_alv_grid
                IMPORTING e_object e_interactive,
          handle_user_command FOR EVENT user_command OF cl_gui_alv_grid
                IMPORTING e_ucomm,
          handle_hotspot_click  FOR EVENT hotspot_click OF cl_gui_alv_grid
                IMPORTING e_row_id e_column_id es_row_no.
    ENDCLASS.                    "cl_eventhandler DEFINITION
    *class implementation
    CLASS cl_eventhandler IMPLEMENTATION.
      METHOD handle_toolbar.
        DATA: ls_toolbar  TYPE stb_button.
        CLEAR ls_toolbar.
        MOVE 'DISPLAY' TO ls_toolbar-function.
        MOVE icon_print TO ls_toolbar-icon.
        MOVE 'Print warranty sheet' TO ls_toolbar-quickinfo.
        MOVE 'Print warranty sheet' TO ls_toolbar-text.
        MOVE ' ' TO ls_toolbar-disabled.
        APPEND ls_toolbar TO e_object->mt_toolbar.
        CLEAR ls_toolbar.
      ENDMETHOD.                    "handle_toolbar
      METHOD handle_user_command.
        CASE e_ucomm.
          WHEN 'DISPLAY'.
    CALL METHOD gr1->get_selected_rows
              IMPORTING
                et_index_rows = lt_rows.
        ENDCASE.
      ENDMETHOD.                    "handle_user_command
      METHOD handle_hotspot_click .
        READ TABLE it_alv INTO wa_alv INDEX e_row_id-index.
        IF sy-subrc EQ 0.
          CHECK NOT wa_alv-vbeln IS INITIAL.
          SET PARAMETER ID '/DBM/ORDER_NUMBER' FIELD wa_alv-vbeln.
          CALL TRANSACTION '/DBM/ORDER03' AND SKIP FIRST SCREEN.
        ENDIF.
      ENDMETHOD.                    "handle_HOTSPOT_CLICK

  • Delta package not fetching all records from Delta queue in r/3

    Hello,
    I have loaded Goods Movement Data using 2LIS_03_BF datasource into my BI system.
    The Delta has been initialized and everyday the delta is being moved from r/3.
    I observed that when I execute my delta package not all delta records are fetched into PSA from r/3.
    For Ex: Before starting my delta package I checked in SMQ1 of my R/3 system and see that there are around 1000 records.On executing the delta package I see that the record count is reduced from 1000 to 400 in SMQ1.On executing the delta package again I get the remaining 400 records into my PSA.
    Shouldn't the delta package get all records from the queue on single execution??
    Is there some setting to define the nr of records to be loaded?
    I'm confused with this behaviour.Please help me understand this behaviour.
    Thank You.

    Hello,
          First thing: the data is not transferred from the SMQ1 queue, rather the data is transfered to BW from the RSA7 Delta queue. You need to check the number of records present in the RSA7 queue.
    Since SMQ1 is involved, i think you are using the unserialized V3 update method. In this method, when data is first written to the application tables, it is first transferred to the SMQ1 update queue,then via a job to the LBWQ extractor queue and then to the RSA7 delta queue. So the number of entries that you see in the SMQ1 queue are not the number of entries that have to be transferred to BW but rather the records that are waiting to be transferred to the extractor queue in LBWQ. Similarly, in LBWQ, the number of entries displayed here are not the no of entries that are going to be transferred to BW, they are the no of entries that will be transferred to the delta queue RSA7 when the next v3 update job runs.
    If you want to check the number of records that will be transferred to BW, select the datasource in rsa7 and then click on the display data entries button.
    Hope this helps.
    Regards.

  • Impact of selecting "Removing Query from Selection List" in 2 channels.

    HI All ,
    I have customized a query in one channel (My Agreements and Contract Documents query in Master Agreements List channel) and have removed the standard query from the channel by checking the  "Remove Query from Selection List" and introduced my custom query in that query group .
    But  it resulted in break in chain for  "Master Agreements" link in "Contracts To Do List" channel as the link was pointing to standard  "My Agreements and Contract Documents" query and is displaying "The query can not be executed. Contact your system administrator" when ever I click on that.
    Any pointers on how to overcome above scenario wud be gr8!
    Regards,
    Uday

    Hi Uday,
    In order for To Do List channel to work, the query definition should be in the Master Agreement List query group. Do you still want the standard query in the To Do List? If so, you would have to leave it on the Query Group as To Do list is pointing to it. May be change the display name of the query so you can differentiate between the 2 queries. The other option is change the To Do channel to point to the custom query.
    Regards,
    Vikram

  • Database displaying all records when no records are in database

    SEARCH PAGE:
    <form id="searcMennuu" name="searcMennuu" method="post" action="VehicleListing.php">
    <select name="vehicles" id="vehicles">
    <option value="allCars" selected="selected">ALL</option>
    <option value="Sedan">Sedan</option>
    <option value="Jeep">Jeep</option>
    <option value="Motorbike">Motorbike</option> </select> <input name="radioVehicle" type="radio" id="searchSale" value="searchSale" />
    Vehicles for Sale</label>
    <label>
    <input type="radio" name="radioVehicle" id="searchRent" value="searchRent" />
    Vehicles for Rent</label> <input type="submit" name="searchButton" id="searchButton" value="Search" />
    </form> RESULTS PAGE:
    mysql_select_db($database_ddd, $ddd); $query_rsTest = "SELECT `year`, `model` FROM vehicles";
    if (isset ($_POST ['vehicles'])) {
    $parSearch = mysql_real_escape_string ($_POST['vehicles']);  if($_POST['vehicles'] == "Sedan"){
    $query_rsTest.= " WHERE vehicle_type LIKE '%$parSearch%'";
    } $rsTest = mysql_query ($query_rsTest, $ddd) or die(mysql_error());
    $row_rsTest = mysql_fetch_assoc ($rsTest);
    $totalRows_rsTest = mysql_num_rows ($rsTest); <div class="showPage"><?php echo $totalRows_rsTest ?></div><?php do { ?>
     <?php if ($totalRows_rsTest > 0) { // Show if  recordset not empty ?> 
    <div class="output" id="Results">
    <p><?php echo $row_rsTest['year']; ?></p>
    <p><?php echo $row_rsTest['model']; ?></p>
    </div>
    <?php } // Show if recordset empty ?>
    <?php } while ($row_rsTest = mysql_fetch_assoc($rsTest)); ?> 
    1. I think i found out why the hide region is not working, whenever i search for something that is not in my database or does not satisfy my search criteria the results page is displaying all records in the database. However i don't know how to fix that. Can someone please help me?
    2. Also i'm trying to find out how i would display ALL vehicles in my database either for rent or sale, i dont have a field in my database for "ALL" so i'm not sure where to start. Thanks in advance

    Which BOBJ version do you use?
    Which kind of data source are you retrieving data from?
    Regards,
    Stratos

  • Incomplete Data on report (report does not show all records from the table)

    Hello,
    I have problem with CR XI, I'm running the same report on the same data with simple select all records from the table (no sorting, no grouping, no filters)
    Sometimes report shows me all records sometimes not. Mostly not all records on the report. When report incomplete sometimes it shows different number of records.
    I'm using CR XI runtime on Windows Server 2003
    Any help appreciated
    Thanks!

    Sorry Alexander. I missed the last line where you clearly say it is runtime.
    A few more questions:
    - Which CR SDK are you using? The Report Designer Component or the CR assemblies for .NET?
    - What is the exact version of CR you are using (from help | about)
    - What CR Service Pack are you on?
    And a troubleshooting suggestion:
    Since this works on some machines, it will be a good idea to compare all the runtime (both CR and non CR) being loaded on a working and non working machines.
    Download the modules utility from here:
    https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip
    and follow the steps as described in this thread:
    https://forums.sdn.sap.com/click.jspa?searchID=18424085&messageID=6186767
    The download also includes instructions on how to use modules.
    Ludek

  • How get all record from master and matching record from detail

    hi master
    sir i have master detail table
    i have many record in master table but some record in detail table how i get
    all record from master and matching record from detail
    such as
    select m.accid,m.title,d.dr,d.cr from master m, detail d where m.accid=d.accid
    this query not work that get only related record i need all record from master
    please give me idea
    thanking you
    aamir

    hi master
    sir i have master detail table
    i have many record in master table but some record in
    detail table how i get
    all record from master and matching record from
    detail
    such as
    select m.accid,m.title,d.dr,d.cr from master m,
    detail d where m.accid=d.accid
    this query not work that get only related record i
    need all record from master
    please give me idea
    thanking you
    aamir
    select m.accid,m.title,d.dr,d.cr
    from master m, detail d
    where m.accid=d.accid (+)The outer join operator (+) will get you all the details from master and any details from the detail if they exist, but the master details will still be got even if there are not details.
    Note: Oracle 10g now supports ANSI standard outer joins as in:
    select m.accid,m.title,d.dr,d.cr
    from master m LEFT OUTER JOIN detail d on m.accid=d.accid

  • Query not displaying all records when execute it first tme

    Hello,
    i have an issue with the WEBI report.when i run  the report first time it's displaying only few records, but when i run the same report second time it's displaying the more records and it's correct.
    Could any one tell me why it's not displaying all records when i execute first time.
    Thanks in advance for your help.
    Regards,
    Prathap

    Which BOBJ version do you use?
    Which kind of data source are you retrieving data from?
    Regards,
    Stratos

  • Accessing display values of a select list (or LOV)

    Hi all,
    I was asking myself if it is possible to access the display values of a select list (to be added to a report header and to the Head section of a pdf export),
    and to call them in form of the &xxxxx. notation
    e.g. if &P10_REGION. return the selected value (e.g. 1), I would like to have the corresponding display value (e.g. USA) .
    Kind regards,
    Boris

    Thank you Graham,
    unfortunately I'm a newbie regarding Javascript. Reading the APEX help, I could understand something but not everything.
    I would enter into the page html body the following script
    <script type="text/javascript">
    document.getElementById('P10_hiddenItem').value = document.getElementById('P10_referenceItem').text;
    </script>
    Is this the correct approach?
    how should I then submit the page?
    Thank you,
    Boris

  • Urgent :Show all records till selection screen date

    Hi Techis
    i want to show all records till selected date , selection screen consist of date also and my select statement is given below so any body pls tell me what changes i hav to make so that all records till particular date should b shwn
    Select statement is
    SELECT BUKRS KUNNR
    BLDAT
    GSBER
    DMBTR
    BUDAT
    GJAHR
    SGTXT
    SAKNR
    SHKZG
    PRCTR FROM BSID INTO corresponding fields of TABLE IT_FINAL WHERE BUKRS IN S_BUKRS AND
    SAKNR IN S_SAKNR AND
    GSBER IN S_GSBER AND
    PRCTR IN S_PRCTR AND
    BUDAT IN S_BUDAT AND
    KOSTL IN S_KOSTL.
    and selection screen is ...
    SELECTION-SCREEN BEGIN OF BLOCK AGE WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS : S_BUKRS FOR BSID-BUKRS," OBLIGATORY DEFAULT 'TCIL'
    S_KUNNR FOR KNA1-KUNNR,
    S_SORTL FOR KNA1-SORTL,
    S_SAKNR FOR BSID-SAKNR DEFAULT '15110013',
    S_KTOKD FOR KNA1-KTOKD ,"OBLIGATORY DEFAULT 'LTOB'
    S_GSBER FOR BSID-GSBER,
    S_PRCTR FOR BSID-PRCTR,
    S_KOSTL FOR BSID-KOSTL,
    S_GJAHR FOR BKPF-GJAHR," OBLIGATORY.
    S_BUDAT FOR BSID-BUDAT DEFAULT SY-DATUM."OPEN ITEM DATE
    *PARAMETERS : P_BUDAT LIKE BSID-BUDAT DEFAULT SY-DATUM." OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK AGE.
    rewars for help ful ans

    Hi Santosh,
    If your requirement is up to the selection date you'd better use a parameter (which can only hold one value).
    Then define a range in your program:
    DATA:
    zlt_budat_range TYPE RANGE OF budat,
    zls_budat_range LIKE LINE OF zlt_budat_range.
    zls_budat_range-sign = 'I'.
    zls_budat_range-option = 'LE'.
    zls_budat_range-low = pa_budat.
    APPEND zls_budat_range TO zlt_budat_range.
    .....AND budat IN zlt_budat_range.
    Regards,
    John.

  • How to get the value from select list to text box

    Hi,
    I have a select list i want to retrieve the value from select list to text box.
    How can i do that???
    Regards,
    Sakthi.

    Hi Sakthi,
    Yo can use the Java script for that..
    Dynamically the value will come into text box.
    Use the below script.
    <script type="text/javascript">
    function disFormItems()
    var lReturn = $v(here your select list name)
    alert(lReturn);
    document.getElementById(here your text box name).value =lReturn; }
    </script>Cheers,
    Shan

  • Displaying all sublevels from root folder

    Hi,
    Can anyone please help me out from the following task,
    I need to display all folders from the following example.
    Eg:- Folder (Level 0)
    Folder1(Level 1)
    Folder11(Level2)
    Folder111(Level3)
    Folder2(Level1)
    Folder22(Level2)
    Note: Level is not fixed.
    Thanks,
    Bhaskar.

    http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html

Maybe you are looking for

  • IPhone 5, lightning adapter, Life Fitness treadmills

    Hi, has anyone tried the iPhone 5 with the lightning adapter in the life fitness treadmills that have iPod 30pin connectors. I tried myself and it didn't work, it recognizes the iPhone which charges and says accessory connected in the iPhone screen b

  • Create Process Flow

    Dear All, I had some mappings in my OWB and I don't want to run them individually, I want all of them to run at once in a specific order by a single click. Should I create process flow to achive this? Do I need to install any thing to create process

  • How do I connect OS X 10.2 Tiger to The internet!?

    Im trying to connect But I cant because My built in ethernet is greyed out. Help please! A screenshot if it helps:

  • How To: Google+ Feed In Adobe Muse

    Goodday! I would like to know if their is anyway to embed G+, full page, in to one page on Adobe Muse CC. A bit like how you would embed a Tumblr blog. Thanks.

  • HP OJ Pro 8500A not printing barcodes on boarding passes accurately

    Recently upgraded to this model. I travel weekly and have never had this problem. Have tried adjusting settings to 'best'quality with no luck. The rest of the print quality is perfect but the barcodes required for scanning have some grey bars / secti