NullPointerException with passing null param to query.execute() ?
Hi!
I seem to get this error when passing a null param to query.execute().
Shouldn't I be able to do this?
Thanks,
Nic.
kodo.util.UserException: java.lang.NullPointerException
NestedThrowables:
java.lang.NullPointerException
at kodo.query.AbstractQuery.executeWithMap(AbstractQuery.java:728)
at kodo.query.AbstractQuery.executeWithArray(AbstractQuery.java:640)
at kodo.query.AbstractQuery.execute(AbstractQuery.java:622)
at com.transmachina.idiomatica.db.DbSession.get(DbSession.java:536)
at
com.transmachina.idiomatica.app.WebDictionaryManager.hasBeenPreviouslyLookedUp(WebDictionaryManager.java:26)
at
com.transmachina.idiomatica.app.WebDictionaryManager.doLookup(WebDictionaryManager.java:39)
at
com.transmachina.idiomatica.utils.WordSearch.lookupAndReturnMatches(WordSearch.java:374)
at
com.transmachina.idiomatica.utils.WordSearch.getWordMatches(WordSearch.java:345)
at
com.transmachina.idiomatica.utils.WordSearch.getMatchesWithPosTrimming(WordSearch.java:546)
at
com.transmachina.idiomatica.engine.parser.ambiguity.WordAmbiguity.setupWordAmbiguity(WordAmbiguity.java:98)
at
com.transmachina.idiomatica.engine.parser.ambiguity.TextAmbiguity.setupTextAmbiguity(TextAmbiguity.java:271)
at
com.transmachina.idiomatica.engine.parser.ambiguity.ParsedText.setupParsedText(ParsedText.java:141)
at
com.transmachina.idiomatica.engine.presentation.Parser.parseToVectorOfWords(Parser.java:92)
at
com.transmachina.idiomatica.engine.presentation.Parser.getWord(Parser.java:377)
at
com.transmachina.idiomatica.engine.presentation.Parser.getPassage(Parser.java:193)
at
com.transmachina.idiomatica.engine.presentation.Parser.getPassage(Parser.java:158)
at
com.transmachina.idiomatica.adminTool.frame.translation.FrameTranslation$5.run(FrameTranslation.java:231)
Caused by: java.lang.NullPointerException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:219)
at
kodo.jdbc.meta.InClassNameClassIndicator.loadSubclasses(InClassNameClassIndicator.java:79)
at
kodo.jdbc.runtime.JDBCStoreManager.loadSubclasses(JDBCStoreManager.java:1207)
at
kodo.jdbc.runtime.JDBCStoreManager.addClassConditions(JDBCStoreManager.java:959)
at
kodo.jdbc.runtime.JDBCStoreManager.selectMappings(JDBCStoreManager.java:922)
at kodo.jdbc.runtime.JDBCStoreManager.access$300(JDBCStoreManager.java:32)
at
kodo.jdbc.runtime.JDBCStoreManager$SelectImpl.selectInternal(JDBCStoreManager.java:1333)
at kodo.jdbc.sql.AbstractSelect.select(AbstractSelect.java:313)
at kodo.jdbc.sql.AbstractSelect.select(AbstractSelect.java:304)
at
kodo.jdbc.query.JDBCExpressionFactory.select(JDBCExpressionFactory.java:137)
at kodo.jdbc.query.JDBCQuery.executeQuery(JDBCQuery.java:111)
at
kodo.query.JDOQLQuery$DataStoreQueryExecutor.executeQuery(JDOQLQuery.java:474)
at kodo.query.AbstractQuery.executeWithMap(AbstractQuery.java:693)
... 16 more
NestedThrowablesStackTrace:
java.lang.NullPointerException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:219)
at
kodo.jdbc.meta.InClassNameClassIndicator.loadSubclasses(InClassNameClassIndicator.java:79)
at
kodo.jdbc.runtime.JDBCStoreManager.loadSubclasses(JDBCStoreManager.java:1207)
at
kodo.jdbc.runtime.JDBCStoreManager.addClassConditions(JDBCStoreManager.java:959)
at
kodo.jdbc.runtime.JDBCStoreManager.selectMappings(JDBCStoreManager.java:922)
at kodo.jdbc.runtime.JDBCStoreManager.access$300(JDBCStoreManager.java:32)
at
kodo.jdbc.runtime.JDBCStoreManager$SelectImpl.selectInternal(JDBCStoreManager.java:1333)
at kodo.jdbc.sql.AbstractSelect.select(AbstractSelect.java:313)
at kodo.jdbc.sql.AbstractSelect.select(AbstractSelect.java:304)
at
kodo.jdbc.query.JDBCExpressionFactory.select(JDBCExpressionFactory.java:137)
at kodo.jdbc.query.JDBCQuery.executeQuery(JDBCQuery.java:111)
at
kodo.query.JDOQLQuery$DataStoreQueryExecutor.executeQuery(JDOQLQuery.java:474)
at kodo.query.AbstractQuery.executeWithMap(AbstractQuery.java:693)
at kodo.query.AbstractQuery.executeWithArray(AbstractQuery.java:640)
at kodo.query.AbstractQuery.execute(AbstractQuery.java:622)
at com.transmachina.idiomatica.db.DbSession.get(DbSession.java:536)
at
com.transmachina.idiomatica.app.WebDictionaryManager.hasBeenPreviouslyLookedUp(WebDictionaryManager.java:26)
at
com.transmachina.idiomatica.app.WebDictionaryManager.doLookup(WebDictionaryManager.java:39)
at
com.transmachina.idiomatica.utils.WordSearch.lookupAndReturnMatches(WordSearch.java:374)
at
com.transmachina.idiomatica.utils.WordSearch.getWordMatches(WordSearch.java:345)
at
com.transmachina.idiomatica.utils.WordSearch.getMatchesWithPosTrimming(WordSearch.java:546)
at
com.transmachina.idiomatica.engine.parser.ambiguity.WordAmbiguity.setupWordAmbiguity(WordAmbiguity.java:98)
at
com.transmachina.idiomatica.engine.parser.ambiguity.TextAmbiguity.setupTextAmbiguity(TextAmbiguity.java:271)
at
com.transmachina.idiomatica.engine.parser.ambiguity.ParsedText.setupParsedText(ParsedText.java:141)
at
com.transmachina.idiomatica.engine.presentation.Parser.parseToVectorOfWords(Parser.java:92)
at
com.transmachina.idiomatica.engine.presentation.Parser.getWord(Parser.java:377)
at
com.transmachina.idiomatica.engine.presentation.Parser.getPassage(Parser.java:193)
at
com.transmachina.idiomatica.engine.presentation.Parser.getPassage(Parser.java:158)
at
com.transmachina.idiomatica.adminTool.frame.translation.FrameTranslation$5.run(FrameTranslation.java:231)
Hi Marc!
I think you are right! My database had been corrupted.
Thanks,
Nic.
Marc Prud'hommeaux wrote:
Nic-
Can you show us the code you use to build the query?
A casual look at the stack trace indicates that the problem might
actually be that you are using the in-class-name subclass identifier,
but there is a row in the database for which that column is null. Can
you check to see if this is the case?
In article <[email protected]>, Nic Cottrell wrote:
Hi!
I seem to get this error when passing a null param to query.execute().
Shouldn't I be able to do this?
Thanks,
Nic.
kodo.util.UserException: java.lang.NullPointerException
NestedThrowables:
java.lang.NullPointerException
at kodo.query.AbstractQuery.executeWithMap(AbstractQuery.java:728)
at kodo.query.AbstractQuery.executeWithArray(AbstractQuery.java:640)
at kodo.query.AbstractQuery.execute(AbstractQuery.java:622)
at com.transmachina.idiomatica.db.DbSession.get(DbSession.java:536)
at
com.transmachina.idiomatica.app.WebDictionaryManager.hasBeenPreviouslyLookedUp(WebDictionaryManager.java:26)
at
com.transmachina.idiomatica.app.WebDictionaryManager.doLookup(WebDictionaryManager.java:39)
at
com.transmachina.idiomatica.utils.WordSearch.lookupAndReturnMatches(WordSearch.java:374)
at
com.transmachina.idiomatica.utils.WordSearch.getWordMatches(WordSearch.java:345)
at
com.transmachina.idiomatica.utils.WordSearch.getMatchesWithPosTrimming(WordSearch.java:546)
at
com.transmachina.idiomatica.engine.parser.ambiguity.WordAmbiguity.setupWordAmbiguity(WordAmbiguity.java:98)
at
com.transmachina.idiomatica.engine.parser.ambiguity.TextAmbiguity.setupTextAmbiguity(TextAmbiguity.java:271)
at
com.transmachina.idiomatica.engine.parser.ambiguity.ParsedText.setupParsedText(ParsedText.java:141)
at
com.transmachina.idiomatica.engine.presentation.Parser.parseToVectorOfWords(Parser.java:92)
at
com.transmachina.idiomatica.engine.presentation.Parser.getWord(Parser.java:377)
at
com.transmachina.idiomatica.engine.presentation.Parser.getPassage(Parser.java:193)
at
com.transmachina.idiomatica.engine.presentation.Parser.getPassage(Parser.java:158)
at
com.transmachina.idiomatica.adminTool.frame.translation.FrameTranslation$5.run(FrameTranslation.java:231)
Caused by: java.lang.NullPointerException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:219)
at
kodo.jdbc.meta.InClassNameClassIndicator.loadSubclasses(InClassNameClassIndicator.java:79)
at
kodo.jdbc.runtime.JDBCStoreManager.loadSubclasses(JDBCStoreManager.java:1207)
at
kodo.jdbc.runtime.JDBCStoreManager.addClassConditions(JDBCStoreManager.java:959)
at
kodo.jdbc.runtime.JDBCStoreManager.selectMappings(JDBCStoreManager.java:922)
at kodo.jdbc.runtime.JDBCStoreManager.access$300(JDBCStoreManager.java:32)
at
kodo.jdbc.runtime.JDBCStoreManager$SelectImpl.selectInternal(JDBCStoreManager.java:1333)
at kodo.jdbc.sql.AbstractSelect.select(AbstractSelect.java:313)
at kodo.jdbc.sql.AbstractSelect.select(AbstractSelect.java:304)
at
kodo.jdbc.query.JDBCExpressionFactory.select(JDBCExpressionFactory.java:137)
at kodo.jdbc.query.JDBCQuery.executeQuery(JDBCQuery.java:111)
at
kodo.query.JDOQLQuery$DataStoreQueryExecutor.executeQuery(JDOQLQuery.java:474)
at kodo.query.AbstractQuery.executeWithMap(AbstractQuery.java:693)
... 16 more
NestedThrowablesStackTrace:
java.lang.NullPointerException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:219)
at
kodo.jdbc.meta.InClassNameClassIndicator.loadSubclasses(InClassNameClassIndicator.java:79)
at
kodo.jdbc.runtime.JDBCStoreManager.loadSubclasses(JDBCStoreManager.java:1207)
at
kodo.jdbc.runtime.JDBCStoreManager.addClassConditions(JDBCStoreManager.java:959)
at
kodo.jdbc.runtime.JDBCStoreManager.selectMappings(JDBCStoreManager.java:922)
at kodo.jdbc.runtime.JDBCStoreManager.access$300(JDBCStoreManager.java:32)
at
kodo.jdbc.runtime.JDBCStoreManager$SelectImpl.selectInternal(JDBCStoreManager.java:1333)
at kodo.jdbc.sql.AbstractSelect.select(AbstractSelect.java:313)
at kodo.jdbc.sql.AbstractSelect.select(AbstractSelect.java:304)
at
kodo.jdbc.query.JDBCExpressionFactory.select(JDBCExpressionFactory.java:137)
at kodo.jdbc.query.JDBCQuery.executeQuery(JDBCQuery.java:111)
at
kodo.query.JDOQLQuery$DataStoreQueryExecutor.executeQuery(JDOQLQuery.java:474)
at kodo.query.AbstractQuery.executeWithMap(AbstractQuery.java:693)
at kodo.query.AbstractQuery.executeWithArray(AbstractQuery.java:640)
at kodo.query.AbstractQuery.execute(AbstractQuery.java:622)
at com.transmachina.idiomatica.db.DbSession.get(DbSession.java:536)
at
com.transmachina.idiomatica.app.WebDictionaryManager.hasBeenPreviouslyLookedUp(WebDictionaryManager.java:26)
at
com.transmachina.idiomatica.app.WebDictionaryManager.doLookup(WebDictionaryManager.java:39)
at
com.transmachina.idiomatica.utils.WordSearch.lookupAndReturnMatches(WordSearch.java:374)
at
com.transmachina.idiomatica.utils.WordSearch.getWordMatches(WordSearch.java:345)
at
com.transmachina.idiomatica.utils.WordSearch.getMatchesWithPosTrimming(WordSearch.java:546)
at
com.transmachina.idiomatica.engine.parser.ambiguity.WordAmbiguity.setupWordAmbiguity(WordAmbiguity.java:98)
at
com.transmachina.idiomatica.engine.parser.ambiguity.TextAmbiguity.setupTextAmbiguity(TextAmbiguity.java:271)
at
com.transmachina.idiomatica.engine.parser.ambiguity.ParsedText.setupParsedText(ParsedText.java:141)
at
com.transmachina.idiomatica.engine.presentation.Parser.parseToVectorOfWords(Parser.java:92)
at
com.transmachina.idiomatica.engine.presentation.Parser.getWord(Parser.java:377)
at
com.transmachina.idiomatica.engine.presentation.Parser.getPassage(Parser.java:193)
at
com.transmachina.idiomatica.engine.presentation.Parser.getPassage(Parser.java:158)
at
com.transmachina.idiomatica.adminTool.frame.translation.FrameTranslation$5.run(FrameTranslation.java:231)
>>
>>
>>
>>
>>
>>
>>
>>
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.com
Similar Messages
-
Exception while passing null as param in custom tag
Hi,
I am using Oracle 10g AS(10.1.2). In my j2ee application,while passing NULL as parameter in custom tags, i am getting exception. But it was working fine with oracle 9i as.
for example:
This is my code in jsp:
<%
String str =null;
%>
<test:getInfo id="<%=str%>" />
While executing the above code, I am getting the following exception :
javax.servlet.ServletException
at com.evermind.server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:595)
at com.evermind.server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:537)
at ListAlerts.jspService(_ListAlerts.java:1827)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:121)
at com.evermind.server.http.GetParametersRequestDispatcher.newInclude(GetParametersRequestDispatcher.java:80)
at com.evermind.server.http.GetParametersRequestDispatcher.include(GetParametersRequestDispatcher.java:34)
at com.evermind.server.http.EvermindPageContext.include(EvermindPageContext.java:267)
at Content.jspService(_Content.java:181)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:121)
at com.evermind.server.http.GetParametersRequestDispatcher.newInclude(GetParametersRequestDispatcher.java:80)
at com.evermind.server.http.GetParametersRequestDispatcher.include(GetParametersRequestDispatcher.java:34)
at com.evermind.server.http.EvermindPageContext.include(EvermindPageContext.java:267)
at Main.jspService(_Main.java:360)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:222)
at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:845)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:734)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
Please help me....Hello,
I do not remember exactly how the null where handle in Oracle 9iAS. Have you tested what is the differences in the way the <%= null %> is returned in both 9iAS and 10.1.2?
You may just have to modify the way the value is sent to the bean from the tag.
Regards
Tugdual Grall -
Passing null in ArrayList as part of EJB Method gives NullPointerException
Hi gurus,
I have many EJBS in my application. All are working fine but when I pass null as element of ArrayList (serializable object) and pass ArrayList object to SessionBean it gives me NullPointerException. I think as part of EJB Specification it allows the Serialized object as part of method call but I think Oracle9iAS 903 has this as an error.
e.g
ArrayList mylist = new ArrayList();
mylist.add("lar");
mylist.add("%");
mylist.add(new Long(0));
mylist.add("%");
mylist.add(new Long(0));
mylist.add("");
mylist.add("%");
mylist.add("Y");
mylist.add(null);
mylist.add(new Long(0));
Object obj= ictx.lookup("java:comp/env/sampleEJB");
SampleEJBHome home =(SampleEJBHome)PortableRemoteObject.narrow(obj,SampleEJBHome.class);
SampleEJB sampleEJB = home.create();
ArrayList retList =sampleEJB.test(mylist);
I think this is error in Oracle 903 IAS. Let me know If I am doing anything wrong here.
Thanks
RiteshI checked the bug status for you. It looks like one of our support analysts has tested the patch for the bug I mentioned to see if it resolves the similar problem you have and determined that it doesn't fix the problem you are facing. The bug you mention is still open and pending some further analysis by our bug fixing team.
The bug text isn't a 100% match what you have entered here in the forum, so it might be still worth your while to get the patch for bug 2753425 from support and test it in an isolated environment to see if it does resolve your problem. I'd recommend that you talk to your support analyst and discuss this with them.
cheers
-steve- -
Issue with passing param's from ME POD to MII.
I have an interesting issue. I have a customer with POD screen in ME that has a command button to open an MII screen. The POD screen has the workstation ID in the URL. The MII screen needs that workstation id. Normally I would use window.opener.location.href in javascript but Iu2019m getting a "permission denied" from IE. So IE thinks this is a cross domain call. Although the POD and MII pages are on different machines, they are on the same domain.
POD url example: (parent page)
http://MEmachine.mydomain.com:52600/manufacturing/com/sapdev/jsp/activity/pod/PODMain.jsp?WORKSTATION=TEST_POD&OPERATION=WA_123_L&RESOURCE=WA_123_L&ACTIVITY_ID=STATION1
MII url example: (pop up)
http://MIImachine.mydomain.com:55500/XMII/CM/Scrap/ScrapApplet.irpt?service=Personalization&j_user=MyUser&j_password=Mypassword
My suspicion is that although the two machines are on the same domain, the fact that they are on different ports is causing IE to think itu2019s a cross domain scripting call and forbidding it.
The obvious workround would be to just send the workstation name as part of the opening url call, however Iu2019m not sure if the customer will be able to do that for each workstation.
Thoughts?Below is an example of passing All(NULL), Single and Multi values using Oracle DB (I think you are on Teradata, so use equivalent syntax)
where (columnxxx in (:parameter) or least(:parameter) is null)
Here:
columnxxx in (:parameter) will take care passing single and multi-select
least(:parameter) is null will take care when ALL is selected (assuming you have chosen "Pass NULL" for ALL) -
Code to run a query in SQL from Access with pass through query
I have a query in SQL Server 2008:
[Auto Null Up Date].sql. I want to run this query from Access 2007 using a Pass Through Query. What is the command/code to run this query from Access? I have used Pass Through Queries but never in this capacity so I am somewhat lost. I have
already established the OBDC link and tested.Naomi,
Here are a few lines of the SQLCMD code in the [Auto Null Update].sql query:
USE [Archive Master]
Go
:r "\\10.200.1.60\c$\Users\bkreft\My Documents\SQL Server Management Studio\Projects\Null BackPress 2 update.sql"
GO
:r "\\10.200.1.60\c$\Users\bkreft\My Documents\SQL Server Management Studio\Projects\Null CHWR 3 update.sql"
GO
:r "\\10.200.1.60\c$\Users\bkreft\My Documents\SQL Server Management Studio\Projects\Null CHWR 4 update.sql"
When this code is pasted into a Create Procedure, (the USE [Archive Master] is not used), the procedure will run, but once saved here is what is left of the procedure once I attempt to modify:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:
<Author,,Name>
-- Create date: <Create Date,,>
-- Description:
<Description,,>
-- =============================================
Create PROCEDURE [dbo].[NullTest2]
AS -
Passing null to Optional SQL ServerStored Procedure parameters for Query
Has anyone been able to pass null to a SQL Server Stored Procedure in a query for Interactive Reporting. I have a procedure that modifies the sql statement if the user passes additional filter data and I want to pass null to it. It works great if I use in reporting services, but I am being forced to us IR. Any help would be appreciated.
And just a point of issue...why do I have to use an ODBC driver to see or use my stored procedure!! Sorry couldn't resist!
Edited by: BISolutionBuilders on Jun 29, 2009 10:08 PMWhy dynamic sql ? It can be static, you are just passing the filter value
-
RRI: BEX query to webadress(is SRM ITS base URL with passing value to it)
Dear friends,
I am doing RRI from query to webaddress,
i have defined jump(report type: webaddress and reicver report as url) from shopping cart bex query(SRM ) to webaddres.
here url is SRM ITS base link for monitoring shoppingcart(http://(hostname):(SRM port)/sap/bc/gui/sap/its/bbp_mon_sc?sap-client=200&sap-language=EN).
jump is working from portal(from bex query ivew).
but i want to pass value(shopping cart value) to above url and want to skip first screen.
i have maintained assignment detail by assigning field name against shopping cart infoobject with type url parameter, but its not directly call reciver url with given input field.
i tried the diffrent combination of url and field assignment as like below:
1: web address url:http://(hostname):(SRM port)/sap/bc/gui/sap/its/bbp_mon_sc?sap-client=200&sap-language=EN
assigned field: GS_HEADER-OBJECT_ID
but when we call reciver url from portal bex ivew, only initial screen come with page url as below:
http://(hostname):(SRM port)/sap/bc/gui/sap/its/bbp_mon_sc?sap-client=200&sap-language=EN?GS_HEADER-OBJECT_ID='selected number value'
2: web address url:http://(hostname):(SRM port)/sap(cz1TSUQlM2FBTk9OJTNhc3JtZGV2X0lTRF8wMCUzYUdxdFNqdWdMS2xyTEFEelFTNFlWTnJXRjEzdy05UnhTWXl4TW03c3AtQVRU)/bc/gui/sap/its/bbp_mon_sc/~flNUQVRFPTgzMTcuMDAyLjAxLjAx====#jump_to_selected_sc
assigned field: flNUQVRFPTgzMTcuMDAyLjAxLjAx
but when we call reciver url from portal bex ivew, only initial screen come with page url as below:
http://(hostname):(SRM port)/sap(cz1TSUQlM2FBTk9OJTNhc3JtZGV2X0lTRF8wMCUzYUdxdFNqdWdMS2xyTEFEelFTNFlWTnJXRjEzdy05UnhTWXl4TW03c3AtQVRU)/bc/gui/sap/its/bbp_mon_sc/~flNUQVRFPTgzMTcuMDAyLjAxLjAx====#jump_to_selected_sc?flNUQVRFPTgzMTcuMDAyLjAxLjAx='selected number value'
I have seen the source code of that url(inital screen and after entring the value to that screen) too.
how to call webadress(SRM ITS base shopping cart URL) with passing the one of field value of that url screen?
Thanks and regards,
Dushyant.Hi,
i have replied wrong,
i mean that
when i am trying this,
http://(hostname):(SRM port)/sap/bc/gui/sap/its/bbp_mon_sc?sap-client=200&sap-language=EN&GS_HEADER-OBJECT_ID='selected number value'
with field assignment: shopping cart number = GS_HEADER-OBJECT_ID (for drill down on particular field, i.e. open the URL with this field value entred from sender query's field shopping cart number)
result is coming: http://(hostname):(SRM port)/sap/bc/gui/sap/its/bbp_mon_sc?sap-client=200&sap-language=EN&GS_HEADER-OBJECT_ID='selected number value'&GS_HEADER-OBJECT_ID=10000456
and when try this:
http://(hostname):(SRM port)/sap/bc/gui/sap/its/bbp_mon_sc?sap-client=200&sap-language=EN
with field assignment: shopping cart number = GS_HEADER-OBJECT_ID
result is coming: http://(hostname):(SRM port)/sap/bc/gui/sap/its/bbp_mon_sc?sap-client=200&sap-language=EN&GS_HEADER-OBJECT_ID=10000456
but not skiping the initial screen.
Thanks. -
How to find exact query executed by reports with parameters
Hi,
I am running a report which errors out with below log messages.
REP-0004: Warning: Unable to open user preference file.
REP-0300: ORACLE error occurred.
REP-0069: Internal error
REP-57054: In-process job terminated:Terminated with error:
REP-300: ORACLE error occurred.
In toad, the query is not giving any error message.
I want to know what exact query is being executed by oracle report server.
How can I find exact query executed?
Abdul WahidHi Bobby,
I had already tried to enable trace. But when I enable trace, report builder crashes!!
I created SR also, and oracle says that they do not support 10.1.2.0.2. I should update to 10.1.2.3.
I installed the 10.1.2.0.2 in xp mode and tried to update with 10.1.2.3. However, the updgrade failed saying that there is no update patch required/found or something like that.
Abdul Wahid -
SQL Query Executing on Column Selection
All,
I have a table displayed based on a VO whose query is something like this
SELECT * FROM (SELECT apps.xxoqt_system_items_v1.SEGMENT1, apps.xxoqt_system_items_v1.DESCRIPTION,
apps.xxoqt_item_stock_v.ORGANIZATION_NAME, apps.xxoqt_item_stock_v.ORGANIZATION_CODE,
apps.xxoqt_system_items_v1.RETAIL_PRICE, apps.xxoqt_item_stock_v.ORGANIZATION_ID,
apps.xxoqt_item_stock_v.RESERVABLE_QTY as OnHand_QTY, apps.xxoqt_item_stock_v.INVENTORY_ITEM_ID,
apps.xxoqt_system_items_v1.PC_CODE, apps.XXOM_SPA_OQT_PKG.GET_NET_PRICE(apps.xxoqt_item_stock_v.INVENTORY_ITEM_ID,:bAccountId) as NetPrice,
apps.xxoqt_system_items_v1.pack_qty, apps.xxoqt_system_items_v1.box_qty, apps.xxoqt_system_items_v1.case_qty
FROM apps.xxoqt_system_items_v1 ,apps.xxoqt_item_stock_v
WHERE apps.xxoqt_system_items_v1.INVENTORY_ITEM_ID = apps.xxoqt_item_stock_v.INVENTORY_ITEM_ID AND 1=1) QRSLT ORDER BY RETAIL_PRICEI have 3 View Criteria defined and they are called pro grammatically through the code. (the 3 VCs have rest of the 2 bind variable one is segment other is organizationCode)
I have 3 bind variables and all are marked as required.
I pass all the 3 bind parameter values from my method. All is well and i can see records displayed in the table on the UI.
The issue is when i click on the column sorting, i get the error
java.sql.SQLException: Attempt to set a parameter name that does not occur in the SQL: segmentIf i remove the required attribute form the 2 bind variables (segment and orgcode), when i click on column sorting my query doesn't take accountID and runs indefinitely long
SELECT * FROM (SELECT apps.xxoqt_system_items_v1.SEGMENT1, apps.xxoqt_system_items_v1.DESCRIPTION,
apps.xxoqt_item_stock_v.ORGANIZATION_NAME, apps.xxoqt_item_stock_v.ORGANIZATION_CODE,
apps.xxoqt_system_items_v1.RETAIL_PRICE, apps.xxoqt_item_stock_v.ORGANIZATION_ID,
apps.xxoqt_item_stock_v.RESERVABLE_QTY as OnHand_QTY, apps.xxoqt_item_stock_v.INVENTORY_ITEM_ID,
apps.xxoqt_system_items_v1.PC_CODE, apps.XXOM_SPA_OQT_PKG.GET_NET_PRICE(apps.xxoqt_item_stock_v.INVENTORY_ITEM_ID,:bAccountNumber) as NetPrice,
apps.xxoqt_system_items_v1.pack_qty, apps.xxoqt_system_items_v1.box_qty, apps.xxoqt_system_items_v1.case_qty
FROM apps.xxoqt_system_items_v1 ,apps.xxoqt_item_stock_v
WHERE apps.xxoqt_system_items_v1.INVENTORY_ITEM_ID = apps.xxoqt_item_stock_v.INVENTORY_ITEM_ID AND 1=1) QRSLT ORDER BY RETAIL_PRICE DESC
Oct 9, 2011 3:19:16 PM com.awrostamani.view.TracingViewObjectSqlQueryExecution logQueryStatementAndBindParameters
INFO: BindVars:(bAccountNumber=null)I am a bit confused here as it looks like the entire query is getting executed for sorting.
Can someone please tell me what is the issue here ?
thnks
Jdev 11.1.1.5
Edited by: in the line of fire on Oct 9, 2011 2:07 PM
Edited by: in the line of fire on Oct 9, 2011 3:19 PM@Timo, the moment i add the line in the VO create() also tried it adding to the constructor but
I am getting this error.
java.sql.SQLSyntaxErrorException: ORA-00907: missing right parenthesis
However my issue is not with QRSLT but the issue is the query getting fired on column sorting, and in the process bind values are being set as null
my base query on which table is built is
SELECT apps.xxoqt_system_items_v1.SEGMENT1, apps.xxoqt_system_items_v1.DESCRIPTION,
apps.xxoqt_item_stock_v.ORGANIZATION_NAME, apps.xxoqt_item_stock_v.ORGANIZATION_CODE,
apps.xxoqt_system_items_v1.RETAIL_PRICE, apps.xxoqt_item_stock_v.ORGANIZATION_ID,
apps.xxoqt_item_stock_v.RESERVABLE_QTY as OnHand_QTY, apps.xxoqt_item_stock_v.INVENTORY_ITEM_ID,
apps.xxoqt_system_items_v1.PC_CODE, apps.XXOM_SPA_OQT_PKG.GET_NET_PRICE(apps.xxoqt_item_stock_v.INVENTORY_ITEM_ID,:bAccountNumber) as NetPrice,
apps.xxoqt_system_items_v1.pack_qty, apps.xxoqt_system_items_v1.box_qty, apps.xxoqt_system_items_v1.case_qty
FROM apps.xxoqt_system_items_v1 ,apps.xxoqt_item_stock_v
WHERE apps.xxoqt_system_items_v1.INVENTORY_ITEM_ID = apps.xxoqt_item_stock_v.INVENTORY_ITEM_ID AND 1=1On click on a button i set the bind parameters value and reexecute the VO. So i get lets say 2 records. Ifi now sort the column, i see the base query is getting fired and the parameter (accountNumber being passed as null, if i unmark the rest of the bind parametes to not required else i get the error message required bind parameter dose not appear in the SQL)
Edited by: in the line of fire on Oct 9, 2011 5:51 PM
Edited by: in the line of fire on Oct 9, 2011 6:04 PM -
Passing parameters for a query throught XML and capturing response in the same
Hi All,
I have defined a RequestParameters object and i am passing paramerts for a query through XML and trying to capture the result in the same and send back to the source. In this case i am send XML from excel.
Below is my XML format.
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Insert xmlns="http://tempuri.org/">
<dataContractValue>
<dsRequest>
<dsRequest>
<SOURCE></SOURCE>
<ACTION>Insert</ACTION>
<RequestParams>
<RequestParams>
<ACC_NO>52451</ACC_NO>
<EMP_CITY>HYD</EMP_CITY>
<EMP_NAME>RAKESH</EMP_NAME>
<EMP_CONTACT>99664</EMP_CONTACT>
<EMP_JOM>NOV</EMP_JOM>
<EMP_SALARY>12345</EMP_SALARY>
</RequestParams>
<RequestParams>
<ACC_NO>52452</ACC_NO>
<EMP_CITY>HYD</EMP_CITY>
<EMP_NAME>RAKESH</EMP_NAME>
<EMP_CONTACT>99664</EMP_CONTACT>
<EMP_JOM>NOV</EMP_JOM>
<EMP_SALARY>12345</EMP_SALARY>
</RequestParams>
</RequestParams>
</dsRequest>
<dsRequest>
<SOURCE></SOURCE>
<ACTION>Update</ACTION>
<RequestParams>
<RequestParams>
<ACC_NO>52449</ACC_NO>
<EMP_CITY>HYD1</EMP_CITY>
<EMP_NAME>RAKESH1</EMP_NAME>
<EMP_SALARY>1345</EMP_SALARY>
</RequestParams>
<RequestParams>
<ACC_NO>52450</ACC_NO>
<EMP_CITY>HYDer</EMP_CITY>
<EMP_NAME>RAKEH</EMP_NAME>
<EMP_SALARY>1235</EMP_SALARY>
</RequestParams>
</RequestParams>
</dsRequest>
</dsRequest>
</dataContractValue>
</Insert>
</s:Body>
</s:Envelope>
Where i have a List of dsRequest and RequestParams, where i can send any number of requests for Insert,Update. I have two a XML element defined in RequestParams "RowsEffected","error" where the result will be caputred and is updated
to the response XML.
I have 6 defined in RequestParams
EMP_SALARY(int),ACC_NO(int),EMP_CITY(string),EMP_NAME(string),EMP_CONTACT(string),EMP_JOM(string)
My Question is:
When i am trying to build response XML with the following code, the parameters which are not given in the Request XML are also appearing in the Response.
ResponseParams.Add(
newdsResponse()
ACTION = OriginalParams[a].ACTION,
SOURCE = OriginalParams[a].SOURCE,
Manager = OriginalParams[a].Manager,
RequestParams = OriginalParams[a].RequestParams
Where the OriginalParams is dsRequest
Ex: In my update query i will only send three parameters, but in my response building with ablove code, i am getting all the variables defined as INT in the RequestParameters.
Is there any way i can avoid this and build response with only the parameters given in the Request ??
Appreciate ur help..Thanks
Cronsey.Hi Kristin,
My project is, User will be giving the parameters in the excel, and using VBA, the values are captured and an XML is created in the above mentioned format and is send to web service for the Insert/Update.
I created a webservice which reads the values from <datacontract> and it consist of list of <dsRequests> where any number of Insert/Upate commands can be executed, with in which it contains a list of <RequestParams> for multiple insertion/Updation.
//function call
OriginalParams = generator.Function(query, OriginalParams);
where OriginalParams is List<dsRequest>
//inside function
command.Parameters.Add()// parameters adding
int
val = command.ExecuteNonQuery();
after the execution,an XML element is added for the response part.and it is looped for all the RequestParams.
OriginalParams[i].Result.Add(
newResult()
{ ERROR = "No Error",
ROWS_EFFECTEFD = 1 });
//once all the execution is done the response building part
for(inta
= 0; a < OriginalParams.Count; a++)
ResponseParams.Add(
newdsResponse()
Result = OriginalParams[a].Result
QUEST: When i am trying to build response XML with the following code, the parameters which are not given in the Request XML are also appearing in the Response.
Ex: In my update query i will only send three parameters, but in my response building with ablove code, i am getting all the variables defined as INT in the RequestParameters.
Is there any way i can avoid this and build response with only the parameters given in the Request ??
Appreciate ur help..Thanks
Cronsey. -
Strange error in query executed via DBLink
Hi,
I am running below big query(existing code in my project) on a oracle database(DB1) schema which accesses data from tables located in a remote oracle database(DB2) schema.
But I am getting error:
ORA-00904: "CERMA"."EFFECTIVE_TO": invalid identifier
ORA-02063: preceding line from <DB_LINK_NAME>
The concerned table is present in remote database and simple "select * from" on the concerned table from DB1 is working properly but when used in below query it is giving the above error.
The system design is as follows:
DB2 - In this database ,Views are created in SCHEMA1 of this database which refer the underlying tables in SCHEMA2 of same database.
e.g. view name = clm_claims_basic_info_vw
DB1 - In this database , synonyms are created(with name same as underlying tables) to access the underlying table data via the views created in DB2.
e.g. synonym name = clm_claims_basic_info
DB1 - Query executed in this database which uses all the synonyms.
e.g.
select ..... from clm_claims_basic_info,clm_claim_scheme_dtl
Also this query was working fine few days back and now suddenly failing without any code-changes, but we don't know what else has changed.
Can you please suggest what could be the reason?
SELECT ccbi.claim_number claim_no, npm.policy_no policy_no,
cgm.group_no company_ref_no, cgm.NAME company_name
FROM clm_claims_basic_info ccbi,
nbs_policy_mst npm,
com_group_mst cgm,
com_product_mst cpm,
clm_member_dtl cmd,
clm_assessment ca,
clm_claim_scheme_dtl ccsd,
clm_plan_dtl cpd,
(SELECT mem_escal.member_escalation_type_vid,
mem_escal.member_max_escal_rate,
mem_escal.member_min_escal_rate,
mem_escal.member_escal_rate,
mem_escal.claim_basic_info_id,
mem_escal.member_esclation_basis_vid,
add_escal.additional_escalation_type_vid,
add_escal.additional_max_escal_rate,
add_escal.additional_min_escal_rate,
add_escal.additional_escal_rate,
add_escal.additional_esclation_basis_vid,
mem_escal.first_escal_dt, mem_escal.escal_dt
FROM (SELECT cerm.escalation_type_vid
member_escalation_type_vid,
cerm.max_escal_rate member_max_escal_rate,
cerm.min_escal_rate member_min_escal_rate,
cerm.escalation_rate member_escal_rate,
ccbi.claims_basic_info_id claim_basic_info_id,
cerm.escalation_basis_vid
member_esclation_basis_vid,
mi_claims_pkg.clm_get_escalation_date_fnc
(ccbi.claims_basic_info_id,
cpd.escal_applies_to_vid,
1,
cpd.escal_applies_to_day,
cpd.escal_applies_to_month_vid,
ccbi.event_dt,
ccbi.clm_acceptance_dt
) first_escal_dt,
NULL escal_dt
FROM clm_claims_basic_info ccbi,
clm_claim_scheme_dtl ccsd,
clm_plan_dtl cpd,
clm_escalation_dtl cede,
com_escalation_rate_mst cerm
WHERE ccbi.claims_basic_info_id =
ccsd.claim_basic_info_id
AND ccsd.plan_id = cpd.plan_id
AND cede.claim_basic_info_id(+) =
ccbi.claims_basic_info_id
AND cede.escal_dt IS NULL
AND cpd.is_escal_apply_id = 'Y'
AND ccbi.product_id = 4
AND cerm.product_id = ccbi.product_id
AND cerm.escalation_basis_vid =
cpd.escal_memben_rate_vid
AND ( ( ccbi.claim_status_vid = 2880
AND ccbi.event_dt
BETWEEN cerm.effective_from
AND NVL (cerm.effective_to,
TO_DATE ('31122999',
'DDMMYYYY'
OR ( ccbi.claim_status_vid != 2880
AND cede.first_escal_dt
BETWEEN cerm.effective_from
AND NVL (cerm.effective_to,
TO_DATE ('31122999',
'DDMMYYYY'
AND ( ( cpd.escal_memben_rate_vid = 2334
AND cpd.escal_memben_perc =
cerm.escalation_rate
OR ( cerm.escalation_type_vid IN
(3962, 3963, 4442)
AND cerm.escalation_value_by_vid = 4299
OR ( cpd.escal_memben_rate_vid != 2334
AND cerm.escalation_type_vid = 3961
OR (cerm.escalation_type_vid IS NULL)
AND ccbi.record_status = 'A'
AND cpd.record_status = 'A'
AND ccsd.record_status = 'A'
AND cede.record_status(+) = 'A'
AND cerm.record_status = 'A'
AND NOT EXISTS (
SELECT 'X'
FROM clm_escalation_dtl ced1
WHERE escal_dt IS NOT NULL
AND ccbi.claims_basic_info_id =
ced1.claim_basic_info_id
AND ced1.record_status = 'A')) mem_escal,
(SELECT cerma.escalation_type_vid
additional_escalation_type_vid,
cerma.max_escal_rate
additional_max_escal_rate,
cerma.min_escal_rate
additional_min_escal_rate,
cerma.escalation_rate additional_escal_rate,
ccbi.claims_basic_info_id claim_basic_info_id,
cerma.escalation_basis_vid
additional_esclation_basis_vid,
mi_claims_pkg.clm_get_escalation_date_fnc
(ccbi.claims_basic_info_id,
cpd.escal_applies_to_vid,
1,
cpd.escal_applies_to_day,
cpd.escal_applies_to_month_vid,
ccbi.event_dt,
ccbi.clm_acceptance_dt
) first_escal_dt,
NULL escal_dt
FROM clm_claims_basic_info ccbi,
clm_claim_scheme_dtl ccsd,
clm_plan_dtl cpd,
clm_escalation_dtl cede,
com_escalation_rate_mst cerma
WHERE ccbi.claims_basic_info_id =
ccsd.claim_basic_info_id
AND ccsd.plan_id = cpd.plan_id
AND cede.claim_basic_info_id(+) =
ccbi.claims_basic_info_id
AND cede.escal_dt IS NULL
AND cpd.is_escal_apply_id = 'Y'
AND ccbi.product_id = 4
AND cerma.product_id = ccbi.product_id
AND cerma.escalation_basis_vid =
cpd.escal_addben_rate_vid
AND ( ( ccbi.claim_status_vid = 2880
AND ccbi.event_dt
BETWEEN cerma.effective_from
AND NVL (cerma.effective_to,
TO_DATE ('31122999',
'DDMMYYYY'
OR ( ccbi.claim_status_vid != 2880
AND cede.first_escal_dt
BETWEEN cerma.effective_from
AND NVL (cerma.effective_to,
TO_DATE ('31122999',
'DDMMYYYY'
AND ( ( cpd.escal_addben_rate_vid = 2334
AND cpd.escal_addben_perc =
cerma.escalation_rate
OR ( cerma.escalation_type_vid IN
(3962, 3963, 4442)
AND cerma.escalation_value_by_vid = 4299
OR ( cpd.escal_addben_rate_vid != 2334
AND cerma.escalation_type_vid = 3961
OR (cerma.escalation_type_vid IS NULL)
AND ccbi.record_status = 'A'
AND cpd.record_status = 'A'
AND ccsd.record_status = 'A'
AND cede.record_status(+) = 'A'
AND cerma.record_status = 'A'
AND NOT EXISTS (
SELECT 'X'
FROM clm_escalation_dtl ced1
WHERE escal_dt IS NOT NULL
AND ccbi.claims_basic_info_id =
ced1.claim_basic_info_id
AND ced1.record_status = 'A')) add_escal
WHERE mem_escal.claim_basic_info_id = add_escal.claim_basic_info_id(+)
UNION ALL
SELECT cedo.member_escalation_type_vid
member_escalation_type_vid,
cedo.member_max_escal_rate member_max_escal_rate,
cedo.member_min_escal_rate member_min_escal_rate,
cedo.member_escal_rate member_escal_rate,
cedo.claim_basic_info_id claim_basic_info_id,
cedo.member_esclation_basis_vid
member_esclation_basis_vid,
cedo.additional_escalation_type_vid
additional_escalation_type_vid,
cedo.additional_max_escal_rate
additional_max_escal_rate,
cedo.additional_min_escal_rate
additional_min_escal_rate,
cedo.additional_escal_rate additional_escal_rate,
cedo.additional_esclation_basis_vid
additional_esclation_basis_vid,
cedo.first_escal_dt first_escal_dt,
cedo.escal_dt escal_dt
FROM clm_escalation_dtl cedo
WHERE (cedo.escal_dt, cedo.claim_basic_info_id) =
(SELECT MAX (cedi.escal_dt),
cedi.claim_basic_info_id
FROM clm_escalation_dtl cedi
WHERE cedi.escal_dt IS NOT NULL
AND cedi.escal_dt <= '24-OCT-2013'
AND cedi.claim_basic_info_id =
cedo.claim_basic_info_id
AND cedi.record_status =
'A'
GROUP BY cedi.claim_basic_info_id)
AND cedo.record_status = 'A') ced
WHERE ccbi.policy_id = npm.policy_id
AND ccbi.GROUP_ID = cgm.GROUP_ID
AND ccbi.product_id = cpm.product_id
AND ccbi.claims_basic_info_id = cmd.claims_basic_info_id(+)
AND ccbi.claims_basic_info_id = ca.claim_basic_info_id(+)
AND ccbi.claims_basic_info_id = ccsd.claim_basic_info_id(+)
AND ccsd.plan_id = cpd.plan_id(+)
AND ccbi.claims_basic_info_id = ced.claim_basic_info_id(+)
AND ccbi.record_status = 'A'
AND npm.record_status = 'A'
AND cgm.record_status = 'A'
AND cpm.record_status = 'A'
AND cmd.record_status(+) = 'A'
AND ca.record_status(+) = 'A'
AND cpd.record_status(+) = 'A'
And Ccsd.record_status(+) = 'A'
AND ccbi.claim_number = 'DAX001';I would assume this means that it can't find that column in that table.
Usually this is because the column isn't there, the table/view isn't there, or there's no select permissions to the table/view.
To try to narrow this down try:
SELECT CERMA.EFFECTIVE_TO FROM com_escalation_rate_mst cerma
SELECT CERMA.EFFECTIVE_TO FROM com_escalation_rate_mst@db2 cerma
If the synonym and view names are the same, try the first query in both databases or adjust as necessary.
It could also be a permissions issue, like maybe the schema the link uses to DB2 doesn't have select permissions to that view?
As far as to why it stopped working, I have no idea.
You can approach this from bottom up (start with the tables on DB2 and move up)
or top down (start with the synonyms on DB1 and move down)
That will give you an idea of where the issue lies. -
How to get SQL statement from (Collection) query.execute();
We have a JDO Persistence class ClassName that execute query using following code. After this statement get executed, record does not get updated in the DB. Is there a way to check what SQL statement got submitted in the (Collection) query.execute(); ??? <br><br>
Extent extent = pm.getExtent(ClassName.class, false); <br>
Query query = null; <br>
try { <br>
query = pm.newQuery(extent, filter); <br>
Collection results = (Collection) query.execute();<br>
Iterator i = results.iterator();<br>
if (i.hasNext()) {<br>
...<br>
}<br>You can always find out the names of tables that are views, using java.sql.DatabaseMetaData and its getTables() method.
This tends to be a nice source of examples:
javaalmanac.com
However, if you're asking for the underlying SQL used to CREATE VIEW, I don't see anything in the API that will give you that. After all, JDBC shouldn't have to know if it's dealing with an ordinary table or a view. I think you'd have to ask your DBA for the underlying SQL.
Once you have it, what do you plan to do with it?
% -
Okay... So I am having another problem.
I have created an array and have no problem passing it to a
function as a param via set interval, as follows:
// Create a text field and import text from outside txt file
this.createTextField("aText", 1, 0, 0, 1, 1);
var a_lv:LoadVars = new LoadVars();
a_lv.onData = function(src:String):Void {
if (src != undefined) {
aText.text = src;
makeA();
} else {
aText.text = "Unable to load external file.";
a_lv.load("a.txt");
var obNum = 0;
function makeText(whichArray) {
trace(whichArray);
obNum++;
var newObject = "myOb"+obNum;
var newclip = createEmptyMovieClip(newObject, obNum);
newclip.createTextField("newText", 0, 0, 0, 100, 100).text =
whichArray[Math.round(Math.random()*whichArray.length-1)];
trace(newclip.newText.text);
newclip._x = Math.ceil(Math.random()*300);
newclip._y = Math.ceil(Math.random()*300);
function makeA() {
var a_str:String = aText.text;
var a_array:Array = a_str.split(" ");
trace(a_array);
myInterval = setInterval(_root, "makeText", 1000, a_array);
The problem is when I try to pass the param via a button:
on (keyPress "a") {
makeText(a_array);
it comes out as undefined.
What is wrong with my param pass???
I know this must be very simple, but I seem rather
addle-brained today...a_array is a temporary variable that exists ony inside makeA
while its executing.
try declaring it outside makeA
var a_array:Array=[];
and inside makeA just use
a_array= a_str.split(" ");
perhaps there's other things that need attention, but that
was the first thing that jumped out at me. Also can I suggest you
use the attach Code button to post your code. It makes it easier to
read if its longer than a few lines and avoids the possibility of
errors being introduced because of formatting codes used in the
forum posts. -
How to pass parameters to Xacute Query
hai all,
Can we pass parametes to Xacute Query using java script with out using any applet in the page..
Thanks,
VidhyaHi Vidhya,
use this function
service.useService(http://"hostname"/Lighthammer/Illuminator?QueryTemplate=Querytemplatpath&Content-Type=text/xml&Param.1=Param",_"Service1");
Hope That helps,
Regards,
Musarrat
Edited by: Musarrat Husain on Mar 4, 2008 2:22 PM -
Spawned Concurrent Request passing null to the argument
Hi,
I created a concurrent request with a package.procedure1 as the executable. This calls another concurrent program which has the executable as package.procedure2. This calls by passing one argument, the 2nd program was called but inside the procedure2, the arugument value is null. Before passing the arugument value is 1 and also in the 2nd program concurrent request parameters also its showing the value as 1. But inside the 2nd program procedure, tha value is becoming null. Can you please help me in this.
Thanks,
HCIn the form FNDRSRUN which is the Standard Request Submission form there are parameters CHAR1-CHAR5, NUMBER1-NUMBER5, and DATE1-DATE5. I was wondering if i populate the parameter NUMBER1 with my value how can I access this parameter when the form is brought up. This is more of an applications setup issue I will be creating a function that calls the FNDRSRUN form this function will force this form to use a single request not a request group. In the request setups there is a parameter. When I set up the request parameter I have to select a value set and then for Default Type I can select Constant, Profile, SQL Statement, or Segment and then I have to give a default value. Can I default this parameter to use NUMBER1 or another parameter in the FNDRSRUN form.
Maybe you are looking for
-
HP LaserJet 2100TN Errors in Leopard
Greetings! First off, I must say that after searching the forums for the past hour, I've been impressed with this community, particularly Andrew (the HP developer). Unfortunately, I didn't find an answer, thus this posting! I upgraded to Leopard abou
-
Hello. I'm having an issue with the file I export from FCP 6.0. Every time I play it on Quicktime it suddenly hangs the program and it crashes. I'm working on a Macbook (2.0 Ghz. 2 gigs of ram) with an external hard disk drive (via USB 2.0). The foot
-
Making a visible top layer invisible for buttons/ controls on a layer underneath it.
THE PROJECT I have 3 layers in a CS3 project, in the following order: - top Layer (semi-transparent Vignet Layer, and some additional Graphics, all this is contained in a dynamicly loaded mc) - Middle layer (Content, this contains the navigation and
-
I did the latest update last night, and by some technical snag.. My phone was updated to settings from a month ago. All of my contacts, FB contacts, etc are gone or out of place. I back up my iphone regulalry and am scared that I have lost all my dat
-
Hi, The situation: I need to convert a folder of PDF's to PNG format. My process: I create an action by recording my "actions" based on one of the said PDF's. Problem: When batching and/or processing via a droplet (created from action I created from