Document renewal notification?

Anyone doe this type of workflow? I need to upload documents and set a renewal date. As that date approaches send an email notification. I was thinking about using BPEL for the process unless there is an easier approach.
Thanks

You could write a custom filter that attaches to updateExtendedAttributes.
Documentation on the filter: Executed when revision information about a content item changes (check in, delete, update) right before the 'dRevRank' flag is calculated.
If you then check if the service called is DELETE (and there's no revision left), you could send an email in the custom Java code from there.
I don't know how you would be able to differentiate between a manual or automatic (which process initializes this?)...
For a complete list of filters, see the documentation in the [HowTo components sample|http://www.oracle.com/technology/products/content-management/ucm/samples/index.html]. There also documentation there on what filter are, how they work, and even an example on how to use them.
Regards, Stijn

Similar Messages

  • Activating 'change documents' for notification item class 015

    Dear Experts,
    Kindly help me in activating  'change documents' for notification item class 015.
    Thanks and Regards,
    R N Sabat

    Hi R N Sabat
    The creation of change documents for the classification has to be
    activated for every class type. Go please to the customization of the
    appropriate class type:
    Cross-Application Components
    -> Classification System
      -> Classes
       -> Maintain Object Types and Class Types
    You will find there a flag to activate change documents.
    As a precondition you'll have to activate the flag 'Multiple objects
    allowed' before. If you already have classified objects
    for this class type these classifications has to be converted before.
    For the conversion of already existing classifications use please report
    RCCLUKA2. It processes the conversion and sets the flag 'Multiple
    objects allowed'. Regard please the documentation of report RCCLUKA2.
    Thereafter you'll be able to activate change documents for this class
    type.
    Please check the 2 notes :
    80907 Setting the several objs.for each class type indctr
    65124 Classification Change Documents
    If you have any questions , please let me know .
    Enda.

  • Workflow Configuration document- QM notification

    Hi
    I need document on how to configure workflow and how to send email notification to the people and continue from their to the next step.
    I am working on QM Notificaton.
    I need it urgent can anyone send me one,
    thanks
    regards
    thiru

    Hi
    Workflow tutorials with step-by-step and with screenshots are available at http://www.****************/Tutorials/Workflow/Workflow.htm
    Regards

  • Attaching a document to notification using service for object

    hellow members,
    i look for a table to let me know if a document
    is attached to specific object (in my case it"s
    a notification).
    best regards,
    avi
    Edited by: avi koren on Jul 16, 2008 9:40 AM

    Hellow Johannes,
    thank you for your repling.
    i don"t think that this is the direction.
    In lots of objects in the SAP like a notification or a material,a button call "service for object" is available provide
    some functions like
    document attaching.
    How i can see this attachments?
    I think that the answer should be close to the table SOOD.
    regards,
    avi

  • Link between Material Document and Notification Number

    Hi
    In table QMEL we find the material document that is generated in correspond to Inspection Lot not for Notification((Goods Movement - Material Document).
    Our problem is that we didn't find the material document(Goods Movement) generated after notification.
    As we have done the cusmomization for posting the scrap in the notification and the Material Document is generated for this posting.
    In QM03 we can view the Material Document generated.
    Pls help!!!

    Dear Kumar,
    Thanks for reply but ,
    In this table the material document is corresponding to Inspection Lot not for Notification Number.
    e.g
    InspLot 40000000067( Material Document - 5000000083)
    . QM Notif. 300000062
    .. Goods Movement 49000030282008
    .. Goods Movement 49000030302008
    In table VIQMEL if we enter QM notification No.300000062 we will find InspLot 40000000067 and  Material Document - 5000000083 but not,
    .. Goods Movement 49000030282008
    .. Goods Movement 49000030302008
    I need table where we can find these material documents w.r.t QM notification number.
    Regards
    Purnesh/Anil.

  • Document delete notification

    Dear all,
    I need your help with this requirement. We need to send email notification to the document author and administrator whenever a document is manually deleted from UCM.
    What should be the approach to accomplish this functionality? We explored subscriptions but its limited to sending notifications only when a new revision of the subscribed content is checked in.
    Your suggestions to resolve this would be greatly appreciated.
    Thanks in advance.

    You could write a custom filter that attaches to updateExtendedAttributes.
    Documentation on the filter: Executed when revision information about a content item changes (check in, delete, update) right before the 'dRevRank' flag is calculated.
    If you then check if the service called is DELETE (and there's no revision left), you could send an email in the custom Java code from there.
    I don't know how you would be able to differentiate between a manual or automatic (which process initializes this?)...
    For a complete list of filters, see the documentation in the [HowTo components sample|http://www.oracle.com/technology/products/content-management/ucm/samples/index.html]. There also documentation there on what filter are, how they work, and even an example on how to use them.
    Regards, Stijn

  • Errors while using plsql clob document in notification email

    bq. hello
    I am having a problem sending a plsql clob document in a notification email.Basically the procedure retrives some rows of data from the database and formats it as HTML before converting to clob. The email is generated fine when only a couple of rows are generated. however when the rows increase the workflow errors. we are using oracle ERP
    ---------------------------------Error Message-----
    An Error occurred in the following Event Subscription: Event Subscription
    Event Error Name: WFE_DISPATCH_GEN_ERR
    Event Error Message: 3835: Error '-20002 - ORA-20002: 2018: Unable to generate the notification XML. Caused by: 2020: Error when getting notification content. Caused by: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    Wf_Notification.NTF_Table(8, H)
    BATCH_INFO.Batch Information(209112, text/html)
    Wf_Notification.GetAttrClob(263883, BATCH_INFO, text/html)
    Wf_Notification.oldGetAttrClob(263883, BATCH_INFO, text/html)
    WF_NOTIFICATION.GetFullBody(nid => 263883, disptype => text/html)
    WF_MAIL.GetLOBMessage3(nid => 263883, ' encountered during execution of Generate function 'WF_XML.Generate' for event 'oracle.apps.wf.notification.send'.
    Event Error Stack:
    WF_MAIL.GetLOBMessage3(263883, WFMAIL, 2020: Error when getting notification content. Caused by: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    Wf_Notification.NTF_Table(8, H)
    BATCH_INFO.Batch Information(209112, text/html)
    Wf_Notification.GetAttrClob(263883, BATCH_INFO, text/html)
    Wf_Notification.oldGetAttrClob(263883, BATCH_INFO, text/html)
    WF_NOTIFICATION.GetFullBody(nid => 263883, disptype => text/html)
    WF_MAIL.GetLOBMessage3(nid => 263883, r_ntf_pref => MAILHTML), Step -> Getting text/html body)
    WF_XML.GenerateDoc(oracle.apps.wf.notification.send, 263883)
    WF_XML.Generate(oracle.apps.wf.notification.send, 263883)
    WF_XML.Generate(oracle.apps.wf.notification.send, 263883)
    Wf_Event.setMessage(oracle.apps.wf.notification.send, 263883, WF_XML.Generate)
    Wf_Event.dispatch_internal()
    The Procedure is
    bq. /********************************************************************************* \\ Procedure: BATCH_INFO \\ Purpose: Program displays batch level information. \\ *********************************************************************************/ \\ PROCEDURE batch_info ( \\ document_id IN VARCHAR2, \\ display_type IN VARCHAR2, \\ document IN OUT NOCOPY CLOB, \\ document_type IN OUT NOCOPY VARCHAR2 \\ ) \\ IS \\ table_width VARCHAR2 (8) := '100%'; \\ i PLS_INTEGER; \\ j PLS_INTEGER; \\ l_cells wf_notification.tdtype; \\ l_result VARCHAR2 (32767); \\ l_je_batch_name VARCHAR2 (100); \\ l_period_name VARCHAR2 (15); \\ l_control_total NUMBER; \\ l_running_total_dr NUMBER; \\ l_running_total_cr NUMBER; \\ l_document long; \\ cdoc clob; \\ amount NUMBER; \\ charbuff VARCHAR2(32767); \\ charbuff_size NUMBER; \\ CURSOR c_get_je (batch_id IN NUMBER) \\ IS \\ SELECT (SELECT description \\ FROM gl_lookups \\ WHERE lookup_type = 'BATCH_STATUS' \\ AND lookup_code = batch_status) batch_status, \\ je_source, \\ (SELECT user_je_category_name \\ FROM gl_je_categories \\ WHERE je_category_name = je_category) je_category, \\ period_name, batch_name, header_name, \\ header_running_total_dr_num debit, \\ header_running_total_cr_num credit \\ FROM apps.gl_je_batches_headers_v \\ WHERE je_batch_id = batch_id; \\ BEGIN \\ IF display_type = wf_notification.doc_text \\ THEN \\ document := NULL; \\ ELSE \\ /* ===========Second table Start=============*/ \\ j := 0; \\ i := 0; \\ j := 1; \\ /* Header*/ \\ l_cells (j) := 'S:' || 'Batch Status'; \\ j := j + 1; \\ l_cells (j) := 'S:' || 'Journal Source'; \\ j := j + 1; \\ l_cells (j) := 'S:' || 'Journal Category'; \\ j := j + 1; \\ l_cells (j) := 'S:' || 'Period'; \\ j := j + 1; \\ l_cells (j) := 'S:' || 'Batch Name'; \\ j := j + 1; \\ l_cells (j) := 'S:' || 'Journal Name'; \\ j := j + 1; \\ l_cells (j) := 'S:' || 'Journal Debit'; \\ j := j + 1; \\ l_cells (j) := 'S:' || 'Journal Credit'; \\ j := j + 1; \\ i := 0; \\ /* Body*/ \\ SELECT NAME, default_period_name, control_total, \\ running_total_dr, running_total_cr \\ INTO l_je_batch_name, l_period_name, l_control_total, \\ l_running_total_dr, l_running_total_cr \\ FROM gl.gl_je_batches \\ WHERE je_batch_id = TO_NUMBER (document_id); \\ FOR histr IN c_get_je (TO_NUMBER (document_id)) \\ LOOP \\ l_cells (j) := 'S:' || histr.batch_status; \\ j := j + 1; \\ l_cells (j) := 'S:' || histr.je_source; \\ j := j + 1; \\ l_cells (j) := 'S:' || histr.je_category; \\ j := j + 1; \\ l_cells (j) := 'S:' || histr.period_name; \\ j := j + 1; \\ l_cells (j) := 'S:' || histr.batch_name; \\ j := j + 1; \\ l_cells (j) := 'S:' || histr.header_name; \\ j := j + 1; \\ l_cells (j) := \\ 'S:' \\ || NVL (TO_CHAR (histr.debit, \\ 'L999G999G999G999G999G999G999D99'), \\ '&' || 'nbsp;' \\ ); \\ j := j + 1; \\ l_cells (j) := \\ 'S:' \\ || NVL (TO_CHAR (histr.credit, \\ 'L999G999G999G999G999G999G999D99' \\ ), \\ '&' || 'nbsp;' \\ ); \\ j := j + 1; \\ i := i + 1; \\ END LOOP; \\ table_width := '100%'; \\ wf_notification.ntf_table (l_cells, 8, 'HL', l_result); \\ /* Write data to clob */ \\ -- create temp clob \\ dbms_lob.createTemporary(cdoc,false,dbms_lob.call); \\ charbuff_size:=length(l_result); \\ write html data to temp clob \\ dbms_lob.writeappend(cdoc,charbuff_size,l_result); \\ write temp clob to document \\ amount:=dbms_lob.getlength(cdoc); \\ dbms_lob.copy(document,cdoc,amount,1,1); \\ END IF; \\ document_type := 'text/html'; \\ EXCEPTION \\ WHEN OTHERS \\ THEN \\ wf_core.CONTEXT ('BATCH_INFO', 'Batch Information', document_id,display_type); \\ RAISE; \\ END batch_info;
    Can somebody please guide me
    thank you

    The stack trace below the "ORA-06502: PL/SQL: numeric or value error: character string buffer too small" error suggests that this is being generated by the Wf_Notification.NTF_Table call. Given the way you have described the problem, I would assume that the HTML generated by that call for the data in l_cells is exceeding the length of your l_result variable (32767).
    Have you checked the length of the data generated by this call for a single record and then divided 32767 by that number to work out the maximum number of rows you can support with this call?
    If it is simply that you have too much data for WF_Notification.NTF_Table to produce the table within the 32767 limit, you try generating the HTML in smaller chunks and adding them to the CLOB bit by bit. For example, if 10 records work, then generate the HTML for 10 records, chop off the </table> from the result and add it to the clob. Then do the next 10 records (without the header this time) and chop off the <table> and </table> tags and add that to the clob. When you are done, add the closing </table> tag to the clob and return it.
    I haven't done this with returning a clob, but I have done this with shorter strings to generate a HTML table with the standard look and feel but with headers in different places than could be done by default.
    theFurryOne

  • CS/SD - Link from transactions: Measurement Document x Notification?

    Hello all,
    vs: SAP ECC 6.0
    I need to create the following Customer Service process:
    It is created Measurement Document based on a counter reading. For that we use transaction Measurement Document (tcode = IK11/ IK12 IK13)
    Process I need to create:
    From each Measurement Document we must create a Sales Order (tcode = VA03).
    Relation One to One - 1 Measurement Document will generate 1 Sales Order.
    From Notification transaction (IQS2), it is possible to create a Sales Order. That is fine! Then I am thinking to use this functionality.
    My question is:
    How is done the LINK from transaction Measurement Document (tcode = IK12/ IK13) to transaction Notification (IQS2), Is there any standard solution (transaction) to do that link?
    Many thanks in advance,
    Barbara
    Edited by: Barbara Barbos on Sep 18, 2008 5:26 PM

    Wow Stephan,
    Many thanks for your answer.
    I already tried and YES....
    - from create Notification transaction (IW51), I created tha Measurement Doc and after this I created the Sales Order from the same same IW51 transaction.
    100% helpfull answer.
    Thanks again & regards,
    Barb

  • KM Document Expiry Notification

    Hi,
      We have a requirement to generate notifications upon the expiry of a document in KM. I am aware that the Lifetime service is available for controlling when a document becomes accessible to users with read-only access. Taking this a step further, is it possible (with some development or otherwise) to generate a notification when a document reaches its expiry date?
    Thanks,
    Ju Hwa

    Hi Ju,
    Did you get any solution for sending notification for documents nearing expiry date.
    I am looking for some sample code for this.
    Thanks & Regards,
    Rgds,
    Siva

  • Document Repository - Notification

    Currently I am working in Oracle Portal and I am using Document Repository in my application to maintain the files.
    Here my requirement is, Whenever user uploading any document into the document repository. I need to send an email to the group of users.
    Could anyone help me about this? I don't have any idea about this. Thanks in advance.
    Regards
    Balaji S

    Hi Jens,
    I would like to help you, but we need to know a bit more.
    Since the link (if the <portalserver:port> is properly
    populated) looks okay, it is probably not the
    notification itself, but you can check this:
    The texts that are used to generate the mail are found
    in the file:
    \usr\sap\{PORTAL_VERSION}\global\config\cm\etc\notifications\SUBSCRIPTIONADMIN_en.xml
    Here, there should be a line that reads:
    <textspan pEventid="create">The subscription <subscriptionlink/> was created</textspan>
    You should check that this is intact. There is one such
    file for each language.
    If the problem is displaying the subscription, you might try
    calling up the Subscriptions iView and see if that works and
    check the URLs against those in the notification.
    You can find the Subscriptions iView under the
    Content Administration role, then search for "Subscriptions"
    and use the right click menu to preview the iView. If this
    doesn't work, then I think your problem is not related to
    the notifications. This would be one of the first things
    to check to isolate the problem. Please post what you learn
    so that we can help you further.
    Regards,
    Darin Krasle

  • Subscription renew notification mislead me and my ...

    My subscription has been renewed 2 days ago. I received an email and also in Skype it told me "We've delivered your order" and today while I called relying on this I got my balance used but not subscription. I contacted to support and was told that Skype bills 3 days before the subscription ends. Ok, I can understand this if it bills before, but then why I was told that the order was delivered? 
    Because it told me that the order has been delivered I made a call and ended up with emptying my balance. 
    I think this is not good to inform a customer about delivery while it has NOT been delivered yet.
    Would be glad to hear your opinions about the this issue.  

    Sorry to hear that! I tend to use the default Messages app more than anything else too.
    I'm curious about your issue because you said "most iPhone users..." That can make the situation a little bit tricky, but it can also be used to your advantage, because if you compare the messaging/cellular settings on one iPhone that works and one that doesn't, you will likely find your resolution. I'd suggest looking at an iPhone that doesn't receive your messages and try to make the settings match the settings of an iPhone that successfully receives your texts.
    Since it only happens with iPhone users the problem is likely not on your end; it's more than likely an issue with iMessage on the recipients' phone, but you can certainly try to deactivate your iMessage account (if you have one). Deregister and Turn Off iMessage - Apple Support. Bear in mind that this tool is usually used to solve issues that are the opposite of yours (iPhone users cannot send texts to you).

  • Adobe Renewal Notification not correct

    - I just started getting emails from Adobe telling me my account is expired for Adobe Export PDF and to upgrade - I subscribe to  Send and don't need the other services as locally I have a licensed Adobe Acrobat X that does everything I need other than send large files.  How do I fix this?  My CC is on file and works fine and says next bill date is April 2015.  SO what is the problem?  I can not find any answers on the site.

    Hi geoffd,
    I do see that you have an ExportPDF subscription tied to the email/Adobe ID that you use here in the forums. You're correct that it's not necessary to have the subscription if you have Acrobat Pro. Would you like me to cancel that for you?
    Best,
    Sara

  • Document Info Record Visiable in Quality Notification

    Greetings All,
    I am trying to set a Document info Record in the material master such that when a quality notification is created; the DIR will appear in the Supporting Documents tab/Linked documents (Quality Notification).  The DIR should be material specific such that when a QN is generated; the linked document field is auto populated.
    Your attention into this matter is greatly appreciated.
    Many Thx,
    jaime

    Hi,
    In context with DMS when we create DIR it can have object links. In ur context Object links are material code and the Quality Notification.
    When u create DIR using CV01N and assign Material code in  object link tab the same can be viewed thru material master ---> additional data -
    > document data
    If you assign Quality notification number in Object link tab , the link will get created with Quality Notification which can be viewed in subject tab of Q Notification.
    Regards,
    Nitin

  • How do I get email and text message notifications when my phone is locked?

    How do I get email and text message banner notifications on my iphone when the phone is locked? When I had iOS 6 I could get notifications with sound and banner. Now that I have iOS7 I can't see notificaitons when the phone is locked.

    See if this support document about Notifications helps. http://support.apple.com/kb/HT3576

  • How to show a database trigger error message as a notification on a page

    I have a database with database triggers to ensure data integrity.
    If an insert or update does not comply to all the business rules, a database triggers raises an exception. When using Apex this exception is caught in the Error Screen, a separate screen, where the whole error stack is displayed.
    Does anyone know a way to display only the error in RAISE_APPLICATION_ERROR as a notification in the screen from which the transaction was initiated?
    Dik Dral

    Well, having had so little response, i had to figure it out myself ;-)
    Using Patrick Wolff's ideas from ApexLib I 'invented' a solution for my problem, that I would like to contribute to the community. I hope that it will come out a bit nicely formatted:
    Apex: Show Database Error Message in calling form
    The purpose is to show a neat error message in the notification area of the calling form.
    Default Apex show the whole error stack raised by a DB trigger in a separate error page.
    With acknowledgement to Patrick Wolf, I lent parts of his ApexLIB code to create this solution.
    <br./>
    Assumptions
    <ul><li>The error message is raised from a DB trigger using RAISE_APPLICATION_ERROR(-20000,’errormessagetext’).</li>
    <li>The relevant part of the error stack is contained within the strings ‘ORA-20000’ and the next ‘ORA-‘-string, i.e. if the error stack is ‘ORA-20000 Value should not be null ORA-6502 …’, than the relevant string is ‘Value should not be null’ .</li>
    <li>Cookies are enabled on the browser of the user </li>
    </ul>
    Explanation
    The solution relies heavily on the use of Javascript. On the template of the error page Javascript is added to identify the error stack and to extract the relevant error message. This message is written to a cookie, and then the control is passed back to the calling page (equal to pushing the Back button).
    In the calling page a Javascript onLoad process is added. This process determines whether an error message has been written to a cookie. If so the error message is formatted as an error and written to the notification area.
    Implementation
    The solution redefines two template pages, the two level tab (default page template) and the one level tab (error page template).
    Javascript is added to implement the solution. This Javascript is contained in a small library errorHandling.js:
    <pre>
    var vIndicator = "ApexErrorStack=";
    function writeMessage(vMessage)
    {       document.cookie = vIndicator+vMessage+';';
    function readMessage()
    { var vCookieList = document.cookie;
    var vErrorStack = null;
    var vStart = null;
    var vEnd = null;
    var vPos = null;
    vPos = vCookieList.indexOf(vIndicator);
    // No cookie found?
    if (vPos == -1) return("empty");
    vStart = vPos + vIndicator.length;
    vEnd = vCookieList.indexOf(";", vStart);
    if (vEnd == -1) vEnd = vCookieList.length;
    vErrorStack = vCookieList.substring(vStart, vEnd);
    vErrorStack = decodeURIComponent(vErrorStack);
    // remove the cookie
    document.cookie = vIndicator+"; max-age=0";
    return(vErrorStack);
    function getElementsByClass2(searchClass,node,tag)
    var classElements = new Array();
    if ( node == null )
    node = document;
    if ( tag == null )
    tag = '*';
    var els = node.getElementsByTagName(tag);
    var elsLen = els.length;
    var pattern = newRegExp('(^|\\s)'+searchClass+'(\\s|$)');
    for (i = 0, j = 0; i < elsLen; i++) {
    if ( pattern.test(els.className) ) {
    classElements[j] = els[i];
    j++;
    return classElements;
    function processErrorText()
    var errorElements = new Array();
    errorElements = getElementsByClass2("ErrorPageMessage",document,"div");
    if (errorElements.length > 0 )
    { errorText = errorElements[0].innerHTML;
    errorText = errorText.substr(errorText.indexOf("ORA-20000")+ 11);
    errorText = errorText.substr(0,errorText.indexOf("ORA")-1);
    // errorElements[0].innerHTML = errorText;
    writeMessage(errorText);
    function show_message()
    { var vCookieList = document.cookie;
    var vErrorStack = null;
    var vErrorName = null;
    var vErrorMessage = null;
    var vStart = null;
    var vEnd = null;
    var vPos = null;
    // get errorStack
    vErrorStack = readMessage();
    if (vErrorStack == -1) return;
    // search for our message section (eg. t7Messages)
    var notificationArea = document.getElementById("notification");
    if (notificationArea != null)
    { notificationArea.innerHTML = '<div class="t12notification">1 error has occurred<ul class="htmldbUlErr"><li>' + vErrorStack + '</li></ul>'; }
    else
    { alert(vErrorStack); }
    </pre>
    This code is loaded as a static file in Application Express (no application associated).
    In both templates a reference to this code is added in the Definition Header section:
    <pre>
    <script src="#WORKSPACE_IMAGES#errorHandling.js" type="text/javascript"></script>
    </pre>
    This library is called from the two level tab to show the error message (if any) in het onLoad event of the body tag.
    <body onLoad="javascript:show_message();">#FORM_OPEN#
    This code checks whether a message has been written to a cookie and if found displays the message in the notification area.
    In the error template page the Error section has the content:
    <script language="javascript">
    processErrorText();
    window.history.go(-1);
    </script>
    Back
    The call to processErrorText() looks for the error message, extracts the relevant part of it (between ‘ORA-20000’ and the next ‘ORA-‘), writes it to a cookie and returns to the previous screen.
    The link to the previous page is added should an error in the Javascript occur. It provides the user with a path back to the application.
    With these actions taken, the error messages issued from triggers are shown in the notification area of the form the user has entered his data in.
    The need for database driven messaging
    In some cases the need exists to process error messages in the database before presenting them to the user. This is the case, when the triggers return message codes, associated to error messages in a message table.
    This can be done by using a special Error Message Processing page in Apex.
    The error message page extracts the error message, redirecting to the Error Message Processing page with the error message as a parameter. In the EMP page a PL/SQL function can be called with the message as a parameter. This function returns the right message, which is written to a cookie using dynamically generated Javascript from PL/SQL. Than the contol is given back to the calling form.
    The redirect is implemented by location.replace, so that the error message page does not exist within the browsing history. The normal history(-1) will return to the calling page.
    Implementation of database driven messaging
    The solution redefines two template pages, the two level tab (default page template) and the one level tab (error page template).
    Javascript is added to implement the solution. This Javascript is contained in a small library errorHandling.js already listed in a previous paragraph.
    In both templates a reference to this code is added in the Definition Header section:
    <script src="#WORKSPACE_IMAGES#errorHandling.js" type="text/javascript"></script>
    This library is called from the two level tab to show the error message (if any) in het onLoad event of the body tag.
    <body onLoad="javascript:show_message();">#FORM_OPEN#
    This code checks whether a message has been written to a cookie and if found displays the message in the notification area.
    In the error template page the Error section has the content:
    <script language="Javascript">
    var errorText = null;
    function redirect2oracle()
    { window.location.replace("f?p=&APP_ID:500:&APP_SESSION.::::P500_MESSAGE:"+errorText); }
    function getError()
    { errorText = processErrorText(); }
    getError();
    redirect2oracle();
    </script>
    Go to Error Message Porcessing Page
    Back to form
    The call to processErrorText() looks for the error message, extracts the relevant part of it (between ‘ORA-20000’ and the next ‘ORA-‘), writes it to a cookie.
    Then the EPM-page (500) is called with the extracted message as parameter.
    The link to the EPM page and the previous page is added should an error in the Javascript occur. It provides the user with a path back to the application.
    We need to create an Error Message Porcessing Page.
    Create a new page 500 with a empty HTML-region “Parameters”
    Create an text-area P500_MESSAGE in this region
    Create a PL/SQL region “Process Messages” with source:
    convert_message(:P500_MESSAGE);
    Create a PL/SQL procedure convert_message like this example, that reads messages from a message table. If not found, the actual input message is returned.
    CREATE OR REPLACE procedure convert_message(i_message in varchar2) is
    v_id number := null;
    v_message varchar2(4000) := null;
    function get_message (i_message in varchar2) return varchar2 is
    v_return varchar2(4000) := null;
    begin
    select msg_text into v_return
    from messages
    where msg_code = upper(i_message);
    return(v_return);
    exception
    when no_data_found then
    return(i_message);
    end;
    begin
    v_message := get_message(i_message);
    // write the message for logging/debugging
    htp.p('Boodschap='||v_message);
    // write cookie and redirect to calling page
    htp.p('<script language="Javascript">');
    htp.p('document.cookie="ApexErrorStack='||v_message||';";');
    htp.p('window.history.go(-1);');
    htp.p('</script>');
    // enter return link just in case
    htp.p('Ga terug');
    end;
    Note: The way the message is converted is just an example
    With these actions taken, the error messages issued from triggers are shown in the notification area of the form the user has entered his data in.
    Message was edited by:
    dickdral
    null

Maybe you are looking for

  • What is the by default optimizer in 9i and 10g?

    Hi All, What is the by default optimizer in 9i and 10g? Thanks, Vishal

  • Automate Titles

    I have over 300 lower thirds to make. They are graduating seniors names and I have all the names on a word file. Is there anyway I can pull the file into the titler and have one lower third for each name. Or I have to cut and past over 300 names to t

  • Itunes shows 4 pages of apps for my ipod but ipod only displays 3

    When I connect my ipod touch 5 to my computer to sync it, itunes is displaying 4 pages of apps that should be on the ipod. However, the ipod only has 3 pages of apps displaying. How do I get the 4th page of apps that are displaying in itunes to be ac

  • "Failed to find generated POATie class" when narrowing to DataManager

    Dear all, I'm developing some custom stuff starting from Adobe samples but got really stuck with a number of problems. Passed the one mentioned in c4837.pdf, when I try to DataManager dataManager = DataManagerHelper.narrow( (org.omg.CORBA.Object)conn

  • Error in Error -200485 occurred at DAQmx Create Task.vi:2

    I keep having this error:  The specified task cannot be loaded, because it is not in Data Neighborhood. Check Data Neighborhood in MAX. Look for similar characters, such as the capital letter "O" and the number zero. I would like to know what is the