The button toggle based on condition for a data block

I have a data block with elements like student, student, DOB name card (all are text elements) and view (push button).
I'm getting 100 records and it generates 100 lines and push button for each line that matches. Now, I want to turn the push button, based on the DOB. If a student < 10 DOB I won't allow them to view their profile. How to limit the age of the student?
Thank you.

Hello Chris,
There are two ways to do this. A way to toggle the button (which I don't like)
1 way.
1 create a trigger on called a TIME-NEW-RECORD-INSTANCE at the block level and use the code like this...

IF MONTHS_BETWEEN(SYSDATE,:DATE_OF_BIRTH)/12 < 10 THEN
  SET_ITEM_PROPERTY('BUTTON_NAME',ENABLED,PROPERTY_FALSE);
ELSE
  SET_ITEM_PROPERTY('BUTTON_NAME',ENABLED,PROPERTY_TRUE);
END IF;

2nd way
I prefer to use to restrict the button itself. I mean, that's when the user will press the button then show him the message otherwise call form etc. as...
1. the trigger WHEN BUTTON PRESSED, use code like this...

IF MONTHS_BETWEEN(SYSDATE,:DATE_OF_BIRTH)/12 < 10 THEN
  MESSAGE('Not allowed to view profile.');
  MESSAGE('Not allowed to view profile.');
  RAISE FORM_TRIGGER_FAILURE;
ELSE
  -- Do something here / call form...
END IF;

-Clément

Tags: Oracle Development

Similar Questions

  • The button "Toggle Navigation" difficult to see on mobile screens, I need help to make it more visible

    Hi, I'm pretty new to dreamweaver so excuse me if this question is stupid or the obvious answer.

    I created my first project in dreamweaver - a "Coming Soon" page for my site Cyber Zombie Coming Soon! and I'm pretty happy with the results considering it was my first time using dreamweaver for a real project of myself without a tutorial.  However, I have a problem with my navigation menu. When my site is displayed in desktop mode, the navigation is fine (screenshot)

    Screen Shot 2016-06-03 at 00.55.16.png

    But when I reduce the size of my window to represent a mobile , the button interface that is supposed to say "Turn the Navigation" is extremely difficult to see (screenshot)

    Screen Shot 2016-06-03 at 00.53.32.png

    When I hover over the button with my mouse, it's a little better but still difficult to see (screenshot) and also you do not have a mouse on a smartphone to get high with.

    Screen Shot 2016-06-03 at 01.03.52.png

    Is someone can you please tell me how I can remedy this. I need the button 'Toggle Navigation' to be more visible, but I don't know how do to change what I used a "bootstrap" navigation menu which had the button built in.

    Thank you

    Jason

    Hi Jason,

    Try to change this:

        

    to do this: (light text on dark background)

     

  • I am trying to build a DVD menu, but whenever I click on the button "Toggle the display of the menu" options I get no picture and I am unable to create a menu. Can someone help me with this?

    I am trying to build a DVD menu, but whenever I click on the button "Toggle the display of the menu" options I get no picture and I am unable to create a menu. Can someone help me with this?

    You need to install the library separately:

    http://helpx.Adobe.com/Encore/using/download-library-content.html

  • Cursor changes not at hand so that the button MC based

    I made custom button MC based with above and steps as well as a scene from click.

    What would be a code for the cursor to change into a helping hand when it is above the button.

    yourcustomMC.buttonMode = true;

  • I lost my preview pane in Apple Mail. I tried various things, including clicking on the small button in the standard view. But I can't move the button to see my preview for the message pane.

    I lost my preview pane in Apple Mail. I tried various things, including clicking on the small button in the standard view. But I can't move the small button to see my preview for an e-mail message pane.

    Mail

    Classic view

    Move the mouse pointer to the 'small' button to the middle of the pane overview and then drag it down to show previews more.

  • Is it possible to make the buttons work in Acrobat Reader for iPhone and iPad?

    Hello

    I shopped in the forums, and although several threads are on the same question, I can't find a conclusive answer. I try to open an interactive pdf with buttons (show/hide actions) on my iphone in Acrobat Reader. However, the functions do not work, then they work fine on my Mac. Am I right in thinking that it is impossible to have buttons in interactive PDF work on my iOS devices? All applications are up to date. The buttons were created in inDesign.

    Thanks in advance for your support.

    Hi jom13880393

    I apologize for the issue.

    However, the navigation buttons options you speak is not available in the app and there is no solution for it right now.

    Kind regards

    Supriya

  • HELP with animation for the buttons (I tried to search for days for solution)

    Hellooo

    I tried to watch the discussions here for a solution, but I can not find... can someone help me please?

    I design a website in flash8... now, I created a few buttons and I want that when I click the button stars will fly on their part and there will be a sound... I have already created the animation of the separately-star and it's in the library, I also sound file... I just don't remember how put everything together... can someone please remind me what to do step by step so When I press the button that the stars will fly directly from the button and the sound will play? pleaseeeeeeeee, it's very very important to me... I'd be grateful < 3

    in your library, double-click your button.  Select the image down, and in the properties panel, select your sound and assign its sync to the event.  then drag your animation to your library on the stage.

  • ISSUE of MAC - I'm looking for the button toggle for thumbnails

    ISSUE of MAC - I'm looking for the toggle button that allows you to be at the bottom right of your desktop files to increase or decrease the size of the thumbnails.  Is - it still exist?

    Yes. Cmd / (slash) toggles it on and outside.

    Gene

  • The buttons display based on users

    Hello

    I have 2 types of users using my request. They are admin and developers. They have different privileges. When logged on as Administrator , 2 buttons namely approve and reject must be visible. When you are logged as long as developers, only one button named forward must be visible. Please guide me to achieve.

    Buttons have Condition attributes and authorization scheme. You can use one of these two conditionally display a button.

    In your case, I'd both DEV and ADMIN authorisation schemes. Much easier to reuse in other situations.

    (You can actually create only the ADMINISTRATOR and approval {no ADMIN} allows to inform developers. This can lead to problems in the future when groups of users adding more)

    More information:

    https://docs.Oracle.com/CD/E59726_01/doc.50/e39147/bldr_attr.htm#CHDCJGCI

  • How to switch the page in the footer numbering based on looking for it's a left or a right page

    Hello

    I sink my teeth into indesign and I was wondering if I can ask for your help on the foll:

    I need to have my page numbers in the footer somewhere different sheet based on knowledge if it is a page left or right-aligned. Something like this is easily done in Word by checking the option "different odd and even pages.

    Y at - it a similar option in InDesign to get the same result.

    Thank you

    Hello

    Yes, there is.

    You must first make sure that you work in a facing Pages document. Something you select when you create a new document (file > New > Document), or you can change after the fact by choosing File > Document format, and then by selecting the option Pages deal with.

    The document is then formatted with pages of left and right along the spinal column.

    The next step is to apply a master page which consists of a left and right page on the pages of your document and add the footer information page and automatic numbering of the pages on this master page (in a different location for the left and right page of course).

    1. Double-click the Master Page label in the Pages panel to modify an existing master page that applies to your document pages, or select new master from the Pages panel menu to create a new master page design to be applied to your document pages, make sure that you set the number of Pages to 2.
    2. Now add a block of text or other footer information, including a page number 'false' the bottom left and right of the master page, you edit and format as it is on your odd/even pages.
    3. To change the number of fake page to auto page number, use the text tool to select the wrong page number and choose text > insert special character > markers > current Page number.
    4. Repeat step 3 for the page number on the second page.
    5. Double-click on a document page in the Pages panel to return to the document.

    If you opted to create a new master page, you will need to apply it to the pages of a document always.

    1. In the Pages panel, select the pages to which you want to apply the master by clicking on the first page and then Shift clicking on the last page. This will select all of the pages between the two institutions.
    2. In the Pages panel menu select master apply to Pages, select the right apply from the menu of master teacher apply in the dialog box apply master and click OK.

    CARI

  • Highlight a line in the classic report based on condition

    HI all the gurus

    Apex 4.1.1 using oracle 11g linux oc4j

    I want to emphasize a line where #column_value #= 'Y' to keep gray others like normal report parameters.

    I have a simple sql query

    SELECT PK_ID,
      FIRST_NAME,
      LAST_NAME,
      INITIAL_REG_DATE,
      MAIL_DATE,
      BEGIN_DATE,
      END_DATE,
      END_DATE-BEGIN_DATE as "#days",
      BEGIN_STATUS,
      END_STATUS,  
      COMMENTS,
      DELETE_FLAG,
     case when  DELETE_FLAG='Y' then 'GREY' else '#f0f0f0' end  DELETE_FLAG ,
    INITIAL_REG_DATE+(END_DATE-BEGIN_DATE) "New Reg end date"
    FROM SOR_TRACKING_DEL
    where pk2_id =:P216_Detail
    order by mail_Date desc
    
    
    
    

    I created a dynamic action

    who will be the tree on load, LINK on this classic report

    $("input[name=f29]").each (function () {}

    var lThis = $(this);

    {if (lThis.is("Y"))}

    lThis.parents("tr:eq(0)").children("td").css({"background-color":"GREY"});)

    } else {}

    lThis.parents("tr:eq(0)").children("td").css({"background-color":"#f0f0f0"});)

    }

    });

    But it doesn't change color as expected...

    Kindly help me!

    Thank you

    Scott and Tom

    Thank you guys for looking into this.

    Pls ignore my incorrect explanation and my inexperience with jquery.

    I read some blog and trying to do the same on the classic report, but all blogs, I found to this day called interactive report or tabular report, that none of them mentions classic report.

    I assume that using the classic report will not be a good idea to start with. :/

    I don't know if this is the proper syntax and logic to highlight the line

    $(function(){

    varDELETE_FLAG = $(this);

    If DELETE_FLAG.is("Y"))

    {

      DELETE_FLAG.parents("tr").children("td").css({"background-color":"GREY"});).

    }});

    I also created app here

    http://Apex.Oracle.com/pls/Apex/f?p=35155

    get out of the workspace

    Tester/testing

    request 35155

    Thanks again.

  • stop the database server, is any condition for application server

    Hello

    I want to catch a cold backup to the database server.

    If I shutdown server, is any affect in Oracle application server?


    Concerning

    S.Azar

    azarmohds wrote:
    Hello

    I want to catch a cold backup to the database server.

    If I shutdown server, is any affect in Oracle application server?

    Concerning

    S.Azar

    Hi Azar

    No, there is no any effect to the Oracle application server

  • 4.0.3 export the result of grid in xlsx for different data type

    Hello

    Using SQL Dev 4.0.3.16 build 16.84 principal.

    Windows 7

    Java 1.7u80

    Run the query, click with the right button on the result of the grid:

    When you export data in xlsx format, why the numbers data type has different type of font.

    -Number / digital-> dialogue

    n.jpg

    -date and varchar2-> Calibri

    v.jpgd.jpg

    Step to reproduce:

    1 run this query

    Select 100 n, '100', to_date (1 January 2015 ',' DD-MM-YYYY "") as d

    Double;

    2. right click on the grid - export

    3. choose the Format: excel 2003 + (xlsx)

    Thank you.

    Buntoro

    This is a known behavior. And I think that there is a feature request to the SQL Developer Exchange, like the export of dates date request and not as text.

    Concerning

    Marcus

  • With the help of a wild card for any date

    I would like to have a contact to enter a campaign, once one of the fields from the custom contact form has ANY date in it, not only a date specific.  Is this possible?

    wild card.PNG

    You can also try the Null not exactly and see if it works.

  • For the visibility toggle button.

    Hi, I saw some info about it on these forums and Google searches, but I'm still a little confused.  I want to make a button that activates / deactivates the visibility for printing a column of fields.  I can do two buttons for this, but a rocking would be much nicer.

    Thank you!

    Suppose that there are three fields in the column 'text1', 'text2' and 'Text3 '. A simple script to toggle their visibility that you can use in the mouse event to the top of the button is:

    // MouseUp script for button
    (function () {
    
        // Get a reference to the first field in the column
        var f1 = getField("text1");
    
        // Toggle the display visibility value
        dv = (f1.display === display.visible) ? display.hidden : display.visible;
    
        // Set the display property of the fields to the new value
        f1.display = dv;
        getField("text2").display = dv;
        getField("text3").display = dv;
    
    })();
    

    This could be somewhat simplified, but you should get the idea.

Maybe you are looking for

  • The connection was reset?

    It has been some time now that I've tried to connect to k2nblog.com. I thought it was just the site are down, but then I tried logging in with my smartphone using the same IP address as my computer via wifi, and it worked. I already deleted my cookie

  • A program automatically downloaded on my computer with the name Firefox 9.0.1.4371. Is this a valid file of Firefox?

    A program automatically downloaded on my computer with the name Firefox 9.0.1.4371. Is this a valid file of Firefox?

  • privileges safari block iPad

    They are wonderful at Apple. It's been 5 days that my iPad is blocked. Impossible to activate the in privileges Mail or Safari or Notes or Messages. Huge global bug 9.3. No communications site on. All right. I tried this morning to call the Apple sto

  • IPad does not print, low on ink message

    I have iOS iPad running 7.0.3 and office jet 8500 a910 firmware lrp1fn123ar. AirPrint works ok until about a month ago, but it's not. When I print from an application such as the mail, iPad comes up with the message 'low on printer ink', followed by

  • 0xc0000005 when you try to install windows 7 ultimate

    tried to install the new windows ultmate 7, but when he goes to the page layout will stop and give code 0xC0000005 error please someone help on vista x 32 temporary files