Using alerts with ApEx 2.2

I want to use alerts from an ApEx application (after I insert to a table for example), the problem is that alerts can only be run as the apps account.
Is there a way to make alerts work?

The question was misunderstood.
Because Oracle apps uses a different security scheme then apex you'll really have to code for it within your alert. Any user that updates/inserts/deletes on the table you would base your alert on will fire the trigger not just "apps" user. However because the apex users are not apps and not in fnd_user table the transaction would get recorded as anonymous user (user_id = -1). Probably the best you could do would be put some "if" statements in your alert to check for user not found in fnd_user then make a v('APP_USER') call to get the apex user_name. Because your dealing with two different security schemes you can't do anything but work around's.
Todd

Similar Messages

  • Using JQuery with Apex

    Hello, I have a question for those of you who are using JQuery with Apex:
    This is my HTML header:
    <script type="text/javascript" src="&WORKSPACE_IMAGES.jsapi.js"></script>
    <script type="text/javascript">
    google.load("jquery", "1.3.2");
    </script>
    The problem is that JQuery still loads from Google and since the Company Intranet has the cookies blocked the privacy icon appars in IE. I am sure somebody will one day notice this and it's gonna be a "big" problem.
    I suspect that something must be changed below to make the privacy icon dissapear,
    if (!window['google']) {
    window['google'] = {};
    if (!window['google']['loader']) {
    window['google']['loader'] = {};
    google.loader.ServiceBase = 'http://www.google.com/uds';
    google.loader.GoogleApisBase = 'http://ajax.googleapis.com/ajax';
    google.loader.ApiKey = 'notsupplied';
    google.loader.KeyVerified = true;
    google.loader.LoadFailure = false;
    google.loader.Secure = false;
    google.loader.GoogleLocale = 'www.google.com';
    Any ideas how to change this code and if this is going to work?
    George

    Hi,
    If you do not like use jQuery from Google, discard your code
    <script type="text/javascript" src="&WORKSPACE_IMAGES.jsapi.js"></script>
    <script type="text/javascript">
    google.load("jquery", "1.3.2");
    </script>and use e.g. this guide to integrate jQuery to your Apex apps
    http://www.oracleapplicationexpress.com/tutorials/66-integrating-jquery-into-apex
    Br,Jari

  • How can we use Alert with Canvas

    Hello to all
    How can I use alert with Canvas .
    I want whenever user do mistake then a alert message should come.
    Thanks in advance
    Mukund

    And where is the problem? Sample code can be found all over the place... just look for it.

  • Using alerts from ApEx 2.2

    I want to use alerts from an ApEx application (after I insert to a table for example), the problem is that alerts can only be run as the apps account.
    Is there a way to make alerts work?

    The question was misunderstood.
    Because Oracle apps uses a different security scheme then apex you'll really have to code for it within your alert. Any user that updates/inserts/deletes on the table you would base your alert on will fire the trigger not just "apps" user. However because the apex users are not apps and not in fnd_user table the transaction would get recorded as anonymous user (user_id = -1). Probably the best you could do would be put some "if" statements in your alert to check for user not found in fnd_user then make a v('APP_USER') call to get the apex user_name. Because your dealing with two different security schemes you can't do anything but work around's.
    Todd

  • Using alerts with variables-"dynamic text" not working

    Hello all,
    I'm triggering an alert from a BPM, and have set the flag "dynamic text" on for the alert category associated with it. I'm doing it in a similar way to the blog 1382 by Michal:
    [/people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated|/people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated]
    The only difference is that I'm just assigning a fixed text instead of a payload element to the container element, which I've defined as simple type - string.
    However, the text of the alert doesn't show anything. I'm getting an email with just "Process <id>" as the subject and "Alert ID: <number>" in the body of the email (the same in the Alert Inbox).
    I'm starting to think that there could be something wrong in PI 7.1 which I'm using, as I've configured other alerts in scenarios without BPM without problem.
    Thanks for your suggestions!

    I've solved it using an alert from the Enterprise Services Builder (Integration Repository). It's a new feature in PI 7.1. It seems the tab "Container" in the alert category didn't exist before (that's why you don't find it in the weblogs of Michal and others) and now you have to use it.

  • Using AJAX with ApEx

    Hi All,
    I'm new to Ajax and I'm trying to create an alert that prompts the user if the information that they entered into a form results in a primary key violation. The problem is that the application procedure that I created is not returning a value when it should be, because I am not receiving the alert when I violate a primary key...I don't know what I am doing wrong. Any help would be much appreciated.
    My javascript code is as follows:
    function checkNull(){
    var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=P3PK',0);
    get.add('P3_MEMIMPNUM',$x('P3_MEMIMPNUM').value);
    get.add('P3_ACTIONDATE',$x('P3_ACTIONDATE').value);
    get.add('P3_ACTION',$x('P3_ACTION').value);
    ajaxresult = get.get();
    if (ajaxresult)
    alert("Primary Key Violation!");
    get = null;
    The application process P3PK is processed On Demand and the PL/SQL Block is as follows:
    DECLARE
    str_memimpnum varchar2(15);
    BEGIN
    SELECT memimpnum
    INTO str_memimpnum
    FROM tblaction
    WHERE memimpnum = :P3_MEMIMPNUM AND
    actiondate = :P3_ACTIONDATE AND
    action = :P3_ACTION;
    HTP.prn(str_memimpnum);
    END;
    Finally, the save button is set to redirect to a URL and the URL target is as follows:
    javascript:onclick=checkNull();
    Note: There is more to the checkNull function, but I only included the section that I felt was applicable to this issue.
    Thanks in advance!

    Hello,
    Most likley it's an issue with your OnDemand Process.
    Change your alert to
    alert(ajaxresult);
    And then in your process change it to with a htp.prn('Hello World'); to make sure your calling the right thing.
    Then output the item values.
    htp.prn(:P3_MEMIMPNUM);
    Just work your way through it.
    Also you can easily debug these returns using Firebug addon in Firefox. http://www.getfirebug.com
    then
    Regards,
    Carl
    blog : http://carlback.blogspot.com/
    apex examples : http://apex.oracle.com/pls/otn/f?p=11933:5

  • Using Port with apex

    I need some help...
    I need some examples using port(serial, usb or paralelo) any execise please send it... to [email protected]
    i want do a lot of things with it... or if you know where are there examples on the web.. please tell me
    Thank u,

    HTML is NOT really meant to do ANYTHING with the ports, you would need to look at Java or another higher level language.. What exactly ar eyou looking to do with the Ports?
    Also, isn't this a duplicate of your other posting from today? Help in Apex3.2
    Please try not to double post about the same topic..
    Thank you,
    Tony Miller
    Webster, TX

  • Problems using Ajax with Apex 3

    Hi folks,
    I've got a client website biult with Application Express on a Oracle Database System. I attached some Ajax funtionallities on fields and there are standard Interactive Reports which are biult on Ajax as well.
    When I try to access the site normally (http) there are occuring no problems at all. But when I try to access the site via https, the Ajax functionallity doesn't work right.
    For example: There is a field named P37_STD_ERFASSTER_WERT which has an onblur javascript event: onblur="viertelstunde_runden(this)". This calls the following javascript function.
    The Java Script code calls an Application Process which calls a PL/SQL function on my database.
    JavaScript code:
    +function viertelstunde_runden(obj) {
    var std = obj.value;
    std = std.replace(".", ",");
    var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=rundStdErfassterWert',0);
    get.add('P37_STD_ERFASSTER_WERT', std);
    result = get.get();
    obj.value = result;
    }+
    So I'm filling '2.4' into the field. After the Process i get the following response: "<html><body><p>2,5</p></body></html>". Does somebody have a clue, why the response is packed into the html tags?
    As a proxy I've got an Apache2 server on a Ubuntu Server 8.1. Is there something wrong defined in the Apache2 Config?
    Thanks for all tips and other helping responses.
    Greetings
    Sandro

    Hi Roel,
    Thx for your quick answer.
    The App-Process looks like this:
    declare
    l_std_erfasster_wert number;
    begin
    l_std_erfasster_wert := br_stunden.runde_viertelstunde(v('P37_STD_ERFASSTER_WERT'));
    htp.prn(l_std_erfasster_wert);
    end;
    And the PL/SQL Procedure on the DB like this:
    -- erfasste Stunden auf Viertelstunde-genau runden
    FUNCTION runde_viertelstunde (
    i_std_erfasster_wert IN stunden.std_erfasster_wert%TYPE
    RETURN NUMBER
    IS
    l_std NUMBER;
    l_min NUMBER;
    BEGIN
    l_std := TRUNC (i_std_erfasster_wert);
    --Rest von Stunden sind Hundertstel-Minuten
    l_min := (i_std_erfasster_wert - l_std) * 100;
    --Hundertselminduten runden auf 25/50/75 oder 100
    l_min := ROUND (l_min / 25) * 25;
    --wenn Minuten aufgerundet auf volle Stunde (100), gibt es eine Stunde mehr
    --und Minuten sind 0
    IF l_min = 100
    THEN
    l_std := l_std + 1;
    l_min := 0;
    END IF;
    RETURN l_std + (l_min / 100);
    END runde_viertelstunde;
    :Sandro

  • Resource Management with Apex

    I have seen examples of using dbms_resource_manager with Apex where Apex_public_user has its consumer group switched according to some rule. Trouble is many hundreds of apex users connect using this single username.
    What I wish to know is it possible to perform this at a finer level of granularity, ie at individual Apex user level.
    If so I control the resources available to Apex users individualy.
    Is this even a sensible thing to do? Criticisms are welcome.

    Hi Tony,
    I would be interesting to see any example.
    I posted my question before: Creating interactive gantt chart in apex 4
    but no one give any answer yet.

  • Using wwv_flow_load_excel_data and apex collections

    Hi!
    I have a question regarding very popular subject: parsing csv files.
    I made one application, which takes csv file, parses it using Vicas's code, presents validation report to the user, and finally allows to submit data into the datatable.
    Everything works fine, but I don't like this solution. CSV can cause problems when quotation mark is used inside, when numbers have 1000 separators and so on.
    Besides that, I have to add some code to validate column types. Lot of mess.
    The solution incorporated into apex tool, called "Data Load/Unload" looks much better. It would be nice to use that inside apex application adding some business validations, and hardcoding table and columns names.
    I have seen wwv_flow_load_excel_data package and I'm wondering if it is possible to use load_excel_data procedure to perform that task?
    Is there any documentation to that package?
    Somebody heard about using that with apex collections (to avoid a need of temporary table)?
    Regards,
    Arek

    And if somebody else is looking for "ApEx" forum:
    Oracle Application Express (APEX)

  • HP Quality Center Sprinter with APEX

    Is anyone using this with APEX? HP says they aren't certified with this environment on their testing tools. They said that Quick Test Professional can be made to work but that Sprinter may not be able to.

    You'll need some form of access to get a proper solution in place, one of which would be 2010 Business Connectivity Services(BCS)
    http://msdn.microsoft.com/en-us/magazine/ee819133.aspx
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • I am automating the process of sending appointment reminders to my clients. I started with an alert with an email in calendar using the clients email address as a custom entry in my me card in my contacts. this was resulting in three emails being sent wit

    I am automating the process of sending appointment reminders to my clients. I started with an alert with an email in calendar using the clients email address as a custom entry in my me card in my contacts. this was resulting in three emails being sent with slightly different versions of the same address (see my previous post). Heating someone else's suggestion I created a workflow file to send an email and calling that file from an alert on my calendar. This is working and sends only one email to the client.
    My calendar is on I cloud and I access it from three different computers so I can keep my appointment calendar current. The files that send the email only exist on one computer. My other computers show error messages when those emails get sent. It seems that each computer wants to send the email. It's a small problem but is there a way that I could not get those alerts.
    But appreciate any thoughts about this. It seems like both problems might be related to the iCloud system.
    Thank you in advance,
    Michael

    Good work, catch so far Michael, does seem to be a "feature" of iCloud syncing, not sure what you could do to disable it.

  • Anyone used PL/FLOW with APEX in Oracle 11g?

    Greetings.
    I'm trying to find out if any of you have successfully used SourceForge's PL/FLOW with APEX in an 11g environment. References to PL/FLOW seem to be limited to 9i and I need to have some assurance that it would be compatible in a more updated setting.
    And do you have any advice on installation and use cases?
    http://plflow.sourceforge.net/
    Thanks very much!
    Chris

    Hi Chris,
    I've used it in a 10g DB without any problems, I have no reason to suspect (without trying it) that it wouldn't work in 11g.
    Did you try it, did you have some problems?
    John
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!

  • Send mail with attach by using Alert

    Hi
    How I can send email with BLOB attachment by using Alert,
    Thanks
    Edited by: Hani on Jan 17, 2013 1:59 PM

    Hani wrote:
    Hi
    How I can send email with BLOB attachment by using Alert,
    ThanksPlease see old threads for the same topic/discussion.
    https://forums.oracle.com/forums/search.jspa?threadID=&q=attachment+AND+Alert&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=attachments+AND+Alert&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=attachment+AND+Alert+AND+Email&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Integrating Oracle APPS with APEX using popay_apex package...

    Hi,
    I am a newbie in APEX and tried to explore it only a few months back...
    I must admit that this tool is Awesome..!!!
    Also, I tried to integrate Oracle EBS 11i with APEX using [popay package |https://sites.google.com/a/popay.be/apex-on-apps/integration] and the integration was absolutely fantastic...!!!
    h6. (Thanks Thierry for your impecabble work on developing and releasing this excellent package under BSD License !!!)
    My question is,
    I have created an Online Leave Application (OLA) in APEX which should retrieve the username from EBS Login and display the leave information of that particular user.
    I have created the OLA in APEX and registered it in EBS as a form function and also attached it to a user responsibility.
    When I run the form thru the EBS Responsibility logged in as a EBS user, the OLA Application opens in a new window...
    But,
    The username is retrieved as APPS instead of the user's login info.
    because of this retrieval the global variable :APP_USER is storing the username as APPS and all my internal references with :APP_USER has been erroring with "NO DATA FOUND", since there is no user login as APPS.
    Is there any way to overcome this bottleneck...?
    Or Do I need to add any code in the APEX >Application >Security > VPD
    Thanks in Advance...
    Ben

    Hi,
    I have solved the issue, Thanks to Rod & Thierry !
    I have created a cookie to send the apps username to my APEX application.
    (Added this code snippet in the popay_apex.start_application procedure)
    --------<CODE>------------------------------------------
    l_user := fnd_global.USER_NAME;
    OWA_COOKIE.send
    +(NAME=>'APEX',+
    VALUE=>l_user,
    path=>'/');
    ---------<ENDS>----------------------------------------
    (Created an on-load before header process at page 1 and fetched the cookie value to an application item.)
    -----------<CODE>-------------------------------------
    DECLARE
    c OWA_COOKIE.cookie;
    a wwv_flow_global.vc_arr2;
    BEGIN
    c := OWA_COOKIE.get('APEX');
    a := htmldb_util.string_to_table(c.vals(1));
    +:F101_USER := a(1);+
    EXCEPTION WHEN OTHERS THEN
    NULL;
    END;
    -------------<ENDS>---------------------------------------
    It's a mashup of Rod & Thierry's work....!
    Hat's off to Rod & Thierry !
    Ben

Maybe you are looking for

  • Creating separate jars from one package structure

    Hello, I have the following package structure: project project.util project.mainAll of these packages are in the same classes directory. I would like to create one jar that contains project, one jar that contains project.util and one jar that contain

  • Translate function of oracle, equivalent function in informatica?

    Hi All, I know its off topic but i am stuck very very badly and this place turns out to be he best for my issues, here is my problem: lets say i hve fname coming from a flatfile and the first name is 'rahul' , it should be translated as '12345' usin

  • How do I find the total number of elements in a multi dim array

    How do I find the total number of elements in a single or multi dim array? For example, a 2x3 array has 6 elements, and a 2x3x4 has 24. How do I compute this very easily - is there a single VI that does this? David Solved! Go to Solution.

  • 2 Counters Start (DAQ)

    I have two counters, counterĀ 2 needs to be start with counter 1. Example Counter 1...... have 5 puls..... then counter 2 has to be started. Counter 1...... have 10 puls.... then counter 2 had to be closed. I'am using a DAQ usb 6210 for this applicati

  • PPTP dial-in over a PPPoE dial-out

    Hi. How can i do to perform a dial-in server for remote workers using a PPPoE encap in a DSL/ATM enviroment??? Here is my testing config. sh run Building configuration... Current configuration : 1826 bytes version 12.2 service timestamps debug dateti