Error in replacing script in the editing page properties of Oehr_Depatment sample

Hi Forum,
I downloaded and imported the Oehr sample objects to repeat tutorials. The tutorial instructed me to scroll to the Source on the Region Definition page and replace the content on the Department report region (i.e.
select
"DEPARTMENT_ID",
"DEPARTMENT_NAME",
"MANAGER_ID",
"LOCATION_ID"
from   "OEHR_DEPARTMENTS"
where
instr(upper("DEPARTMENT_NAME"),upper(nvl(:P2_REPORT_SEARCH,"DEPARTMENT_NAME"))) > 0
with:-
SELECT d.department_id "Department ID",
d.department_name "Department Name",
count(e2.employee_id) "Number of Employees",
substr(e.first_name,1,1)||'. '|| e.last_name "Manager Name",
c.country_name "Location"
FROM oehr_departments d,
oehr_employees e,
oehr_locations l,
oehr_countries c,
oehr_employees e2
WHERE d.manager_id = e.employee_id
AND d.location_id = l.location_id
AND d.department_id = e2.department_id
AND l.country_id = c.country_id
AND instr(upper(d.department_name),upper(nvl(:P2_REPORT_SEARCH,d.department_
name))) > 0
GROUP BY d.department_id,
d.department_name,
substr(e.first_name,1,1)||'. '||e.last_name, c.country_name
Unfortunately, I am not successful. Instead the following error message:-
1 error has occurred
Query cannot be parsed within the Builder. If you believe your query is syntactically correct, check the ''generic columns'' checkbox below the region source to proceed without parsing. ORA-00907: missing right parenthesis
Please can anyone help me correct where the error is?. I am using 2Day + Application Express Developer's Guide.pdf (page 38)
Regards
Godis-Tei
Message was edited by: Godis-Tei

Hi Forum,
I downloaded and imported the Oehr sample objects to repeat tutorials. The tutorial instructed me to scroll to the Source on the Region Definition page and replace the content on the Department report region (i.e.
select
"DEPARTMENT_ID",
"DEPARTMENT_NAME",
"MANAGER_ID",
"LOCATION_ID"
from   "OEHR_DEPARTMENTS"
where
instr(upper("DEPARTMENT_NAME"),upper(nvl(:P2_REPORT_SEARCH,"DEPARTMENT_NAME"))) > 0
with:-
SELECT d.department_id "Department ID",
d.department_name "Department Name",
count(e2.employee_id) "Number of Employees",
substr(e.first_name,1,1)||'. '|| e.last_name "Manager Name",
c.country_name "Location"
FROM oehr_departments d,
oehr_employees e,
oehr_locations l,
oehr_countries c,
oehr_employees e2
WHERE d.manager_id = e.employee_id
AND d.location_id = l.location_id
AND d.department_id = e2.department_id
AND l.country_id = c.country_id
AND instr(upper(d.department_name),upper(nvl(:P2_REPORT_SEARCH,d.department_
name))) > 0
GROUP BY d.department_id,
d.department_name,
substr(e.first_name,1,1)||'. '||e.last_name, c.country_name
Unfortunately, I am not successful. Instead the following error message:-
1 error has occurred
Query cannot be parsed within the Builder. If you believe your query is syntactically correct, check the ''generic columns'' checkbox below the region source to proceed without parsing. ORA-00907: missing right parenthesis
Please can anyone help me correct where the error is?. I am using 2Day + Application Express Developer's Guide.pdf (page 38)
Regards
Godis-Tei
Message was edited by: Godis-Tei

Similar Messages

  • Error comes while using calender in Edit Page? BUG ???

    Hi
    I am using Jdeveloper 9.0.2. My project is a BC4J project. I have created some default Browse and Edit Form on a View Object. In the Edit page when I am entering date using the calender I am getting the following error:
    " Error Message: No rows available for editing. "
    But if I am giving date manually, everything is fine.
    Please help me.
    - Arvind

    Repost

  • HI .. PROBLEM IN SUBMITTING THE EDITED DATA FROM THE EDIT PAGE

    HI,
    I am having a Main form consiting of a af:table which is binded .. so when i select the row and click on "edit" button binded with the table.. i am able to get the respective data form in the Edit page.
    Now when i modify any data in the binded textbox ..... and when i submit the form the "row currency change error " is displayed...
    Plz help me how to solve this problem.....

    Hi,
    so you have a table, select a row and navigate to an edit form. Inhere you change the data displayed and press submit to navigate back to the table. On otn.oracle.com/products/jdev this scenario is available in the OBE (Oracle By Example) if you need a sample.
    What you should try is to open the pageDef file in the StructureWindow, select the iterator, e.g. DepartmentsIterator, that populates the table and open teh Property Inspector. Under "Refresh Condition" set ${!adfFacesContext.postback} to avoid the table being refreshed on JSF postback
    Frank

  • Staying on the edit page after posting

    There's something that I can't get to work and probably is not difficult at all.
    I want users to stay on the editpage after posting the form.
    I thought to do it in the processEdit method.
    By creating an url and give this as a return value. But I keep comming back to the default portal page.
    My users can go to the edit page of a channel. On the editpage I have made a telephonebook in which the users can search.
    The intention is that the users see their results on the edit page and they can select some of the results.
    my code (which doesn't work):
    String url = request.getRequestedURL().toString();
    URL editpageURL = new URL(url);
    return editpageURL;

    I use the following piece of code to display error messages on the edit pages and to redirect to the user back to the same edit screen. It has been working for me for quite a while.
    desktopUrl = context.getDesktopURL(request);
    containerName = request.getParameter("containerName");
    provider = request.getParameter("editChannelName");
    targetprovider = request.getParameter("provider");
    if (log.isDebugEnabled()) {
    log.debug("desktopUrl: "+context.getDesktopURL(request));
    log.debug("containerName: "+containerName);
    log.debug("provider: "+ provider);
    log.debug("targetprovider: "+ targetprovider);
    log.debug("errorMessage: "+ errorMessage);
    url = new StringBuffer();
    url.append(desktopUrl);
    url.append("?action=edit");
    url.append("&provider="+provider);
    url.append("&targetprovider="+targetprovider);
    url.append("&containerName="+containerName);
    if (errorMessage != null) url.append("&error="+URLEncoder.encode(errorMessage));
    if (log.isDebugEnabled()) log.debug("errorUrl: "+ url.toString());
    url = new StringBuffer(context.encodeURL(url.toString()));
    errorUrl = new URL(url.toString());
    return errorUrl;

  • Unexpected error present when getting into the Troubleshooting page

    Hi, I'd like to figure out what's happening with my WRT1900AC, as well as with my Smart Wi-Fi App (version 1.7) . There is always an unexpected error present when getting into the Troubleshooting page. It would be appreciated if you have any suggestions for fixing that. Below is about my mention. Thank you!1. The firmware in my WRT1900AC.2. Steps to see an unexpected error with Smart Wi-Fi App.

    @angus19 Power cycle the router. You may also try to access your Linksys Smart Wi-Fi account using a browser and check if you’re getting the same error message. If all else fails, reset and reconfigure the router.

  • HT1918 I have Edited my account details and have a message on the Edit page "Please Contact i Tunes support to complete this transaction" ?

    I have Edited my account information on the Edit Page and have a message;
    "Please contact iTunes support to complete this transaction"
    Anybody have any idea ?

    And have you done as requested and Contacted Support...?
    See Here for Contact...
    http://www.apple.com/support/itunes/contact.html

  • Synchronizing the Edit Page based on four columns

    I am using ADF BC and JSF . i am getting problem in Synchronizing the Edit Page
    While navigating to edit page it gives first record of the table . the record which i want to get is based on four different columns and not on primary key. how can i set the record to be edited based on these four columns whoes value is stored in session bean.
    thanks in advance

    Hi friends,
    Maybe it is better that i ask:
    How i can set a ViewObject current row to an specific row on page display?
    for example when my page display i need to set its current row to another row.
    e.g:
    servicesView.setCurrentRow(myOwnRow);but i want this code to execute when my page is shown, where i write the code?

  • Stay on the edit page once saved and see the record as a table

    I like to click on the edit of an interactive report to go to the edit page.
    Once in the edit page, I like to see not only the form to edit the record but also
    the record as a table to see what the record looks like once the save button is clicked below the edit form.
    Thanks.

    Look at the page branches. There will be one or more which goes to the first page. Change it to go to the current page instead of the first page.

  • I double-click on event  to see all the photos in that event displayed, but all I get is 1 large photo on the edit page.  To see the photos in that event, I have to scroll.  Need to be able to work with all the photos in that event, not one at a time.

    I double-click on event  to see all the photos in that event displayed, but all I get is 1 large photo on the edit page.  To see the photos in that event, I have to scroll.  Need to be able to work with all the photos in that event, not one at a time.

    Maybe you need to adjust the zoom slider in the lower left corner of the window?
    Regards
    Léonie

  • HT202159 Error message while downloading. :Compressor Failed to Download. An Error has occurred. Use the Purchases page to try again." After retrying, I receive same message.

    Error message while downloading. :Compressor Failed to Download. An Error has occurred. Use the Purchases page to try again." After retrying, I receive the same message. I have uninstalled compressor and tried again. I get same results.

    Anti-viral siftware and firewalls can interfer with the MAS.

  • Error Message received when trying to edit page

    I have received this following message when trying to edit a site page in SharePoint or in SharePoint designer. I haven't ever seen this error message before and am not really sure what the issue is. I am not the owner of this
    particular site but merely an owner of a specific page on this site so I am limited in my ability to troubleshoot but the actual owner is stuck on what the potential issue is and how to resolve this. I manage and own three seperate sites myself and have never
    seen this issue so I am trying to assist in any way I can.  Any ideas whats the issue?
    Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(),response filters, HttpModules,
    or server trace is enabled.
    Details: Error parsing near '
    <!DOCTYPE html PUB'.

    Hi,
    We need more information of the issue page. As suggested by Mokhtar, you could check if the issue is related to permission.
    The issue might also occurs to the page which is developed based Ajax registration. Then it might be caused by AAM configuration.
    And you could also refer to the link below if the issue is related to SSRS:
    http://blogs.msdn.com/b/sowmyancs/archive/2012/07/10/ssrs-javascript-error-sharepoint-sql-reporting-services.aspx
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Error when using PPR in the OA page developed.

    HI,
    We are encountering an error when using PPR for the custom OA page being developed. I am using JDeveloper version 9.0.3.5(Build 1437) and Oracle Applications version 11.5.10.CU2. The scenario we are using PPR and the steps to reproduce the issue is mentioned below,
    Scenario:
    1) PPR is enabled for a custom OA page that is developed.
    2) The PPR is being used to enable or disable a particular field based on the
    selection of a value in a poplist in the same OA Page.
    Error replication steps:
    1) The user enters a value in the primary mandatory field which has to have
    unique value.
    2) The user selects a value from the poplist of a field which has PPR associated.
    3) The user enters data in all other mandatory fields in the OA page except one
    and tries to save the form and is shown a error message saying that all
    mandatory fields are not entered(This is correct). Now the page gets
    automatically refreshed and so the entered values are wiped off.
    4) Now if the user again enters a value in the primary mandatory field (as in
    step1) and if that value happens to be already existing value and then select
    a value from the poplist which has PPR enabled then immediately the error
    "Please enter a unique value" is entered, though we did not save the record.
    The unique record validation would happen only at the time of saving the
    record as per out business logic.
    5) But if in Step 4 if i had entered a unique value again then the above said error
    does not happen. There are few more similar kind of issues happening in the
    same page because PPR is enabled.
    Please note that this issue happens only when the page is deployed in a oracle
    applications instance and not in JDeveloper.
    Would this issue because of some cacheing problem? If Yes then how do we resolve it? Or would it be some other problem caused by our internal coding.
    Any inputs for resolving this issue would be highly appreciated.
    Thanks, Raja.

    What works in Jdeveloper should work when deployed in iAS as well.
    And PPR is an old feature given quite enough time to mature, so before we suspect OA we should investigate the code. What I do not understand is how the page refreshes in Step 3 and why does the user have to re-enter the fields just because he missed entering one mandatory field the last time.
    Mandatory field validations are client validations set by making the fields 'Required'. You obviously have client validations turned off on your PPR, otherwise you would be stuck with a javascript popup on PPR. The only way you can get the "Please enter unique..." error on PPR is Server Validation. So where have you placed this validation? If it is not in the EO, is it in the AM? And are you unconditionally calling the AM validation method in your processFormRequest? The PPR will also go through processFormRequest so I hope the PPR event is in a different if-else block.

  • How to include the Java Script in the Framework page

    Hi,
      I need to include the javascript in the framework page.
    If possible , how to do that ?
    Thanks in advance,
    Saravanan Dharmaraj

    Hi,
    I have included the javascript in my JSP pages as follows.Please try the same for your framework page.
    <script Language="JavaScript"
    src="<%=componentRequest.getWebResourcePath()%>/scripts/Timesheet.js(name of the javascript file)"></script>
    The javascript file is stored in the scripts folder.
    Thanks and Regards,
    Sanad Suman

  • Error when trying to  dispay the web page

    java.lang.NullPointerException
         at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:683)
         at javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:591)
         at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:478)
    any help would be appreciated

    Does this error happen for all your web pages or just one web page.
    If it just happens with a certain web page, what is different about it?
    Is it a page that you created with an earlier version of the IDE?
    Sometimes in the stack trace that you cut the error msg from, there will be entries for the web page itself. Did you search through the whole set of stack traces to see if it identified an errant line in the .java file for the web page?
    Can you put log("some string") statements in your .java source and view the log to determine when and where the problem is happening?
    Have you tried the debugger? See http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/debugging.html

  • Undo change button on the edit page

    I have an edit page that when the user click the edit icon, they enter this edit page.
    So it is here where they can make changes to the data for that row.
    APEX automatically created a button for Cancel, Delete and Submit.
    If the user make changes and goofed in the changes so much that the user wants to start over again but to the way it looked before they made changes on this edit page. So to do this I like to have a start over button or reset button to accomplish this either by altering the Delete button or start with a new button.

    Hello,
    You can create a RESET buttonm, which clears the cache of that particular page, mean all the itmes on that particuar page will be reset.
    And if the changes had been made to database, then you can have the previous values in your variables, and on RESET update the database with variable values.
    Bhanwar

