How to define a application level (or page 0) plsql validation

I have a selection region on page 0, which I use on a lot of pages. I want to define plsql validation for the items in that region.
I have already a database package with the validation code.
Now I want to define each validation only once and not on each page.
How can I do this.

Funny thing happened to me on the way to creating my scenario on the apex.oracle.com site. I actually got it to work there. Once I attempted to simplify my scenario to reproduce it on apex.oracle.com, I figured out a simple step (hack?) that I was missing. I put that back into my site and it's working there now as well.
If it's useful for others who attempt to do something like this, I needed to create a page-level process which doesn't really do anything except have a "NOT NULL" condition of the APP_ERROR_MSG application-level item and then use the "&APP_ERROR_MSG." syntax in the "Success Message" of that process. In essence, I'm telling the process to display the error as a success message when the APP_ERROR_MSG item is not null.
I feel this is a hack because I would prefer to have this error message processing at the application level rather than at the page level. I was forced to put this process at the page level rather than at the application level because (as of ApEx 2.2) application-level processes do not have a "Success Message" option, only an "Error Message" option, while page-level process have both.
Maybe my "fix" is truly a hack and I would love to hear that in order to get a better solution, that is more generic and application-level based. My sample app is at http://apex.oracle.com/pls/otn/f?p=32483:1 with the username of "devguest" and the same as the password.
I look forward to hearing some thoughts.

