How do you do post item validations or calculations?

In Oracle Forms, you can use Post Item triggers or When Validate Item triggers to validate data or do calculations as you move out of a form field. How can I do the same in Apex?

In Forms you can run PL/SQL code on both the client and the server, and the client trigger code can seamlessly access server PL/SQL program units and the state of the database session through its dedicated, always-on connection. With APEX things are different. The client (browser) only runs JavaScript and the server only runs PL/SQL; their session states are entirely separate; and they can only communicate through transient, stateless HTTP requests.
In this case, your dynamic action code has executed, but as it's PL/SQL it executes on the server and only affects server session state. (You can check this by reviewing session state&mdash;if the session state reflects no change, ensure the Page Items to Submit dynamic action setting includes <tt>P36_AMTRQ</tt>.)
If you require the action to execute in the browser then it needs to execute JavaScript code:
var amt = parseFloat($v("P36_AMTRQ")) * .0025;
$s("P36_FFEDU", amt);
$s("P36_CFEDU", amt);Page events, JavaScript and server PL/SQL programming can be combined using AJAX techniques to run code in the database and return the results to the page without page submission and rendering. htmldb_Get() Documentation vs Real Life.

Similar Messages

  • How do you show calendar items in Mail?

    How do you show calendar items in Mail?

    The only way possible to send a non-text file by e-mail is as an attachment. Different e-mail programs will handle JPEG attachments differently. Some will show the attachment within the message and some will not.

  • How do you add master items in iBook Author?

    Everytime I add a page to my book the same interactive image window appears as if it were a master item. How do you add master items and how do you eliminate it from happening on subsequent new pages?
    Message was edited by: Onnie Clem

    Onnie Clem - There are master layouts. To uncover & use them go to the View menu and select Show Laouts (3rd iten down). They appear in the top portion of the sidebar. Make universal changes here.
    I highly recommend everyone download and read this free book from O'Reilly press, Publishing With iBooks Author :
    http://shop.oreilly.com/product/0636920025597.do
    Reading this book and absorbing its contents will eliminate 95% of all the questions asked in this forum.
    - Fabe
    P.S. there is a separate iBooks Author forum.

  • HT4859 how do you see the items that are backed up to iCloud -  I have 4.5 GB that I have used but I cant find where to see those items...help

    how do you see the items that are backed up to iCloud -  I have 4.5 GB that I have used but I cant find where to see those items...help

    That is everything in your iCloud account.  Videos and camera roll photos are only included in your backup, the size and content of which you can see on your phone in Settings>iCloud>Storage & Backup>Manage Storage>tap the name of your device under Backup.  This will show you the size of "Camera Roll", where these are contained.  (You can't see any detail beyond that.)  Photo stream photos can only been seen in your photo stream album on your phone, and they don't count against your storage so they aren't part of the 4.5 GB.  Everything esle is either in the backup, the items listed in Settings>iCloud>Storage & Backup>Manage Storage, or on icloud.com, where you can see your contacts, calendars, etc.

  • How do you use the "Item Containing Start/End Date" in a Calendar?

    Hi
    I want to do a calendar where the days shown will be conditional to a certain interval. Now I though I could achieve that using the Item Containing Start Date of a calendar. But it doesn't seem to work. In the help it says :
    Enter an item in the application which holds the start date of the calendar. The format of the date in this item must be YYYYMMDD.
    This is what I did here
    http://apex.oracle.com/pls/otn/f?p=34530:1::::::
    I have 3 fields. 2 for the Start Date and End Date and 1 for the "Date Item" parameter. Only the latter has an effect on the calendar display, the calendar only displays the month of the "Date Item" (in monthly mode).
    Wether or not I check "Begin at Start of Interval", it doesn't affect the way those fields are affecting the Calendar.
    So, how do we use that "Item Containing Start/End Date" parameter?

    Hello,
    does yout Script work when you begin with ?:
    Start-Process powershell -Verb runAs
    Best regards,
    Stefan
    German Orchestrator Portal ,
    My blog in English

  • ReadCursorResponse Items. How Do You Iterate Cursor Items?

    I am working on some C# code that returns a cursor response. The cursor does have items in it. I can access them individually. How can I determine a "count" of items, or how do I control an interation loop of the items returned by the cursor? In other words, if I start reading items from the start of a cursor list, what is the best way to detemine the end of the list. Any help on controlling the loop starting at the cursor start through end would be appreciated.
    Much of the code below is taken from the VB example in the documentation and converted to C#.
    gwws.createCursorRequest gwCreateCursorReq = new gwws.createCursorRequest();
    gwws.createCursorResponse gwCreateCursorResp = new gwws.createCursorResponse();
    gwws.readCursorRequest gwReadCursorReq = new gwws.readCursorRequest();
    gwws.readCursorResponse gwReadCursorResp = new gwws.readCursorResponse();
    gwws.destroyCursorRequest gwDestroyCursorReq = new gwws.destroyCursorRequest();
    gwws.destroyCursorResponse gwDestroyCursorResp = new gwws.destroyCursorResponse();
    gwws.Filter gwFilter = new gwws.Filter();
    gwws.FilterGroup gwFilterGroup = new gwws.FilterGroup();
    gwws.FilterEntry[] gwfe = new gwws.FilterEntry[3];
    string subject;
    string location;
    string edate;
    string sdate;
    string gwView;
    // Filter for Appointment
    gwfe[0] = new gwws.FilterEntry();
    gwfe[0].op = gwws.FilterOp.eq;
    gwfe[0].field = "@type";
    gwfe[0].value = "Appointment";
    // Filter for Date Range
    gwfe[1] = new gwws.FilterEntry();
    gwfe[1].op = gwws.FilterOp.gte;
    gwfe[1].field = "startDate";
    gwfe[1].value = "2012-01-01T00:00:00Z";
    gwfe[2] = new gwws.FilterEntry();
    gwfe[2].op = gwws.FilterOp.lte;
    gwfe[2].field = "startDate";
    gwfe[2].value = "2012-02-29T00:00:00Z";
    // Use Filter
    gwFilterGroup.op = gwws.FilterOp.and;
    gwFilterGroup.element = gwfe;
    gwFilter.element = gwFilterGroup;
    gwView = "default peek id container @type message recipients attachments subject location startdate enddate place";
    gwCreateCursorReq.view = gwView;
    gwCreateCursorReq.container = "folders";
    gwCreateCursorReq.filter = gwFilter;
    gwCreateCursorResp = ws.createCursorRequest(gwCreateCursorReq);
    if (gwCreateCursorResp.status.code != 0 || gwCreateCursorResp.cursorSpecified == false)
    ofl.WriteLine("Problem creating cursor for: " );
    // Read the items in the container
    gwReadCursorReq.cursor = gwCreateCursorResp.cursor;
    gwReadCursorReq.position = gwws.CursorSeek.start;
    gwReadCursorReq.forward = true;
    gwReadCursorReq.container = "folders";
    gwReadCursorReq.count = 10;
    gwReadCursorResp = ws.readCursorRequest(gwReadCursorReq);
    int i = 1;
    while ((gwReadCursorResp.items != null)) && (gwReadCursorReq.count > 0) && (gwReadCursorResp.status.code == 0))
    gwReadCursorReq.position = gwws.CursorSeek.current;
    gwReadCursorResp = ws.readCursorRequest(gwReadCursorReq);
    if (gwReadCursorResp.status.code == 0)
    gwws.Appointment c = (gwws.Appointment)gwReadCursorResp.items.item[i];
    subject = c.subject;
    sdate = c.startDate.ToString();
    edate = c.endDate.ToString();
    location = c.place;
    ofl.WriteLine(subject + "," + location + "," + sdate + "," + edate + "," + gwReadCursorResp.status.code);
    i++;
    else
    ofl.WriteLine("Cursor Status Problem" + " " + gwReadCursorResp.status.code);
    MessageBox.Show("Appointments cCount " + gwReadCursorResp.items.count.ToString());
    //' Make sure you destoy the cursors. The data in the cursor can go stale.
    if (gwCreateCursorResp.cursorSpecified == true)
    gwDestroyCursorReq.cursor = gwCreateCursorResp.cursor;
    gwDestroyCursorResp = ws.destroyCursorRequest(gwDestroyCursorReq);
    if (gwDestroyCursorResp.status.code != 0 )
    MessageBox.Show("Problem destroying cursor for: " );

    If you are in the ide you can usually see what is available when you type
    the '.' on an object.
    For example, if you type:
    gwReadCursorResp.items.
    You should see:
    gwReadCursorResp.items.Length
    You should be able to do a normal for statement.
    There should be a simple C# client example that might help you.
    Preston
    >>> On Tuesday, January 24, 2012 at 11:46 AM,
    millerj0752<[email protected]> wrote:
    > I am working on some C# code that returns a cursor response. The cursor
    > does have items in it. I can access them individually. How can I
    > determine a "count" of items, or how do I control an interation loop of
    > the items returned by the cursor? In other words, if I start reading
    > items from the start of a cursor list, what is the best way to detemine
    > the end of the list. Any help on controlling the loop starting at the
    > cursor start through end would be appreciated.
    >
    >
    > Much of the code below is taken from the VB example in the
    > documentation and converted to C#.
    >
    > gwws.createCursorRequest gwCreateCursorReq = new
    > gwws.createCursorRequest();
    > gwws.createCursorResponse gwCreateCursorResp = new
    > gwws.createCursorResponse();
    > gwws.readCursorRequest gwReadCursorReq = new
    > gwws.readCursorRequest();
    > gwws.readCursorResponse gwReadCursorResp = new
    > gwws.readCursorResponse();
    > gwws.destroyCursorRequest gwDestroyCursorReq = new
    > gwws.destroyCursorRequest();
    > gwws.destroyCursorResponse gwDestroyCursorResp = new
    > gwws.destroyCursorResponse();
    > gwws.Filter gwFilter = new gwws.Filter();
    > gwws.FilterGroup gwFilterGroup = new gwws.FilterGroup();
    > gwws.FilterEntry[] gwfe = new gwws.FilterEntry[3];
    >
    > string subject;
    > string location;
    > string edate;
    > string sdate;
    > string gwView;
    >
    > // Filter for Appointment
    > gwfe[0] = new gwws.FilterEntry();
    > gwfe[0].op = gwws.FilterOp.eq;
    > gwfe[0].field = "@type";
    > gwfe[0].value = "Appointment";
    >
    > // Filter for Date Range
    > gwfe[1] = new gwws.FilterEntry();
    > gwfe[1].op = gwws.FilterOp.gte;
    > gwfe[1].field = "startDate";
    > gwfe[1].value = "2012‑01‑01T00:00:00Z";
    >
    > gwfe[2] = new gwws.FilterEntry();
    > gwfe[2].op = gwws.FilterOp.lte;
    > gwfe[2].field = "startDate";
    > gwfe[2].value = "2012‑02‑29T00:00:00Z";
    >
    > // Use Filter
    > gwFilterGroup.op = gwws.FilterOp.and;
    > gwFilterGroup.element = gwfe;
    > gwFilter.element = gwFilterGroup;
    >
    > gwView = "default peek id container @type message recipients
    > attachments subject location startdate enddate place";
    > gwCreateCursorReq.view = gwView;
    >
    > gwCreateCursorReq.container = "folders";
    > gwCreateCursorReq.filter = gwFilter;
    >
    > gwCreateCursorResp =
    > ws.createCursorRequest(gwCreateCursorReq);
    >
    > if (gwCreateCursorResp.status.code != 0 ||
    > gwCreateCursorResp.cursorSpecified == false)
    > {
    > {
    > ofl.WriteLine("Problem creating cursor for: " );
    > }
    > }
    > // Read the items in the container
    > gwReadCursorReq.cursor = gwCreateCursorResp.cursor;
    > gwReadCursorReq.position = gwws.CursorSeek.start;
    > gwReadCursorReq.forward = true;
    > gwReadCursorReq.container = "folders";
    > gwReadCursorReq.count = 10;
    > gwReadCursorResp = ws.readCursorRequest(gwReadCursorReq);
    >
    > int i = 1;
    > while ((gwReadCursorResp.items != null)) &&
    > (gwReadCursorReq.count > 0) && (gwReadCursorResp.status.code == 0))
    > {
    > gwReadCursorReq.position = gwws.CursorSeek.current;
    > gwReadCursorResp = ws.readCursorRequest(gwReadCursorReq);
    >
    > if (gwReadCursorResp.status.code == 0)
    > {
    > {
    > gwws.Appointment c =
    > (gwws.Appointment)gwReadCursorResp.items.item[i];
    > subject = c.subject;
    > sdate = c.startDate.ToString();
    > edate = c.endDate.ToString();
    > location = c.place;
    > ofl.WriteLine(subject + "," + location + "," +
    > sdate + "," + edate + "," + gwReadCursorResp.status.code);
    > i++;
    > }
    > }
    > else
    > {
    > ofl.WriteLine("Cursor Status Problem" + " " +
    > gwReadCursorResp.status.code);
    > }
    >
    > }
    >
    > MessageBox.Show("Appointments cCount " +
    > gwReadCursorResp.items.count.ToString());
    >
    > //' Make sure you destoy the cursors. The data in the cursor
    > can go stale.
    > if (gwCreateCursorResp.cursorSpecified == true)
    > {
    > gwDestroyCursorReq.cursor = gwCreateCursorResp.cursor;
    > gwDestroyCursorResp =
    > ws.destroyCursorRequest(gwDestroyCursorReq);
    > if (gwDestroyCursorResp.status.code != 0 )
    > {
    > MessageBox.Show("Problem destroying cursor for: " );
    > }
    > }
    >
    > }

  • How are you guys posting graphics in this forum?

    I see some graphics in some of the posts.
    How do you do that?

    You need one of these
    jk : ^)
    I see iSchwartz hooked you up, like a Largemouth Bass (or something?!)
    J
    MDD DP 1.25/PB G4   Mac OS X (10.4.6)   Logic Pro 7.2

  • How do you hide purchased items when I only have an ipad air and don't own a Mac or a PC?

    How do you hide history of purchased apps from an iPad air when I don't own a Mac or a PC to log in and hide items?

    You're welcome. Sorry to be the bearer of bad news.

  • Can you create an item validation that's an "Alert" to the user?

    I have a report of Personal Facts that includes a birth date and anniversary date. These dates display on the report as DD-MON-YYYY. I would like to 'alert' the user with a message (e.g. Today is this Customer's birthday) when today's date equals the birth date (montha and day or anniversary date. Is the only way to create this 'alert' to create a Page Validation for the column (item) BIRTH_DATE like this:
    to_char(trunc(P4_BIRTH_DATE),'MMDD') = to_char(trunc(sysdate),'MMDD')
    I've tried this but it doesn't work.

    Doing it this way, how about creating a HTML region to hold your Alert message?
    The html region is based on a condition that: to_char(trunc( :P4_BIRTH_DATE),'MMDD') = to_char(trunc(sysdate),'MMDD').
    Probably the reason you are not seeing the value in debug is because you are using a report region. You cannot see the values of indivdual rows/columns for report regions in the debug.
    Actually, having said that, that is were your problem is at. For a report, your item is not :P4_BIRTH_DATE, but instead something like f05 (the number changes depending on where it's at, column-wise).
    The only way to reference it is with htmldb_application.g_f05 (or whatever the number is). But, with this referencing, your best bet would probably be to manually create your report with the htmldb_item syntax. And, if your going to that level of effort, you maight as well attach a javascript call to the BIRTH_DATE field that displays an alert box, though if you are unfamilar with javascript, the conditional HTML region approach should almost work as well, though I'd add another field for the person's identifier (name?), so when it appeared, you would know which user had a birthday, since report regions are usually used to retreive multiple records.
    Or, another approach would be to create a psudo-column through a view that populates the alert field if the condition matches, otherwise it contains a null, then base your report on the view.
    Hope this helps some.
    Bill Ferguson

  • How do you select individual items from within a group?

    Hi, All.
    New poster. Forgive me if I miss any forum etiquette.
    Currently using Indesing CS6 on Mac Osx 10.7.4
    I'm a relatively recent convert to Indesign from Quark, and one thing I seem to have continual problems with is selecting individual items from within a group.
    For example I will have a grouped item, such as price marker that is comprised of several individual items, some text boxes, some rectangles.
    I find there is no way to select a rectangle that is currently placed behind a transparent text box without ungrouping the entire item - which isn't really an option.
    The select options (slect next item below etc. just don't work)
    For any Quark users out there, the equivalent command I'm looking for is the cmd+opt+shift click through, which just worked absolutely perfectly.
    I have scoured the internet and forums looking for an answer for this, as I assumed it must be my own lack of knowledge, but I can't find an answer.
    Any help much appreciated.
    Thanks

    Hi, winterm.
    Thanks for the super quick repsonse. Unfortunately that hasn't seemed to have helped me.
    That works fine as long as the grouped items are overlapping or apart, but not when items are entirely behind another item (ie, no part protruding from the group)
    The problem is that if I double click to try and get through a text box to an item that is entirely behind it, then it just switches into text edit mode for the top text box.
    If it helps, could you imagine a transparent text box that is 20x20 with red rectangle centred beneath it that is 10x10. If the 2 items are grouped I cant find any way to select through to the red rectangle without first ungrouping the two.
    Am I going mad?

  • How do you know when items will fall off your credit reports?

    Can anyone tell me how you know what date items will fall off your credit report? Thanks

    Each individual type of adverse information has its own exclusion date.  They are all set forth in FCRA 605(a). DOFD applies only to a collection or charge-off, which have an exclusion date of no later than 7 years plus 180 days from the DOFD.Monthly account delinquencies are excluded no later than 7 years from their individual dates of occurence.BKs are exluded at 7 or 10 years, depending upon their type.Tax liens become excluded no later than 7 years from date paid.Judgments become excluded on the later of 7 years from date entered, or until the expiration of the statute of limitations on enforceability of the judgment. The credit report exclusion periods are imposed on the CRAs, and set forth the date after which they can no longer include that adverse item in credit reportes they issue.The CRAs are thus required to monitor the relevant date for each type of adverse item.  The consumer should no have to request exclusion or remind the CRA of the exclusion date, but it is possible that they could miss a date, so the consumer should monitor.

  • How can you create monthly items by day not date?

    (This question has been posed in the past, but I'm just checking that there aren't any recent developments that anyone is aware of).
    On my old Palm I used to be able to set up events monthly by day, e.g. every 3rd Thursday; I could even distinguish e.g. between last Wed of the month and every 4th Wed or every 5th Wed. Is this possible on calendar iPhone 3GS? I can't find how - it only seems possible to have monthly events by date (which I'm guessing in most people's lives is not very usual way of organising yourself).

    Grumble. Yes, I lament that Palm calendar (and all its personal info management stuff) remains superior to iPhone. I've finally made the switch from Palm Treo to iPhone. Treo was better in PIM and was really still better in Apps in my field, medicine.
    I wonder if the solution is to use another calendar management system like Google Calendar and sync the events into one's iPhone? I'm trying to do just that, although I must say that Google Calendar also does not have the breadth of calendar entry choices (like every other week or every 3rd Thursday) that I need. So I'm still looking.
    If you solve this issue, be sure to post here so I learn of it! Thanks.
    -- Josh

  • How do you selectively disable users validated by nt domain?

    We are validating our sw vpn users on our 3030 via nt domain. Therefore there are no individual userids.
    How can we selectively disable certain users? e.g. A few office workers not allowed to come in from home.
    If this were Windows / RAS we could uncheck the dialin box on their user profile - is there some similar setting within Windows for sw VPN users?
    Or even better, are these domain authenticated users authenticated against any particular nt group, from which we could then remove them?

    With NT Domain Authentication, what you are trying is not possible. What you need to do is to configure the concentrator to use Radius. You could refer to http://www.cisco.com/warp/public/471/cisco_vpn_msradius.html and http://www.cisco.com/warp/public/471/vpn3k_ias.html for more configuration information.

  • How do you implement a pre validation into user's Newsfeed?

    Hi everyone,
    I'm working with the Newsfeed to figure out how I can validate the contents before publish it. Our client wants to filter the comments using a "blacklist" with forbidden words.
    I trying to solve how can we check every word introduced on the newsfeed textbox against the blacklist (on a DB) to decide if the content can be published or not....
    Any ideas will be appreciated,

    Jose_1908,
         One possible solution is to use a custom form for users to type their "status update", then have a JS function parse through the text value from the form against a SharePoint list containing the "blacklisted" words.  If you're using
    a Yammer feed instead of the default SharePoint Site Feed, there's a keyword filter feature to flag the admin to remove the comment.
         Of course, it would be best to create a SharePoint app to handle posting newsfeed updates with this filtering check against a "blacklist".
    thanks,
    Tony

  • Question: How do you remove Menu Items from showing up in LC

    Hello everyone:
    If someone can please point me in the right direction in how to convert app.hideMenuItem("Toolbars"); to the XFA SOM?
    I am creating the form using Adobe Distiller from an access report.  I change the Interface Options in Acrobat to hide file and toolbar menus, but when I convert it to LC, the options are removed.
    I also scripted app.hideMenuItem("Toolbars"); in the Page.Open event using Acrobat and when I convert to LC the code does nothing at the subPage1.Initialize event.  Not even when I reopen the converted form in Acrobat does the script run...
    What is the best method of hidding menu items using LC Designer?
    Any help would be greatly appreciated.
    Thanks for your time,
    Ivan A. Loreto – Computer Education Technician
    LOMA LINDA UNIVERSITY | School of Allied Health Professions - Department of Physical Therapy
    System Info:
    Acrobat Pro 9
    LC ver 8.2.1

    Ivan,
    Here is what liitle I know on this topic.
    The attached doc was created when Designer 7 was released and it has a table of the Acrobat JavaScript APIs and there equivalents, if any, in Designer. According to that doc, app.hideMenuItem() is supported in Designer and there is no Designer JavaScript equivalent.
    My brief look at this matter leads me to believe security constraints since Reader 6.0 have changed the rules.
    I recommend you take a look at trusted functions and context in the Acrobat 9 SDK.
    http://livedocs.adobe.com/acrobat_sdk/9/Acrobat9_HTMLHelp/wwhelp/wwhimpl/js/html/wwhelp.ht m?&accessible=true
    That is as far as I got.
    Steve

Maybe you are looking for