Select list filter in a tabular form problem

Hello everyone:
I need to filter a list in a tabular form, depend on another column value in the same row of the Tabular Form
Try using the syntax *#COLUMN#* in the query of select list but did not work.
This is my query
SELECT   nombre_respuesta, cod_respuesta
  FROM   enc_respuesta
WHERE   cod_pregunta = #COD_PREGUNTA#There is another way I can refer to the value of a column in the same row?
regards
Gerard

Thank you so much for the quick response saved my life!.
For future reference let examples of the use of APEX_UTIL.SAVEKEY_VC2 and APEX_UTIL.KEYVAL_VC2
This is the query of the Tabular Form
SELECT   den.cod_encuesta,
         den.cod_det_encuesta,
         den.cod_pregunta,
         pre.nombre_pregunta,
         den.respuesta,
         den.observaciones,
         APEX_UTIL.SAVEKEY_VC2(den.cod_pregunta) codpreg
  FROM   enc_det_encuesta den, enc_pregunta pre
WHERE   den.cod_pregunta = pre.cod_pregunta  
   AND   den.cod_encuesta = :P6_COD_ENCUESTAThis is the query "Select list"
SELECT   nombre_respuesta, cod_respuesta
  FROM   enc_respuesta
WHERE   cod_pregunta =  APEX_UTIL.KEYVAL_VC2regards
Gerard

