results of the page not allowed - URGENT

Hello

I have a search of certain search criteria 3-4 page wth...

When we enter the search criteria, the results properly...

but we have a need that when we enter any search criteria no results should be retrieved...

Problem now is that suppose I do a ssearch share some search criteria... I get the results...

not if I do a search again without giving any search criteria, it is always get all the old documents of the previous search...

Please let me know how to solve this problem...


IM-paste query here... CO.

Import oracle.apps.fnd.common.MessageToken;
Import oracle.apps.fnd.common.VersionInfo;
Import oracle.apps.fnd.framework.OAException;
Import oracle.apps.fnd.framework.webui.OAControllerImpl;
Import oracle.apps.fnd.framework.webui.OADataBoundValueViewObject;
Import oracle.apps.fnd.framework.webui.OAPageContext;
Import oracle.apps.fnd.framework.webui.beans.OAImageBean;
Import oracle.apps.fnd.framework.webui.beans.OAWebBean;
Import oracle.apps.fnd.framework.webui.beans.form.OASubmitButtonBean;
Import oracle.apps.fnd.framework.webui.beans.layout.OAQueryBean;
Import oracle.apps.fnd.framework.webui.beans.table.OATableBean;
Import oracle.apps.fnd.framework.OAApplicationModule;
Import oracle.apps.fnd.framework.OAViewObject;

Import oracle.cabo.ui.data.BoundValue;
Import oracle.cabo.ui.data.bind.ConcatBoundValue;
Import oracle.cabo.ui.data.bind.FixedBoundValue;
/**
* Controller for...
*/
SerializableAttribute public class XxchrGenPERSearchCO extends OAControllerImpl
{
public static final String RCS_ID = "$Header$";
public static final boolean RCS_ID_RECORDED =
VersionInfo.recordClassVersion (RCS_ID, "packagename %");

/**
* Layout and logical configuration for a region page.
@param pageContext OA page context
@param webBean the grain of web for the region
*/
' Public Sub processRequest (pageContext OAPageContext, OAWebBean webBean)
{
super.processRequest (pageContext, webBean);
}

/**
* How to manage remittances form for form elements in
* a region.
@param pageContext OA page context
@param webBean the grain of web for the region
*/
' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)
{

super.processFormRequest (pageContext, webBean);

OAApplicationModule am = pageContext.getApplicationModule (webBean);
OAViewObject vo = (OAViewObject) am.findViewObject ("XxchrGenPERSearchVO1");
OAQueryBean queryBean = (OAQueryBean) webBean.findChildRecursive ("ResultRN");

String idGo = queryBean.getGoButtonName ();

Go OASubmitButtonBean = (OASubmitButtonBean) queryBean.findChildRecursive (idGo);

if(Go!=null)
{
String Firstname = pageContext.getParameter ("Firstname");
System.out.println (FirstName);
System.out.println (PageContext.GetParameter (queryBean.getGoButtonName ()));

String Lastname = pageContext.getParameter ("Lastname");
String Preferredname = pageContext.getParameter ("Preferredname");
String Emailaddress = pageContext.getParameter ("Emailaddress");
String Empnumber = pageContext.getParameter ("Empnumber");

If (FirstName.Equals("") & & Lastname.equals("") & & Preferredname.equals("") & & Emailaddress.equals("") & & Empnumber.equals(""))
{
OAApplicationModule am = pageContext.getApplicationModule (webBean);
String message = "Atleast a search criteria should be entered" + "!";
throw new OAException (message, OAException.INFORMATION);
}

VO. ClearCache();


}

am.invokeMethod ("refresh");

} //If
}


Kind regards
Preeti

Hopefully this code will help you get no data when the parameter is null. You should check these null avoid
NullPointerException.

If (FirstName.Equals("") & Lastname.equals("") & Preferredname.equals("") & Emailaddress.equals("") & Empnumber.equals(""))
{

headerVO.clearCache ();
headerVO.setWhereClause (null);
headerVO.setWhereClauseParams (null);
headerVO.setWhereClause ("1 = 2");
headerVO.executeQuery ();
}

