Dynamic action - notification process success/error display

Hi people,

in our application, we have implemented a plugin of notification of the main Oracle apex site.

We want to use to display a message of success or error for the page processes. Success message is currently held by:
<div id="success-message" class="success">
Q1: How to trigger a dynamic action that will call a message notification plugin?

Q2: How to complete a notification text with the text of the div with id = 'success message '?

Thank you very much
Tomas

Sorting...

The problem is that you're using jQuery on the page loading code, but Jquery won't be available until jQuery is initializes (up to a certain number of milliseconds after the standard page load event)

$("#MESSAGE").val().length > 0

I changed it to use the APEX API, that works perfectly.

$v("MESSAGE").length > 0

Tags: Database

Similar Questions

  • Application of dynamic action appeal process

    Hello
    Is it possible to appeal to a process of Application named example: dynamic action on button click DC_TEST.
    I am able to call dynamic action on click of a button and have a plsql code run, but I want to call the APPLICATION PROCESS.

    Thanks for your help.

    Hello

    Create dynamic action that runs using the JavaScript code

    apex.server.process ( "DC_TEST", {});
    

    That will run your application on the application process
    http://docs.Oracle.com/CD/E37097_01/doc/doc.42/e35127/javascript_api.htm#BGBJEFDJ

    Kind regards
    Jari
    -----
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • onSelect dynamic Action for the region selector display

    Hi all

    Have a problem and need your help.

    I have a page with 6 regions, I show them based on the view of region selector.

    I need some how know what tab is selected, something like an event "onSelect".

    The user then click on the 3rd tab, I need to know and perform javascript code.

    Please help and thank you very much!

    Andrei

    Then click on the event is appropriate.  Your selection in the DA is the problem.

    I was able to do the following:

    Event: click on

    Selection type: jQuery Selector

    jQuery Selector: .apex-rds

    (don't forget the point).

    True "to execute JavaScript Code.

    alert($(this.triggeringElement).find("span").text());
    

    This DA will appear the name of the selected region is within span tags.   The triggeringElement is the anchor tag (a) start clicking. Your code can look at $(this.triggeringElement).find("span").text () and do an if statement to decide what to do on what region.

    Thank you

    -Jorge

  • Masking multiple elements with dynamic action me gives error

    Hello

    I have a selection list, and I tried to create a dynamic action on this subject. When the list is zero I want to hide items. The problem is that I thing 200 articles on my page and when I try to list them all under the dynamic action, it gives me an error or cut off my list. I tried created two separate actions of dynamics, but it did not work. Any suggestions? Any help would be so appreciated. Thank you!
    The problem is that I thing 200 articles on my page and when I try to list them all under the dynamic action, it gives me an error or cut off my list.

    Is it that you were able to cross the mark of products/page 100? But the official documentation has to say otherwise:
    http://docs.Oracle.com/CD/E23903_01/doc/doc.41/e21674/limits002.htm#BGGIECDF

    It is possible to define and to return more than 100 items on a page, but you will get a 404 error when running if you submit a page with over 100 articles (including the hidden objects and elements of page zero). You will not be able to present and process a page that has made more than 200 points. You will be able to set more than 200 items in your page and send, and then process the page If the actual number of elements returned is limited to 100 or less by using permissions and conditions.

    * Specify error messages you received

    Error message: error failed to create dynamic action.
    ORA-20001: error creating dynamic action sub-action name = "NATIVE_HIDE" id = "" ORA-01461: can bind to a LONG value only for insert into a LONG column > "

    You seem to have exceeded a 4000 or 32 K bytes on a column of metadata for dynamic action when you set the dynamic action. Because you cannot use all 200 points at the same time, you must create multiple dynamic actions that correspond to some subsets of items are actually rendered.

  • dynamic action sets the value of the element, but not save to DB on submit

    I'm working on a page where the value of several to show only the page elements are defined using a dynamic Action.  They are set when the user selects a value in a list of selection (and is based on the value of the selection list).  Dynamic action is triggered on a list selection change event and then runs the real action "set the value.  The selection list displays the names of sales representative.  The three fields dynamically filled are the org structure (that is, their chain management).

    For the action to set the value, I use a defined Type of SQL statement:

    Select VP, DIR, MGR

    of SALES_ORG where SSR =: P20_SSR

    In the affected elements, I have fixed Type of selection to the 'item (s)"and the value of the Item (s) for 'P20_GVP, P20_DIR, P20_MGR.

    Dynamic action works fine for the display of the page (that is, when I select a sales representative in the selection list dynamic action properly updated only display value fields three).  This page is a form in which the user submits information relating to the rep.  When the page is sent, all fields are filled in a new record of DB with the exception of three that were populated dynamically above.  These fields get the values NULL.

    When the dynamic action updates the values in the three fields is - it does not set the value of session?  Why these fields don't are not taken into account in the submit other ideas > process Page?

    I use 5 APEX with Chrome on Mac (Yosemite).

    Thanks for the note.  I didn't only display the items could not be used in this way.  I think I'll take a different approach with the design; given that the org structure is in another table that I can simply refer to that by rep when necessary rather than saving the information uploaded to the page of the form.  The reason why I have not fill the screen only the points of loading the page is because I don't know what the values should be until the user selects a sales representative in the selection list.

    I'll change the design to one of the following:

    1) change the display only items of standard text field.  NOTE: if I make the text read-only field that causes other problems when loading (I get the message "violation of protection Session state").

    OR

    2) do not include org structure in the download folder and just refer to table org Rep when necessary.

    Thank you!

    Steve

  • Show only the value not save to the database based on the dynamic action

    Nice day
    I have a select box with products and dynamic action that updates a single display element with the price, based on the selection of products.
    Once the selection is made and the page is submitted, I noticed that the price is not stored in the database. If I change the display
    only the value of a text box, the data is saved. This is expected behavior? If so, can I add something to the text box to make it uneditable?

    Thanks for any help you can provide.

    Version is Application Express 4.1.1.00.23

    Steve

    stmontgo wrote:
    Hello
    Thanks for your advice. I changed the STATE of SESSION SAVE Yes with the other values remains the same, as they met to your recommendations.
    When I change the value, I get the error below. It's maybe because the value is taken from a dynamic action?

    Yes. That would mean there isn't an item "view only". The value is changed by the browser.

    You might change view as textitem and set read-only by adding the ReadOnly attribute to the property attributes of HTML form elements .

  • Dynamic action does not work with the item change event

    Hi guys,.

    I have a problem with the dynamic Action. On my page, I have three points. (P2_X-> display only, P2_Y-> P2_Z-> button, TextField) and two dynamic actions. One of them is running javascript. When I press the button (P2_Z) this dynamic action affects textfield (P2_Y) value to display only the value (P2_X). (This dynamic works). And there is another dynamic action for the option to display P2_X. This dynamic action fires to P2_X point value changes. This DA (dynamic action) runs a plsql code and inserts the value of the P2_X element in a table (test_tbl). But when I try to do it always inserts the null value.

    The plsql code is below:

    Start
    INSERT INTO TEST_TBL
    VALUES (: P2_X);
    COMMIT;
    end;


    You have an idea? If you need, I can give the user for apex.oracle.com past.

    Thank you

    Hello

    Do you have the "points Page to submit" to the process of PL/SQL, the value of the correct item? (P2_X)

    Concerning
    J :D

  • Dynamic action - check if the size of the texfield values does not exceed limit

    Hello

    I have a form and I'm trying to use dynamic Action to process the form values. I don't know how to get the length of the value of a textfield and compare to what I said in the values

    The order of the day called P6_USERNAME which can be more than 10 characters long.

    So I tried to create a dynamic Action with the following parameters in the region when .

    EVENT: Press button
    SELECTION TYPE: jQuery Selector
    jQuery SELECTOR: $("P6_USERNAME").val () .length
    CONDITION: above
    VALUE: 10

    Of ACTION GENUINE, I had a view only showing a message "you have exceeded the limit.

    The above didn't work and tried to work it around with:

    $v("P6_USERNAME").val () .length

    that no longer works.

    Any suggestions on how I can achieve this? The only options I got in the Type of selection are: point, area, object DOM and jQuery Selector. What I'm really after is retrieving the value of the element, so I can use it for comparison with the value to run my Real Action

    APEX 4.0 - Oracle XE 11 G - Windows 7 32 bit

    It is not necessary to use a validation/dynamic action. Set the maximum width for the element attribute and the browser will prevent users to enter values longer than that.

  • Date arithmetic gives error in dynamic Action that makes the value value

    Hello

    I am trying to create a dynamic action that automatically assigns the value of P8_ENDTIME to P8_STARTTIME + 30 minutes. Both are date variables.

    So far, my settings

    Dynamic action:

    Event: change

    Selection type: elements

    Items: P8_STARTTIME

    Scope of the event: static

    Real Action:

    Action: Set

    Set type: PL/SQL Expression

    PL/SQL expression: P8_STARTTIME + 1/48

    Page items to submit: P8_STARTTIME

    Affected elements Type: elements

    Assigned items: P8_ENDTIME

    Note: I read online by adding 1 to a date increments of one day. And the addition of 1/24 Add 1 hour. 1/48 will add a half an hour.

    These settings compile but when I change the STARTTIME field for a new date on my page it says:

    AJAX call back Server error ORA-06502: PL/SQL: digital or value error: character number conversion error to set the value.

    I have to mention if I did my right PL/SQL expression: P8_STARTTIME then no error is thrown. : P8_ENDTIME be successfully will set the value of: P8_STARTTIME

    Your help is very appreciated.

    Item is string. not of type datetime. You must first fills in /date datetime type and then add 30 min. After that, maybe you must convert to a string.

  • Apex 5 after execution of a dynamic action, want to display message and redirect the page

    Hello Experts,

    I use 5 Apex on XE 11 g.

    One of my page, I have 1 button that performs a dynamic action.

    Right now, I've added two real actions on the key. First of all is PL/SQL code, and the second is on the alert, which shows the success message.

    I want to show the message (box Apex message and not the simple alert message JavaScript box) on successfully executing this dynamic action and post that redirect to another page.


    Can someone help me please in the present.


    Thank you

    Thierry

    Thierry says:

    I use 5 Apex on XE 11 g.

    One of my page, I have 1 button that performs a dynamic action.

    Right now, I've added two real actions on the key. First of all is PL/SQL code, and the second is on the alert, which shows the success message.

    I want to show the message (box Apex message and not the simple alert message JavaScript box) on successfully executing this dynamic action and post that redirect to another page.

    Use the simple way to do this:

    • A button that submits the page rather than perform a dynamic action
    • A process of PL/SQL after presented with the necessary success message page
    • A branch to the landing page with the option include the success process message verified

    General management and the process should be contingent on the button that is clicked.

  • Apex 5.0 "session state protection violation" during the change of display only value point in dynamic action.

    The following feature gives us a message "session state protection violation", after we migrated our application from Apex 4.02 to 5.0.

    For example, in apex.oracle.com: https://apex.oracle.com/pls/apex/f?p=50676:1:

    Whenever the value of the input field changes, the URL to test changes. This is done in a dynamic action of 'change' on the version field. The action of the set value changes the value of URL to test.

    When the page is sent to the error message is displayed.

    1. Why do we get this message in Apex 5.0 and not in 4.0.2?

    2. What is the way to do this in the Apex 5.0?

    Thank you

    René

    Just try save session state - no.

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

  • Apex 5 - error checksum dynamic Action

    Hi all

    I don't cease to Marvel and depress me on apex 5.

    I just had a problem with dynamic action on a page with the checksum protection enabled.

    I need to read a value from a PLSQL table and give it back to a form element.

    So I have a page of submit element in the d.a. (primary key of the table) to fetch the row of the table.

    When I run the page I get an error of checksum on the question.

    What I am doing wrong?

    Thanks in advance for your suggestions.

    Robi

    OK see this

    APEX 4.2.1 - error dynamic Action with SSP

  • Can a dynamic action of type 'alert' display a value of field without javascript?

    Hello

    can a dynamic action of type 'alert' display a value of field without javascript ( alert ( $x (P '200_OP').value)); ?

    What should I write in the 'text' section to display in the alert, the value of P200_OP for example?

    Gianpaolo cordially

    Hi gianpagi,

    gianpagi wrote:

    I know that with "run JavaScript Code" works. My question is about action as 'alert '.

    Dynamic action "Alert" is expected to this only the string to display in the alert. May not be able to access the current value set in a page element.

    Therefore, "Run the Code JavaScript" only works in this case where your can integrate the current values of the DOM html elements

    If you notice that da 'Alert' request 'Text' and 'Execute JavaScript Code' DA 'Code' request to be executed.

    Kind regards

    Kiran

  • Dynamic action in Apex - automatic text field display based on the definition of value

    Hello

    I have two text elements. Need to create dynamic action for what follows,

    1 Order_number

    2 Order_type

    When a user enters an order number starting at 1, the order type should type should automatically posted as CONSUMER.


    When a user enters an order number starting with 2, the order type should type should be automatically displayed as COMPANY to another display null.

    Can anyone help please have solved this issue.

    Thanks in advance!

    Hi 2932464,

    2932464 wrote:

    Please change your login username of "2932464" to something meaningful. Reference: Video tutorial how to change username available

    I have two text elements. Need to create dynamic action for what follows,

    1 Order_number

    2 Order_type

    When a user enters an order number starting at 1, the order type should type should automatically posted as CONSUMER.

    When a user enters an order number starting with 2, the order type should type should be automatically displayed as COMPANY to another display null.

    Can anyone help please have solved this issue.

    Hereby you mean something like this: https://apex.oracle.com/pls/apex/f?p=52380:11:129938442406997:

    If Yes, then create dynamic action as follows:

    • Create a dynamic action on the Order_number change event say. P11_ORDER_NUMBER.
    • Event-> change, Type of selection-> item (s), article (s)--> P11_ORDER_NUMBER Condition-> is not null
    • Real Action-> to run the JavaScript Code
    • JavaScript code:
      var ordernum = $('#P11_ORDER_NUMBER').val();
      var startdigit = ordernum.substr(0,1);
      if (parseInt(startdigit) === 1) {
        $('#P11_ORDER_TYPE').val('CONSUMER');
      } else if (parseInt(startdigit) === 2) {
        $('#P11_ORDER_TYPE').val('BUSINESS');
      }
    

    I hope this helps!

    Kind regards

    Kiran

Maybe you are looking for

  • IPad reset to original settings

    I "inherited" a mini iPad as the executor of the estate of a recently deceased friend.  I don't know what his passwords have been and therefore do not have clear/delete all its content and applications.  How can I delete/remove his Apple ID account i

  • P6110y HP upgrade to DVI - D and HDMI video/graphic

    You will need to connect desktop to HDTV via DVI - D as a second monitor.  Constrained by simple VGA port ondesktop.  CURRENT EQUIPMENT: (1) PC is HP p6110y, Windows 7, 64-bit, a single VGA port, 250w power supply output;. (2) monitor is HP w2338h LC

  • error code: 80070103 for pilot 61050SE WindowsUpdate_nVidia GE Force

    Original title: i need hep if anyone can help me I continually get an error - 80070103 for diver 61050SE WindowsUpdate_nVidia GE Force In my update of window it shows me this option for months, I even checked as suggested so I show no more, but the o

  • Broken slate 6 screen

    I just broke my brand new slate6 tab display Can someone tell me what will be the cost of repair in an HP auth service center.

  • Upgrade to the new edition of windows 7

    If a Home Basic Upgrade windows 7 Pro so I have to reactivate windows