Messages at page level

Hello,
I'm trying to find out where the messages on the oaf page level is called from
e.g
"Error
This person is not eligible for the element associated with this absence type. "
On the Create Absence screen
The business requirment is to find out where this error message is called from and then add lsome other logic.
New to OAF. Thanks for your help in advance

Hi,
Message on the top of the page is mostly shown by OAException Class.
Regards,
Gyan

Similar Messages

  • Page level validation to prevent duplicate data entry into the database

    Hello,
    Can anyone please help me out with this issue.
    I have a form with two items based on a table. I already have an item level validation to check for null. Now I would like to create a page level validation to check that duplicate data are not entered into the database. I would like to check the database when the user clicks on ‘Create’ button to ensure they are not inserting duplicate record. If data already exist, then show the error message and redirect them to another page. I am using apex 3.2
    Thanks

    Hi,
    Have you tried writing a PLSQL function to check this?
    I haven't tested this specifically, but something like this should work:
    1) Create a Page Level Validation
    2) Choose PLSQL for the method
    3) Choose Function Returning Boolean for the Type
    For the validation code, you could do something like this:
    DECLARE
        v_cnt number;
    BEGIN
        select count(*)
        into v_cnt
        from
        your_table
        where
        col1 = :P1_field1 AND
        col2 = :P2_field2;
        if v_cnt > 0 then return false;
        else return true;
        end if;
    END;If the query returns false, then your error message will be displayed.
    Not sure how you would go about redirecting after this page though. Maybe just allow the user to try again with another value (in case they made a mistake) or just press a 'cancel' button to finish trying to create a new record.
    Amanda.

  • Item & page level validation

    1. How do I check/see if a validation rule is page level or item level, I couldn't find any difference in the definitions between the two as seen on the definition screens in APEX.
    2. (Could be related to 1.) I expected the validation rule 'Item in Expression1 contains at least one of the characters in Expression2' to imply that Expression1 can not be NULL. I had to create a separate IS NOT NULL validation rule however. To me that does not make sense or is there a reasonable explanation?
    tia,
    Martin

    Martin,
    As Tony said, there is no difference between page and item validations other than the ability for item validations to have error messages positioned right next to their label.
    As for the null value problem, the following "item comparison" -type validations do not produce a validation error if the specified item is null:
    * Item specified contains no spaces
    * Item specified is a valid date
    * Item in Expression 1 contains only characters in Expression 2
    * Item in Expression 1 contains at least one of the characters in Expression 2
    * Item in Expression 1 does not contain any of the characters in Expression 2
    This allows you to account for the null value case with a separate "not null" validation. Without this behavior there would have to be a "Item in Expression 1 is NULL OR <remainder of validation>" -type validation in addition to each of the above validation types.
    However, the following validation types do result in a validation failure if the item is null:
    * Item in Expression 1 equals string literal in Expression 2
    * Item in Expression 1 is contained in Expression 2
    This behavior appears to be an oversight, also spelled bug.
    Scott

  • Recommended practice for handling page level validation?

    I'm wondering what the recommended practice is for handling what I would call "page level validation?"
    For example, I have two text boxes. Either one text box or the other must have a non-null value. If they are both null, I want the page validation to fail and redisplay the page the same way it would if validation for a particular field failed. However, I don't want the message that is posted to be associated with either of the two text boxes. I want it to use some other unique ID because I want to display the error text at a location that is different than for either of the text box error messages.

    The reason I don't want to use a custom converter is because I'm using a custom tag/renderer which aggregates several HTML input components and has complex conversion logic. Maybe I could chain things together, but, a converter should be used for conversion not validation. Secondly, I don't understand why validation occurs after conversion. This seems backward to me.
    One hack that I tried which almost worked was to create a custom tag/rendererer that was an input component, but, had no visible UI. I made that component always have a value which caused the validator to always be called. I made it so that it accepted a method binding as an input so that you could specify which validation method was called. I checked the component values for the components of interest using UIInput.getValue(). However, I ran into what might be a bug. Everything worked fine as long as the value changed to a non-null value. When the value was set to null, UIInput.getValue() was returning the old value instead of null. The strange thing is that the bean property that the component was bound to, ultimately was changed to null as I would have expected to. The problem was that UIInput.getValue() was returning the old value instead of null.
    My current solution which isn't ideal is by using code similar to the following in my action method that my form submit button calls.
    if(value1 == null && value2 == null) {
    String message = "Validation Error: Value is required.";
    FacesContext context = FacesContext.getCurrentInstance();
    context.addMessage("id1", new FacesMessage(message, message));
    return "validationError";
    Note, I had to create my own custom tag/renderer equivalent of h:message because I couldn't get h:message to work. h:message couldn't find the message that I posted.
    The down side to doing it this way is that the validation is occurring after the validation phase. Hence, the error message isn't displayed at the same time as other error messages. Furthermore, if you have more than one button on the form, you'd have to do the check for each action method.
    This is really stupid. I can't believe something that should be so simple is so difficult in JSF. I'm planning on taking a closer look at ASP.NET. I'm pretty sure all you have to do in ASP.NET is override a method to do this and you have access to all the form controls as variables within the Page object. i.e. no having to lookup the controls using a method and a client ID.

  • New preview function for iPad–error message "Multiple page sizes not supported"

    When I try to use the new preview function with my iPad I get the error message "Multiple page sizes within a layout are not supported". I have a page that is 768 x  1296. I would really like to preview this folio before publishing. Any suggestions?

    If you're trying to create an article that scrolls vertically, you can create a 768x1296 article in a 1024x768 folio, but you need to select a Smooth Scrolling option when you create or import the article, or in the Article Properties dialog box.

  • Page level help text question

    APEX - 4
    DB version - 10g
    Web server architecture - OHS
    Browser - IE8
    Theme - 5
    I know how to set and display help text for a page item, and I see there is the option to add help text at the page level, but how does the user accessing the screen see the page level help text?
    I was thinking it might be a good way to add user help guide information at the page level.
    Thank you for any assistance.

    I know how to set and display help text for a page item, and I see there is the option to add help text at the page level, but how does the user accessing the screen see the page level help text?Using a Help page and region accessed via a help link (e.g. a navigation bar entry), or using the <tt>apex_application.help</tt> API method in a PL/SQL Dynamic Content region.
    This is covered in the APEX documentation which should be consulted before posting a question here.

  • Page-level versioning/publishing

    Is there a way to version and publish content at the page level? I'm able to version and publish content at the item level, but I don't see any way to do this at the page level.
    Any help would be much appreciated.
    - Justin

    hi justin,
    versioning is only possible at item level, not at page level.
    regards,
    christian

  • Page level total in a mulipage matrix report

    hi!
    I am facing a problem in marix reports because a very late change in customer requirement.he wants a page total at the end of every page in the report ,because these reports are matrix style,they involve cross product.i can get the grand total at the end of the report because the summary column works well at report level,but when i try to reset it at page level,at times it shows blank or generates an error that matrix report fetches everthing at report level and cannot generate results at page level.but now how do i get these page totals without changing these matrix reports.Plz reply ASAP
    Regards
    simer
    The Oracle Reports Team
    http://otn.oracle.com/

    Hi I was browsing through the forum, and found no reply to your question, if you still interested about the solution I can send you my RDF file where I did the page level total in matrix report as well as brought
    forward in next page, this is something very hard for me to explain in word, so if you can give me your email address I can send you the RDF file.
    Thanks & Regards
    Eamon

  • Item Level & Page Level Validation..

    Hi ,
    What is the difference between Item Level validation & Page Level validation..
    in which sceneario it will be useful.
    Anoo..
    Edited by: Anoo on Dec 16, 2008 5:04 AM

    Hi,
    From the APEX help:
    * Item level validations are specific to a single item.
    * Page level validations do not apply to any single item, but apply to an entire page.
    {code}
    Paulo Vale
    [http://apex-notes.blogspot.com]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How-to (easily) retrieve the ColorSpace at the page level

    Hello,
    I'm lloking for a method to (easily) retrieve the ColorSpace at the page level. Actually in my PDF there are ColorSpace at page level and also at element level.
    Moreover what is the behavior when there are more than one ColorSpace. Is it the ColorSpace described at the page level which is taken into account or the ColorSpace which is at the image level.
    Thanks in advance,
    Joe

    There is no such thing as a "page level CS" in PDF.  So I have no idea what you are referring to.  Please post a PDF.
    When rendering a page, a renderer (Acrobat/Reader in this case) decides what final output colorspace to use for the raster image based on a variety of criteria defined by the appropriate international standards - let's call this the "destination CS".  Once chosen, then as each object is being rendered its colorspace(s) (call them "source CS" - may be one or two) will be converted, if necessary to the destination CS. 
    That's the simplistic description of color handling when there is no transparency on the page.  If there is transparency involved - the complexity goes up by a magnitude...

  • How to implement a page level validation !!

    Hello ,
    I want to implement page level validation.
    thanks
    Edited by: kumar73 on Apr 21, 2010 1:41 PM

    Should be pretty easy - your condition would probably just be the click of the button (button name) or the request value sent by the button (SUBMIT?) You can do a function returning boolean as the type
    The code would be something like:
    begin
      if :P1_SHUTTLE is not null or
      :P1_SHUTTLE2 is not null or
      :P1_SHUTTLE3 is not null or
      :P1_SHUTTLE4 is not null or
      :P1_SHUTTLE5 is not null then
        return(true);
      else
        return(false);
      end if;
    end;

  • Quotes in a page level item not showing up as " when used in a hyper link

    Hi all,
    In my app, I need to hyper link to a crystal report application with parameters from my page. I have a page level item that puts my parameter in quotes, but when the item is utilized in the hyperlink, the quotes come across as & q u o t ; (spaces were put in to the post to avoid html conversion) how can my string be used to appear the way I want?

    I don't use Crystal Reports, but, in general, you should encode your URL. When you create your link, run the URL through utl_url.escape() first. Put it in your select statement.
    E.G.,
    select utl_url.escape('http://oracle.com/foo"bar') from dual;
    will escape/encode the quotation mark and give you:
    http://oracle.com/foo%22bar
    This translates the " into a URL-safe escape code, %22, that should (I hope) be understood properly by your Crystal Reports server.
    Good luck.

  • Multiple Error message at Item Level....

    Hi all,
    I have some doubt into display multiple error message from item level.
    The scenario is, I have to run some validation at each line item. If validation fails error message is population. Now suppose user ignore the error message or with that error user creating new line item and again because of validation some error occurs, then both error message should display all together but system is displaying only last message not previous one. This is happening with both the classes CL_BSP_WD_MESSAGE_SERVICE' and CL_CRM_GENIL_GLOBAL_MESS_CONT.
    But if I check same thing with standard validation all error message display all together.
    Any suggestion through which I can combined all message and display together.
    Thanks
    Gaurav

    Yes.I have tried ADD_MESSAGE method of the CL_BSP_WD_MESSAGE_SERVICE class.
    Thanks
    Gaurav
    Any suggestion from experts..
    Regards
    Gaurav
    Edited by: Gaurav Mehta on Dec 3, 2010 2:18 PM

  • When trying to open Pages 4.0.1 I get a message stating "Pages cannot be opened because of a problem, check with the developer to make sure Pages works with this version of Mac OS X. You may need to reinstall the application." Using OS X 10.6.8

    When trying to open Pages 4.0.1 I get a message stating "Pages cannot be opened because of a problem, check with the developer to make sure Pages works with this version of Mac OS X. You may need to reinstall the application. Be sure to install any available updates for the application and Mac OS X."
    I've run the software update several times. Pages is located in my iWork '09 folder in Applications. Using OS X 10.6.8

    Delete and reinstall it.
    (104030)

  • Setting font-family at Page level in xsl ???

    Hi All,
    I have a question regarding setting the attribute font-family at page level.
    I can use this attribute at block level , Is it possible to use it at Page level ie (simple-page-master).
    In simple terms use the same font across the page without having to declare it at each block in the page.
    Thanks.

    As Jorg stated, Group ACL settings are meant to control access at a page
    level.  As he also stated is possible to control access even further, but
    with additional effort and difficulty. But, nearly every client wants this
    done down to the component level and on a group by group basis.  So, what
    I've found, over the years that works is the following:
    - Configure the available components per template type per parsys
    - Further configure the available components at the group level
    For the custom built components, you can remove them at the group level by
    un-checking the 'read' ACL on the dialogs for the given component.  You
    don't want to un-check read for the whole component because then the users
    of that group experience random 'holes' in the content.  But, if you
    un-check 'read' for the dialogs, then the component will not display in
    Side-kick (at least on 5.4 and prior this is the case).
    The only caveat to this is the OOB components.  That is where you will run
    into a lot more difficulty.  Those should mostly be enabled/disabled at the
    design level for the entire page/parsys.
    Hope this helps.
    Todd

Maybe you are looking for

  • MacBook Air, no access to an external drive or any other computer with one. Just Internet.

    I bought a cs 6 design standard but i want to install it on my MacBook Air with no cd drive and I have no access to a computer with a working one so I can't transfer it to a flash drive. Can I just download it from here and if yes, where exactly? Tha

  • HOW TO GIVE CLASS NAME DYNAMICALLY???

    Hi all! I want to give class name dynamically to my statment <jsp:useBean id="myBean" scope="session" class="myPackage.myClass"/> now here i want to pass a String as class name how can i do it? Jiaa:):):)

  • Some iCloud mail folders are not appearing in Outlook 2010.

    Some of my iCloud folders are no longer appearing in Outlook 2010 using Windows 7.  I have the same identical missing folders on two different PCs.  This is a fairly recent problem; I don't believe I had this problem until the last week or so.  I wou

  • GRR error

    Hi Friends, Need your help. While creating GRR(MIGO),the user is getting error "G/L Account requires an assignment to a CO. object ". How to solve this? Thanks n regards.

  • Problem in mathematical Functions

    Hi All, I am using a mathmatical function FRAC but getting error Field "FRAC" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. getting this error for any of the functions like CEIL, FLOOR etc. My Statement i