Apex 3.2 Tabular form - dynamic selection based on prev selection

Hi guys,
I am using apex 3.2. I am having difficulty in setting up a tabular form which provides an option to record information in other columns based on a value selected in the drop down.Here is an example
I have a table product. All the products are added using a tabular form by selecting type from a drop down list.
This allows the user to add multiple products without having to press save each time.
e.g.
product | type
monopoly | game
vase | home
coffee | food
cards | game
Depending on the product type, I want the user to be able to multi-select other options using checkboxes based on the option selected.
So for example if they add a product of type food, it should give additional options like beverage, cereal etc. If they select game, then they should get other options like for age_groups 10-12; 12-16; 18 and over;
Is it posisble to do this on a tabular form in apex 3.2?
If yes, please can someone help.
Thanks
Sam

Closed

Similar Messages

  • APEX 4.01 Tabular form with select list error

    When i create a tabular form and i add a select list(query based LOV) the form is not displayed but gives me the next error
    report error:
    ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    somebody have an idea what is happening here
    is this still a bug in APEX 4.01?
    hope to have an answer soon.
    Hugo Perfors

    Hi Jari,
    It returns about 1100 records which i think is not much.
    But even when i narrow the amount of records the problem is not solved.
    it this a bug?
    Best
    Hugo

  • Tabular form, dynamic select list

    Hi,
    Direction as to how to tackle this problem politely requested please:
    I have a "choices" table of three columns. Sample data shown below:
    col1 col2 col3
    a b c
    a b d
    a b e
    f g h
    f g i
    The plan is to show these "choices" as a tabular form. With the example data shown above, this
    would be shown as a two row grid, with the first row showing "a b" and at the end of the row there
    would be a select box showing four possibilities: "c", "d", "e" or blank.
    The "blank" meaning "no choice".
    The second row would show "f g" and a select box for "h", "i" or "blank".
    Neither the first two columns are editable by the end user - they just get to alter the third column.
    How would I go about building this? Would it be a Report with a fancy piece of html for column three,
    or perhaps a tabular form?
    There can be more than two rows on the screen (of course) - beyond the sample data.
    Any directional help appreciated; thanks in advance.
    Mungo

    Hi Jure,
    On reflection, that mention of the "stragg" function was very useful.
    My first reply to you was a little uncharitable, for which I apologise.
    Tom Kyte seems to have moved away from the "stragg" function and
    has used "sys_connect_by_path" instead.
    See http://tkyte.blogspot.com/2007/03/stringing-them-up.html
    Once all that is in place (tested out via SQL Developer - not even a mention of Apex) it
    seems relatively straightforward to integrate this into an Apex region.
    Thanks again.
    Mungo

  • Need help with Apex 4.0 tabular form and searchable select list

    I would like to use an exisiting plugin for a searchable combo box on a tabular form. When I define the item types on my tabular form I don't see the plugin as an option. I reviewed the help documentation for the apex_item api for the tabular form but I didn't see how I could reference the plugin. Has anyone done this or have other ideas? Any help would be greatly appreciated.

    I noticed this problem in the first beta version but I thought this is so obvious and it will be corrected so I didn't follow on it further. This looks like a bug in 4.0. If I use firebug, I will see that the selected value is still RESEARCH allthough the display changes - <option selected="selected" value="20">RESEARCH</option> If I click on SAVE than wrong values will be changed.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Apex 4.01 Tabular Form Issue javascript

    We have moved an apex 3.2 application to apex 4.0 and we have some problems with the new ordering of the G_Fxx-Colums as described in another thread.
    There is another thing we do not understand:
    The SQL-Statment is like
    select a,
    b,
    apex_item.text(40,c) c
    from table.
    In java-script we access the data with
    <script type="text/javascript">
    function readOnly()
    var mon_01 = document.getElementsByName("f01");
    var mon_02 = document.getElementsByName("f40");
    In Apex 3.2 both arrays started with 1.
    In Apex 4.0 there seams to be a shift. The Data in mon_01 (j) correspondes to mon_02(j-1).
    Any hint what happened ?
    Thanks
    Tilman

    Habib,
    There were issues in past releases of Oracle Application Express that caused the internal query column IDs to get out of sequence. That issues has been resolved in APEX 4.0.1. However if you import or upgrade older applications that had this issue in APEX 3.2 or before, then there's no guarantee that the fxx array assignments in 4.0 will be the same as in 3.2. So what you will need to do it to open your tabular form source query, and then hit apply changes, this will put the query column ID sequence in the correct order, and then run your tabular form, and take a note of the new fxx arrays assignments. And based on that information, adjust your JavaScript and / or PL/SQL code to reference the correct arrays. In APEX 4, there is now also a way to reference those arrays by the name of the underlying column using the apex_application.f_fmap array, this way, you won't have to reply on how the engine allocates those arrays anymore. Keep in mind, this allocation has always been done at runtime, so e.g. if you had conditional columns, then a column that's in some cases rendered as f05, might be rendered as f07 in other cases.
    Regards,
    Marc

  • In tabular form, is there a way to select one row as the default row?

    Hi, I have a tabular form which lists the many addresses that a fisherman may have. The query is: select default_addr_flag, addr1, addr2, city, state, zip from addresses where fisher_id = :PXX_fisher_id.
    I would like to have them set the default_addr_flag = 'Y' for ONLY ONE record....so even if they have many addresses, one must be selected as the default for any correspondence.
    Are there any examples, or does anyone have a suggestion. thank you!
    karen

    Hi Karen,
    I think first of all you should get yourself a browser and add-ons that allow you to inspect the HTML DOM elements. E.g. FF/Firebug/Error Console. Once you have the required tools you will be able to see for yourself what the DOM has, and then work out what you need to do.
    Most members, including myself, at times post solutions without really trying them out as they appear to be "obvious" even when they are not.
    Taking forward from the point where you have made the default address indication a "simple checkbox" from the Report Attributes tab, if you inspect the checkbox element you will find that it is somewhat more complex and Apex has created the elements with some JS code. E.g. this is a snippet from one of my application pages.
    <td headers="IS_CUSTOMER">
    <label class="hideMeButHearMe" for="f08_0001">Is Customer</label>
    <input type="checkbox" onclick="if (this.checked) {apex.jQuery('#f08_0001').val('Y');} else {apex.jQuery('#f08_0001').val('');}" id="f08_0001_01" checked="checked" value="Y" name="f08_NOSUBMIT" autocomplete="off">
    <input type="hidden" id="f08_0001" value="Y" name="f08" autocomplete="off">
    </td>You will see that
    a.Apex has created a onclick event trigger
    b. If sets the value of Unchecked checkbox to null ("").
    c. In my page the checkbox maps to f08, you need to see which item it maps to in your page.
    d. The id of the rendered checkbox is id of hidden element + _01.
    The consequence of this is that if you define a onclick trigger in the Element attributes it overrides and suppresses Apex from inserting its own JS code!
    To be able to uncheck all checkboxes other than the one the user has currently checked you will need to do this:
    i. In the Column's Element Attributes field write onclick="doDftAddr(this);"You could name the function the way you want it, this is an example.
    ii.In the Page HTML Header write
    <script type="text/javascript">
    function doDftAddr(pThis) {
      va = pThis.id.split("_");
      var vb = va[0]+'_'+va[1];
    if (pThis.checked) {
        vy = 'input:checked[id^="'+va[0]+'_"]'
        $("["+vy+"]").attr("checked",false);
        apex.jQuery("["+vy+"]").val('N');
        apex.jQuery('['+'input:hidden[id^="'+va[0]+'"_]'+']').val('N');
        apex.jQuery('#'+pThis.id).attr("checked",true);
        apex.jQuery('#'+pThis.id).val("Y");
        apex.jQuery('#'+vb).val('Y');
       } else {
        apex.jQuery('#'+vb).val('N');
    </script>Cheers,

  • Bug in Apex 4.1 tabular form with rowid as PK

    Hi
    I think this is a bug in Apex 4.1. I tested it on apex.oracle.com. This is the simple scenario.
    Create a simple table:
    create table dropme (code number, description varchar2(200));
    Now use the wizard to create a tabular form.
    Select Allowed Operations insert and update for this table.
    Select ROWID as Primary key type.
    After finishing the wizard click on Run and you get:
    failed to parse SQL query:
    ORA-00904: "APEX$ROWID": invalid identifier
    Note: this does not happen when you select insert, update and delete.

    Hello,
    >> Select Allowed Operations insert and update for this table.
    >> Select ROWID as Primary key type.
    It seems that you are correct. I was able to reconstruct your scenario on my local system. Now we need the verification of the dev team.
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • Manual tabular form and query based LOV

    Happy new year everyone!
    Okay so, I've run into an error when making one of the fields in a tabular form into a select list.
    report error:
    ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    The query works fine in SQL Workshop and Toad, it returns over 100 rows.
    I have tried to use a Popup LOV, which works but I'd like to know what is going wrong with the select list.
    We're using version 3.0.1.00.07 of apex, for what it's worth.
    Help appreciated!
    Kieran
    Message was edited by:
    Kieran

    Keiran,
    In the select list there is a display value and a return value.
    The return value is the Foreign Key and the Display value is what is displayed in the LOV.
    Are you getting these the wrong way round ?
    I usually put the return value first and alias is with r and put the display value second and alias the display value with d.
    Hope this helps
    Regards
    Chris

  • APEX Totals on Tabular form

    I have tabular form layout with totals. I want to use these totals for some other calculation. Are these totals stored in some field that I can use.
    The tabular form is based on Select list and displays totals at the end.
    Thanks for help,
    Suman

    skanta wrote:
    I have tabular form layout with totals. I want to use these totals for some other calculation. Are these totals stored in some field that I can use.This depends on what you want to do. You can write Javascript to read the values in your page, or you might be able to submit the values and process them in PL/SQL.
    You can probably find the variables the values are stored in by examining the HTML source code on your page carefully.

  • Tabular Form: Conditional column based on another column in table/form?

    Hi!
    I have 4 columns in table A:
    number (the question number)
    question (the question to be asked)
    type (TEXT, LOV are the 2 valid values)
    answer (the answer with text or a selection from the lov table below)
    I have 2 columns in table B:
    number (the question number)
    values (a single value for the lov's)
    In table B there can be mutiple rows for each number. Table A and table B
    join on the number.
    I want to build a tablular form on table A where for each row either a text
    box or a select list is displayed depending on the contents of the type column.
    So row 1 would display a text box when the type value is text; row 2 would
    display a select list when the type value is lov.
    Is this even possible? How do I refer to the type column in the conditional for the
    answer column? I am guessing that I will need to have 2 answer columns one
    that displays when the type column is TEXT and one that displays when the
    type column contains LOV. This is OK. Setting up the conditional is display is the issue at this point.
    Hopefully I have explained this well enough! :)
    Thanks!
    Dave Venus

    Hi Dave,
    Sorry for not responding sooner - I finish work at 3pm GMT.
    I'll take your first question first (3:28PM posting according to my display - not sure if you are on GMT time?):
    As far as I understand it, using the select_list_from_query() function generates the options that are required in the select list as HTML tags. Each instance of this function should create a SELECT tag and the results of the query should generate one or more OPTION tags within it.
    Second question (4:20PM posting):
    The HTMLDB_ITEM functions are listed in the documentation - here's a link to the online version:
    http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14303/api.htm#sthref2524
    Most of the examples that I have seen have been on this forum - simply search for HTMLDB_ITEM or one of its functions.
    I tend to leave the generation of tabular forms to the wizard as much as possible. The only exceptions are when I need to have access to more than the Primary Key for a row but don't want to show the field on screen. There are examples on the forum about concatenating the HTMLDB_ITEM functions into a single value - this hides ID fields from the user but makes them available to PL/SQL code.
    Third question (5:29PM posting)
    I did try using DECODE in my questionnaire but not for the feature that you needed. Originally, I wanted to use this to display one of a number of different fields (ie, my date, number or string field as appropriate to the question) but this didn't help as I couldn't get back to the right field during the update. If you have decode working for the select lists, then that's great!
    The first column should be hidden or sitting behind a checkbox as this should be the Primary Key for the row and should not be editable by the user nor would it normally be displayed.
    As long as your select statement creates the correct output (albeit that you may need to work on the layout!), you should have an updatable form. However, you will need to have the MRU processes in place and the appropriate buttons that trigger these. When I did my questionnaire, I created the form using a wizard to get all of the processes and buttons and then changed the select statement. If you haven't got the processes and/or buttons, we can go through adding these onto your page.
    Last question (9:08PM posting)
    As explained above, column 1 should normally be hidden. The INPUT tag you detail above is what I would expect to see. The value="6" attribute indicates that 6 is the Primary Key for that row - every row will have the same tag but different values for the "value" attribute. So, if it is hidden and these are the tags you see doing a View Source on the page, then everything is correct.
    OK. So now we have the data on screen and (hopefully?) we have the correct processes and buttons on the page.
    The next step would be validation and update of the data.
    Validation of the data can be handled by a normal page process - I can let you have example code if you want to validate the data (this will also explain how to loop through the rows - there are also methods that you can use to do this in javascript if you want). Updates should be handled by the processes and buttons on the page - again, if you haven't got these we can go through adding them in (although, if you haven't yet formatted your page, you may find it quicker to copy your select statement and create the page again using the same select statement).
    ORA-20001 errors are user defined errors. Do you mean the "data has changed" errors? If so, you will probably need to include the MD5 checksum functionality (it's shown in the document linked above).
    Finally, we'll keep this thread going so that you have all of your workings and my responses in one place, if that's ok with you?
    Regards
    Andy

  • Disable or hide a dynamic parameter based on a selection

    I have a report created in CRW 2008. The report is having 3 dynamic parameters and a static parameter.
    The static parameter is a list of 4 values like  indications,controls,Alarms,All .
    Based on the selection of one of theese values I need to access the data from any one of the three dynamic parameters and the remaining two dynamic parameters needs to be disbaled or not selectable.
    What are the choices I am having?

    Please re-post if this is still an issue or purchase a case and have a dedicated support
    engineer work with your directly

  • Is there any work around for  --- Upgrade to APEX 4.0 - Tabular Forms

    Hi
    Anyone has any workaround for this http://www.ora600.be/news/upgrade-apex-40-tabular-forms
    As I am not able to use the feature 'add row' or insert a record into the table in tabular forms
    Would greatly appreciate your help ... has anyone found a solution for this?
    thanks

    Hello User XY,
    What exactly is your question? Do you get any errors?
    Otherwise the blogposting describes what you can do when you upgrade a tabform from 3.2 to 4.0.
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    BuilderPlugin: http://builderplugin.oracleapex.info
    Work: http://www.click-click.at

  • Different Web Template selection based on query selection values entered

    Dear Experts,
    We have a very unique requirement in our BI7 system.
    There is a web report which comprises of multiple queries and query views embedded in web templates. There are 2 selection parameters F1 and F2 that appear on executing the report.
    Our requirement is to display a unique web template to the user based upon his selections. If user enters values for both the fields F1 and F2 then we want to display report output from query views in web template T1.
    If user enters value for only field F1 and keeps F2 value blank, then we want to display report output from query views in web template T2.
    The problem we are facing is to decide the appropriate place where this type of condition could be coded. We do not think user exit would do the job here.
    Please help if you can.
    Regards
    XX

    Hi Pravin,
    Thanks for the reply.
    Let me please clarify my problem further.
    Web Template T1 --> Query Views V1, V2, V3.
    (All query views V1, V2, V3 have variables on fields F1 and F2).
    Web Template T2 --> Same Query Views V1, V2, V3.
    (All query views V1, V2, V3 have variables on fields F1 and F2 but this time variables would be having different values than above).
    If user enters values for both fields F1 and F2, then we want to display Template T1 with F1 variable = "value by user" and F2 variable = "value by user".
    If user enters value for only field F1, then we want to display Template T2 with F1 variable = "value by user" and F2 variable = "all values for which transaction data exist".
    Thus, we want to display a unique web template based on whether the value of F2 is entered by user or not.
    Please let me know if you need any further clarification.
    Thanks

  • Dynamic dropdown based on user selection of another dropdown on the same page

    hi all, ok, I have a table which contains use data, a name,
    and a userID. for the example lets say "Simon Bullen" and my userID
    is "999".
    on a form I have, there is a dropdown box, which is dynamic
    from this table, and allows me to select Simon Bullen, however, I
    have a hidden field on the form, which when the user selects "simon
    bullen" the hidden field populates with the appropiate U number
    from the same table.... no i thought this would do it:
    <cfquery name="userNumber" datasource="userList">
    SELECT userNumber FROM dbo.Users WHERE Name =
    <cfqueryparam value="#form.Name#">
    </cfquery>
    and then my dynamic form field (hidden) would reference to
    this query....
    but it doens't work, could somebody please enlighten me? I'm
    hoping its something silly
    Thanks in advance

    You could make the value of the option the UserID and the
    option display the name.
    If that isn't what you need, I think you'll need some
    javascript to populate your hidden field based on what is chosen in
    the select.
    I think you can modify this:
    http://www.javascriptkit.com/javatutors/selectcontent2.shtml
    ...to populate your hidden field instead of a new select
    list.
    If there's a way to do that without JS I'm not aware of it.
    A third possibility: look up the UserID (based on the name
    chosen) after the form is submitted then do with it whatever you
    need to.

  • Measure to dynamically change based on prompt selection

    Hi Experts,
    My requirement is, if I select a business segment (from a drop down prompt), it has show one of measure in the report and if I change the prompt value, it has to show a different measure. i.e., It should work like a column selector, but my selection is based on Segment prompt value.
    To still make it clear, assume, my report has measures KPI1, KPI2 KPI3. If I select Biz. Segment 1 from the prompt then only measure, KPI1 must appear in the report and so on.
    Thanks for your help in advance

    Hi,
    In 11g, make use of variable prompt and cah be achieved.
    Refer-http://prasadmadhasi.com/2012/02/28/variable-prompt-in-obiee-11g/
    And also refer-http://obiee10grevisited.blogspot.com/2012/06/multiple-measure-selection-for-graph.html
    Hope this helped/ answered
    Kind Regards
    MuRam

Maybe you are looking for

  • How do I get my podcast to, you know, display correctly in iTunes?

    My podcast is screwed up. Search for "The Toadeledge" on iTunes, you'll notice that the last 2 files are the same. The MP3 on the server and pointed to in my feed is the correct show, but iTunes refuses to listen to the XML feed and just chooses the

  • Installs but doesn't detect

    I have installed Flash Player 9. It works so long as the website I visit doesn't attempt to detect whether it is installed or not. Unfortunately, most websites try to detect if the visitor has Flash installed before showing the flash movie. In this c

  • OSB to Bpel -- BEA-382612: Error preparing message for dispatch

    I posted this in " SOA & Process Management", but later realized that it belongs here. so posting here again. We have Soa Suite 11g and OSB 10.3.1 runinng on unix machine. I performed the following steps:      1. Created Bpel service and deployed on

  • Siebel Server Configuration failed

    I am able to configure Siebel gateway name server, siebele enterprise server, but when i configure Siebel Server it shows execution failed... Do i need ti install any language pack Siebel Server configuration? May be that is reason why i am not able

  • Charging Zen V from universal power adap

    My children have each a zen V, which easliy charges from the USB on the PC. However, I did an attempt to chrage with my uni'versal usb power supply which I use for my cell-phone pda (which of course is also possible to charge from the usb on the pc)