Dynamic action for validation of date with the notification message plugin

Hi all

Someone help me please with dynamic action for validation of date with the message notification plugin. I have a form with two elements of the date picker control and message notification plugin.

The requirement first user selects the exam is finished and then selects the date. So, if the date is greater than the date of the examination is over + 2 years then doesn't trigger the message notification plugin. I tried to create that dynamic action on the date picker date that triggers the scheduled issue notification message but I want to make conditional, I mean displays the message only if date of the selected is greater than the date of the exam is finished more than 2 years.

In terms simple, notification is displayed only if provided is superior to (date of the exam is completed + 2 years).

I use oracle apex 4.0 version and oracle 10g r2 database. I tried to reproduce the same requirement in my personal workspace. Here are the details. Please take a look.

Workspace: raghu_workspace

username: orton607

password: orton607

APP # 72193

PG # 1

Any help is appreciated.

Thanks in advance.

Orton.

You can get the value of the date of entry:

$(ele) .datePicker ('getDate');

So what to add functions such as:

function validateNotification (d1, d2) {}

Date1 var = $(d1) .datepicker ('getDate');

date2 var = $(d2) .datepicker ('getDate');

if(date1 && date2) {}

return ((date2.getTime()-date1.getTime())/(1000*24*60*60))>(365*2);

} else {}

Returns false;

}

}

The logic based on setting (I have two years from years of 365 days preceding)

Then in the D.A. specify a JavaScript expression as:

validateNotification ('P2_REVIEW_COMPLETED', this.triggeringElement.id)

Refer to page 2 for example.

Tags: Database