Similar Messages

  • How to keep an application level object running with SunIDM?

    We are working on intergrate a gmail project with SunIDM. We need an application level object running with SunIDM so it will maintain a token generated from Gmail side. In anther servlet project, I had this object saved in the attribute of the ServletContext, then other session level servlet could share this attribute anytime. Is there a way to store attribute in Servlet Context and have it shared by different user session in SunIDM? I have been reading documents and searched this forum, haven't find any topics related how to maintain an application level object live. Hopefully that I can get some hint here.
    Thank you so much.

    Paul, Thank you so much for the further explaination. I don't think it will work since the token generated from gmail will expire every 24 hours.
    We are using the gdata library published from by gmail people, and I create a new UserService object and have it run in the application level. The UserService object will generate a token and renew it every 24 hours behind the scene. Here is how I implement it in my Servlet project:
    //to have a UserService object running at the application level:
    public class GmailUserService extends HttpServlet {
    public void init(ServletConfig config) throws ServletException{
    super.init();
    userService = new UserService(myApplication);
    config.getServletContext().setAttribute("gmailUserService", userService);
    //to access this UserService object from other servlet in each user session:
    UserService userService = (UserService)servletContext.getAttribute("gmailUserService");
    Gmail will trigger an error if we create a new UserService object for each user. They recommend to have all the user to share one UserService object. I am looking for similar approach in SunIDM.
    Thank you again, Paul, for trying to help.

  • How to define the application parameter 'sap.xss.BaseConfigurationID'

    Hello All,
    I am developing a webdynpro ESS custom self service application. I have completed the development of the DC. But at the end when I am creating the application for the DC, I am not able to figure it out how to define the application parameter 'sap.xss.BaseConfigurationID' for the application. I have defined remaining all the parameters as specified in the following link.
    [http://help.sap.com/erp2005_ehp_03/helpdata/EN/43/3b95dab4ab1800e10000000a1553f6/content.htm]
    Could any one please detail the process to define the parameter 'sap.xss.BaseConfigurationID' ?
    Thanks a lot.
    Regards,
    Seshu.

    Pick a representative file.
    Get info. (Command-i)
    There you will see a place "Open with" where you can select the application for that file.
    Hit the "Change all..." button to do this for all files of this type.
    charlie

  • How do I clear application level item of the last value it held?

    See next post - I oopsed the first try.
    Edited by: user3034406 on Jul 28, 2009 1:48 PM

    Using oracle 11g, apex version 3.0.
    Ok, so I am developing a survey with questions and their related answers (either radio group or checkbox depending). I have it set up so that when a user clicks a checkbox, an apex_collection is updated. In the pl/sql of my region source, I left outer join to this collection to display the checkbox as checked when its value is found in the collection. Using this same strategy, I can delete a value from the collection when a user uncheckes a box....
    The problem I am having is this: the very last value that a user checks initially (i.e. takes checkbox from unchecked to checked status) is staying in my application level item :ADD_THIS, so when the page is refreshed or whatever, this value gets added to my collection, which means it shows as checked. Well, I think this is what is happenig...!
    I have tried setting the app level item to null in a computation process, but this screwed everything up and nothing would work right....
    So, if someone knows when, how and where to reset an app level item?
    NOTE: I barely know javascript (getting the hang of simple stuff but I have a long way to go!) and am a little shaky on things like session state, before load, after load, etc., etc, when it comes to apex. Please be patient with me! (smile)
    Here's what's going on script wise:
    PL/SQL in region source of page: builds list of questions and their associated answers
    DECLARE
    #####stuff here####
    CURSOR multiple_answer_cur IS select apex_item.checkbox(1, nvl(a.c001, a.answer_seq),'onclick="f_updateMember(q_seq, a_seq);"', a.c001, null, v_q_seq) cbox, a.answer_text, qa.question_seq, a.answer_seq
    *<etc. etc....>*
    CURSOR single_answer_cur IS select apex_item.radiogroup(radio_global, nvl(a.c001, a.answer_seq),a.c001, null, null, null, 'f_updateMember(q_seq, a_seq)',null, v_q_seq) rgroup, a.answer_text, qa.question_seq, a.answer_seq
    *<etc. etc....>*
    BEGIN
    ####stuff here that builds survey and writes it using HTP. to page####
    END;
    Javascript function to add or delete from collection (in header of page)
    function f_updateMember(q_seq, a_seq){
    --determine if value represents checked or unchecked box
    var isString = /q|a/;
    var getThis = document.getElementById(q_seq).value;
    var findinValue = getThis.search(isString);
    var getaddthis = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=AddCheckboxValue',0);
    var getdelthis = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=DelCheckboxValue',0);
    --onclick, if an 'a' or 'q' is found in value, this box is in the collection and therefore checked, so delete it
    if (findinValue != -1) {
    getdelthis.add('DELETE_THIS', "q"+q_seq+"a"+ a_seq);
    getdelthis.GetAsync(function(){return;});
    getdelthis = null;
    }else{
    --onclick, no 'a' or 'q' is found in value, this box is not in the collection, so add it
    getaddthis.add('ADD_THIS',"q"+q_seq+"a"+ a_seq);
    getaddthis.GetAsync(function(){return;});
    getaddthis = null;
    Snippet of page source
    <b>Question number one</b>
    <input type="checkbox" name="f01" value="q78a489" checked="checked" onclick="f_updateMember(78,
    489)" id="78" />Answer option one for question one>
    <b>Question number two</b>
    <input type="checkbox" name="f01" value="483" onclick="f_updateMember(77, 483)" id="77" />Answer
    option one for question two>
    Edited by: user3034406 on Jul 28, 2009 12:18 PM

  • How to define the application to use for opening each file type (pdf, jpg,...)

    I installed an external application, and this new application has been configured by defect that it will be used to open all files with extensions like jpg, pdf, etc...
    I want to revert this situation and define again the proper application I want to use for opening each file type. How can I do this in Lion?
    Thanks,
    Azaldier

    Pick a representative file.
    Get info. (Command-i)
    There you will see a place "Open with" where you can select the application for that file.
    Hit the "Change all..." button to do this for all files of this type.
    charlie

  • How to define reading order independent of pages?

    I need to use the reading order tools to make PDF files accessible. The document I'm currently working with is a standard trifold brochure, which has the outer panels on the first page of a landscape-oriented, letter-size document, and the inner panels on the second. In this common scenario, the proper reading order, reflecting how one would read a folded hard copy, is:
    the right column of page 1 (outside; cover)
    the left, center, and right columns of page 2, respectively (inside)
    the left and center columns of page 1 (outside; the center column is the back)
    Clearly, this requires the linearized reading order to begin on page 1, continue onto page 2, then return to page 1. However, I can find no way to do this with the tools in Acrobat. Can someone please help?
    Thanks
    (Version information: Adobe Acrobat Pro 9.2.0 on Windows XP)

    You need to start with a tagged PDF.
    The tagged PDF must have a welll-formed structure tree.
    From that 'foundation' you can work with read order, reflow & accessibility.
    Much of what you desire can be established upfront in the authoring application provided the application provides support for tag management of tagged output PDF.
    Currently, the three applications that provide reliable tag management are Adobe's FrameMaker, InDesign and Microsoft Word (via Adobe's PDFMaker or Net-Centric's 'PAWs' plug-in for MS Word.
    Other applications provide various degrees of tag management; however, the tagged output PDF's structure tag tree is not as well-formed and calls for more manual editing of the PDF structure tag tree.
    I
    s your document authored in InDesign? If so, the following may be useful.
    "Accessible Content Workflow with Adobe InDesign CS4 and Acrobat 9"
    http://w1000.mv.us.adobe.com/cfusion/event/index.cfm?event=list&type=ondemand_seminar&loc= en_us
    Have your Adobe ID in hand. Tug on the link, sign in with your Adobe ID.
    Page opens telling you that the Adobe Acrobat Connect Pro Add-in is opening the meeting room (launch of the recording)
    Recording appears in a separate window. If add-in not installed, dialog present to let you install it.
    Ancilliary documentation.
    http://www.adobe.com/accessibility/products/indesign/
    Link to use: "Creating Accessible PDF Documents with Adobe InDesign CS4 (PDF, 292k)"
    http://www.adobe.com/accessibility/pdfs/accessibledocswithindesignCS4.pdf
    If your document is authored in Publisher be sure to use Adobe PDFMaker, configured to support accessibility, to provide your initial tagged output PDF. Then, with Acrobat Professional, perform the requisite manual edit of the structure tree.
    Something else to look at.
    For multi-column PDFs you can manually establish Articles & Article flow to walk a column's thread through pages.
    See Acrobat Help.
    Be well...

  • How to define default option in query page

    Hi,
    Does anyone know how to change the default value from "matches" to "Substring" in search page?
    Thanks.

    In config.cfg:
    DefaultSearchOperator=hasAsSubstring
    DefaultNBFieldSearchOperator=hasAsSubstring
    Restart the server.
    (It is worth noting that in 10gr3 since database search is the default they changed the out of the box operator to matches to make sure performance was as good as possible.)
    Hope that helps,
    Andy Weaver - Senior Software Consultant
    Fishbowl Solutions < http://www.fishbowlsolutions.com?WT.mc_id=L_Oracle_Consulting_amw >

  • How to define TX_SERIALIZABLE isolation level for a CMP EJB

    Hi JDev Team,
    I have created a portable Primary Key Generator realized as a CMP Entity Bean which
    has a method getNEXTID().
    This method returns a PK from a table
    and increments it by one.
    My question is:
    How can I set the transaction isolation level of getNEXTID() to TX_SERIALIZABLE in order to avoid phantom and dirty read problems?
    Best Regards,
    Stoyan K.

    Assuming you are using the bc4j cmp implementation, the default for isolation level is TX_READ_COMMITTED so I don't think you run the risk of phantom or dirty read.
    Unfortnately as of now this property cannot be specified declaratively.
    It looks like you want to run the getNEXTID() with the RequiredNew transaction attribute.
    null

  • How to define on cell-level: ready for input or not?

    Hello,
    we would like to define on each cell of a table if it's ready for input or not.
    Not only rows or columns should be marked as input-ready but single cells.
    E.g. The user should be able to say A2 is ready for input, B3 ist not.
    Thank you,
    Daniel

    Hi Daniel,
    I can not imagine such a function.
    What is possible, is that you define the data slices according to what you want to be able to enter. so if you include several char with certain values in your data slices, your mask in the end will have the look, that certail cells are not ready for input.
    Unfortunatly you can not set data slices on key figures, so maybe you need an account model.
    regards
    Cornelia

  • How to define a process level constant to be used inside a BPM Object?

    I need to define a constant with the name of the process of the instance that it is executing.
    I have a BPM Object that it is shared with multiple processes.
    Inside that BPM Object I have a method that needs the name of the process it is running.
    Is there any way to define a constant visible anywhere in the process? By anywhere I mean inside an BP-Method, not in an Automatic Activity.

    Not sure if this what you're looking for, but in a samples project named 'ExpenseReimbursement' there is a way to set and get global Process Options.
    It might not be suitable for your problem (and maybe not the cleanest solution), but such a setup might be used to construct a globally available variable.
    Kind regards,
    RL

  • How to set up Application specific custom ogoff (sign-off) page.

    Hi,
    I'm using OracleAS 10.1.2.2
    Note 333638.1 shows us how do make a custom SSO login page to be application specific. This works.
    Now, I want to do a custom SSO logout (sign-out) page. Using the redirect method described does not seem to work. Please note that in our version 10.1.2.2, there is no default logout.jsp page in the /sso/jsp directory. To deploy a custom logout page, I would need to update the WWSS_LS_CONFIGURATION_INFO$ view.
    I was able to test a custom SSO logout.jsp page sucessfully. However, when I tried using a redirect_logout.jsp to make it application, it no longer works.
    Does anyone know or have any idea on how to deploy an application specific logout page? (i.e. only specific applications uses the custom logout page, otherwise go to the default one).
    Thanks.
    - Kevin

    Well,
    There are 5 choices to choose from on the page. In the description of the choices at the bottom of the page there are 7, and the two additional choices talk about having to first have registered the site with SSO. So...I'm interpreting that as meaning that other 2 possible choices would be displayed if the site is registered with SSO. That, plus the fact that the page which describes how to add the site to SSO seems to think that the SSO choices are displayed in the wizard.
    So, no, there's no "exact launguage" that says what the reason is for the choices not being displayed. Can you point me to some exact language that tells me how to get those choices displayed?

  • Adding pl/sql expression to application level item

    I would like to have an item shared by all pages within my application. My understanding is that I can define an application-level item for this.
    I know that for page-level items I can pool a value from the database by putting a pl/sql function into the item's "source value or expression" field and by setting the source type to "pl/sql expression or function".
    But I cannot do that for an application-level item. In fact, when I create my application-level item, the properties screen of it has pretty much nothing available to configure. It only has Name, Security, Build Option and Comments.
    Please, advise on how I can pool a value from the database for an application-level item.
    thanks
    Boris

    Boris,
    Application-level items are items that do not get rendered in HTML. They are for keeping named values in session state only and are available for use throughout the application. However, all page items are available for use throughout the application.
    What do you mean by "I would like to have an item shared by all pages within my application. "? If you want an item that gets rendered on every page, create a page 0 and put regions/items on that page.
    I don't know what you mean by "pool a value from the database".
    Scott

  • Reference application item from page template

    Hi friends,
    How can refere to application item from page template (i.e. one level tab).
    set or get value from application item.
    thank you

    Alaa,
    If the item name is X put &X. in the template. Don't forget to use upper case and provide the trailing period.
    set or get value from application item.
    That is not a complete sentence, please clarify.
    Scott

  • How to customize the Application Express Homepage

    Would like to know how to customize the Application Express Home Page that user goes to when they login to APEX. Specifically, I'd like to present a SQL Workshop only Home Page by disabling the "Application Builder" and "Utilities" icons/tabs. So the idea is to have another class of user "SQL Developer" that has access to the SQL Workshop only functionality. Any suggestions on how to do this is appreciated. Thanks.

    Hi John,
    Thanks for the reply. That's unfortunate. Do you have any suggestions on how I might be able to mimic this functionality? Maybe develop another app that has only SQLWorkshop capabilities and redirect users to that app after login? Any idea on if this capability might be available in the future? Thanks.
    Will

  • How to reference page attributes (e.g. name) in application level process

    How can I access the NAME of a page while in an application process? Is this possible, without setting some sort of app-level current page name variable? (Which would defeat the purpose of the app level process :)
    Thanks,
    Carol

    When an application process runs at a firing point other than On Demand the current page name can be obtained using this SQL:
    select page_name from apex_application_pages where application_id = v('APP_ID') and page_id = v('APP_PAGE_ID');
    When an application process is invoked "On Demand" by way of AJAX, the page ID in the request is usually 0, so there is no page context available. However you could pass an item name/value into these requests and use that item value in the query against apex_application_pages.
    Scott

Maybe you are looking for

  • How to upload a video on Keynote since IOS 8

    Since the IOS 8 update I have not been able to find my videos to add to a presentation. Before the update all videos were in the 'media' section of Keynote app but now it just shows 'Photos'. The 'Video' file is synced in the same file as all the pho

  • What Version Do I have?

    How do i figure out the version of my WRT54GS? Thanks!

  • How to - user profile migration 6.0 -- 6.0

    How to - user profile migration 6.0 --> 6.0 We have an existing 6.0 portal deployed to a fairly large number of users internal to our company. We have been activly developing for our next release which includes tabs and a few new custom providers and

  • REP-1212: Object  is not full enclosed by its eclosing object body

    hi am in oracle report 11gR2 am geting this error when running my report REP-1212: Object  is not full enclosed by its eclosing object body

  • Best Access Method and Estimated Performance

    Dear folks, I'm new to BDB. Although I have read all the documentation and the DS Presentation from Margo, I would like to ask your help to tunne my db layout. I have to index 1 million key/data pairs in wich key is a logical number and data is 256 l