Thank you, Ronald

Tags: Oracle Applications

Similar Questions

  • Apply the condition on the page to allow access if Javascript is enabled

    Hi, is there a way I can put a condition on the page to allow access allow access only if java script is enabled?

    I have a heavy use of Javascript to calculate different values in a page and want to ensure that if Javascript is not enabled in the browser they do not get to use the page.

    Using Apex 4.1.1

    See you soon.

    Xrc xarg wrote:
    Hi, is there a way I can put a condition on the page to allow access allow access only if java script is enabled?

    I have a heavy use of Javascript to calculate different values in a page and want to ensure that if Javascript is not enabled in the browser they do not get to use the page.

    APEX is JavaScript-dependent, it is unlikely that users will even be able to log in and access this page, unless you already take steps throughout the application to allow it to work with JS disabled.

    Also note that for security reasons all depends on the JS in the browser must be verified on the server when the page is sent.

  • Hidden entry point causes the Page not found error

    Hello.

    I use Apex 4.1.0 on Oracle 10.2.0.5 and mod_plsql (Oracle application server).

    I created an application with two tabs.

    On one of the tabs in a block of Annonymous PL/SQL, I have the following code:
    begin
      htp.p('
    <!DOCTYPE html>
    <html>
    <head>
    <title>AMO PROPOSAL CHECKLIST</title>
    </head>
    <body>
    <h1>AMO PROPOSAL CHECKLIST</h1>
    <form action="" method="post">
    <input type="hidden" name="FS-1" value="1" />
    text2<label for="C12" class="hideMeButHearMe">text2</label><input type="text" name="f02" size="20" maxlength="12" value="" name="TEXT-Q12" id="C12" />
    My Question
    </form>
    </body>
    </html>
    ');
    end;
    When I run this page, the HTML code is rendered correctly.

    However, if I then click the other tab, I get the error: Page not found.

    I've narrowed the problem to the inscription of this point of entry hidden: < input type = "hidden" name = "FS-1" value = "1" / >

    If I simply delete this hidden, switch to another tab throws any error.

    I ran this page using Firefox with Firebug. But does not help me understand why this hidden item throws the error.

    Anyone know why this is happening?

    EEG wrote:
    Hi, fac586.

    Well, today the good folks at Oracle/Apex unlocked my account apex.oracle.com and so, was able to connect.

    I created a new application:

    Workspace: EEG
    Username:   [email protected]
    Password:   galaxy (Note: all lowercase)
    
    App Id: 28044 (Name = Debug Page Not Found Error)
    

    I created a new user of fac586 , so that you can follow what I've done through the activity if necessary log...

    The application uses the same theme (Sapphire, #17). Page 1 contains a region PLSQL Annonymous Block in which I simply preprogrammed the exact same HTML code that throws the error "Page not found" that started this post. The other page is just a page of report.

    When the application runs, page 1 immediately appears with the HTML code. However, by clicking on the 'Report' tab (for the 2nd page) get the Page not found error.

    If you have time, I'd appreciate it if you could kindly look at what I've done. It would help to understand if you can translate essentially advice you have already posted to what is shown in this sample application.

    After seeing what you do more in detail I am now actually suggesting a completely different approach ;-)...

    Given the potential duration visualized forms and the obvious importance of the applied CSS, preview style has really come in the form of a separate document. (As noted above, you can not have more than one element html, head and body in the page and that and the CSS that you attempt to register is completely destroying the presentation of the APEX on page 1.)

    Therefore, I want to say now is made the preview in a separate document in an iframe within an HTML region, as illustrated on page 3:

    
    

    Document source is a process on demand in your application from which you can call a procedure that returns the HTML survey form. The iframe is automatically sized to display the complete form.

    You still need to take measures for the visualized form either by ferry to sand/locked so that it can be made: it is the case in the examples the measure where there is no form action and no submit button, but it is unclear if this is indeed the case in your application?

  • How can foot to foot of page/post-it page not allowing me to adjust the minimum pixels less than 2777 excesses, I fix?

    The footer is to give unnecessary extra space under my content.


    I have already tried:

    • Sticky foot
    • Duplication of documents and pages
    • Removal of masters and setting pages
    • Looking for invisible elements that may be binding
    • Master Page setting
    • Looked around the forums

    In addition, the foot is stuck at brand 2777 pixel to a minimum, regardless of the settings of the Master Page. In fact, my master page is about something around 500px.

    Any help in the right direction would be much appreciated. Thank you.

    The problem was solved!

    The page has been corrupted, so a new page has been created and the content has been copied.

    My thanks go to the support team.

  • Height of the page not automatically adjusts when the drop down menu expanded

    Using Adobe Muse CC 2015 on a Mac, I created a Web page for my company (www.unafilm.de).  I used a horizontal menu in the master page to the layout of the pages of the subsites (news, movies, about, contact, etc.) to visitors. Everything works well except a menu items which is supposed to display an another 25 points / subpages.  They expand nicely, but I can show all because the height of the page does not take into account the length of the drop-down list. So, I can only see subpages on this particular menu point that allows at the height of the page. The page does not extend and I can also not scroll down.  No idea why? Thanks in advance.

    Is nothing, that you can change. It is simply how browsers work. Unless you want to annoy your customers with a browser window resizing script (bad idea), the window is not adapt. 25 menu entries using is perhaps not the best idea at first, anyway.

    Mylenium

  • Someone at - he managed to get the "page not available" message when you try to download apps?

    I recently joined the Adobe Creative cloud, but when I try to download one of the applications I get a blank page with the message "page not available", I tried both THE 11 and 14 of Chrome, both with the same results. I've also temporarily disabled firewall/scanner virus and anti spam, but without result. I use the optimized UK Server?

    I think it's due to the interruption of the Adobe server / comms reset

    Any ideas?

    David UK

    I have not seen other reports of this problem.

    I suspect that you have a local network problem.

  • Rotating pages - not allowed in a document that is not secure

    I am running Adobe Acrobat 9.1.3.  I would like to turn the pages of the paper 180 degrees.

    When I select the pages in the display of the page, or use the menu document, "Turn the Pages" option is not available for me. (he listed, but grayed out in the menu document).

    When I look at the security options of the document, it is set on "no security" and all listed is "allowed".  I have no available options to change anything on this page.

    The document was initially presented as a version of PDF/A - I removed this information in the file using the preflight.  It still does not work.

    Any ideas?

    In preferences, set the entry 'See mode PDF/A documents of the United Nations' to 'never '.

  • Permanetely avoid pop bing upward at the bottom of the page, not just close every time that the page is re-open.

    I hate this F * KIN bing pop up at the bottom of the MSN.com page and you want to permanently delete it, not just 'close' every time that the page is re-open. I have Windows 7 and would like to know how to do it. I'm not familiar with how to change the script or procedure to do. I Ad Block more and do not know what line of 'block' in filters. Help!

    I use Firefox 21.0 and like MSN.com (except the cursed bing pop up) as home page.

    The site requires cookies to store your preferences. If you accept cookies from msn.com, then the search bar disappears for good after clicking on the link close [x] .

    If you want to block the search bar in Adblock Plus, put the following filter group "My masking Rules.

    msn.com##div#ls1[class="co4b2 cf co coa2 coc1 m3  ls1"]
  • Google search results on the page with "(function(){}) (;(function(){})()');"

    Installed FF9.0.1. I type a word in the google search bar and results. When I select 'shopping' from the left navigation, it flashes the results and then refreshes instantly to a white page with this in mind: (function() {}) ();(function(){})();

    The same thing happens if I click on 'News' and 'Videos' of the NAV. However, if I click on 'Images' and 'Maps' it works fine and load the corresponding Google search results. The url below is a search for 'test '.

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Tools > Options > privacy > Cookies: "show the Cookies".

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • Results of the stage not listed is not in the report

    Hello. New to TestStand. I appointed a string value test which compares the serial number USE by using RunState.Root.Locals.UUT.SerialNumber. However, when the report is generated, I don't see any results of the step. This only happens with this sequence and not with any of the tutorials. Can someone point me in the right direction for that. Thank you.

    go to Edition > sequence properties...

    Uncheck the box that says: disable result record for all stages

    Not sure how that checked, but it shouldn't be for MainSequence.

    Hope this helps,

  • Log on to the method not allowed on this computer

    original title: Error Window Vista.

    You cannot connect because the logon method, you use is not allowed on this computer. Please, see your network administrator for more information. This is the response I get when I try to log on my Windows Vista computer on a domain. I removed all the newspapers deny on policies affecting the comments. Always the same. Can anyone help.

    Hello

    I suggest you to ask your question at the following link.

    http://social.technet.Microsoft.com/forums/en-us/w7itpronetworking/

    I would also ask you to contact your IT Department.

  • Send list drop-down page or a link in the page not activated

    By clicking on the Page button and access the drop-down list the link send the list and send the page options are not enabled. I can add to the toolbar, but why they are not activated as they once used to be?

    By clicking on the Page button and access the drop-down list the link send the list and send the page options are not enabled. I can add to the toolbar, but why they are not activated as they once used to be?

    Just in case, please check if Internet Explorer has all its flaws.

    t-4-2

  • Page not allowing transparency master items no display

    I'll implement a model of our company newsletter and have put teachers, etc.. Tab Pages, the first spread (C-Back and Front (A) shows the icons on page with transparent (clear and grey boxes) while the second broadcast (B-inside) shows blank page icons. When I consult the C and a page, the master page items is displayed correctly, but to pages B, master items are not displayed. If I ask the master for A or C to B pages, then transparency is very well and master items appear, but when I re - apply the master B, none of the masters show. I start with one of the templates provided with InDesign, Newsletter3, containing the B of pages showing transparency if obviously it's something I've done, but I don't know what or how to fix it. Any help would be appreciated.

    It's in InDesign CS2.

    icontrans.jpg

    Hey riggsdar1,

    icon transparency should not have anything to do with it.  That just shows that you have an object any on this page which has a transparent filter or it mix put on it.  could you explain more about the way in which you set up your master B.

    One thing, you should check out: funny to your pages.  You should have facing pages running with this model.  Go to file > Document and make sure facing pages is checked.  Looks like you have applied on the right of the B-inside spread page, which I think is empty.  The angle of the page in your control panel should be facing inwards as well as on your master spread.  Let me know if I'm not being clear.  Best

  • Models don't update the pages. Need urgent help!

    Hi, I recently had a problem with my models (nesting error of editable regions) here is the link to my previous post. Here

    So I put to update my models with my file "mockup.php" now when I try to update my pages through my templates, that is what is happening.

    I save my template and it came with this box:

    http://i47.Tinypic.com/1t7zu9.PNG

    I click on "Update" and get this:

    http://i47.Tinypic.com/34rwyfo.PNG

    But it is not actually update the pages.

    Is there a way to fix this without rebuilding the entire site?

    Thanks, MissileMoose

    You update an editable?

  • How tp print records copied on the table of the results of the Page Framework OA?

    Hi all

    I've set up a search page. When I search according to certain criteria, it displays the records in the table of results page.

    Now, I want to print the records displayed in the page.

    Please can someone help me on how to print the records using the print options.

    Thank you

    Srinivas

    Published by: SrinivasChanda on October 6, 2009 23:49

    Hi Steven,

    Use the printable page in the OPS.

    Please visit: http://oraclearea51.com/oracle-technical-articles/oa-framework/oa-framework-beginners-guide/214-printable-page-in-oaf.html

    Kind regards
    Out Sharma

Maybe you are looking for