This discussion is archived
7 Replies Latest reply: Oct 5, 2012 1:22 AM by skapex RSS

Tabular form column conditional

skapex Newbie
Currently Being Moderated
Apex 4.1

I have a tabular form report which has a column SELECT with radio buttons as Yes/no.
when i click on YES then only a second column USER should be visible.


Any idea how to do this??
  • 1. Re: Tabular form column conditional
    Denes Kubicek Oracle ACE Director
    Currently Being Moderated
    You can't do that in a tabular form since you can hide or show only a complete column.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------
  • 2. Re: Tabular form column conditional
    skapex Newbie
    Currently Being Moderated
    Why??

    If i want to show entire column itself then??
  • 3. Re: Tabular form column conditional
    Prabodh Guru
    Currently Being Moderated
    Hi,
    I have a tabular form report which has a column SELECT with radio buttons as Yes/no.
    when i click on YES then only a second column USER should be <b>visible</b>.

    Any idea how to do this??>
    You partly answered it yourself.
    Try using the visibility attribute. The specifics will depend on your Apex version and the way you are rendering the tabular form.

    Broad outline:
    1. Set the default of the second column as
    style="visibility : hidden;"
    2. On the Radio button write JS to toggle the visibility attribute to visible or hidden.

    Cheers,
  • 4. Re: Tabular form column conditional
    Denes Kubicek Oracle ACE Director
    Currently Being Moderated
    "I have a tabular form report which has a column SELECT with radio buttons as Yes/no.
    when i click on YES then only a second column USER should be visible."

    If you click YES for the first row and your second column goes away, you can always click NO in the second row for it to appear again. That doesn't make a lot of sense to me.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------
  • 5. Re: Tabular form column conditional
    skapex Newbie
    Currently Being Moderated
    Yes Denes you are right!!

    But I want to try implement it for single row..assuming my report data returns single row.

    The tabular form has ids like f03_001 for yes and f03_002 for no which i guess i can refer using jquery/javascript.
    but how to refer my second column..should i assign id to it,if so where and how?

    How to achieve this any eg. pls guide??
  • 6. Re: Tabular form column conditional
    Denes Kubicek Oracle ACE Director
    Currently Being Moderated
    If this is the case, then why a report? Can't you use a normal item? The problem with a report is that you need to use a lot of weird javascript to get it working. Then it may not work for a different template and stuff like that. I think in this thread they are also talking on a similar issue:

    Dynamically Hide Last Column in Report

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------
  • 7. Re: Tabular form column conditional
    skapex Newbie
    Currently Being Moderated
    No my radio buttons are to be in the tabular form report.

    but in a tabular report column with updateable fields im not able to assign an id/class to an entire column.
    For that i tried like assigning CSS class as "id" that does not work for tabular form

    Edited by: skapex on Oct 5, 2012 1:21 AM

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points