Customizing Query Usage form - Urgent
Hi,
Is there any help topic on customizing query usage form. Could someone tell me how to change the Label of the columns that are used for search criteria. Changing the labels in attribute property is helping in Browse form but not it in Query form.
Thank You
Sirisha
please help me to solve the issue...
Similar Messages
-
Link Of a Standard Form to a Custom Form --- Urgent !!
We are in apps version 11.5.10.2. The Client has custom payslip form suited to their requirement. Now they want a little enhancement feature in the Custom Form.
The custom pay slip form can be queried by employee number. From then you can get the appropriate payperiod where you can navigate to any of the pay periods and view the payslip for that period.
Now they want to add a button to the custom form so that on the click of the button the element entries form for the respective pay period is opened. Now we have added a button and gave the reference to the standard form. We do not know exactly how to reference the exact period entries and for the same employee number. Currently it is poping a find window asking the employee number.
Form gurus...please throw ur light on this ...awaiting ur replies and suggestions.do they want to see the element entry form (so Read Only), or do they want to kick off transactions into that element entry form?
When Read Only, you can use also the Element History folder, or a custom subform, based on the element entries view.
If not, you have to rework your original custom form, so that she is TaskFlow compatible, and then inheritance should take place by itself. -
Hi there,
I want to create custom query button in a Portal Application form component in 3.0.9. How do I do this? I need to perform a restricted where clause query, therefore the default doQuery option is not sufficient.
Thanks in advance.
JohnHi John,
You can add a new button from the "Formatting and Validation " section by clicking on the FORM+ at the top of all the table fields.You can not do your own where clause as the query is made which includes all the columns of the form as shown on the form .
for your own queries what you van do is that you can leave the field blank if you do not want that field to be added in the where clause.If you want to add the field to the where clause you can use operators (against each field in there text boxes) to make your own where clause.More operators support are supported in the
latest version.
Hope this give you some Information regarding your doubt.
rahul -
Query find form - customized search on a date field
Hi All,
I have a form which has query find behaviour enabled. When the user press on the search(torch light button) The query find form gets opened in a new canvas.
I have a date field on the query find form. The current functionality is that
"The form searches for the exact match on the date" but I want to have the results which satisfy <= "entered date".
How do I achieve it in Query find form.
Do I need to have the where condition appended in the Pre-Query on the results data block.
Please help me with an example. Thank you.
Srinivasa Mouli
Edited by: 889427 on 4 Oct, 2011 11:43 AMShort of adding your own query extensions, you must pass in a Date
parameter vs some stringified version.
Paresh wrote:
I want to query on a date field as follows
"createDate < '2003-08-20 12:00:00:000' "
createDate has DataType java.util.Date
When I try to execute this query it throws UserException.
If I use a parameter in the query string and pass a date object to execute
method then it works fine.
I just want to make sure that there in no way I can make the first
approach work
Steve Kim
[email protected]
SolarMetric Inc.
http://www.solarmetric.com -
Hi Guys,
I am working on a requirement for manage attachment functionality. But I am facing one issue in one scenario.
From Manage attachment screen, User clicks on Search From Repository and in search page there are some default or hidden fields. Like where author is match with the login user and etc. For Expanded form there is no issue. All the hidden fields are not coming and search result is coming fine. But if user changes to Query Builder Form and manually modify the query then user can see all the content.
So I want to stop the user to show the Query Builder form by which he/she could not modify the query and search. Is there any process by which we can hide the Query Builder Form?
I have seen one Jonathan blog: https://jonathanhult.com/blog/2012/06/remove-fields-from-query-builder-search-form/
But I would like to full hide the form.
Thanks in advance.
Regards,
SantanuHi Guys,
As part of the above solution (DisabledSearchFormTypes=queryBuilder), the query builder form will never appear. Which is not a good practice.
Because for development this is very useful.
My intention was to stop the user access Query builder Form only in Manage attachment screen.
So I have created one custom component which will override the resource : query_page_menus_setup and check the xIdcProfile value.
If IdcProfile is PSFTProfile or EBSProfile then it will not appear.
<$exec rsAppendNewRow("PageMenusData")$>
<$PageMenusData.nodeId = "QUERY_BUILDER_FORM"$>
<$PageMenusData.parentId = "SEARCH_FORMS"$>
<$PageMenusData.label = "wwQueryBuilderActionLabel"$>
<$PageMenusData.type = "item"$>
<$if #active.dpDisplayLabel like ("EBSProfile|PSFTProfile")$>
<$else$>
<$PageMenusData.href = "javascript:switchQueryForm('queryBuilder')"$>
<$endif$>
I think this is really good. -
Custom Master Detail form not working In EBS
Custom Master Detail form not working In EBS
Hi all,
I have two custom tables -- 1) XXX_DIE_Headers
2) XXX_DIE_LINES
I developed a Master Detail form based on above tables. XXX_DIE_Headers is the Master Block (Single record) & XXX_DIE_LINES is the detail block ( Multi line block ).
Yes, I used Appstand,Template.fmb for developing this form. The Master block has three fields out of which Two are required fields and i have given initial value for them.
As i deployed it in APPS(EBS),everything about it is working fine (insert,delete,master-detail behaviour) except querying.
When i press F-11 , It pops up a message "Do you want to save changes you have made" Choice - yes,no,cancel.
I don't want this message to pop up.
The scenario is :- I open the form.( without entering ) Press F11 . The message Pops up.
Please give me suggession on how to work it around so as form directly goes to query mode ,without popping the message.
regards
raviIt seems that you are changing a database value in your form, do you have any changes in WHEN-NEW-FORM-INSTANCE???
what the form is trying to tell you that you have changed something, do you want to save it?
I suggest you debug your form and see what's happening step by step.
Tony -
hii all
i have a form on which i have a customer_name field
it is a non database field
i am getting the value of the customer_name field from customer id .
but the customer _id field is not on the form
i want to query the form based on the customer name
like in the customer_name field i would query 'm%'
but customer_name being non database it is not allowing me to query
please help me to query it if it is possible
thanks in advance
Message was edited by:
bindok mulgaHi,
If U want in Sql Write the query like this :
Select * from Table_Name Where Customer_Name Like 'M%';
Other Wise If U want On Customer_Name Text Write The Query In Post text item of the Customer_Name Like:
I Hope Table Name Is Customer_Dir ,?
Declare
Result Number;
M_Red_Color Varchar2(100) := Get_Item_Instance_Property(:System.Current_Block||'.'||:System.Current_Item, Current_Record, Visual_Attribute);
Begin
If :Customer_Dir.Customer_Name is not null then
:Customer_Dir.Customer_Name := Ltrim(:Customer_Dir.Customer_Name);
Begin
Select Customer_Cd Into :Customer_Dir.Customer_Cd
From Customer_Dir
Where Customer_Name= :Customer_Dir.Customer_Name;
<<M_LOOP>>
Loop
Bscil.Show_Message('Bscil_stop', 'Entry ' ||:Customer_Dir.Customer_Name || ' Does Not Exist. (Please check your entry) ', Null, 'Ok', Null, Null, Result);
If Result = Alert_Button1 Then
Bscil.Set_Item_Color(:System.Current_Block||'.'||:System.Current_Item, 'RED_COLOR');
Raise Form_Trigger_Failure;
Exit M_Loop;
End If;
End Loop;
Exception
When No_Data_Found Then Null;
End;
Else
:Customer_Dir.Customer_Cd := Null;
End if;
If M_Red_Color = 'RED_COLOR' Then
Bscil.Set_Item_Color(:System.Current_Block||'.'||:System.Current_Item, 'WHITE_COLOR');
End If;
End; -
Hi all,
anyone knows if it's possible to extend the maximum length (it seems to be 210 chars) of the data-block mask for customized query? I mean that mask Forms displays when, in enter-query mode, you use '&' to insert particular query conditions.
Thanks,
MarcoI'm not sure.
But one option is to build this mechanism on your own. Just popup a window to get the where clause and then use set_block_property(default_where) to attach it to the block. -
Pagination in toplink using custom query
Re: Pagination using TopLink
Posted: Aug 31, 2006 10:42 PM in response to: Shaun Smith Reply
Hi,
I have my own customer query which is really complex with subqueries,joins,grouping,aggregation in the query etc etc for which I cant use toplink workbench to create a project and do the metadata mapping.
But we need to enable pagination without holding the database resources between customer's page time in the browser.
Is there any provision in toplink to just input the custom query (either statement/prepared statement) and do pagination without holding connection to the database between page time?
The example i got from the link makes use of LogicalCursor/ChunkingLogicalCursor etc.
LogicalCursor cursor = new LogicalCursor(Model.class,null);
for (CursorIterator it = cursor.iterator(session); it.hasNext();)
System.out.println(it.next(session));
Only parameter that is passed to the LogicalCursor is "Model" which is a java object mapped to a particular table.
But we had a java object which should be mapped to the output of a complex query involing complex query and pagination needs to be enabled.
Could you please let us know a sample by which we can do by simply passing the query during the runtime ?It really seems weird.
We followed the toplink tutorial and wrote a servlet FindAddress which on receiving the request
1. instantiates ReadQuery and
2. setreferenceclass to Address.class,
3. setFetchSize(1000) and
4.sets useScrollableCursor.
5. It does session.executeQuery returning a ScrollableCursor.
6. We place the ScrollableCursor in HttpSession
and then redirect the page to viewAddress.jsp which
1. retrieves the ScrollableCursor from the session
2. i=0; while(cursor.hasNext() && i<1000) {
Address address = (Address)cursor.next();
//display via the jsp all these 1000 address objects
3. has a next button when a click on that it again goes to the same page retrieving the next set of 1000 records from ScrollableCursor from the session.
Through out this experimentation I could see the connection is still held. I was expecting that once the page gets displayed for 1000 records and untill you press next, the connection should be handled back to the J2EE application server but still the connection is held .
The logic of setFetchSize as mentioned in the documentation is that after reading the first set of records as per fetchSize ,connection should be returned to the pool and when we do iterator.next() after fetchsize limit, it has to again going to the database and fetch records but it doesnt seem to be.
Could you please help us. This is what we are trying to do as next step and we had been evaluating toplink could be the best choice for our business scneario:
We try to achieve pagination without holding the database resource when the user navigates between paged records.
Any help on this would make us to hit toplink for our huge application.
Here is the attached FindAddress.java and ViewAddress.jsp
FindAddress.java
=============
// Decompiled by DJ v2.9.9.61 Copyright 2000 Atanas Neshkov Date: 9/8/2006 6:32:21 PM
// Home Page : http://members.fortunecity.com/neshkov/dj.html - Check often for new version!
// Decompiler options: packimports(3)
// Source File Name: FindAddress.java
package examples.servletjsp;
import java.io.IOException;
import java.io.PrintStream;
import javax.servlet.*;
import javax.servlet.http.*;
import oracle.toplink.expressions.Expression;
import oracle.toplink.expressions.ExpressionBuilder;
import oracle.toplink.queryframework.ReadAllQuery;
import oracle.toplink.queryframework.ScrollableCursor;
import oracle.toplink.threetier.ClientSession;
import oracle.toplink.threetier.Server;
// Referenced classes of package examples.servletjsp:
// JSPDemoServlet
public class FindAddress extends JSPDemoServlet
public FindAddress()
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
doPost(request, response);
public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
request.setCharacterEncoding("UTF-8");
getServletContext().log("FindAddress servlet - doPost");
java.util.Vector address = null;
ScrollableCursor cursor = null;
try
HttpSession session = request.getSession(true);
ReadAllQuery query = new ReadAllQuery();
query.setReferenceClass(examples.servletjsp.model.Address.class);
ExpressionBuilder builder = new ExpressionBuilder();
query.setSelectionCriteria(builder.get("id").greaterThan(100));
query.setFetchSize(5000);
query.useScrollableCursor();
System.out.println("########### Sleep Mode Before assigning to CURSOR ###############");
System.out.println("############ Back from Sleep Mode before CURSOR ############");
cursor = (ScrollableCursor)((Server)getSession()).acquireClientSession().executeQuery(query);
System.out.println("############ Sleep Mode After assigning to CURSOR ###########");
System.out.println("############ Back from Sleep Mode After CURSOR ############");
session.setAttribute("ScrollableCursor", cursor);
catch(Exception e)
request.setAttribute("source", "FindEmployees doPost");
request.setAttribute("header", "An Error Occurred");
request.setAttribute("errorMessage", e.getMessage());
request.getRequestDispatcher("./errorPage.jsp").forward(request, response);
return;
System.out.println("cursor------------" + (cursor == null));
if(cursor == null)
request.getRequestDispatcher("./EmployeesNotFound.jsp").forward(request, response);
} else
request.setAttribute("address", address);
request.getRequestDispatcher("./viewAddress.jsp").forward(request, response);
viewAddress.jsp
=============
<%@page import="java.util.*"%>
<%@page import="examples.servletjsp.*"%>
<%@page import="examples.servletjsp.model.*"%>
<%@page import="oracle.toplink.queryframework.ScrollableCursor"%>
<%@page import="java.math.*"%>
<%@page contentType = "text/html; charset=UTF-8"%>
<html>
<head><title>Employee Query Results</title></head>
<body>
<form name="test" method="post" action="viewAddress.jsp">
<!-- Prepare s heading.
Get the employees passed in from ViewEmployees servlet. Show them in table format. Provide button
to ViewEmployee -->
<%
request.setCharacterEncoding("UTF-8");
String searchString = request.getParameter("employeeString");
ScrollableCursor cursor = (ScrollableCursor) session.getAttribute("ScrollableCursor");
String heading = null;
heading="Search Results for FindAll on Employee";
String employeeData = "";
//Iterator data = ((Vector)request.getAttribute("address")).iterator();
int i =0;
while(cursor.hasNext() && i<4995) {
if(i<10){
System.out.println("######### JSP Count TRhread Sleep ###########");
//Thread.sleep(100);
//System.out.println("######### JSP Count TRhread Sleep Over ###########");
i++;
Address address = (Address)cursor.next();
BigDecimal id = address.getId();
String city = address.getCity();
String province = address.getProvince();
String street = address.getStreet();
String country = address.getCountry();
String pCode = address.getPostalCode();
employeeData += "<tr><td>" + id + "</td>"
+ "<td>" + province + "</td>"
+ "<td>" + street + "</td>"
+ "<td>" + city + "</td>"
+ "<td>" + pCode + "</td>"
+ "<td>" + country+ "</td>"
+ "</tr>";
//cursor.close();
System.out.println("abcdAfter closing the cursor ->plz see whether connpool monitorcnt = 0");
%>
<center>
<h2><%=heading%></h2>
<hr>
Return to Main
<p>
<table border=1>
<tr>
<td align="center">Address Id</td>
<td align="center">Province</td>
<td align="center">Street</td>
<td align="center">City</td>
<td align="center">Postal Code</td>
<td align="center">Country</td></tr>
<%=employeeData %>
</table>
</center>
<p>
<input type="submit" name ="next" value="next" >
<center>Return to Main</center>
</form>
</body>
</html> -
How to change a LOV query from Forms Personalization(Doc ID 1534116.1)
Customer followed the step on Note 1534116.1, but after that close the form and reopening the form , cus is unable to query the form.
Please advise.
Thanks,
LingPl post EBS version - what does "unable to query the form" mean ? Any error codes / messages ? Was FRD trace enable to troubleshoot ?
MOS Doc 438652.1 -
Visual studio online - Excel power query usage and samples needed
Background
Visual Studio Online does not offer much in the way of reporting, when compared to (onsite) TFS... unless you utilize the REST API functionality.
The Visual Studio Online REST API is fairly extensive, but not very 'reporting' friendly to applications like Microsoft Excel.
Question
Are there any good examples of Microsoft Excel Power Query usage - to acquire and create reports via the Visual Studio Online REST API? I've searched - but surprisingly haven't found anything of substance. It is fairly simple to call a VSO REST
query using Excel Power Query, but not so simple to iterate through the lists within lists, etc... unless you are familiar with 'M language'.Hi,
Thank you for reaching out to us. I am currently researching to gather more information with regards to your request. I shall revert back to you with an update at the earliest. Sincerely appreciate your patience.
Regards,
Nithin Rathnakar -
Error in running custom query from jspx(site) for Content Tracker Report
Hi All,
I want to generate a custom Content Tracker Report. I am able to do so from Content Tracker console, but when i try to invoke the service 'SCT_GET_DOCUMENT_INFO_ADMIN' or 'SCT_GET_DOCUMENT_INFO' with my custom query(which simply counts the number of rows in a table) from my jspx page, it gives the following error.
oracle.stellent.wcm.server.request.RequestException: Error
occurred in Content Server executing service
'SCT_GET_DOCUMENT_INFO_ADMIN'
Caused By: oracle.stellent.ridc.protocol.ServiceException: Unable to get
document info. Unable to execute service method 'sctExecuteQuery'. The
error was caused by an internally generated issue. The error has been
logged.
What could be the reason and the resolution?
Also, I know that i am invoking the service in the right way as custom report from query as 'select * from users' works fine from site.
P.S. I am using UCM 11g + SSXAThings are turning weird. The below two queries work from jspx.
1. SELECT * FROM Users
2. SELECT dname FROM Users
But, the following query gives error (SQL is correct).
select dname, count(dname) from users group by dname
Unable to execute service method 'sctExecuteQuery'. Null pointer is dereferenced.
$Unable to get document info.!csUnableToExecMethod,sctExecuteQuery!syNullPointerException
intradoc.common.ServiceException: !$Unable to get document info.!csUnableToExecMethod,sctExecuteQuery
*ScriptStack SCT_GET_DOCUMENT_INFO_ADMIN
3:sctExecuteQuery,**no captured values**
at intradoc.server.ServiceRequestImplementor.buildServiceException(ServiceRequestImplementor.java:2115)
at intradoc.server.Service.buildServiceException(Service.java:2260)
at intradoc.server.Service.createServiceExceptionEx(Service.java:2254)
at intradoc.server.Service.createServiceException(Service.java:2249)
at intradoc.server.Service.doCodeEx(Service.java:584)
at intradoc.server.Service.doCode(Service.java:505)
at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1643)
at intradoc.server.Service.doAction(Service.java:477)
at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1458)
at intradoc.server.Service.doActions(Service.java:472)
at intradoc.server.ServiceRequestImplementor.executeActions(ServiceRequestImplementor.java:1391)
at intradoc.server.Service.executeActions(Service.java:458)
at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:737)
at intradoc.server.Service.doRequest(Service.java:1890)
at intradoc.server.ServiceManager.processCommand(ServiceManager.java:435)
at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:265)
at intradoc.server.IdcServerThread.run(IdcServerThread.java:160)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
Caused by: java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
at intradoc.util.IdcConcurrentHashMap.get(IdcConcurrentHashMap.java:60)
This works fine from Content Tracker UI.
Anyone has any idea, what could be the issue here? -
Error while querying ADF form by saved criteria - MDS activated project
Hi,
I have a project with MDS activated through database. I'm able to save the customized query criteria and retrieve in the session the criteria is created. But if I log off the session and open another session, I only see the saved criteria name in the pick list. If I select the saved criteria, it throws 'NullPointerException'. I'm using 11.1.2.1.0 version. Here is the complete stack trace:
[2012-10-10T11:59:59.374-07:00] [ADFAdminServer] [WARNING] [] [oracle.adfinternal.view.faces.lifecycle.LifecycleImpl] [tid: [ACTIVE].ExecuteThread: '13' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: masked] [ecid: 9f22e75039e65be4:-64df6045:13a4bcc092f:-8000-0000000000000122,0] [APP: ViewOnly_Project1_ViewOnly] ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase INVOKE_APPLICATION 5[[
java.lang.NullPointerException
at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding$QueryModelImpl.setCurrentDescriptor(FacesCtrlSearchBinding.java:1642)
at oracle.adfinternal.view.faces.renderkit.rich.query.DefaultQueryOperationListener.processQueryOperation(DefaultQueryOperationListener.java:53)
at oracle.adf.view.rich.event.QueryOperationEvent.processListener(QueryOperationEvent.java:240)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcast(UIXComponentBase.java:824)
at oracle.adf.view.rich.component.UIXQuery.broadcast(UIXQuery.java:108)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1129)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:353)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:204)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:122)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
[2012-10-10T11:59:59.421-07:00] [ADFAdminServer] [ERROR] [] [oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator] [tid: [ACTIVE].ExecuteThread: '13' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: masked] [ecid: 9f22e75039e65be4:-64df6045:13a4bcc092f:-8000-0000000000000122,0] [APP: ViewOnly_Project1_ViewOnly] ADF_FACES-60096:Server Exception during PPR, #1[[
java.lang.NullPointerException
at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding$QueryModelImpl.setCurrentDescriptor(FacesCtrlSearchBinding.java:1642)
at oracle.adfinternal.view.faces.renderkit.rich.query.DefaultQueryOperationListener.processQueryOperation(DefaultQueryOperationListener.java:53)
at oracle.adf.view.rich.event.QueryOperationEvent.processListener(QueryOperationEvent.java:240)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcast(UIXComponentBase.java:824)
at oracle.adf.view.rich.component.UIXQuery.broadcast(UIXQuery.java:108)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1129)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:353)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:204)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:173)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:122)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Edited by: user12004116 on Oct 10, 2012 2:12 PMHi,
+"But if I log off the session and open another session, I only see the saved criteria name in the pick list. "+
Does this also happen when the browser is closed and re-opened? If not then what is special on your log-off / log-on method. You should consider filing a service request with customer support if this problem remains
Frank -
I need to pass a query in form of string to DBMS_XMLQUERY.GETXML package...the parameters to the query are date and varchar ..please help me build the string .Below is the query and the out put. ( the string is building fine except the parameters are with out quotes)
here is the procedure
create or replace
procedure temp(
P_MTR_ID VARCHAR2,
P_FROM_DATE IN DATE ,
P_THROUGH_DATE IN DATE ) AS
L_XML CLOB;
l_query VARCHAR2(2000);
BEGIN
l_query:= 'SELECT
a.s_datetime DATETIME,
a.downdate Ending_date,
a.downtime Ending_time,
TO_CHAR(ROUND(a.downusage,3),''9999999.000'') kWh_Usage,
TO_CHAR(ROUND(a.downcost,2),''$9,999,999.00'') kWh_cost,
TO_CHAR(ROUND(B.DOWNUSAGE,3),''9999999.000'') KVARH
FROM
(SELECT s_datetime + .000011574 s_datetime,
TO_CHAR(S_DATETIME ,''mm/dd/yyyy'') DOWNDATE,
DECODE(TO_CHAR(s_datetime+.000011574 ,''hh24:'
||'mi''), ''00:'
||'00'',''24:'
||'00'', TO_CHAR(s_datetime+.000011574,''hh24:'
||'mi'')) downtime,
s_usage downusage,
s_cost downcost
FROM summary_qtrhour
WHERE s_mtrid = '
||P_MTR_ID||
' AND s_mtrch = ''1''
AND s_datetime BETWEEN TO_DATE('
||P_FROM_DATE||
',''DD-MON-YY'') AND (TO_DATE('
||P_THROUGH_DATE||
',''DD-MON-YY'') + 1)
) a,
(SELECT s_datetime + .000011574 s_datetime,
s_usage downusage
FROM summary_qtrhour
WHERE s_mtrid = '
||P_MTR_ID||
' AND s_mtrch = ''2''
AND s_datetime BETWEEN TO_DATE('
||P_FROM_DATE||
',''DD-MON-YY'') AND (TO_DATE('
||P_THROUGH_DATE||
','' DD-MON-YY'') + 1)
) B
where a.S_DATETIME = B.S_DATETIME(+)';
SELECT DBMS_XMLQUERY.GETXML('L_QUERY') INTO L_XML FROM DUAL;
INSERT INTO NK VALUES (L_XML);
DBMS_OUTPUT.PUT_LINE('L_QUERY IS :'||L_QUERY);
END;
OUTPUT parameters are in bold (the issue is they are coming without single quotes otherwise th equery is fine
L_QUERY IS :SELECT
a.s_datetime DATETIME,
a.downdate Ending_date,
a.downtime Ending_time,
TO_CHAR(ROUND(a.downusage,3),'9999999.000') kWh_Usage,
TO_CHAR(ROUND(a.downcost,2),'$9,999,999.00') kWh_cost,
TO_CHAR(ROUND(B.DOWNUSAGE,3),'9999999.000') KVARH
FROM
(SELECT s_datetime + .000011574 s_datetime,
TO_CHAR(S_DATETIME ,'mm/dd/yyyy') DOWNDATE,
DECODE(TO_CHAR(s_datetime+.000011574 ,'hh24:mi'), '00:00','24:00', TO_CHAR(s_datetime+.000011574,'hh24:mi')) downtime,
s_usage downusage,
s_cost downcost
FROM summary_qtrhour
WHERE s_mtrid = N3165 AND s_mtrch = '1'
AND s_datetime BETWEEN TO_DATE(01-JAN-13,'DD-MON-YY') AND (TO_DATE(31-JAN-13,'DD-MON-YY') + 1)
) a,
(SELECT s_datetime + .000011574 s_datetime,
s_usage downusage
FROM summary_qtrhour
WHERE s_mtrid = N3165 AND s_mtrch = '2'
AND s_datetime BETWEEN TO_DATE(01-JAN-13,'DD-MON-YY') AND (TO_DATE(31-JAN-13,' DD-MON-YY') + 1)
) B
where a.S_DATETIME = B.S_DATETIME(+)The correct way to handle this is to use bind variables.
And use DBMS_XMLGEN instead of DBMS_XMLQUERY :
create or replace procedure temp (
p_mtr_id in varchar2
, p_from_date in date
, p_through_date in date
is
l_xml CLOB;
l_query VARCHAR2(2000);
l_ctx dbms_xmlgen.ctxHandle;
begin
l_query:= 'SELECT
a.s_datetime DATETIME,
a.downdate Ending_date,
a.downtime Ending_time,
TO_CHAR(ROUND(a.downusage,3),''9999999.000'') kWh_Usage,
TO_CHAR(ROUND(a.downcost,2),''$9,999,999.00'') kWh_cost,
TO_CHAR(ROUND(B.DOWNUSAGE,3),''9999999.000'') KVARH
FROM
(SELECT s_datetime + .000011574 s_datetime,
TO_CHAR(S_DATETIME ,''mm/dd/yyyy'') DOWNDATE,
DECODE(TO_CHAR(s_datetime+.000011574 ,''hh24:'
||'mi''), ''00:'
||'00'',''24:'
||'00'', TO_CHAR(s_datetime+.000011574,''hh24:'
||'mi'')) downtime,
s_usage downusage,
s_cost downcost
FROM summary_qtrhour
WHERE s_mtrid = :P_MTR_ID
AND s_mtrch = ''1''
AND s_datetime BETWEEN TO_DATE(:P_FROM_DATE,''DD-MON-YY'')
AND (TO_DATE(:P_THROUGH_DATE,''DD-MON-YY'') + 1)
) a,
(SELECT s_datetime + .000011574 s_datetime,
s_usage downusage
FROM summary_qtrhour
WHERE s_mtrid = :P_MTR_ID
AND s_mtrch = ''2''
AND s_datetime BETWEEN TO_DATE(:P_FROM_DATE,''DD-MON-YY'')
AND (TO_DATE(:P_THROUGH_DATE,'' DD-MON-YY'') + 1)
) B
where a.S_DATETIME = B.S_DATETIME(+)';
l_ctx := dbms_xmlgen.newContext(l_query);
dbms_xmlgen.setBindValue(l_ctx, 'P_MTR_ID', p_mtr_id);
dbms_xmlgen.setBindValue(l_ctx, 'P_FROM_DATE', to_char(p_from_date, 'DD-MON-YY'));
dbms_xmlgen.setBindValue(l_ctx, 'P_THROUGH_DATE', to_char(p_through_date, 'DD-MON-YY'));
l_xml := dbms_xmlgen.getXML(l_ctx);
dbms_xmlgen.closeContext(l_ctx);
insert into nk values (l_xml);
end; -
Add custom query to standard PLD layout
Hi Everybody,
I need to change the standard Invoice PLD report, in order to include additional data that is
kept in my UDO.
Is it possible to define a custom query inside PLD to retrieve data from the UDO
(the UDO is linked to the Invoice) and show it in the Invoice layout?
Thanks all,
Manuel DiasHi Manuel,
One workaround you can try is to use UDF and formatted search to retrive the info on the invoice screen and then directly display it on the invoice PLD.
Hope it helps.
Regards,
Hamsa
Maybe you are looking for
-
Calendar List View MISSING in iOS 7.1 on iPhone 4S
The old way to get list view was to tap the magnifying lens. Since 7.1 there is supposed to be a red button that toggles list view and month calendar + partial (smailler) list view. The icons for these are 3 lines for List View and a small rectangle
-
Automatic creation of Production order when credit limit lock got released
It seems that production order will be created only when the sales order is created without credit lock error from the first. Once credit lock happened, even if user release the lock, production order will not be created automatically anymore. Is the
-
Hi, If i have MIC which is being used in insoection lot for long time and later if i modify MIC to capture spc through activating control limits & spc indicatior, could i look control chart from history. Urgant Thanks in Advance
-
Applets stop() method is not executed
Hi, I
-
Some albums are showing different covers since updating to version 7.0.3
I just recently downloaded the new version and since then several albums are showing a different album cover. How can I get this to be correct again.