conditional display of form tabular on item1 item2

Hi all

I have a form of a table with two columns.
The first column is a list of selection with the values 'Yes' and 'No' and 'Salaried worker' of the column header.
The second column is also a select list employee names rehired with the heading 'name '.

What I want to achieve is the following:
When I click on the button Add a line and click 'Yes' from the first select list, and then my second column must be a list of selection of employees.
But if I choose 'No' from the first select list, then my second column must be a text field, so that I can fill the name employees myself.

Is this possible, if so, can I please instructions on how to do this?
Or are there better methods to do so, because I couldn't think of another method.

Thank you
Diana

Edited by: dianap February 21, 2011 06:45

Interesting idea. But you don't want to support this code. In this case, it is easier to do with an AutoComplete text field.

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
-------------------------------------------------------------------

Tags: Database

Similar Questions

  • 2 conditional display for link column

    Hello

    I use Oracle Apex 5.0.2 and I have a report that contains a link to the column. The report contains various user_ids and shows some qualities of these users. I want to make the link in the column of conditional display based on two conditions.

    1. If the user who is viewing the page is an administrator

    2. If the user who visits the page is not an administrator, but sees its own information in this report.

    The 1st condition, I know how to implement it using PL/SQL expression. I stored the role: APP_USER in a P1_USER_ROLE and check if P1_USER_ROLE = "administrator."

    For condition 2, I know how to implement it using the "value of the element / the expression 1 column = Expression 2.» And I put just expression 1 #USER_ID # and expression 2 P1_USER ID (an element which stores: APP_USER).

    I was wondering if there is a way to simultaneously implement these two conditions together. Thank you!

    kevinsun91 wrote:

    I use Oracle Apex 5.0.2 and I have a report that contains a link to the column. The report contains various user_ids and shows some qualities of these users. I want to make the link in the column of conditional display based on two conditions.

    A "report"? Always tell exactly what you mean by this term: standard report, interactive, component report shared report query or some sort of tabular form?

    1. If the user who is viewing the page is an administrator

    2. If the user who visits the page is not an administrator, but sees its own information in this report.

    The 1st condition, I know how to implement it using PL/SQL expression. I stored the role: APP_USER in a P1_USER_ROLE and check if P1_USER_ROLE = "administrator."

    For condition 2, I know how to implement it using the "value of the element / the expression 1 column = Expression 2.» And I put just expression 1 #USER_ID # and expression 2 P1_USER ID (an element which stores: APP_USER).

    Here are the two different requirements. The first is a restriction on the level of columns that can be implemented with the help of a condition on a column in report or a link. The second is a restriction on the level of the lines who cannot. It is not possible to report using #COL_ALIAS # overrides row values in the State of the reference column. It would be unwise to do so: how APEX can determine if the column should be included or not until all rows are retrieved?

    The conditions of type 'values in the column"referred to value of element / column expression... are those generated by the tabular form wizard, which can be referenced in these expressions for run level row and process validation conditionally based on the submitted values. An example might be triggering a validation not Null in COMMISSION when JOB = 'SELLER '.

    Conditional display of level line in the reports always is possible by including the necessary logic to the report using CASE or other expressions query.

    I was wondering if there is a way to simultaneously implement these two conditions together.

    It is not possible to do in a State of the column. It must be made in the report query using a CASE expression:

    ...
    case
      when    :p1_user_role = 'Administrator'
           or user_id = :p1_user_id
      then
        ... --- Construct link URL
    else
      null
    end col_link
    ...
    

    In other circumstances where it is possible to combine several conditions, use a PL/SQL Expression condition with several predicates and required Boolean.

  • Conditional display for interactive report columns

    The APEX 4, one of the options in the conditional displays for the columns was 'PL/SQL function body returning Boolean ". I had a function that returns a Boolean value, and I stuck my function call in the text like this:


    return DISPLAY_FIELD (: APP_USER( )

    "I don't see" ""PL/SQL function body returning Boolean " option 5 APEX. What should I use to call the same function to hide and show the column in the report?

    bobmagan wrote:

    Thank you. Using PL/SQL Expression will give best performance? Some of my reports have 80 + items, which must undergo this check.

    Probably not what you have seen. Have less well.

    And if I use PL/SQl Expression, what is the syntax I need?

    this:

    DISPLAY_FIELD(:APP_USER) = TRUE

    For functions that return a Boolean value, just use the function call:

    display_field(:app_user)

  • Textarea conditional display based on the value of the checkbox.

    Hi all

    I have a question regarding the conditional display of an article based on the value of the checkbox.

    I have a checkbox in a region, which is a STATIC LOV:; Y and the text box in the same region. Now I want to show this textarea only if the check box is selected. ??

    Please suggest how to achieve this.

    Thank you

    DC

    Hello

    I guess that you are 4.2 Apex as you haven't shared the same.

    • Create a dynamic Action on change of box which should present the value of the checkbox and update the TextArea element.
    • Then continue as conditional Textarea with checkbox value.

    BR,

    Patrick

  • Conditional display based on the value of line

    I have a report table with several lines on it.  I need to post a link to another page of user action if a value in the line corresponds to an attribute of the user's role, so they can act on the item.  Other display or update the document would not be able to run the link.

    The logic of nickname would go something like this:

    If user_role = role_this_line_item then

    display approval_link

    on the other

    Hide approval_link

    end if

    I know how to write pl/sql to return to the display of the correct state of true/false, but I can't find out how to reference the value on the display line.  I tried: role_this_line_item, role_this_line_item, #role_this_line_item # and none of them return one value other than false.  How to refer to an attribute on the current line of the decision to hide/show correct?

    Al

    Al Wondra says:

    I use V4.2.6 Apex in local installation of Oracle 11 g XE.  I tried with IE, Firefox and Chrome.  None has the conditional display.

    The report is a standard report created using the Apex report wizard.  I'm one of the columns (the ID of the line) changing to conditionally a link to a page to data entry.  I only need one line at a time to be the active link.  No line should have a link, if the user is not the role is required to perform this action.

    You have described my question exactly, it seems, that the conditional rendering is applied to the entire column.  I need that it is applied to specific lines.  Some lines (1) will be the active link.  All other lines does not display the link.  Is this possible?

    If you want the value of the ID to display for each row returned by the report, but only rendered as a link, if the condition is true? The values used in the State come "role_this_line_item" seems to be a value of a column in the report. "User_role" is also a column value?

    The simplest option is to modify the column attribute display as for the Standard report columnID column and conditionally generate the link in the report query:

    select
        ...
      , case
          when user_role = role_this_line_item
          then
            'where DATA_ENTRY is the 'data entry page' target number or alias of the page.

  • Difficulties to display a form in Adobe Acrobat Reader

    I have problems to display a form in Adobe Reader - the following message keeps showing when click the shape


    "The document you are trying to load requires Adobe Reader 8 or higher. You have not installed Adobe Reader software or your environment looks a cannot be correctly configured to use Adobe Reader.

    For more information on how to install Adobe Reader and set your viewing environment please see http://www.Adobe.com/go/pdf_forms_configure .'


    I use a MAC and have the latest version of Adobe Acrobat Reader downloaded DC. I tried to use Google Chrome and the screen displays the messaged above. Then, I deleted Adobe off my computer and the re - download again on my computer with no luck


    Any suggestions?

    Do not open the file in the browser window. Save it locally and then open the drive and open it directly from the application.

  • How to trigger a conditional display based on a dynamic Action without submitting the Page

    Hello

    Using Oracle APEX v4.2 on 11g, I have the following scenario and wanted to take other people on how to accomplish what I'm trying to do, i.e.:

    In region 1, I have a select item list page called P1_SELECTION, which contains selections from drop down to the user to choose from the following three: A1, B2 and C3

    In region 2, I have two checkbox elements:

    P1_CBOX1 I gave a conditional display of ' point value / Expression 1 column! = 2 expression, where Expression 1 = P1_SELECTION and Expression 2 = B2, so P1_SELECTION! = B2

    P1_CBOX2 I gave a conditional display of ' value of the point / column Expression 1 = Expression 2 where Expression 1 = P1_SELECTION and Expression 2 = B2, then P1_SELECTION = B2 .

    Use of dynamic Action on the evolution of the P1_SELECTION in region 1, how can I trigger the correct display of the checkbox in region 2, with the default view of the region 2 checkbox being P1_CBOX1, without submitting the entire page, just refreshing each of the elements checkbox to trigger the conditional display correct?

    For example, on the changes of P1_SELECTION = B2 then entire submission without page, only P1_CBOX2 is presented to the user in other P1_CBOX1 is displayed.

    Is this possible?

    Thank you.

    Tony.

    Hi Tony,.

    condition your dynamic action on P1_SELECTION with the following condition of javascript: this.triggeringElement.value = "B2".

    Add real actions that will show P1_CBOX2 and hide P1_CBOX1

    Add false actions and going hide P1_CBOX2 show P1_CBOX1

    Set the dynamic actions to fire on Page load

    Kind regards

    Erik-jan

  • I downloaded the latest version, but the form page tells me to download the latest version and does not display the form

    I downloaded the latest version, but the form page tells me to download the latest version and does not display the form!

    Ok. Chrome has stopped supporting the player plug-in (for now). You'll want to download the forms by placing the cursor on the link, right click and check-in at your computer. Alternatively, you can try another browser such as Internet Explorer.

  • Help with conditional display and Validation

    Version 4.1.1.00.23

    Hello

    I'm having a difficult time with a conditional display and validation, I hope someone can help with.

    Requirements:

    When (Datepicker) Start Date or the end Date (Datepicker) change can display the reason for change (select list) and change Description (Textbox)
    If the page is saved without entering a reason change display an error message of validation that the reason for the change cannot be empty (NULL)

    What I tried

    Create a dynamic Action on the Start Date

    Event: Change

    Selection type: Article (s)

    Items (s): P51_START_DATE

    Condition: no

    Real Action Section:

    Action: Show

    Fire on Page load: Checked

    Display all the elements of the page on the same line: NO.

    Section of the elements concerned:

    Selection type: Article (s)

    Product (s): P51_CHANGE_REASON, P51_CHANGE_DESC

    I also created a dynamic Action with similar settings for the P51_END_DATE.

    I created a Validation for the P51_CHANGE_REASON as a function return error text:

    DECLARE
        v_start_date    work_items.start_date%TYPE;
        v_end_date      work_items.end_date%TYPE;
    BEGIN
        SELECT start_date
              ,end_date
        INTO   v_start_date
              ,v_end_date
        FROM   work_items
        WHERE  work_items_id = :P51_WORK_ITEMS_ID;
        IF ( (v_start_date != TO_DATE(:P51_START_DATE,'DD-MON-YYYY') OR v_end_date != TO_DATE(:P51_END_DATE,'DD-MON-YYYY') ) AND
              :P51_CHANGE_REASON IS NULL ) THEN
            RETURN 'Change Reason must have a value';
        END IF;
    END;
    
    
    

    The question

    I tried to create another dynamic Action to hide the P51_CHANGE_REASON and P51_CHANGE_DESC fields during the loading of the page, but when the date fields are changed and the validation is fired the P51_CHANGE_REASON and the P51_CHANGE_DESC are hidden again.

    There are two buttons to send the page: 'SAVE' will submit the page and stay on the page and 'SAVE_CHANGES' will present the page and creates a branch to the previous page (which is a relationship with the EDIT buttons to change recording).

    I can not loading the dynamic Action page for fires DO NOT when validation is triggered.

    I hope it is clear and if not what information can I provide?

    Thank you

    Joe

    Which the condition is failing and what browser? I tested it in Firefox and it works as it should. Can you confirm that?

  • I install the new cc2014 update, but for some reason any in my computer displays double former app and the new, but the new dose did not setup that I have in my old version! What will happen?

    I install the new cc2014 update, but for some reason any in my computer displays double former app and the new, but the new dose did not setup that I have in my old version! What will happen?

    Thanks, I have solved this problem, simply delete the old and manually I have brand new!

  • Conditional display of HTML5

    APEX 4.2 theme 25 DB Oracle 11 GR 2 - I need to conditionally display Html5/Flash graphic areas depending on the browser compatibility, does anyone have ideas on how to do this. Thanks in advance.

    Hi rich,

    With APEX 4.2, we integrated AnyChart 6 cards that gives users the ability to create graphs of HTML5 and Flash graphics. Something to note is that Flash graphic 4.2 automatically use the AnyChart rendering type "FLASH_PREFERRED": http://anychart.com/products/anychart/docs/users-guide/migration-guide.html#from-5.1.x-to-6.x-rendering-types. This setting means that when Flash is available, the table will be rendered in Flash. However, when the Flash is not available, the table will be rendered under HTML5. It is an automatic failover with the parameter "FLASH_PREFERRED". This will therefore remove potentially your need to conditionally display the graphic regions based on browser compatibility.

    Kind regards
    Hilary

  • Conditional display based on Web browser

    Hey,.

    Is it possible to place a conditional display on APEX elements depending on the Web browser they are using?
    I have a plugin which is extremely useful on IE7 and FF, however most of our users are on IE6, and of course the plugin does not work.

    So if I can I'd like hide the Combobox plugin and automatically fill the area of text instead.

    Thanks in advance
    Ozzy



    APEX Version - 4.0.1.00.03

    Hello

    Try the PL/SQL expression condition to detect IE6

    UPPER(owa_util.get_cgi_env('HTTP_USER_AGENT')) LIKE '%MSIE 6%';
    

    Kind regards
    Jari

  • Conditionally display column report

    Hello

    I want to display the column report under certain conditions.

    I've created a report. There are several columns as. BILL BILL NO, DATE, METHOD OF PAYMENT, CHECK, CHECQUE DATE, THE TOTAL AMOUNT

    Now, I want to display only no. BILL, BILL DATE, MODE of PAYMENT, TOTAL AMOUNT when I select the MODE of PAYMENT in cash in the select an ITEM list

    And

    I want to display only BILL No., DATE of INVOICE, PAYMENT METHOD, CHECK number, CHECK DATE, TOTAL AMOUNT when I select the check PAYMENT METHOD in the select an ITEM list

    How can I conditionally display column of the report.


    Thank you
    Ed

    If you go to report attributes, you can specify conditions for specific columns.

    As you wait to conditionally display items based on what is selected in the selection list, you now have the page to refresh. For example, change the selection list to select the list to submit.

    Then you should be able to add a condition, according to the value of the selection list.

  • display the form without exploring

    I use the generator of forms 10g.

    I want to display the form without exploring.

    Is this possible?

    Thank you.

    Start your application using Java Web Start.

    [Java Web Start | http://www.bloggingaboutjava.org/2007/04/running-oracle-webforms-like-a-client-server-application/]

    It is not supported by Oracle, but it works well and looks good.

  • Conditionally display different images in a report

    Hello. I have a simple report. In a column of it, I have a link to another report. Display a picture using the column rather than display the value of the column, text of the link to the column binding property.

    I put in the link text field, a < img src = "#WORKSPACE_IMAGES #my_image.jpg" > tag.

    Works like a charm - on the report that the column displays the images of small icon that can be clicked take the user to another page.

    I would conditionally (based on the real value of the row of the column) show two different images. Think of a green arrow pointing at vs a red down arrow.

    How can I do?

    Or can I at least have the image above display under certain conditions and if the condition is not met, not display anything?

    I noticed that each page an attribute of the column in the report has the conditional display section. How does for a column?

    Thank you
    Boris

    Use an expression box in the query, for example

    ...
    case
      when x <= 50 then 'down.png'
      else 'up.png'
    end icon
    ...
    

    Change the link text field to

    <img src="#WORKSPACE_IMAGES##ICON#" alt=""/>
    

Maybe you are looking for

  • Bluetooth will not play through JBL S200

    MY IPad 9.5.3 running tells me that it is connected to this unit, but there is no sound.  Restore volume on each device control is no different.  I don't have this problem with my Mac or my iPhone.  Someone else?

  • Site of attack reports

    All few minutes my service antivirus AVAST reports on this site of malware: URL: http://sso.anbtr.com/domain/local.swarmcast.net Process: Mozilla Firefox/firefox.exe This has happened for more than 48 hours. May this site blocked by Firefox before st

  • I can't do the hp solution center work properly. How can I fix it?

    When I click on the HP Solution Center a message error poster that says "no HP devices have been detected.  "Solution Center HP close now." The printer is HP Photosmart C4180 all-in-One.  Operating system is Windows Vista 32-bit.

  • Cannot run Windows 7 SP1 on big HDD (1 TB)

    Hello I just realized about this very recent which is apparently now closed: http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?MessageID=275105 I had same problem with a Toshiba 1 TB drive - I lost on that day and tried at least 10 Window

  • Mail, display in three columns

    Hello. I use the classic view in the mail, and I was stupid enough to shoot this the middle line down, convinced that I could get it back. Which I did not! When I go to the bottom line (see photo), the cursor changes to is should, but I can't seem to