Display of the conditional field of Apex Oracle

Hello

I created two Wizard page in Oracle Apex.

I have a table point and item_detail. For element1, I have a record of detail and item2, I have two detail record.

Step 1: Choose the section that will fall to the bottom of the roll of the order of the day.

On step 2: based on the record number of detail items, I want to display the text on step 2 fields. If item1 is selected in display 1 thenl, textdisplay1, and textfield1 to step 2 step. If item2 is not selected ' will display textfield1, textfield2 to step 2, textdisplay1, textdisplay2.

SQL/pl/sql condition will be: select count (*) in the item_detail where item_id in (select item_id station where nom_element = 'provided to the step 1 "

I want this dynamic ability to display fields or at least to hide textdisplay2, textfield2 based on condition of sql/plsql.

Thank you

Fields / display items (or hidden) by the result of the 'Condition' selection on the page field specification APEX / point. (You have all the tabs at the top: Identification, UI, grid, Label,..., Condition,...) Condition determines whether the field is displayed. Defaults to '-point not conditional ' but if you click on the drop-down menu, there are different conditions of 30-50. There are, there's NO..., never, always. If you select "PL/SQL function body returning a Boolean", it will add an Expression 1 box in the GUI where you can write a "starting...". End; "block to return TRUE or FALSE for the condition. It display if TRUE is returned, skins, if FALSE is returned. (Someone other chime in here if I missed something.)

It is a VERY characteristic slick of APEX. The only addiitons I could ask would be: positive, negative and "do what I mean".

Howard

Tags: Database

Similar Questions

  • How to create an item of the display of the Image with functions Apex?

    Hi everyone :)

    I'm working on the 4.1.1.00.23 Apex in an 11g database XE.

    I want to display an Image in a report, I can do this by using the ' + BLOB download Format mask + ", but the images displayed in the original format and I want to display the smaller.

    I read that you need to create a procedure, a SYNONYM and call them to the src of the img tag. as Zsuzsi Vadasz mentions here
    http://blog.hilandco.com/2010/05/How-to-show-BLOB-type-column-as-image.html

    But I remember that I was able to create items in reports with the functions of the Apex, I think they were APEX_ITEM package, so I want to know if there is a way to create the '+' display Image + element with a function of APEX.

    Thank you.

    Diego (SniperCat) wrote:

    I'm working on the 4.1.1.00.23 Apex in an 11g database XE.

    I want to display an Image in a report

    Always specify if "report" means the report standard or interactive.

    I can do this by using the ' + BLOB download Format mask + ", but the images displayed in the original format and I want to display the smaller.

    I read that you need to create a procedure, a SYNONYM and call them to the src of the img tag. as Zsuzsi Vadasz mentions here
    http://blog.hilandco.com/2010/05/How-to-show-BLOB-type-column-as-image.html

    This post was obsolete when it was written. Use the built-in support of BLOB.

    Resizing of the declarative BLOB images in reports is simple using CSS. Add a style sheet with:

    td[headers="PHOTO"] img {
      display: block;
      width: 40px;
      border: 1px solid #999;
      padding: 4px;
      background: #f6f6f6;
    }
    

    where the value of the PHOTO in the attribute selector is the ID of the image column table header. Define only a single dimension (in this case the width) will scale the image with the correct proportions. (Background, padding and border properties are just eye candy...)

    However, the scaling of the images in the browser in this way is a huge waste of bandwidth and product of lower quality images than to create good scaled down versions using image tools. Image download megapixel and then to reduce them to the size of the thumbnail result in needlessly pushing millions of bytes which will never be seen.

    For better performance and image quality, and where you need specific image scaling of the best approach is to use the ORDImage database object to produce thumbnail and preview automatically versions. Unfortunately, this is not possible in Oracle XE as multimedia is not included :-(.

  • Problem with the display in the text field font

    When I create the static text field, choose the font: Arial, Tahoma or Verdana or trebuchet

    Anti-aliasing on the police of device use and put the text in regular style and "BOLD"

    then, the text that is displayed in the style "BOLD" looks the same for all fonts

    03.png

    The device font is roughly what its name suggests.  It uses a police she chooses what the machine is available - with some to find the one that corresponds to the planned police (I don't know how intelligent the font engine is that it can determine what a font looks like, especially one who does not - I suspect human intervention in the process).

  • Year (only) extracted from field Date and display in the text field

    I need extract the year from a field of date entered by the user and display the year in a text field. Can someone help me with the correct script to do this?

    Hello

    It is quite easy to achieve with FormCalc.

    In you the output of the date fields event add the following code:

    textField1 = Num2Date( Date2Num($.formattedValue, "MM/DD/YYYY"), "YYYY")
    

    Note: This example assumes that your date field formats the date with "MM/DD/YYYY". You may need to change the schema to make it work for your purpose.

  • RemoteObject result to display in the TextInput field

    Hi all. I get a record result a value returned by a call to RemoteObject to a CFC. No problem. I then put that into an ArrayCollection collection. Then, I want to display the fields in a form with TextInput fields. I can't find any documentation on the way out the fields.

    The returned fields are ID, number ticket, title, URL, etc. Again, only 1 ticket is returned in the query.

    I tried:

    < mx:TextInput id = text = "{AltirisDetailsResultArray.TicketNumber}" / "txtinputTicketNumber" >

    But I get an error when compiling:
    1119: access of property may be undefined number ticket through a reference with static type mx.collections:ArrayCollection.

    I tried many ways, but nothing works.

    Thank you, all.

    Jeff, thanks for the help. Actually, I figured it out before check you in here once again and had just published my dose. It was right in front of me, so I knew what to look for.

    I just need to tell him where, in the arraycollection collection to get the field.

    MAGIC!

    Thank you, however, I'll be back.

  • Hide the region using Lov apex oracle 5.0

    Created a static LOV to my report page.

    Now, a selection of drop down of lov values, I need to hide the region and for another selection, I need to see the region.

    Say it like...

    If you are already a customer then it is useless to see the area of registration, if you are a new user, you must complete the registration form.

    So I have to possibility of selection

    Already a customer of 1)

    (2) new customer

    Click on the selection to an existing customer of LOV only registration form region must didn't show the region that I created for new client.

    Ditto for the new customer.

    GOT STUCK HERE.

    I created LOV, but it redirects me to one page to another does not what I wanted.

    Apex. Oracle.com

    testdump/developer/Office

    Hi Dominique,.

    You can do this by creating two dynamic action

    Create a static region which equip your Lov article

    Now you have three regions

    1 static area - container of your LOV point

    2. new customer area

    3. existing customer area

    1. create a dynamic action to show and hide the new client area

    Event: change

    Selection type: point

    : Item Lov that contains (new or existing value)

    Condition: equals

    Value: N (assuming that N is the new customer return value)

    Action: show

    Fire on loading the Page: Yes

    Generate the opposite action of false: Yes

    Selection type: region

    Region: Select the new customer area

    2. create a dynamic action to show and hide Existing customer area

    Event: change

    Selection type: point

    : Item Lov that contains (new or existing value)

    Condition: equals

    Value: E (assuming that E is the return value of existing customers)

    Action: show

    Fire on loading the Page: Yes

    Generate the opposite action of false: Yes

    Selection type: region

    Region: Select the customer existing region

    Kind regards

    Jitendra

  • HTML Code is displayed in the item field

    I have a point in a shape of type display text - does not state record. I'm trying to change the background color. So I in html table cell attributes:
    <span style='background-color:yellow'></span>
    I have in the HTML header
    <script language="JavaScript" type="text/javascript"></script>
    But when I run the form, I see the following html commands as well as the actual value in the text box:
    colspan="1" rowspan="1" align="left">500181
    (500181 is the true value for the field, the background color is set correctly to yellow)


    It's probably something very simple, but I couldn't find the forum search.

    The form does not rely on a select statement, so I can not put the code in there, as part of the select statement.

    Thanks for your help. Susan

    The 'Attributes of Table cells' field allows you to add attributes to thegenerates the Apex label. It is not intended to full tags to insert. See if just put:

    style="background-color:yellow"
    

    in the 'attributes of table cells' field work better.

    If you do not need to add a complete tag, you can try to put in the field "Text the pre element's" opening tag and the closing tag in the field "Item text"

  • How to create the image button in apex oracle 3.1

    Hello

    I am new to oracle apex.

    I would like to show button called delete as an icon of image for the same thing that I saved the attributes of the button as shown below

    Button = Image Style

    Button Image #WORKSPACE_IMAGES #delete_row_64.gif

    But this isn't no image showing, as image not available.

    Please someone help me how to solve this issue

    Helpe me please where should I keep the images that I can use as an icon of the image to the page element.

    Thank you and best regards,
    Ibrahim Sayyed.

    You must download the image in for the shared components

    Gus

  • How to create a group/list of the variables in the box for display in the text field, in the format in annex

    I need to identify a series of variables single-response checkbox and display links selected (as a group) in a text field in an annex (comma, space) format. Last week, you provided a small script for a similar requirement by using the list box (multiple response) variables. This time, I need to know how to identify the variables of the box officially and, presumably, use a similar script to display the results in a comma, space format.

    You've been a great help.

    Thank you

    Here's the script for this situation. It assumes there are ten boxes named cb1, cb1, cb2,... cb10.

    // Custom Calculate script for text field
    (function () {
    
        // Initialize the string
        var v, s = "";
    
        // Loop through the check boxes to build up a string
        for (var i = 1; i < 11; i++) {
    
            // Get the value of the current check box
            v = getField("cb" + i).value;
    
            if (v !== "Off") {
                if (s) s += ", ";  // Add a comma and a space if needed
                s += v;  // Add the selected value
            }
        }
    
        // Set this field value to the string
        event.value = s;
    
    })();
    

    You will have to change the name of the field and start/end numbers to match your form.

  • Development of the conditional field

    Hello

    I have a page with two fields. If the value of the field 1 is zero, I want the focus to be on the field 1. If the value of the field 1 is not null, I want the focus to be on the field 2. I tried this:
    <script language="JavaScript">
    if $v('P1_FIELD1') != ''  then
      document.getElementById("P1_FIELD2").focus();
    end if;
    </script>
    and using various iterations of said $v, $x, etc. but I can't make it work and I get an error:

    EXPECTED ' (')

    Page cursor focus is set on not focus not cursor.

    Hello

    Try

    
    

    BR, Jari

  • Allowing the display of the icon in an interactive report

    Hi all

    I would like to add a screenshot to show what exactly is the nature of the problem, but because I can't, I'll give you as much detail as possible.

    Therefore, any way, to the Apex 4, I activated the "icon view" in the "attributes of interactive report' a 'interactive report. Once I've run the application, I switch the view of the report "Icon view" and then disable the "search bar" (in "interactive report attributes") in the order of restraint from the user to the view "icon. Everything works great, I got the application to load the icons and display them with a cute text... but then, even if the report is displayed as a horizontal 'list', I still stock with some of the borders in view of the report, + when I scroll my mouse on one of the icons, it to highlight all the icons of the line as it will do for an interactive report line. So what I would do, is to completely hide the border of reports and to disable mouseover option.

    I tried to solve these two ' detail using the customizing options offered by Apex, but I couldn't find anything. I'm open to suggestions...

    THX

    Stone

    Published by: user3155246 on September 15. 2011 12:16

    user3155246 wrote:

    I would like to add a screenshot to show what exactly is the nature of the problem, but because I can't, I'll give you as much detail as possible.

    You can do something even better: reproduce the problem exactly on apex.oracle.com to share with the community of visu...

    (And please update your forum profile with a real handle instead of "user3155246").

  • JavaScript - how to refer to the line/field directly above a table

    I have a tabular presentation this tab of people through data entry fields

    some of the data is inserted before when the page is loaded

    However when they tab for a certain area I would like only to copy the data from the same field in the line above

    at the point where they (OnBlur) tab out of the field, I copy the contents of a Page element, and then I tried to copy it in when the field gets focus
    but he doesn't seem to like an OnFocus and OnBlur an in the same field? is this correct?

    So if I could reference the field above I could copy it directly, I've used the reference nextsibling for the fields in the same line, I was wondering if there was something different

    Thank you very much

    Chris

    Hi Chris,

    The onfocus and onblur should work ok on the same ground. You will be perhaps easier to use the attribute 'name' instead. This allows you to refer to the collection of fields of the same name, working would out which one is the current field and then look at that before that. I've done here, in the SAL column: [http://apex.oracle.com/pls/otn/f?p=55989:3]

    In region Header region, I have:

    <script type="text/javascript">
    function copyPrevious(o)
    {
     var x;
     var v;
     v = "";
     var f;
     f = 0;
     if (o.value == "")
     {
      var oName = o.name;
      var oID = o.id;
      var items = document.getElementsByName(oName);
      if (items)
      {
       for (x = 0; x < items.length; x++)
       {
        if (items[x].id == oID)
        {
         if (x > 0)
         {
          f = x - 1;
          break;
         }
        }
       }
      }
      if (f > 0)
      {
       o.value = items[f].value;
      }
     }
    }
    </script>
    

    and as attributes of the element of the SAL column, I have:

    onfocus="javascript:copyPrevious(this);"
    

    Andy

  • Name of ToolTip to display in the form to fill out?

    I'm new here ! Looking for help on how I can make a text field has a name that will be displayed for the user to know what information is needed in the field, but will not display the name of the ToolTip. I searched and found that it is possible with a Javascript. However I'm not fimiliar at all with this... but can quite understand it with the help please. I use acrobat 9 standard to create my form.

    You can set the actual ToolTip text on the general tab of the field properties dialog box.

    If you want the text to display in the actual field that disappears when the field is selected and does not print, you can use the following custom Format script:

    // Custom Format script for text field
    if (!event.value) {
        event.value = "Instructional text goes here.";
        event.target.display = display.noPrint;
    } else {
        event.target.display = display.visible;
    }
    

    If you also set the ToolTip text, this code can be changed to:

    // Custom Format script for text field
    if (!event.value) {
        event.value = event.target.userName;
        event.target.display = display.noPrint;
    } else {
        event.target.display = display.visible;
    }
    
  • Automatic filling of the field Date in the text field to the Format YYMMDD

    Hello

    I need to automatically populate a text field with a date that is entered in a date field. I was able to do this, but I couldn't find a way to have him fit in the text as YYMMDD field (with no spaces, dashes, etc) instead of "MM/DD/YY" as it is displayed in the date field.

    Could someone help me with the right code?

    Best regards

    ZeroZone110

    I don't know if it's the best option, but here is a workaround...

    using formcalc you can format your date fields

    var myDate = Date2Num (DateField1.rawValue, "YYYY-MM-DD")

    var format = Num2Date (myDate, "YYYY-MM-DD")

    TextField2.rawValue = format

  • The description field can be increased on a layout?

    Hello

    Is it possible to move the position of the description field, layout of account, to above or below a particular section? Is it possible to shorten the length of the text displayed in the description field? (The actual field may be longer and fill the area will be visible when editing of the recording, but observing, it displays a shorter column)

    Kind regards

    Currently, it is not possible to move the Description field of the page layout, and you cannot change the size of this field. I would recommend that you submit a request for service improvement customer CRM On Demand.

Maybe you are looking for