Similar Messages

  • Cascading select list issue in a tabular form

    hello,
    how can i implement cascading select list for filtering my tabular form report results.
    Like i want to have the cascading select list above the tabualr form report such that when i select the value and try to click a button, my tabular form report should filter the report based on the select list value.
    i want to have three select list items above my report - and these select list are dependent on one other - tats why i want to make them cascading select list.
    can anyone help me out with cascading select list.
    thanks.

    Thank you so much for the quick response saved my life!.
    For future reference let examples of the use of APEX_UTIL.SAVEKEY_VC2 and APEX_UTIL.KEYVAL_VC2
    This is the query of the Tabular Form
    SELECT   den.cod_encuesta,
             den.cod_det_encuesta,
             den.cod_pregunta,
             pre.nombre_pregunta,
             den.respuesta,
             den.observaciones,
             APEX_UTIL.SAVEKEY_VC2(den.cod_pregunta) codpreg
      FROM   enc_det_encuesta den, enc_pregunta pre
    WHERE   den.cod_pregunta = pre.cod_pregunta  
       AND   den.cod_encuesta = :P6_COD_ENCUESTAThis is the query "Select list"
    SELECT   nombre_respuesta, cod_respuesta
      FROM   enc_respuesta
    WHERE   cod_pregunta =  APEX_UTIL.KEYVAL_VC2regards
    Gerard

  • Select list enable / disable in tabular form

    Hi,
    I have created report on (ACT_COA_SEGMENT_MAS) table and this is master table , and created link on this report, when i click on report link, control moves to tabular form that is based on detail table (ACT_SEGMENT_VALUES_MAS)
    In master table there is column,
    SEGMENT_ID number primary key;
    QUALIFIER varchar2(1);
    If in master table qualifier column value is 'N' then
    then in detail table (ACT_SEGMENT_VALUES_MAS) column account type cannot be null and column should enable.
    If in master table QUALIFIER column value other than 'N' then Account column in detail table should disable . and value should not be enterable.
    and ACCOUNT_TYPE column in deatil table is a select list.
    How i can do this?
    Thanks & Regards
    Vedant
    Edited by: Vedant on Jan 10, 2013 10:14 PM

    Vedant wrote:
    If in master table qualifier column value is 'N' then
    then in detail table (ACT_SEGMENT_VALUES_MAS) column account type cannot be null and column should enable.
    If in master table QUALIFIER column value other than 'N' then Account column in detail table should disable . and value should not be enterable.
    and ACCOUNT_TYPE column in deatil table is a select list.
    How i can do this?One way - sadly a bit of work - would be to use APEX_APPLICATION_ITEM to generated the detail items as a manual tablular form where you can control the disabled property when generating the tabular form fields using CASE statements, writing manual PL/SQL processes and the built-in APEX_ITEM collection to manually perform insert/update/delete operations on submit. Check the documentation for the full syntax of using APEX_ITEM functions to generate HTML items.
    An example from the Oracle docs looks like
    SELECT
      empno,
      APEX_ITEM.HIDDEN(1,empno)||
      APEX_ITEM.TEXT(2,ename) ename,
      APEX_ITEM.TEXT(3,job) job,
      mgr,
      APEX_ITEM.DATE_POPUP(4,rownum,hiredate,'dd-mon-yyyy') hiredate,
      APEX_ITEM.TEXT(5,sal) sal,
      APEX_ITEM.TEXT(6,comm) comm,
      deptno
    FROM emp
    ORDER BY 1where the disabled property could be specified in the unlisted fifth argument to APEX_ITEM.TEXT. The first item to the APEX_ITEM calls is a number defining the G_FXX global variables so that 1 identifies the item later as apex_application.g_f01(9) - 9 being symbolic for a collection identifier -, ename as apex_application.g_f02(i),m and so on. The G_F99 items can be reference on submission in Pl/SQL processes through looping, something like (this example assumes all array items are populated - under some circumstances they may not be)
    for i in 1..apex_application.g_f01.count loop
      update my_table set sal = apex_application.g_f05(i) where empno = apex_application.g_f01(i);
    end loop;Edited by: riedelme on Jan 11, 2013 7:12 AM

  • Populate select list when a date selected from date picker in tabular form

    Hi Guys,
    I have a situation where user picks a date from a date picker in tabular form.
    So as soon as he picks a date say 05/31/2011 from the date picker I want to populate a select list with 2 values : Tuesday AM , Tuesday PM.
    I have gone through the forums a lot and figured we can write a Dynamic Action using JQuery Selector. But I am not sure how to figure out the day from a date picker.
    I appreciate if some one can give your thoughts on how to proceed. It seems to be simple but looks like a tricky one. I am not familiar with writing Java Script.
    Thanks ,
    Raj

    I was thinking your date selected from CALENDAR ended in a list_item.
    I don't know I thinking that
    well,
    :master_block.itemdate is your text_item where calendar return date selected.
    and then , following Gerd's step
    Create a WHEN-MOUSE-DOUBLECLICK on the date-item of CALENDAR and write :
    begin
    :master_block.itemdate := calendar (.........);
    go_block ('master-block');
    execute_query;
    end;
    or set a global or parameter variable date selected from calendar :parameter. xxxxxx
    in a PRE-QUERY
    :master_block.itemdate := :parameter. xxxxxx
    and
    Create a WHEN-MOUSE-DOUBLECLICK on the date-item of CALENDAR and write :
    begin
    :parameter. xxxxxx := calendar( ....);
    go_block ('master-block');
    execute_query;
    end;
    regards

  • Select query based LOV for tabular form attributes

    Hi HTMLDB Team,
    Congrats u all for the new release of HTMLDB in htmldb.oracle.com.
    I badly need a solution of the below problem.
    Say , i have table called user_col_comments now i want to display the table_name ,column_name and comments in a tabular form.I displayed only one row for the tabular form.Now i create a select query based LOV for attribute table_name where i got all table_name in drop down list.
    Point is that after selecting any data from drop down table list i want to get the corresponding fields to be populated in column_name attributes.How can i wrote the select query based LOV for the attibute column_name.
    I wrote it as 'select column_name d,column_name r from user_col_comments where table_name=:TABLE_NAME Its not working?
    Similarly i want same thing to display for comments after matching both table_name and column_name.
    Any solution to get rid of those problem will be highly appreciable...
    If u need my htmldb.oracle.com userid and password to solve the problem i will sure let u email it.
    Cheers,
    Eman

    hi rchalton,
    can u plz little bit more clearer .I know hopefully u can imagine the problem and may u guide me thru proper way.....One think i understand that there must be multiple process and submit but "only when..." that u have said i cant understand that part........
    U are welcome to give me proper solution.....
    Thanks for the reply ....atleast one can pay hid to me.....
    Cheers,
    Eman

  • Select List with Submit - Branch Error - form data does not save

    I am a new APEX user so please excuse my ignorance. I have created a simple application in which a primary data entry form branches either to a detail form (one to many on the parent ID) or a master tabular report used for navigation. These branches work fine. Then I tried to get a little fancy with a conditionally displayed element based on the value the user selects in a select list on the main form(P9_REPORT_TYPE). I converted the select list to a select list with submit and created a new branch (on submit - after processing) to the current page (Page 9) to avoid the "no branch found" error. To avoid the branch being unconditional, I tried to use the 'Request = Expression1' condition with the Expression 1 field set to P9_REPORT_TYPE. The behavior I get is that the page seems to submit but the data on the form is not saved -- even the new value selected in P9_REPORT_TYPE reverts to the old value. I simply need the page data to submit so that the conditionally displayed element will take effect (which it does if you use one of the other button-based branches and then return to the form). Do I have the syntax wrong? It seems like this should be straightforward but I've tried a number of options including using a PL/SQL condition V('REQUEST')='P9_REPORT_TYPE' with no success. I'm guessing that the value of Request is getting cleared before it has a chance to trigger the branch? Any help would be greatly appreciated.

    Exactly so! Thanks Scott for setting me straight. For the benefit of other readers, the value in the Source Used column had been set to "Always, replacing any existing value in session state" and should have been set to "Only when current value in session state is null".

  • Mulitiple select list  filter

    I am trying to create a search on a report that needs to have several list of values on several tables some of which are lookup tables that do not directly reference the main tables on which the report is built upon. Also need to have at least 3 text box search areas. Also I would like to be able to do a full search on the report that brings back everything in the report and be able to search on one or any combination of search criterias. I have looked at Sergio's example but there are only three tables being used there. As stated before I will need to get information from several tables. Can anyone help?

    Thank you so much for the quick response saved my life!.
    For future reference let examples of the use of APEX_UTIL.SAVEKEY_VC2 and APEX_UTIL.KEYVAL_VC2
    This is the query of the Tabular Form
    SELECT   den.cod_encuesta,
             den.cod_det_encuesta,
             den.cod_pregunta,
             pre.nombre_pregunta,
             den.respuesta,
             den.observaciones,
             APEX_UTIL.SAVEKEY_VC2(den.cod_pregunta) codpreg
      FROM   enc_det_encuesta den, enc_pregunta pre
    WHERE   den.cod_pregunta = pre.cod_pregunta  
       AND   den.cod_encuesta = :P6_COD_ENCUESTAThis is the query "Select list"
    SELECT   nombre_respuesta, cod_respuesta
      FROM   enc_respuesta
    WHERE   cod_pregunta =  APEX_UTIL.KEYVAL_VC2regards
    Gerard

  • Multiple select list for one field in form

    Friends,
    I have a form , which is having many fields. One of the field are day/date. In this field i have to take 3 dropdown lists. like one for date, one for day and another for year. I have created three lov's for the day,date and year but for the field day/date i am able to apply only one lov. Any way so that i can display all the three lov for one field
    example
    day/date: day -- (dropdown list)
    date -- (dropdown list)
    year -- (dropdown list)
    thanks in advance
    adi
    Edited by: Adi's on Feb 16, 2010 11:46 PM
    Edited by: Adi's on Feb 16, 2010 11:47 PM
    Edited by: Adi's on Feb 16, 2010 11:52 PM

    nope, I just gave u an example to combime day , date and year fields in one select list, it does not matter whether they are in one table or multiple table and you dont require to create any tables for this, I assumed your lov for day / date / year are dynamic not static.
    Regards,
    Shijesh

  • Tabular form problems

    I have created a default APEX tabular form. Also this page has another form region with some updatable fields. The first region contains the updatable form and second region contains a few editable fields and links.
    I have a wide report and user has to scroll to check appropriate row check box for updating. is there way to automatically check the row selection box, whenever user makes a change to any field in that row and update only those rows with checked boxes?.
    Sometimes, the user makes some changes in the updatable form (first region) and makes changes to some fields in second region. The user would like to update the second region only (by a submit button) without resetting the values in the first region.
    any ideas are appreciated.
    thanks,
    Surya

    thanks Denes for your help, found your post useful as always.
    First question comments:
    I would like to have check box selected whenever the user changes a particular row. The reason is the update form has just too many rows and columns, and sometimes the user scrolls to the extreme right and update some fields there. When the user scrolls to exterme right, I provide duplicate read only column information ( like project number and name on both sides of the form) on the right side also for user to figure out which row he is interested in updating. It would be sometimes difficult for the user to check the exact on left side check box for update. I thought automatic update of checkbox with some "onChange" event might make user life easy and less error prone, as he doesn't have worry about checking the boxes explicitly by scrolling the form left and right.
    Second question comments:
    I tried some of the AJAX stuff you suggested. The field changes can be AJAX, but when the form in the bottom region is submitted, the whole page is submitted, which wipes out the changes (if any) in top updatable form. is there way I can save those those updatable form changes to a temporary buffer and refresh them eventhough the bottom region is submitted?
    Denes - I have sent a mail requesting you provide access to your workspace lastweek. could you please grant access to your workspace?. I really appreciate your help.
    thanks for your help,
    Surya

  • Manual Tabular Form Problem

    Apex 3.2
    I have written a manual tabular form and it has a validation to check if a column contains negative numbers.
    If it does then it returns a validation error.
    I also have the same validation in my database procedure which raises
    RAISE_APPLICATION_ERROR(-20000, 'The update procedure does not accept negative numbers.');My problem is withmy page validation.
    If the column value was 16 and the user types in, eg, -12, then the validation fires and returns the message.
    The problem is that once the message is returned, the column value is reset to the original value, eg, 16.
    If I disable my page validation and use my database exception.
    Then the error message from the database displays. If I click ok, then the form displays the new value, eg, -12.
    I want to use my page validation, but I need the page to show the new value.
    I have made all my processes and branches conditional to run only if there are no inline validations displayed,
    but this did not affect anything.
    Any help appreciated
    Gus

    Gus C wrote:
    It works exactly how I want mine to, without using collections, ie, it keeps the new values in the page.
    Unfortunatley I cannot figure out how he does thatUpgraded to 4.2 ;)
    One of the differences between version 3 and 4 is that retaintion/caching of the changed values in tabular forms.
    In other words in apex 4 the builder takes care of showing the new changed value.
    By not fetching the data from the database on a validation error.
    Where as in Apex 3 you have to do that when there is a validation error and the message is shown on the same page.
    The report fetches the data from the database even when there is a validation error.
    There are 2 options
    1) Let the validation message be shown on the error page. Going back in the browser history doesn't fetch the data form the database up on rerendering.
    This option is mentioned in the thread the demo was inspired by.
    2) Work with a collection. Where you take care of the caching. This method gives the posibility to so multiple validation messages where as the "show on error page" shows only one validation message.
    Nicolette

  • Select lists and deactivated values

    Consider the following simplified test case.
    1. create tables like this
    create table lov_values
      lov_pk number primary key
    , name varchar2(10)
    , active varchar2(1) not null
    insert into lov_values valeus ( 1, 'A', 'Y' );
    insert into lov_values valeus ( 2, 'B', 'Y' );
    insert into lov_values valeus ( 3, 'C', 'Y' );
    commit;
    create table trx
      trx_pk number not null primary key
    , lov_fk number not null foreign key references lov_values
    ) ;2. Create an APEX Insert/Update form on the trx table. Define the LOV_FK item as a select list with this query
    List of values definition:
      select name d, lov_pk r
      from   lov_values
      where  active = 'Y' ;
    Display Extra Values: Yes3. Users use the APEX form to create records like this:
      trx( trx_pk, lov_fk ) = ( 10, 1 )   -- users sees LOV_FK value as "A"
      trx( trx_pk, lov_fk ) = ( 20, 2 )   -- users sees LOV_FK value as "B"
      trx( trx_pk, lov_fk ) = ( 30, 3 )   -- users sees LOV_FK value as "C"4. A year later an admin deactivates lov_value 2/B by setting active to 'N'.
    5. When a user queries trx row 10 they still see "A".
    6. When a user queries trx row 20 they now see "2".
    7. When a user queries trx row 30 they still see "C".
    In step 6 I'd like the user to see "B" whenever they query old data with that value but I never want them to be able to create new trx rows with 2/B or update the LOV_FK value of existing rows to be 2/B. I'd also like to avoid using a pick list with a popup window just for selecting from a list of two (could be a few) values.
    Just wondering how others have dealt with this scenario in their APEX apps.

    I actually just found a simpler way in Select list filter in a tabular form problem forum thread. In the query that defines the tabular form I added a column called HIDDEN_FK_VALUE as follows.
    select
    "TRX_PK",
    "TRX_PK" TRX_PK_DISPLAY,
    "LOV_FK",
    APEX_UTIL.SAVEKEY_NUM("LOV_FK") hidden_fk_value
    from "#OWNER#"."TRX"Then I modified the the Select List query to look like this.
    SELECT name d, lov_pk r
    FROM lov_values
    WHERE (active = 'Y' OR lov_pk = APEX_UTIL.KEYVAL_NUM )Works like a charm. Thanks everyone for your input.

  • Cascading select list in a tabular form -plz help me out

    hello,
    how can i implement cascading select list for filtering my tabular form report results.
    Like i want to have the cascading select list's above the tabualr form report such that when i select the value in one select list, this should populate the values in other select list box(like one select list is dependent on other select list) and try to click a button say refresh, my tabular form report should be refreshed and should filter the report based on the select list value.
    i want to have three select list items above my report - and these select list are dependent on one other - tats why i want to make them cascading select list.
    can anyone provide me with an example of the cascading select list.
    can anyone help me out with cascading select list.
    thanks.

    Aplication item is always hidden - Shared Components > Application Items. You can create only one item and that would also be enough. For transparency purposes I said to create two. However, one will do the job.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Cascade Select list with Tabular Form

    Hi,
    I am trying to implement Cascade Select List functionality on a tabular form where users should be able to add multiple rows. The data should be saved to a temporary stage area, where users can review the data prior to saving to the table. Very similar to the shopping cart where one can Delete/Update rows by record. I believe there is a way to do it via APEX Collections. If anyone has an example it would definitely help. FYI, Running on APEX 3.2, so no built in cascade functionality.
    Thank you,
    Chandu

    If you received a reply or figured out how to do this, can post? I need to implement exact same functionality and have not figured out how to do so. Have pinged Denes K. for source code on his demo app but not yet received response. Can this be done using wizard tab form or does it have to be a manually tab form?

  • APEX Ajax Cascading Select List Tabular

    Hi everyone,
    We’re developping in APEX 4.X.
    I went to your blog « Denes Kubicek - ApEx Solutions », it’s very interesting
    http://apex.oracle.com/pls/otn/f?p=31517:176:384744492803038:::::
    I tried to create something as Mr Kubicek did to get an Ajax Cascading Select List Tabular.
    In step 5, he says the rest of the code if you apply for an account". Do we need to add a lot of code to get success ?
    Is there someone who tries to do like Mr Kubicek did ?
    Thanks in advance. Bye.
    Eric.

    Hi everyone,
    I looked at Mr Kubicek solutions about tabular form and I asked him to get access to his workspace. But I’m not sure to get all I need.
    I have a two select list named Activities and Entity. I want that Entity depends on Activities. Those list values come from respectively table h4_activities and h4_activity_entity.
    But, when I show the tabular form, I want to see records which is in table h4_activity_day. I don’t want to see only my two select lists.
    I think tabular form should be interesting.I want your advice.
    But, I need something like a select list with a LOV and SOURCE.
    Thanks in advance.
    Have a great day. Bye
    Eric

  • Reg. DDL in Tabular form in Apex

    Hi,
    I have used a select list in Tabular form report. My select list is retrieving only 21 rows.
    But the performance is very slow. Please help me to increase the speed of processing.
    Thanks,
    Madhu

    Hello Madhu,
    Can you post the query of your select list - and of your tabular form (or report). Why do you assume the problem is in the select lst? What happens to the performance if you omit the select list?
    Regards,
    Roel
    http://roelhartman.blogspot.com/
    http://www.bloggingaboutoracle.org/
    http://www.logica.com/

Maybe you are looking for

  • Ideapad U410 not working in Normal Mode

    Hi, My Lenovo Ideapad U410 has suddenly stopped working in normal mode. If I need to open a link or an important document, I open it in a safe mode. Has anyone faced a similar kind of issue? I don't want to format the system as i would first like to

  • MM related database table list

    What database tables are used by an ABAPer for the second phase of MM workflow called "Source List : ME41"?

  • What are the tables that Contains DTP Filter Entries

    Hello, for the filter entries on a DTP Process I found the table RSBKSELECT "Selections for DTP Request (Summary)". But that holds only value which are done generic by Formula etc. but not the information which are entered manual. Does anybody knows

  • Hive_1074 the integration service failed to start hive session

    i am using Informatica 9.6.1 BIG Data Edition developer tool.I am trying load data from hive to hive database table, I am able to import  and view data from hive database, but when mapping run it got failed. Below error message captured at mapping lo

  • On new iPad how do i Enable dictation?

    On my new IPad, I want to turn on dictation. Using a settings, general, keyboard there is no selection to enable dictation. How do I enable dictation