Similar Questions

  • Dynamic action - trigger when less Date to today's Date

    Hello

    I tried to do a search on the forum but its coming from a white.

    I think I'm trying to do is simple but for some reason, I can't understand it. What I want to do, it's a field on my form when the user enters the date display is less than today's date. I have a format mask on my date field to the standard UK of DD/MM/YYYY.

    I tried to do this using a dynamic action, but what I don't really know is how to take the date on which a field text and convert it to a date and check against sysdate using dynamic action? Is this possible with dynamic action?

    See you soon,.

    Paul.

    Hello Paul,

    You must create a dynamic of stocks that fires about to Date change. Set the DA to run following code JS (Advanced DA)

    // replace P1_DATE_ITEM with actual date item name
    // Works for Date Format DD/MM/YYYY
    var itemVal = $v("P1_DATE_ITEM");
    var year = itemVal.substr(6,4);
    var month = itemVal.substr(3,2);
    var day = itemVal.substr(0,2);
    
    // Construct JS Date Object
    var inputDate =new Date();
    inputDate.setFullYear(year,month-1,day);
    
    // Get todays date, as Date Object
    var todayDate = new Date();
    
    // replace P1_SHOW_HIDE_ITEM with YOUR item name
    // Compare input date and today date
    if (inputDate < todayDate)
      $x_ShowItemRow("P1_SHOW_HIDE_ITEM");
    else
      $x_HideItemRow("P1_SHOW_HIDE_ITEM");
    

    This should make the necessary

    Kind regards

    Hari

  • Dynamic action for button update region

    Hi all, how to create a dynamic action for button update region. Suggest me

    Thank you

    Apex-Obin wrote:

    Thank you... with over loading the entire page?

    Updating of dynamic actions using partial page refresh (PPR). However it is supported only on certain types of region: traditional and interactive reports, graphics and plug-ins where PPR support has been implemented by the developer of plug-in. The model of the region must also include an id = "" #REGION_STATIC_ID # "attribute, which means that the model region cannot set model No."

  • 2 dynamic action for an item

    I have two dynamic actions for an item from the selection list that is loaded from an element of Cascade LOV.

    Dynamic action 1:

    Name: d1
    Condition: Value = "EXPECTED".
    true action: see the 'Solution' element.
    action of false: hide a 'Solution '.

    Dynamic action 2:

    Name: d2
    Condition: Value = 'OFFERED '.
    true action: see the 'Solution' element.
    action of false: hide a 'Solution '.

    That's happened? If only works with the dynamic action of d1 or when I did some changing works with dynamic action of d2. I unchecked the field "load fire on the page" but it did not work. I think that there is perhaps some collide with them but I analyzed it, but I can't find. Thanks in advance.

    Another thinks I want to ask is how to order values in a select list... with this code above indicate me the values in the following order: closed, lift, open, waiting. But I want the values in the following order: open, pending, climbing, closed. How can I do?
     select distinct STATUS as display_value, STATUS as return_value 
      from HD_STATUS
     order by 1
    Best regards, Bernardo.

    Ah so. It's actually easier then.

    You'll have an installation DA your d1 is configured with the following differences:

    Name: d1
    Event: Change
    Selectio type: Item(s)
    Item: P10_SUBSTATUS
    Condition: Javascript expression
    Value: $v('P10_SUBSTATUS')==='PLANNED' || $v('P10_SUBSTATUS')==='OFFERED' 
    
    true action: Show "Solution" item,
    false action: Hide "Solution" item.
    
    Nothing in the Condition box that currently has the PL/SQL expression. (Make sure to select "None" as the condition type in the condition box)
    

    You need basically the GOLD option that is provided above as Javascript. ' | ' is the operator or if you are not familiar with JS. ' = ' means exactly equal to, and possibly "==", equal to so you could also put it this way.

    Should have thought first of this route.

    Published by: Bob37 on June 28, 2012 16:15

  • KB2183416 Windows Update for IE8 repeatedly fails with the error code "WindowsUpdate_8007371C" "WindowsUpdate_dt000"

    KB2183416 Windows Update for IE8 repeatedly fails with the error code "WindowsUpdate_8007371C" "WindowsUpdate_dt000"

    Whenever I run this update, it seems that it installs about 90% of the way but then stops and breaks down about 20 seconds later.  If someone else sees this problem and is at - it a solution?  I'm running Vista Home Premium SP2 and KB2183461 is listed as a critical update for my system.  Help?

    Preliminary stage: If the Tea Timer of Spybot is enabled, please disabled until we finished this thread. Seehttp://aumha.net/viewtopic.php?f=26&t=32409

    Tip: If you don't fully understand what Tea Timer does and how it does, leave it disabled permanently.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    McAfee applications (and Norton) are known for not not upgrade (or uninstall) "clean". If you have McAfee Security Center installed since you bought the computer, he is been updated (automatically) several times. Try the following:

    1. run this triple McAfee fix: http://service.mcafee.com/FAQDocument.aspx?id=TS100507

    2. after reinstallation of McAfee Security Center to step #3 patch triple, manually & repeatedly updated McAfee Security Center until you get one invite "no updates more".

    3. OPTIONAL: If you have had problems with IE8, open IE8 (only) to http://support.microsoft.com/kb/923737 & run the difficulty.

    4. OPTIONAL STEP: Open IE8 (only) to http://support.microsoft.com/kb/971058 & run the difficulty by DEFAULT inside and modes and AGGRESSIVE. [1]

    5 restart and test by launching a manual check of updates & see if KB2183461 now installs. See...

    How will I know if my computer is up to date?
    http://Windows.Microsoft.com/en-us/Windows-Vista/how-can-I-tell-if-my-computer-is-up-to-date

    ~~~~~~~~~~~~~~~~~~~~~~~~
    [1] full Disclosure: the difficulty operating in AGGRESSIVE mode will remove your update history but not list the updates installed in Add/Remove Programs (Windows XP) or updates installed (Vista & Win7).

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Foreign key constraint, not recognized during the synchronization of data with the model dictionary

    Hello

    Data Modeler is a foreign key constraints do not recognize when synchronizing data with the model dictionary, although the foreign key is there (in the database that a data dictionary is read). I can't find any criterion when a foreign key is not recognized by the Data Modeler. Are there limits to the length of the attribute, or the number of columns in a foreign key, or other limitations which may lead to this behavior not to recognize a fk by Data Modeler? I have columns more than 32 characters. I compared with the fk is recognized by DM, but I can't find anything that indicates why it is not recognized.

    I wonder if someone also has constraints of foreign keys that are not recognized in the comparison of data bases and model?

    Thank you

    Robert

    Hi Robert,.

    Thanks for the comments, I logged a bug.

    Philippe

  • What is always "stay up to date with the latest innovations in the field of photography from Adobe"?

    Hello

    I am considering buying stand-alone version 6 of Lightroom, but I wonder what does that "Always stay up to date with the latest innovations in photography from Adobe" is not available?

    Will be the updated standalone for free with the new camera support?

    Will be free updated standalone version with correction of defects?

    If there are new features (minor version of lightroom), will not be available for the stand-alone version before the next major release?

    Thanks for your help

    My understanding is that LR6 will continue to receive bug fixes and new camera support updates, but not feature/news which receives from the CRD. See question 2 below on this post: CC Lightroom / Camera Raw FAQ

  • dynamic action turns an article based on the result, and checks the database!

    I use Apex 4.1

    I do not know how to accomplish the following:
    If a pick list is changed, a function is checked and based on the results of a another field is disabled or enabled.

    I created a dynamic action (change) that executes a PL/SQL code, now I need to disable the other element.

    the problem is that I can't save the dynamic action because of the sign #.

    example:
    Start
    HTP.p ("< script type =" text/javascript"> '");
    HTP.p ('$('#P35_FT_00010_DOC_NO').attr ("readonly", "true")');
    HTP.p ("< /script >");
    end;

    I tried document.getElementById, but an error occurs also when I try to save.

    I think the wrong way?... Help, please

    1. create a step forward (not the simple/standard one) dynamic action.
    2. create initially unconditionally (the wizard will not let you take the PL/SQL expression as a condition but we will go back and change it later)
    3 assume that TRUE from your PL/SQL will lead to disable the item, then choose 'Disable' and the item you want to disable.
    4. Once created, go back in the DA and change the status of PL/SQL expression and put your PL/SQL in there (suppose you have a function returns boolean called MY_FUNC and TRUE to him means disable).
    5 copy the DA in its entirety to a new DA will be FALSE to activate the element.
    6. Once copied, go into the new DA and change the status of PL/SQL to NOT (my_func).
    7 change the REAL action of the DA to activate the element.

    So now you should have two similar DAs... one for when MY_FUNC is true and disables the element, a when "NOT (my_func)" is true and allows the element.

    If you do not disable, you can run javascript instead to set readonly. It seems that this is kind of what you tried to do, but you seem to use a jQuery selector, I suppose that (I did not recognize your syntax to off the bat)?

    Try to use the javascript API instead Apex:

    if ($v('P35_EN_DIS_DOC') == 1 )
      $x('P35_FT_00010_DOC_NO').readOnly='true';
    else
      $x('P35_FT_00010_DOC_NO').readOnly='';
    
  • How to create a store of data with the small block size

    Hello

    I want to create a data store on two 160 GB drives. All the VI Client allows me to do is to create a data store of whole disc with 1 MB block. But for reasons of performance with the virtualized Oracle RAC, which is 8K organized, I want to go down to a smaller block size. But how?

    Is it possible to split my drive to (lets say) four parts, each with a smaller block size and putting them all together like extends in a data store? To create partitions with fdisk does not work, as the VI Client wants to use the unpartitioned disk. Any ideas?

    Robert

    Hello

    It is not possible. The smallest block size is 1 MB on a VMFS partition.

    Best regards

    Lars Liljeroth

    -

  • I have HP DV6-1256tx, I want driver for my laptop compatible with the next operating system Windows 8...

    Hello. I have HP DV6-1256tx, I want drivers for my laptop compatible with the next Windows 8 operating system. How to download, can somebody help me please...

    Give me the link or something where I can download the drivers...

    Thank you

    Edriss Dave

    HP does not currently have drivers for Windows 8. You probably won't need them. Windows 8 is not coming. It's here!

    Just do the installation on a spare hard drive and bring the original HARD drive to a safe place.

    . Windows 8 has drivers built in for most laptops and desktop computers. I did have to look for a driver in two facilities. One was an HP mini and the other was a Toshiba laptop.

  • Are you aware of a possible bug in the version 3.6.23? In the browser, for example, "two /" appears with the slash through the 'o'. Is this a known bug? Thank you

    Are you aware of a possible bug in the version 3.6.23? In the browser, for example, "two /" appears with the slash through the 'o'. Is this a known bug?

    When the same text is seen in another browser, it is displayed correctly as "two."

    The same question is displayed on another computer.

    Thank you.

    Sounds that you use a font that supports ligatures (Palatino?).

  • all my data is all save on the local disk c, how to share the data with the other drive, local drive d.

    all my data records on the local disk c, how to share the data with the other drive, local drive d.

    Hi Jasonbichard,

    1. what type of drive is D? Is - this another partition on the same disk?

    2 Windows operating system you are using?

    You can change the location of the disk to save the data in the d: instead of C: and check if it helps.

    a. navigate to the location (username) C:\Users\.
    b. right click on the folder that you want to change the location, and then select Properties.
    c. click on the location tab and change the location to D: drive.

    d. click on apply and Ok.

  • Hello I have PC and pay monthly. We are a small company. Question 1: For two years I have a full subscription to Adobe all programs. But the other day I would open an another user InDesign documents and could not open this with the error message: the

    Hello

    I have PC and pay monthly. We are a small company.

    Question 1: For two years I have a full subscription to Adobe all programs. But the other day I would open an another user InDesign documents and could not open this with the error message: "the document is done a new version than my version of InDesign. How should I do to upgrade my version to a version more recent?

    Question 2: I already have a license to use the software on two computers. Am I not allowed to use the same version I've taken down on adobe.com til two computers or terms here.

    Sincerely

    Stefan Svensson

    Hello

    Please see update requests in your desktop CC application.

    CC Adobe license can be activated on 2 machines using the same Adobe ID, but only one at a time.

    Reference: licenses and terms of use | Adobe

    Kind regards

    Sheena

  • I want to build a pc for better video editing with the soft first Adobe pro and Adobe after effect. Should what kind of material I buy for it. If you suggest me pls.

    I want to build a pc for better video editing with the soft first Adobe pro and Adobe after effect. Should what kind of material I buy for it. If you suggest me pls. my budget is about $2500

    You will have problems in the construction of a 99 X system for this budget. You need 32 GB of ram if you do that will be a large part of the cost with DDR4 right now. If you have a room on the X 99 budget would certainly be the way forward. The 5960 X is the best processor out right now but $1100 will probably push your budget. The 5930 K would still work and a much better price for your budget. I suggest: 970GTX with this budget as well. Forget the Xeon V3. They are out of your budget and not worth the price with this budget in mind. You can get a system much better with the I7 Haswell E chips.

    Eric

    ADK

  • Urgent: I just bought 3 annual pre paid memberships for cloud creative adobe, with the same Adobe ID.

    Hi I just bought 3 annual prepaid membership for creative cloud adobe, with the same Adobe ID, I want to install each membership to another computer, how to do?

    An Adobe ID can be used to activate any subscription CC twice. If you need to have three Adobe ID different for each of the pre paid subscription so that they can be used.

    If you keep the same ID for three CC, it will not activate the third time & ask that you activate it from the previous.

    You can return two subscription & buy under different ID.

    Concerning

    Baudier

Maybe you are looking for

  • lost my toolbar navigation and my dock. Firefox went full screen

    While I was in outlook (msn) the enlarged screen and now everything is full-screen. I don't see the toolbar or the docking station or the scroll bar on the bottom and I don't know how to get back. I have to go back to the old Safari in order to acces

  • How to export Email from Apple Mail addresses?

    Hello Is there a way to export Apple Mail email addresses?  I use El Capitan v.10.11.5 - thanks, Tony

  • images appear on the page

    Thumbnails do not appear when I use youtube or visit a website, and my face book will no longer display images either. For example, on the homepage of youtube, it will show the links and text, but images are not present.

  • Need screen Equium L10

    Hello I hope someone can help, I have 2 questions. First someone knows a reasonable replacement for the screen awards. I had a few quotes but seems a bit steep £200 +. Second, what is the difference between the series of satellite and Satellite?Thank

  • Satellite A30-404: how to change the options in the E-Power Manager

    HelloI have a laptop Toshiba A30-404. I would change my powermanagement in the control panel. If I open powermanagement I get the message; Close powermanagement and open E-power management to change your poweroptions. As soon as I move the cursor ove