Change the Exception Error Page!!!

Hello All,
I have 2 questions:
1- i want to show custom messages from Database Procedure on apex page, i found a way using raise_application_error but the customer wants to change this page layout?
2- i want to create users using APEX_UTIL.CREATE_USER but there is no parameter for the workspace name, how can i tell which workspace the user is added?
sorry for my bad english ;\
Thanks

Hi,
You can change the page template that the error page is based on. Go to Shared Components, Themes and click the Edit Theme option from the Tasks list on the right of the screen, then select your Theme. In the Component Defaults section, there's an option to select the page template that is used for errors - just pick another template.
If required, you can create a new page template - through Shared Components, Templates and click the Create button. It's probably best to create a new page template as a copy of an existing one and then edit that as required. Once created, go back to the Edit Theme option and select your new template.
I'm not 100% sure about your second question, but I would imagine that the user would be created in the same workspace as the one where the APEX_UTIL.CREATE_USER function was run. As you say, there is no workspace parameter for this function ([http://download.oracle.com/docs/cd/E10513_01/doc/apirefs.310/e12855/apex_util.htm#BABCFBGG]).
Andy

Similar Messages

  • Howto change the default error page in EP

    Hello all,
    I'm trying to find out where can I change the default error page when portal is loading  ("application stoped...") and replace it with my own friendly message .
    Thanks
    Amity

    Hi,
    Take a look at SAP Note 795699.
    Hope that helps,
    Keith

  • How to cancel the event in Item Adding and display javascript message and prevent the page from redirecting to the SharePoint Error Page?

    How to cancel the event in Item Adding without going to the SharePoint Error Page?
    Prevent duplicate item in a SharePoint List
    The following Event Handler code will prevent users from creating duplicate value in "Title" field.
    ItemAdding Event Handler
    public override void ItemAdding(SPItemEventProperties properties)
    base.ItemAdding(properties);
    if (properties.ListTitle.Equals("My List"))
    try
    using(SPSite thisSite = new SPSite(properties.WebUrl))
    SPWeb thisWeb = thisSite.OpenWeb();
    SPList list = thisWeb.Lists[properties.ListId];
    SPQuery query = new SPQuery();
    query.Query = @"<Where><Eq><FieldRef Name='Title' /><Value Type='Text'>" + properties.AfterProperties["Title"] + "</Value></Eq></Where>";
    SPListItemCollection listItem = list.GetItems(query);
    if (listItem.Count > 0)
    properties.Cancel = true;
    properties.ErrorMessage = "Item with this Name already exists. Please create a unique Name.";
    catch (Exception ex)
    PortalLog.LogString("Error occured in event ItemAdding(SPItemEventProperties properties)() @ AAA.BBB.PreventDuplicateItem class. Exception Message:" + ex.Message.ToString());
    throw new SPException("An error occured while processing the My List Feature. Please contact your Portal Administrator");
    Feature.xml
    <?xml version="1.0" encoding="utf-8"?>
    <Feature Id="1c2100ca-bad5-41f5-9707-7bf4edc08383"
    Title="Prevents Duplicate Item"
    Description="Prevents duplicate Name in the "My List" List"
    Version="12.0.0.0"
    Hidden="FALSE"
    Scope="Web"
    DefaultResourceFile="core"
    xmlns="http://schemas.microsoft.com/sharepoint/">
    <ElementManifests>
    <ElementManifest Location="elements.xml"/>
    </ElementManifests>
    </Feature>
    Element.xml
    <?xml version="1.0" encoding="utf-8" ?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <Receivers ListTemplateId="100">
    <Receiver>
    <Name>AddingEventHandler</Name>
    <Type>ItemAdding</Type>
    <SequenceNumber>10000</SequenceNumber>
    <Assembly>AAA.BBB, Version=1.0.0.0, Culture=neutral, PublicKeyToken=8003cf0cbff32406</Assembly>
    <Class>AAA.BBB.PreventDuplicateItem</Class>
    <Data></Data>
    <Filter></Filter>
    </Receiver>
    </Receivers>
    </Elements>
    Below link explains adding the list events.
    http://www.dotnetspark.com/kb/1369-step-by-step-guide-to-list-events-handling.aspx
    Reference link:
    http://msdn.microsoft.com/en-us/library/ms437502(v=office.12).aspx
    http://msdn.microsoft.com/en-us/library/ff713710(v=office.12).aspx
    Amalaraja Fernando,
    SharePoint Architect
    Please Mark As Answer if my post solves your problem or Vote As Helpful if a post has been helpful for you. This post is provided "AS IS" with no warrenties and confers no rights.

    Recommended way for binding the list event handler to the list instance is through feature receivers.
    You need to create a feature file like the below sample
    <?xmlversion="1.0"encoding="utf-8"?>
    <Feature xmlns="http://schemas.microsoft.com/sharepoint/"
    Id="{20FF80BB-83D9-41bc-8FFA-E589067AF783}"
    Title="Installs MyFeatureReceiver"
    Description="Installs MyFeatureReceiver" Hidden="False" Version="1.0.0.0" Scope="Site"
    ReceiverClass="ClassLibrary1.MyFeatureReceiver"
    ReceiverAssembly="ClassLibrary1, Version=1.0.0.0, Culture=neutral,
    PublicKeyToken=6c5894e55cb0f391">
    </Feature>For registering/binding the list event handler to the list instance, use the below sample codeusing System;
    using Microsoft.SharePoint;
    namespace ClassLibrary1
        public class MyFeatureReceiver: SPFeatureReceiver
            public override void FeatureActivated(SPFeatureReceiverProperties properties)
                SPSite siteCollection = properties.Feature.Parent as SPSite;
                SPWeb site = siteCollection.AllWebs["Docs"];
                SPList list = site.Lists["MyList"];
                SPEventReceiverDefinition rd = list.EventReceivers.Add();
                rd.Name = "My Event Receiver";
                rd.Class = "ClassLibrary1.MyListEventReceiver1";
                rd.Assembly = "ClassLibrary1, Version=1.0.0.0, Culture=neutral,
                    PublicKeyToken=6c5894e55cb0f391";
                rd.Data = "My Event Receiver data";
                rd.Type = SPEventReceiverType.FieldAdding;
                rd.Update();
            public override void FeatureDeactivating(SPFeatureReceiverProperties properties)
                SPSite sitecollection = properties.Feature.Parent as SPSite;
                SPWeb site = sitecollection.AllWebs["Docs"];
                SPList list = site.Lists["MyList"];
                foreach (SPEventReceiverDefinition rd in list.EventReceivers)
                    if (rd.Name == "My Event Receiver")
                        rd.Delete();
            public override void FeatureInstalled(SPFeatureReceiverProperties properties)
            public override void FeatureUninstalling(SPFeatureReceiverProperties properties)
    }Reference link: http://msdn.microsoft.com/en-us/library/ff713710(v=office.12).aspxOther ways of registering the list event handlers to the List instance are through code, stsadm commands and content types.
    Amalaraja Fernando,
    SharePoint Architect
    Please Mark As Answer if my post solves your problem or Vote As Helpful if a post has been helpful for you. This post is provided "AS IS" with no warrenties and confers no rights.

  • The exception error message was: oracle.jbo.NoDefException: JBO-25002: Defi

    Hi,
    I added a DFF through create item "flex" in iRecruitment (View applicants page).I am getting the following message:
    "The flexfield listener failed while getting the value for segment Job Title from column ASS_ATTRIBUTE1 of the descriptive flexfield with application short name PER and name PER_ASSIGNMENTS. Please contact your system administrator. The exception error message was: oracle.jbo.NoDefException: JBO-25002: Definition AssAttribute1 of type Attribute not found".
    Regards
    Radhika

    Check the DFF you have added according to the error message to confirm that it is setup properly and compiled.
    --Shiv                                                                                                                                                                                                                                               

  • My Mac Book Pro changes the saved home page each time I start Safari.  I also get new tabs that randomly open asking to clean up my Apple

    My Mac Book Pro changes the saved home page each time I open Safari.  I am also getting random tabs opening with various "cleaning up" my computer junk.
    How do I get rid of this?  I tried some of the fixes listed but they don't seem to work or I am doing something wrong.
    THanks
    Wendi

    You may have installed one or more of the common types of ad-injection malware. Follow the instructions on this Apple Support page to remove it. It's been reported that some variants of the "VSearch" malware block access to the page. If that happens, start in safe mode by holding down the shift key at the startup chime, then try again.
    Back up all data before making any changes.
    One of the steps in the article is to remove malicious Safari extensions. Do the equivalent in the Chrome and Firefox browsers, if you use either of those. If Safari crashes on launch, skip that step and come back to it after you've done everything else.
    If you don't find any of the files or extensions listed, or if removing them doesn't stop the ad injection, ask for further instructions.
    Make sure you don't repeat the mistake that led you to install the malware. It may have come from an Internet cesspit such as "Softonic" or "CNET Download." Never visit either of those sites again. You might also have downloaded it from an ad in a page on some other site. The ad would probably have included a large green button labeled "Download" or "Download Now" in white letters. The button is designed to confuse people who intend to download something else on the same page. If you ever download a file that isn't obviously what you expected, delete it immediately.
    Malware is also found on websites that traffic in pirated content such as video. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect more of the same, and worse, to follow. Never install any software that you downloaded from a bittorrent, or that was downloaded by someone else from an unknown source.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates (OS X 10.10 or later)
    or
              Download updates automatically (OS X 10.9 or earlier)
    if it's not already checked.

  • How can I change the number of pages in a spread?

    I imported a document that our PR department used to create in Quark into InDesign 5.5. They have it set up in four-page spreads. However, the document has always been printed with a coil binding with a large graphic on each left-hand page and text on the right page. I would like to convert to using two-page spreads. However, none of the places the InDesign help leads me give any indication of changing the number of pages per spread.
    My problem may be related to having imported from Quark, but if there's an easy way to change this, I'd appreciate hearing about it. Thanks!
    -Brian

    In the pages panel select the spreads then right-click and check Allow Selected Spreads to Shuffle and also Allow Documrnt pages to shuffle. If asked if you want to maintain the current page arrangement say no.

  • Using "View Selector" in the List View Web Part, changes the web part page to the view selected's page.

    Hi,
    I am relatively new to Web Parts pages.  I created a page with list view web part and a Infopath Form Web Part, which are connect via the "Get Form From" option.  My users would like to be able to use views dependent on what
    they are looking for.  So I created different views.  However, when I select the view from within the Web Part, it changes the web part page to the list view page.  I must be doing something wrong.  How do I configure the list view to show
    the selected view and results within the existing "list view web part"?
    Thanks,
    Dwayne

    Hi
    Lindali,
    Sorry, but this has not been answered to my liking.  The "List View Web Part" has the ability for the user to select the view from within the web part, so there you should be able to select a different view and have it appear within the same web part. 
    Does anyone know how to complete this task?
    Thanks,
    Dwayen

  • Unable to change the default login page

    I would to change the default login page (to /content/ethz_ch/Login)
    I configured tha page by "Day CQ Login Selector Authentication Handler":
    In ./launchpad/config/com/day/cq/auth/impl/LoginSelectorHandler.config I see
    auth.loginselector.defaultloginpage="/content/ethz_ch/Login"
    as expected.
    I then configured a page (/content/ethz_ch/de/auth_test.html) with a closed user group and left the login page field blank.
    Instead on the newly defined login page I am redirected to
    https://..../system/sling/cqform/defaultlogin.html?resource=%2Fcontent%2Fethz_ch%2Fde%2Fauth_test.html&$$login$$=%24%24login%24%24
    Any idea on what I am doing wrong?

    Try 1 & 2 if does not work please file a daycare for further assistance.
    1.   In "Day CQ Login Selector Authentication Handler" for path info add an empty row then verify.
    2.   Delete the existing entry for "Day CQ Login Selector Authentication Handler" , Configure your custom at repository level & verify

  • I can change the language of pages 5.5.1 to catalan?

    Hello everyone,
    I want to know how I can change the language of pages 5.5.1 to catalan? since I live in Barcelona and I need it.
    greetings,
    Sergio Garcia Rodriguez

    Are you talking about spellcheck?  If so, see
    http://extensions.services.openoffice.org/en/node/1205/releases

  • How do I change the language in Pages 5.1?

    How do I change the language in Pages 5.1? It used to be under Inspector, but it's not anymore. I need to be able to type and spell check in English and in French.

    http://help.apple.com/pages/mac/5.1/?lang=en#/tanf3d8c3e49

  • How do i change the start up page i have changed in tools but returns to the unwanted page at startup

    i changed the start up page in tools / options and when i restart Firefox it returns to the unwanted page
    i installed bit comet and winxdvd programs i was browsing some other sites at the time so i am not sure if those programs were the problem or not

    See http://kb.mozillazine.org/Preferences_not_saved

  • How do I change the language in Pages from American English to Finnish?

    How do I change the language in Pages from American English to Finnish? I know there's a bunch of languages behind Inspector, but no Finnish there. Can I download it from somewhere? This is an American machine and an American OS X Mountain Lion.

    http://m10lmac.blogspot.com/2011/06/extra-spell-checking-dictionaries-for.html

  • How do I change the my login page (password box) to be in the English language?

    How do I change the my login page (password box) to be in the English language?

     > System Preferences... > Language & Region > change here

  • Need an add on that changes the tabs like pages of an book

    need an "add on" that changes the tabs like pages of an book. I had this years ago, but dont remember the name and how to find it. Thanks

    Maybe this extension or one of the others mentioned has that feature:
    Tab Utilities: https://addons.mozilla.org/firefox/addon/59961

  • When "Upload File" , show the IE error page

    question: when "Upload File" , show the IE error page. How to soluve the problem?

    Duplicate post.
    when "Upload File" , show the IE error page
    when "Upload File" , show the IE error page

Maybe you are looking for

  • Urgent doubt in WAD

    Hi, I have created a Web template which has two tabs. Every thing is working fine except... Initially when it is executed it is displaying all the items like text elements, gennav, check boxes, tables...Actually what is happening here is for the firs

  • Adobe Application Manager error A12E6

    I'm on a MAC OS 10.8.2, I was updating my Adobe Application Manager and received an error A12E6. I also tried downloading AI and it says my Adobe Application Manager software is corrupt. How do I download new AAM? Jo

  • New Mac and Ipod Mini

    I was able to transfer all my library but when I sync the mini to it the unit gets half way and the device gets disconnected from the computer. It tells me that the ipod was improperly removed and it doesn't show as hooked up to the computer any long

  • Overlapping buttons within a movie clip

    I am using Flash CS3. Within a movie clip, I have a button symbol on one layer and an invisible button, which covers the whole canvas, on another layer. Regardless of top-down order, the big invisible button works and the button symbol (simple text r

  • CS3 FindChangeByList error

    Greetings, I'm a pretty new ID user and am not an ID scripter, but I'd like to be able to use the FindChangeByList script. So I made myself a text file and ran the script (using the updated javascript script I found online dated 5/17/07. I'm running