Maybe you are looking for

  • How to use one query against multiple table and recieve one report?

    I have duplicate tables, (except for their names of course) with commodities prices. They have the same column headings, but the data is different of course. I have a query that gives me a certain piece of information I am looking for but now I need

  • Systematic import of library when starting itunes 6.0.1.3

    well, I am using windows 2000. I have 7.5GB of music stored in itunes and for some reason itunes imports the library every time I launch the software; Every time I start itunes I get a message saying that "itunes library.itl" does not seem to be a va

  • Slow Initial ReportDocument.Load & Creation Of *.rptConMgrCache file

    Problem Description We have a .NET reporting application that utilizes CrystalReports (assembly version 12.0.2000.840) to render about 10 different reports. When loading a particular report template (*.rpt) using ReportDocument.Load, we have noticed

  • HP Pavilion TouchSmart 14-b109wm Sleekbook will not boot up

    My HP Pavilion TouchSmart 14-b109wm Sleekbook will not boot up windows. upon power it goes to a blue screen that reads "Recovery" your pc couldnt start properly. Error code 0xc0000185. Youll need to use the recpvery tools on yout installation media I

  • Zen Micro 2.20.05 (Audible) firmware has "battery drain" f

    Since nobody responded to my questions about whether or not the "Audible firmware" for the Zen Micro (2.20.05) also applied the long-awaited "battery drain" fix for MTP/Janus users, I decided to test it myself by upgrading the firmware (even though I