Passing values to stored 'IN' Clause
Hi all:I'm trying to pass values to a stored procedure to use in an IN clause and get an "ORA-01722: invalid number."
I think it has something to do with how .net manages channels and how I'm moving to my stored procedure.
The values I know there IN (2, 1) to the stored procedure work and I built a routine that creates a string value to pass to the format "2, 1, but I think because this value is defined as a string in the code .net, the leader and the apostrophe is at the origin of the problem in the stored procedure.
I have in my .net code the following:
oCommand.Parameters.Add ("groupID_", OracleDbType.Varchar2). Value = GroupID;
Where GroupID is defined as a string of character and values the following: 2, 1, but because of the way .net manages it, happening as "2, 1".
Then of course, within my procedure stored,
CREATE OR REPLACE PROCEDURE PAYSOL.sp_ProjectsManAppAndFundRpt)
p_Cursor1 ON SYS_REFCURSOR,
p_Cursor2 ON SYS_REFCURSOR,
p_Cursor3 ON SYS_REFCURSOR,
p_Cursor4 ON SYS_REFCURSOR,
p_Cursor5 ON SYS_REFCURSOR,
groupID_ IN VARCHAR2)
where I am setting the parameter groupID_ as a VARCHAR2, is keep the apostrophes, causing problems when I use it in my IN clause:
AND IN S.GroupID (groupID_)
What should I do to pass this value correctly? Is there something I can do inside the stored procedure to strip these characters, or what I need to transmit differently, or completely change how I'm this treatment? I don't know the right path for upside down, so I wanted to ask for help.
Thank you
Andy
IN the Clauses and parameterized queries can be stupid delicate; Thus, while logically it makes sense to do what you want (it doesn't in database!)
You can manage this problem in several ways:
(1) anonymous sql (do not recommend)
(2) a user defined type and function as such
--see http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:210612357425
--create a table of numbers ,create a function to split the "where" into a table
--then return the data
CREATE OR REPLACE type numberTableType as table of number;
/
create or replace function in_number( p_string in varchar2 ) return numberTableType AS
l_string long default p_string || ',';
l_data numberTableType := numberTableType();
l_number number ;
N NUMBER;
BEGIN
loop
exit when l_string is null;
n := instr( l_string, ',' );
l_data.extend;
begin --is user inputs a non-numeric value skip the value
l_number := cast(ltrim( rtrim( substr( l_string, 1, n-1 ) ) ) as number);
l_data(l_data.count) := l_number ;
EXCEPTION
WHEN VALUE_ERROR THEN
l_number := 0;
WHEN OTHERS THEN
raise ;
end ;
l_string := substr( l_string, n+1 );
end loop;
RETURN L_DATA;
END in_number;
/
...
--then your code
AND S.GroupID IN (select column_value from table(in_number(groupID_))
(3) in fact, just look at this blog! It does a better job at what I am!
http://tkyte.blogspot.com/2006/06/varying-in-lists.html
Tags: Database
Similar Questions
-
by the way check box values in the WHERE clause
Hello
I created a data block - 'CONTACT' (block of data in database)
and has an element of database - 'Code', 'Descr '.
The number of records displayed has the value 5.
When enabled - value 'Y '.
Value when disabled - n
Box mapping of other values - "unchecked."
I write the code inside "WHEN the BUTTON PRESS. My main goal is to return the number of records from
According to several conditions and one among them is the CODE which can be single or multiple based on the checked checkbox.
The requirement is when I check one or more boxes, I should pass the "Code" element values in the WHERE clause.
I tried to use the simple loop but things havmt worked as shown below.
The next_record refers to the COCHEE BOX as well, and thus return all the eventhough lines if it is not checked.
----------------------------------------------------------------------------
-LOOP
IF: contact.cb = 'Y' THEN
LOOP
IF p_where is null then
p_where: =: contact.code;
on the other
p_where: = p_where | «, » || : contact.code;
end if;
When the output: system.last_record = "TRUE";
next_record;
END LOOP;
end if;
-END LOOP;
MESSAGE ("p_where :'|| p_where);
MESSAGE (' ');
END;
------------------------------------
And even if I write the LOOP before the first CASE, it returns me the current value and move to the last record.
Please suggest
Try something like this:
FIRST_RECORD; LOOP IF :contact.cb = 'Y' THEN IF p_where is null then p_where := :contact.code; else p_where := p_where ||','||:contact.code; end if; END IF; exit when :system.last_record = 'TRUE'; next_record; END LOOP; -- END LOOP; MESSAGE ( 'p_where :'||p_where); MESSAGE (' '); END;
-
Unable to pass values to the OPA of tabouts in fields of Siebel
Hi Experts
We urgently need some advise.
We are trying to call OPA for different trigger points in Siebel as button clicks, saves record and field tab outs.
The button clicks and saves record, we are able to pass values to the OPA and obtain desired output back through the event Runtime - Workflow - mechanism of mapping of the OPA.
However for field tabout trigger points, the handshake with OPA is not happening correctly by above mechanism.
We have TIME event triggered on SetFieldValue to the desired field, calling the Workflow to call OPA.
However the OPA response xml output doesn't have the values of the input attributes and the results identified in the mapping of the OPA.
It seems that until the record is saved or committed, the mapping is unable to get the value of the field of Siebel and move to the OPA.
Please suggest how this can be achieved.
Thank you
SwatiSwati,
For most of Siebel connector works on the data stored in the data. If you want to access the values until they are registered, you will need to use the Active Business Object patch.
Have a look at "Installer le Patch object Active" in "Oracle policy Automation connector for Siebel Installation Guide" at http://www.oracle.com/technetwork/apps-tech/policy-automation/documentation/opa-con-siebel-10-4-2-inst-guide-1894142.pdf
Active objects are supported only for the object mappings (APM)
See you soon
Frank -
How accept/pass values as Oracle text multiline.
Hi all
Help, please!
I'm trying to pass values of several lines of text in the form of Oracle to a stored procedure.
To explain in detail, I have a text element (let's say Input_Text_item - a multiline value yes property) which would not. values as input (possibly by copy/paste), a button - pressed, it should take each value 'Input_text_item' (line by line) and pass the value to a stored procedure and display the result in another element of text (which has the property multiline set to Yes) I say "Output_text_item".
Now the problem is to know how to read "Input_Text_item" multiline values I am only able to read the unique value. When I try the multi-line values, it gives me "FRM-50024: space run posts only" error.
Is there a way to fix this?
Thank you
BBack to my original post, how to place multiple lines of a text element values to a stored procedure.
I want to spend the value 10 (from the first line of item_1) to store procedure/function - get result.
then pass the value 40 (from the second row of item_1) to a stored procedure again and so on... >
If I understand correctly, you want to send each line (MLT) multiline text item as a separate parameter a stored procedure. If this is correct, then you will need analyze the different lines of the TRM in the values of the individual parameters. This can be done by analyzing the MLT using the Carrage return [Chr (13)] and line break characters [Chr (10)] in the MLT as separators and delimiters of each value. There are some good examples of how to cut a string multiple values (or an array). Here are a few good examples:PL/SQL: Splitting a string in a table?
How to parse a string in Oracle.These two methods can be easily adapted to research on the characters of Chr (10) and Chr (13), so you can analyze your TRM.
Hope this helps,
Craig B-)If someone useful or appropriate, please mark accordingly.
-
Pass values JS in a Flex application in a new window
I found how to pass values to JavaScript in a swf file embedded, but now I have a different scenario. I have a container ASP application that will launch a Flex application. The ASP application manages all security and users get the roles. When you click on a link to open the Flex application in a new window, I would like to pass the user name and the roles stored in the ASP JavaScript I think I need to use ExternalInterface.addCallback("IsStatic",IsStatic) on the side of Flex, but I have to do side Javascript in my ASP page?
My JavaScript code in my ASP page looks like this:
var launchedFlexApp = window.open("/apps/Flex/flexApp.swf","winFlexApp","width=850,height=600")
Thank you
TeddTracy,
Passing values in the url param is the way that I had to make it work. I was able to access it in actionscript in the following way:
tmpUserId = mx.core.Application.application.parameters.userId
where the username after the .parameters is the name of the parameter in the query string that I went through the url.
Thanks for your help
-
Passing values between tabs, using a structure of housing.
At the risk of exposing my ignorance, I have a problem of substance; How to pass values in a controlled tab structure of the case.
I have a simple user interface that uses a control tab control container a structure of all cases wrapped in a while loop. I use
LabVIEW 2012.
The basic intent is to run VI in tab 1, whose results would be available for the VI tab 2 ect...
(See the attached example; an experience I wish that changes to the controls to page 1 int & string will appear
the indicators corresponding to page 2).
I can "pass" the values of a case outside the case itself (through a tunnel of output) structure, but can't seem to do
available for all other cases by a tunnel entrance.
I tried to tunnel of the case in a registry to lag on the while loop, but am upset by retrieving that data again in another case.
I tried to use local variables, but obviously do not understand the paradigm brought LabVIEW for variables. I can create a local
variable but can't seem to 'plug in' to an indicator on the second page.
First question: is a reasonable method for execution of the loop control program structure business controlled within a certain time tab?
I chose it because I have literally dozens of parameters to define, validate and want to manage Visual space
for the operator. For example, I would that this sequence:
- Question and list of facilities available on my PC
- Select a device to use, make sure it works properly
- Set the parameters for this particular device (30)
- run the device, collect data and save the results
Second question: it is clear that I don't know how to use variables, and the examples I read involve transmission of data to parallel structures
and not in a case. Is a local variable to a reasonable method of transmission of data between the "tabs"? I will gladly make
accept the reprimand to 'RTFM' until 'FM' required is identified.
Thank you in advance for your kind attention to my wisely first year survey
Shift registers are simple to get data from. Where is your problem with their use? However, have you considered just using the terminals directly in the case of the Page 2?
You must learn to use the Structure of the event. You shouldn't care what tab you are on. It's all in the same VI. Therefore use a Structure unique event for all your control value changes.
-
Prob Winmail.
Receive the error message "the server that you are connected using a security certificate that could not be verified that the certificate CN name does not match the passed value. Do you want to continue? ». This started happening after that my laptop has been reformatted. I have synced with Gmail winmail and followed the instructions to do this correctly. By pressing the tab 'Yes' allows me to use winmail, but it's a little embarrassing.
Using a digital signature? Check the settings under Tools | Options | Security and also tools | Accounts | Mail | Properties | Security.
Also, see here (http://mail.google.com/support/bin/answer.py?hl=en&answer=86382) and make sure that your settings are correct.
Steve
-
Hello
I have a page with adf faces table, I need to pass values to the table to another the inputfields page (both fields are composite primary keys), I'm passing values but I get the error while I'm passing values twice on the next page with a button command (using setPropertyListener) this error... Please help me?
Houston-29114 ADFContext is not configured to process this exception messages. Use the code of exception stack trace and error to investigate the root cause of this exception. Root cause error code is Houston-25013. Error messages settings are {0 = oracle.jbo.Key [22 9]}
ADF_FACES-60097: for more information, see the error log of the server for an entry beginning with: ADF_FACES - Exception during the PPR, #1 60096:Server
The error log is...
URL - target http://127.0.0.1:7101/Recruting-ViewController-context-root/faces/login.JSPX
< ViewHandlerImpl > < _checkTimestamp > Apache Trinidad runs with control of activated timestamp. This should not be used in a production environment. See the org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION property in WEB-INF/web.xml
< UIXEditableValue > < _isBeanValidationAvailable > Validation Bean A provider is not present, so bean validation is disabled
passing the user name: 201157
< _LogUnhandledException > ADF_FACES - 60098:Faces life cycle receives exceptions that are unhandled in phase 5 of INVOKE_APPLICATION
oracle.jbo.TooManyObjectsException: Houston-25013: too many objects correspond to the oracle.jbo.Key [22 primary key 9].
at oracle.jbo.server.EntityCache.throwTooManyObjectsException(EntityCache.java:608)
at oracle.jbo.server.EntityCache.handleDuplicateKey(EntityCache.java:617)
at oracle.jbo.server.EntityCache.addForAltKey(EntityCache.java:1030)
at oracle.jbo.server.EntityCache.add(EntityCache.java:541)
at oracle.jbo.server.EntityImpl.callCreate(EntityImpl.java:1141)
at oracle.jbo.server.ViewRowStorage.create(ViewRowStorage.java:1140)
at oracle.jbo.server.ViewRowImpl.create(ViewRowImpl.java:461)
at oracle.jbo.server.ViewRowImpl.callCreate(ViewRowImpl.java:478)
at oracle.jbo.server.ViewObjectImpl.createInstance(ViewObjectImpl.java:5800)
at oracle.jbo.server.QueryCollection.createRowWithEntities(QueryCollection.java:1941)
at oracle.jbo.server.ViewRowSetImpl.createRowWithEntities(ViewRowSetImpl.java:2504)
at oracle.jbo.server.ViewRowSetImpl.doCreateAndInitRow(ViewRowSetImpl.java:2545)
at oracle.jbo.server.ViewRowSetImpl.createAndInitRow(ViewRowSetImpl.java:2510)
at oracle.jbo.server.ViewObjectImpl.createAndInitRow(ViewObjectImpl.java:11133)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1342)
at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2169)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:731)
at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:402)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:252)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:210)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.el.parser.AstValue.invoke (unknown Source)
at com.sun.el.MethodExpressionImpl.invoke (unknown Source)
at oracle.adf.controller.internal.util.ELInterfaceImpl.invokeMethod(ELInterfaceImpl.java:173)
at oracle.adfinternal.controller.activity.MethodCallActivityLogic.execute(MethodCallActivityLogic.java:163)
at oracle.adfinternal.controller.engine.ControlFlowEngine.executeActivity(ControlFlowEngine.java:1091)
at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:982)
at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:880)
at oracle.adfinternal.controller.engine.ControlFlowEngine.routeFromActivity(ControlFlowEngine.java:553)
at oracle.adfinternal.controller.engine.ControlFlowEngine.performControlFlow(ControlFlowEngine.java:158)
at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleAdfcNavigation(NavigationHandlerImpl.java:115)
at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:84)
at org.apache.myfaces.trinidadinternal.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:50)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:159)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1137)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:361)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
to 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:125)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:468)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
to 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)
to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)
at java.security.AccessController.doPrivileged (Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
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:139)
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)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)
to 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)
< RegistrationConfigurator > < handleError > ADF_FACES - 60096:Server Exception during the PPR, #1
oracle.jbo.TooManyObjectsException: Houston-29114 ADFContext is not configured to process this exception messages. Use the code of exception stack trace and error to investigate the root cause of this exception. Root cause error code is Houston-25013. Error messages settings are {0 = oracle.jbo.Key [22 9]}
at oracle.jbo.server.EntityCache.throwTooManyObjectsException(EntityCache.java:608)
at oracle.jbo.server.EntityCache.handleDuplicateKey(EntityCache.java:617)
at oracle.jbo.server.EntityCache.addForAltKey(EntityCache.java:1030)
at oracle.jbo.server.EntityCache.add(EntityCache.java:541)
at oracle.jbo.server.EntityImpl.callCreate(EntityImpl.java:1141)
at oracle.jbo.server.ViewRowStorage.create(ViewRowStorage.java:1140)
at oracle.jbo.server.ViewRowImpl.create(ViewRowImpl.java:461)
at oracle.jbo.server.ViewRowImpl.callCreate(ViewRowImpl.java:478)
at oracle.jbo.server.ViewObjectImpl.createInstance(ViewObjectImpl.java:5800)
at oracle.jbo.server.QueryCollection.createRowWithEntities(QueryCollection.java:1941)
at oracle.jbo.server.ViewRowSetImpl.createRowWithEntities(ViewRowSetImpl.java:2504)
at oracle.jbo.server.ViewRowSetImpl.doCreateAndInitRow(ViewRowSetImpl.java:2545)
at oracle.jbo.server.ViewRowSetImpl.createAndInitRow(ViewRowSetImpl.java:2510)
at oracle.jbo.server.ViewObjectImpl.createAndInitRow(ViewObjectImpl.java:11133)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1342)
at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2169)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:731)
at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:402)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:252)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:210)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.el.parser.AstValue.invoke (unknown Source)
at com.sun.el.MethodExpressionImpl.invoke (unknown Source)
at oracle.adf.controller.internal.util.ELInterfaceImpl.invokeMethod(ELInterfaceImpl.java:173)
at oracle.adfinternal.controller.activity.MethodCallActivityLogic.execute(MethodCallActivityLogic.java:163)
at oracle.adfinternal.controller.engine.ControlFlowEngine.executeActivity(ControlFlowEngine.java:1091)
at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:982)
at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:880)
at oracle.adfinternal.controller.engine.ControlFlowEngine.routeFromActivity(ControlFlowEngine.java:553)
at oracle.adfinternal.controller.engine.ControlFlowEngine.performControlFlow(ControlFlowEngine.java:158)
at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleAdfcNavigation(NavigationHandlerImpl.java:115)
at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:84)
at org.apache.myfaces.trinidadinternal.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:50)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:159)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1137)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:361)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:202)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:508)
to 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:125)
to org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$ FilterListChain.doFilter (TrinidadFilterImpl.java:468)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
to 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)
to oracle.security.jps.ee.http.JpsAbsFilter$ 1.run(JpsAbsFilter.java:119)
at java.security.AccessController.doPrivileged (Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
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:139)
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)
to weblogic.servlet.internal.WebAppServletContext$ ServletInvocationAction.wrapRun (WebAppServletContext.java:3715)
to 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)
Hi all, finally I found the solution to this exception.
I did the following steps to solve the problem.
1. create a bean and use this method
public void tooManyObjectsMatchExceptioHandeler() {}
Add the code in the event here...
System.out.println ("inside the Handeler");
FacesMessage message =
new FacesMessage ("Type your friendly message");
message.setSeverity (FacesMessage.SEVERITY_ERROR);
FacesContext fc = FacesContext.getCurrentInstance ();
fc.addMessage (null, message);
}
Now, drag and drop the file above java projects in data controls in the browser of the application.
2. drag a workflow method call (where u get exception as Houston-25013) and call this method as an activity of the exception handler,
Now, do a right click on this--> definition of the page method call create or go to definition of the page--> create a link Action method and select the above method in the select and file def page this method call in the workflow then go to properties inspector set out fixed property (here name of activities of method call) u give.
-
Pass values of interactive report
HelloI'm sure this is an easy question, but I was not able to find the solution myself.
I have an interactive report that has 6 columns, which are:
Family name
First name
Day
Start time
End time
Link column
I need to assign an ID that is not displayed in the report, the date, the start time and end time to the variables P5_IDX, P5_DAY, P5_START and P5_END to use
only display on a different page elements. I can spend only 3 values by using the link to the column in the IR.
Is there another way to pass values more of an interactive report 3? Sorry if this has been asked and answered before. I searched the forums and didn't find an answer, but maybe a search with key words evil.
Thanks for any help,
Bob
Hi Bob,
If yu changes the target of the link of "page of this application" to "URL", you can set the URL yourself and add more parameters,
URL could look something this:
f? p = & APP_ID.: 11: & SESSION. : & DEBUG. : P11_ID, P11_P1, P11_P2, P11_P3:, #ID #, # P1, P2 # #, #P3 #.
-
Navigate between the report and dashboard and pass values between another column
Hello
I have a question about navigate from 1 report to a dashboard page passing value from column 1 to column 2 in the second report...
In OBIEE 11 G, I create link action report 1, column 1 and this link from the action is go to the content of the BI and the destination is a dashboard page, which has used 2 column as a dashboard and there are 3 reports that all use column 2 to filter. Now, the dashboard page 2 column is an alias for column 1 report 1, from the point of view of users, these are the same, but OBIEE point of view, they are different.
My action link is able to access the dashboard, however, the value in column 1 which I clicked on run navigation, not are placed in column 2 as the line of dashboard does not receive this value when navigating...
Since I can't put column 1 in dashboard 2, nor that I can put the 2 column in the report 1. Because our data model is done in the way that if I use column 1 or 2 in both cases, it will be o-ring...
Is there a way around this problem?
Let me know if I need to elaborate
Thank youHello
You are going to have three main dashboard page (i.e., dashboad1, 2, 3) in the dashboard you will be having 3 different relationship with different column aliases (e.g. columnx_alias1, columnx_alias2, columnx_alias3) and you're going to have a dashboard more page say dashboardx a report with columnx. Now if you click on report of dashboard1 to go to dashboardx, click on report of dashboard2 also should go to dashboardx, click dashboard3 report should also go to dashboardx.
1 > you can create 3 variable presentation for column 3 aliases and hide. {{{You can use the union query in sql result say columnx select from table where columnx='@{column1}' union select columnx table where columnx='@{column2}' union select columnx table where columnx='@{column3}'.
2 > now you can hide these guests with variables.Please let me know if you are facing a problem.
Thank you
Yacoub -
How to pass values to the page to the Page target?
Hi all
I want to pass values from the 10 column to a report page (page 1 of source) to a target page 2 HTML region and 10 fields.
These 10 fields held values that are passing in the report.
Please suggest a solution here!
Thank you and best regards,
Robette.source page IE 1, since I can navigate to page 3, and also on page 2, I can navigate to the target 3 page, when I click on the back button Go it will navigate page 1 only.
That is why I want the Go back button must redirect the target page, hence it is called.Create an application called PREV_PAGE, item in the link of the page 3 col page 2 * 3 * as a parameter of the element PREV_PAGE.
So when you're on page 2 you will know the previous page is the value of the point of application PREV_PAGE 3
So would be the url in your Go Back buttonf?p=&APP_ID.:&PREV_PAGE.:&APP_SESSION.::NO::
There is something really need it please send your comments to this requirement. It will be really useful.
-
hide and show the region and pass values to the region
I have a p_dept lov static 10,20,30 and submit button
I have 2 areas with the name dept10, dept20
When I select lov p_dept = 10 and submit button then see the region of dept10 (do not know how to pass values from: p_dept suggest key)
dept10 region query is
Select * from emp where deptno =: p_dept
dept20 region query is
Select * from emp where deptno =: p_dept
Please someone help me how can I achieve it with stetp by step.Hello
You can simply set the display state of your regions.
- Edit dept10 region set condition [item / column = value] - Expression 1 p_dept - Expression 2 10
Do the same for the dept20 region
- Edit dept20 region set condition [item / column = value] - Expression 1 p_dept - Expression 2 20
When you submit a page, your selected items will be defined in the session if you do not need to pass any parameter.
Thnks
-
How can I pass values from one node to the other
Give a standard and efficient way to pass values of the child to the parent
Hai Prathap
You can use the custom event to pass values from the children to the parent
-
Search and replace values in the text field before the values are stored in DB
Hello
There is a question - answer and text box text field - in my application. Problem is, some of the answers are stored with the apostrophes to the DB and I have a problem while recovering in the DB. I need to replace the single quotes 1 with 2 apostrophes. The values are stored in the DB when you click on the submit button.
So, I'm using the following javascript code:
italics
< script type = "text/javascript" >
function test().
{
var str = "& P2_S1.";
document. Write (Escape (STR));
}
< /script >
italics
I need to call this javascript function, when the user clicks on the button submit, but BEFORE the values are stored in the DB. How can I get this done?
Please let me know.Hi Suzi,
Just use
begin update test set S1=replace(:P2_S1, '''', '''''') where name=:APP_USER; end;
as you did in your SELECT statement.
But I shake also why you want to do? Where do you have problems with the apostrophe?
Concerning
Patrick
-----------
My Blog: http://www.inside-oracle-apex.com
APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins -
JavaScript function: passing values
Hi all
I'm trying to call a javascript function in apex oralce to pass two variables.
onfocus = "calTotalPrice (QUANTITY, and UNITPRICE)";
I am calculating the price total based on the 'quantity' and 'Unit price'... but values do not happen.
Please suggest me the correct syntax for passing values into a function.
Kind regards
Sandeep ReddyHere is a function I use to take three input fields and fill a fourth:
function calcBMI(formItem1, formItem2, formItem3, formItem4) { var bmift = document.getElementById(formItem1).value; var bmiin = document.getElementById(formItem2).value; var bmiht = bmift*12 + parseInt(bmiin); var bmiwt = document.getElementById(formItem3).value*703; var bmi = Math.round(bmiwt/(bmiht*bmiht)*100)/100; document.getElementById(formItem4).value = bmi; }
Maybe you are looking for
-
Qosmio G20: Need new driver of RAID and recovery CD
Hello Unfortunately, I lost my recovery CD and also I'm wrongformatted my Qosmio g20 (OS infected by the virus) Could someone send me the driver raid for me files?(I tried to download support files, but it has not worked properly) my email address is
-
Can anyone tell why I can not download Skype since the Japanese App store? Thanks in advance Antonio
-
laptop used to boot after update bios from hp site guard goes blue screen
Hi I have a compaq mini 110 (model 110 c-1110sa) I've updated the bios on your website and now it won't start on XP don't know what to do to get another work please can you help me to get this working again and it is not provided necessary to Flash t
-
Single channel match trigger speed model vs onset of edge on the PXI-6562
I think that my question boils down to this: what function does the edge of trigger plan that is not provided by the model match trigger? As far as I know, the only differnece on the PXI-6562 is the edge trigger has its own pins dedicated (PFI pins a
-
Since the recent 10 upgrade Windows HP Solution Center no longer works. After the initial Welcome screen, it says "HP Solution Center cannot work because your device installation is not complete." The following tips on previous discussions and the s