How to pass input parameters to ZRFC using sap connector 3.0
Hi,
In the connector 2.0 we were passing parameters (vendor# as input) to rfc as ( eg: rfc_name(I_vendor, E_VendorTBL) and able get the results in the output table .
How do we do this using new NCO3.0.
Thanks,
Rajender
S0008226571 wrote:>
> I have implemented an example similar to the above which stores the results of a table in a .net DataTable. I am trying to bind the DataTable to a DataGridView but the DataGridView is simply blank.
>
>
>
DataTable dt = svc.getTableData("crmd_orderadm_h");
>
> bindingSource.DataSource = dt;
> dataGridView1.DataSource = bindingSource;
>
>
> Any ideas on why the DataGridView is empty?
For the benefit of others here, I resolved the problem by examining the properties of the datagridview control. In this case, the datagridview control binding property was being set in the visual studio designer and for some reason was not able to be set at runtime. I removed the binding property in the visual studio property window and the problem was resolved.
Thanks for those who contributed answers to this issue.
Edited by: Mike Powell on Mar 1, 2011 3:30 PM
Similar Messages
-
How to pass multiple parameters to Query using START WITH, CONNECT BY OBIEE
Hi
I have following oracle query which need to be used as a Data Source in OBIEE Physical Layer. I guess I have to create stored proc. How do I implement this in OBIEE RPD and how do I implement the respective Dashboard prompts for the parameters.
SELECT
CIRC.PATH_NAME, CIRC.BANDWIDTH , CIRC.CATEGORY, CIRC.CUSTOMER_ID,
CIRC.STATUS, CIRC.CUSTOMER_NAME,
QUER.LEV
FROM
CIRCUIT_PATH circ, VAL_CUSTOMER cust,
( SELECT
DISTINCT CIRC_PATH_INST_ID, LEVEL LEV
FROM
CIRC_PATH_ELEMENT
START WITH
CIRC_PATH_ELEMENT.CIRC_PATH_INST_ID IN ( SELECT
DISTINCT CIRC_PATH_INST_ID
FROM
PORTS a
WHERE SITE_NAME = @variable('Enter a Site Name')
AND CARD_SLOT = @variable('Enter a Card Slot')
CONNECT BY
PRIOR CIRC_PATH_ELEMENT.CIRC_PATH_INST_ID =
CIRC_PATH_ELEMENT.PATH_INST_ID
AND ELEMENT_TYPE != 'K' ) QUER
WHERE
circ.circ_path_inst_id = QUER.CIRC_PATH_INST_ID
and circ.cust_inst_id = cust.cust_inst_id (+)
ORDER BY
LEV DESC , CIRC.PATH_NAME ASC, CIRC.BANDWIDTH ASC
Thanks
DGHi John
Thanks. I looked at your URL. I do have package. Just using procedure. So my initialization string (For stored proc in Physical Layer of RPD) is
exec demo.add_employee(VALUEOF(NQ_SESSION.empid1));
But when I run request in Answer I get the error
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 900, message: ORA-00900: invalid SQL statement at OCI call OCIStmtExecute: exec demo.add_employee(105); . [nQSError: 17011] SQL statement execution failed. (HY000)
What should I put in initialization string in RPD?
Thanks
DG -
How to pass input value to the IN parameter in a function
Hi ,
I'm new to pl/sql programming.
The below function is used inside a package and the package is invoked in visual studio.
The function uses 2 input parameters.
Out of which 'in_report_parameter_id' value comes thru job processor service 's job request.
The second IN paramter values are hard coded in the function.
I'm not able to understand this.
If the values are hard coded , how to make sure that only the hard coded values are the right ones?
Please anyone could explain to me?
I really dont have good idea about how to pass INPUT parameter to the functions or procedure
Is there any nice document which could give me good understanding about what are the ways or types we could pass values to the input parameter in subprograms?
thanks in advance.
CREATE OR REPLACE FUNCTION get_class_text_str
in_report_parameter_id IN NUMBER,
in_which IN VARCHAR2 DEFAULT 'SELECT'
RETURN VARCHAR2
IS
end_text VARCHAR2 (50) := '';
my_class_text_str VARCHAR2(10000) := '';
my_class_value_str VARCHAR2(10000) := '';
CURSOR class_text(c_1_text VARCHAR2, c_2_text VARCHAR2) IS
SELECT c_1_text || report_parameters.report_parameter_value
|| c_2_text
|| report_parameters.report_parameter_value
|| '" '
FROM report_parameters
WHERE report_parameters.report_parameter_id = 3690
AND report_parameters.report_parameter_group = 'CLASS'
AND report_parameters.report_parameter_name = 'CLASS'
GROUP BY report_parameters.report_parameter_value
ORDER BY CAST(report_parameters.report_parameter_value AS NUMBER);
BEGIN
IF (in_which = 'SUM') THEN
OPEN class_text ( 'SUM(NVL("Class ', '", 0)) "Class ' );
ELSIF (in_which = 'PERC')THEN
OPEN class_text ( 'ROUND((("Class ', '" / "Total") * 100), 2) "Class ' );
end_text := ', DECODE("Total", -1, 0, 100) "Total" ';
ELSE
OPEN class_text ( 'SUM(DECODE(bin_id, ', ', bin_value, 0)) "Class ' );
END IF;
LOOP
FETCH class_text INTO my_class_value_str;
EXIT WHEN class_text%NOTFOUND;
my_class_text_str := my_class_text_str || ', ' || my_class_value_str;
END LOOP;
CLOSE class_text;
my_class_text_str := my_class_text_str || end_text;
RETURN my_class_text_str;
END get_class_text_str;
/Edited by: user10641405 on Nov 19, 2009 8:16 AM
Edited by: user10641405 on Nov 19, 2009 8:30 AMThis is not a design I would use, but should work if coded properly. I would probably build a reference cursor query as text and use one open fetch and close.
You have 2 input parameters, in_report_parameter_id and in_which. I could not find where in_report_parameter_id was used in the program, but the value passed in for in_which is being used in IF logic to decide how to open the cursor. After the cursor is open rows are being fetched and eventually the cursor is closed.
The values in_which are compared to are hard-coded. It is the programmer's job to make sure the values listed are the right values and the actions taken are also correct. Your program is assuming that if the first 2 values are not encountered the third one listed is the one you want.
To pass input values to a procedure you merely provide the values as a literal or variable in the call, something like
whatever := get_class_text_str(1,'SELECT'); -
Passing Input parameters to BPEl Process
Hi,
The requirement is to link OBIEE report and a BPEl Process.By clcking on the link in OBIEE report , the BPEl process should be executed which accepts the input parameters at run time from the user along with the input parameters being passed from OBIEE report.I am stuck with how to pass the parameters from OBIEE report to BPEL process.I'm using OBI V 10.1.3.3 and developed the BPEL process using Oracle JDeveloper.Could someone help me in resolving this?
Thanks,
Vidyahi vid
the bpel process talks in language of web services ie partener links , i guess there must be some way of creating web service of obi and then you can make the two talk, also you can have reverse approach by generating axis client of BPEL webservice and using this client jar in your other obiee whatever....
hope this helps....
amit... -
How to pass Cascading Parameter in SSRS using Java
How to pass Cascading Parameter in SSRS using Java---
We are having a problem with dependent parameters.There are three drop down--
1.first dropdown is of Country.When we select a country--Accordingly next dropdown(State)will populate
2.Second dropdown is of State. When we select a state--Accordingly next dropdown(City)will populate.
I have three data sources are
CountryList-
SELECT CountryRegionCode, Name
FROM Person.CountryRegion
ORDER BY Name
StateList
SELECT StateProvinceID, StateProvinceCode, CountryRegionCode
FROM Person.StateProvince
WHERE CountryRegionCode = @CountryRegionCode
ORDER BY StateProvinceCode
CityList
SELECT StateProvinceID, City
FROM Person.Address
GROUP BY StateProvinceID, City
HAVING (StateProvinceID = @StateProvinceID)
ORDER BY City
Ihave to show report that has been deployed on server on the besis of these parameters
I am using ReportViewer in JSP Page through url--
http://192.168.90.149/ReportServer/Pages/ReportViewer.aspx?%2fReport+Project1%2fCascading_Parameters&rs:Command=Render&rs:parameter=true&Country="+Country+"&State="+State;
But it is not accepting parameter if they are cascaded.It is working fine if Both parameters are independent.
Edited by: kaushlee on May 11, 2010 9:22 PMTake a look at set_custom_property:
public static final ID SETTEXT = ID.registerProperty("SETTEXT");
public boolean setProperty(ID pid, Object value)
if (pid == SETTEXT)
String text = value.toString();
and in forms
set_custom_property('beans.bean_item', 1, 'SETTEXT', 'some text');
cheers -
How to Pass Multiple Parameters To ReportReuest Method in Oracle BI 11g
Hi,
Am integrate Oracle BI Publisher 11g via Web Services in Oracle Forms,For that am developing code in PublicReportServiceClient Class. This worked properly with out passing parameter to the report. so how to pass parameters to the report . If Report is requried some Parameters to generate report.
If any one knows about How to Passing Multiple Parameters to ReportRequest Methos in Oracle 11g. Pls help me.
Am trying with the below code for PassParameters to ReportReuest Method in Oracle BI 11g. But by using this code am able to pass only one parameter to the Report, not for multiple Parameter Passing.
ArrayOfParamNameValue PnameValue=new ArrayOfParamNameValue();
ParamNameValue Namevalue=new ParamNameValue();
Namevalue.setName("P_SNO"):
ArrayOfString aos=new ArrayOfString();
aos.getItem().add("2");
Namevalue.setValues(aos);
PnameValue.getItem().add(Namevalue);
ReportRequest RepReq = new ReportRequest();
RepReq.setParmeterNameValues(PnameValue);
Following method callRunReport() with an array of parameters used in Oracle Bi 10g,To pass multiple report parameters to ReportRequest method.
public void callRunReport (String reportPath, String[] paramName, String[] paramValue, Stringusername, String password, String format, String template, String outFile)
try {
bip_webservice.proxy.PublicReportServiceClient myPort =new bip_webservice.proxy.PublicReportServiceClient();
// Calling runReport
ReportRequest repRequest = new ReportRequest();
repRequest.setReportAbsolutePath(reportPath);
repRequest.setAttributeTemplate(template);
repRequest.setAttributeFormat(format);
repRequest.setAttributeLocale(“en-US”);
repRequest.setSizeOfDataChunkDownload(-1);
if (paramName != null)
ParamNameValue[] paramNameValue = new ParamNameValue[paramName.length];
String[] values = null;
for (int i=0; i<paramName.length; i++)
paramNameValue[i] = new ParamNameValue();
paramNameValue.setName(paramName[i]);
values = new String[1];
values[0] = paramValue[i];
paramNameValue[i].setValues(values);
repRequest.setParameterNameValues(paramNameValue);Ramani_vadakadu wrote:
window.open("http://hq-orapp-03.kuf.com:9704/xmlpserver/~weblogic/kufpec/BTA/KUF_CONF_ITINUD.xdo?_xpf=&_xpt=1&_xdo=%2F~weblogic%2Fkuf%2FBTA%2FKUF_CONF_ITINUD.xdo&_xmode=&_paramsP_BTM_ID="+parseInt(document.getElementById('P3_BTA_ID').value)+"&_xt=KUF_CONF_ITINUD&_xf=pdf&_xautorun=true&id=weblogic&passwd=kuf2011","_blank");
the above code we are using apex JS to BI publisher calling for report as PDF
i don't know exactly where your parameters , did you customize my link to multiple parameters
'http://192.168.0.57:8889/reports/rwservlet?userid=retail/1@xe&destype=cache&desformat=PDF¶mform=no&report=item_cost&P_BATCH_NO='+$v('P138_BATCH_NO'); -
How to Pass Click Value to DB using Java
How to Pass Click Value to DB using Java and display tat
clicked value row data in flex
i have created connection with Sql Server using java and drew
pie chart from values fetched from XML file created by Java
wat i need is when i click pie chart region (widget) i should
display a alert by giving value of particular widget name and Value
from Database and display in Flex AlertUse AddResource to add Javascript in your BackingBean Code and pass the value to your javascript code.
JSCookMenu and other dynamic adding of javascript to a JSF-JSP page is done using AddResource.... -
How to pass runtime parameters to Oracle Query from xMII server
Please can anybody help me that how to pass runtime parameter to Orcle Query from xMII server.
It works the same way as I described in this thread [How to pass runtime parameters to MySQL Query from xMII server]. It does not matter the datasource MII will work the same for all queries, at least for passing in parameters. How to write those queries and their datatypes will be the differences.
-
How to pass runtime parameters to MySQL Query from xMII server
Please can anybody help in How to pass runtime parameters to Orcle Query from xMII server
The answer is the same as for your other thread. The mechanism is the same regardless of the end database. The SQL syntax will be different for each database vendor depending upon which functions you are invoking. The main areas of difference between SQL Server, Oracle, DB2, etc. deal with dates (times also) and strings, but there are others as well.
Regards,
Mike -
How can i pass input parameters to .rdf file in DOS command prompt?
Hi friends,
Please give some idea about this problem.
I am running a .rdf file at dos mode like this .
c:\orareport\bin\RWRUN60 TEST.RDF USERNAME/PASS@DBINSTANCE
now it asking input parameters.
insted of passing the input values to parameter form
can i pass at command line along with report name.
if possible how ?
thanx
ReddyHi,
there is a plenty of parameters you can specify from DOC command line.
You can have them in help menu.
Lanch rwrun60
Help\search\ seach for: param
you will find parameters from rwrun60 from the command line.
MODULErunfile
[USERID=]userid
[PARAMFORM=]YES
[CMDFILE=]cmdfile
[TERM=]termfile
[ARRAYSIZE=]n
[DESTYPE=]SCREEN]
[DESNAME=]desname
[DESFORMAT=]desformat
[CACHELOB=]YES
[COPIES=]n
[CURRENCY=]currency_symbol
[THOUSANDS=]thousands_symbol
[DECIMAL=]decimal_symbol
[READONLY=]YES
[LOGFILE=]logfile
[BUFFERS=]n
[BATCH=]YES
[PAGESIZE=]width x height
[PROFILE=]profiler_file
[RUNDEBUG=]YES
[ONSUCCESS=]COMMIT
[ONFAILURE=]COMMIT
[KEYIN=]keyin_file
[KEYOUT=]keyout_file
[ERRFILE=]error_file
[LONGCHUNK=]n
[ORIENTATION=]DEFAULT
[BACKGROUND=]YES
[MODE=]BITMAP
[PRINTJOB]YES
[TRACEFILE=]tracefile
[TRACEMODE=]{TRACE_APPEND|TRACE_REPLACE}
[TRACEOPTS=]{TRACE_ERR|TRACE_PRF|TRACE_APP|TRACE_PLS|
TRACE_SQL|TRACE_TMS|TRACE_DST|TRACE_ALL|(opt1, opt2, ...)}
[AUTOCOMMIT=]YES
[NONBLOCKSQL=]YES
[ROLE=]rolename/[rolepassword]
[BLANKPAGES=]YES
[DISABLEPRINT=]YES
[DISABLEMAIL=]YES
[DISABLEFILE=]YES
[DISABLENEW=]YES
[DELIMITER=]value
[CELLWRAPPER=]value
[DATEFORMATMASK=]mask
[NUMBERFORMATMASK=]mask
[DESTINATION=]filename.DST
[DISTRIBUTE=]YES
[PAGESTREAM=]YES
EXPRESS_SERVER="server=[server]/domain=[domain]/user=[userid]/password=[passwd]"
[CUSTOMIZE]=filename.xml | (filename1.xml, filename2.xml, . . .)
[SAVE_RDF]=filename.rdf
<param>=value
Mbo -
How to pass request parameters using html:link in struts
Hi All,
I am trying to send parameters to action class using <html:link>.
Can anybody give sample code how to do it?
Thanks in advance.
By
K.Siva Prasad Reddyhi,
you can pass the parameters in link like this
http://www.xyz.com&username=someuserID&password=somePassword
username and password are parameters which you want to pass as paramets to server..hope this will work for you...
Thanks
Surya -
How to pass 2 parameters in a hyperlink?
Hi,
I have a jsp form:
<form name="form1" action="/servlet/ShoppingServlet" method="get">
<input type="radio" name="productid" value="1">Solitaire Classic / 4.50<br/>
<input type="radio" name="productid" value="2">Bingo / 3.95<br/>
<input type="hidden" name="cmd" value="ADD">
<input type="submit" value="Purchase">
</form>It has a button to submit the form. It passes 2 parameters: productid and cmd's values to ShoppingServlet.
If I use a hyperlink text, how can I pass 2 parameters?
<a href=\"/servlet/ShoppingServlet?productid=" + ProductID + "\">Add this item to cart</a>How can I pass the hidden variable "cmd" in the above hyperlink?
Thanks<a href="\"/servlet/ShoppingServlet?productid=" + ProductID + "&cmd=ADD\">Add this item to cart</a>
-
Passing input parameters to the method call in ADF task flow.
Hi,
I have the following use case:
There is a task flow with 2 jspx pages. In the first page I have 2 input search parameters and search button. the search button calls the webservice data control execute (GET_ACCOUNTOperation) method .
Displaying the search results in the same page is not a problem , but my requirement is that the search results are to be displayed in the second page in tabular form.
To achieve this, I dragged the execute method as the method call in the task flow and specified the input parameters for the method call (right click and add parameters) . I am getting the following exception :
javax.el.MethodNotFoundException: Method not found: GET_ACCOUNTOperation.execute(java.lang.String, java.lang.String)
at com.sun.el.util.ReflectionUtil.getMethod(Unknown Source)
at com.sun.el.parser.AstValue.getMethodInfo(Unknown Source)
at com.sun.el.MethodExpressionImpl.getMethodInfo(Unknown Source)
at oracle.adf.controller.internal.util.ELInterfaceImpl.getReturnType(ELInterfaceImpl.java:214)
at oracle.adfinternal.controller.activity.MethodCallActivityLogic.execute(MethodCallActivityLogic.java:135)
at oracle.adfinternal.controller.engine.ControlFlowEngine.executeActivity(ControlFlowEngine.java:1035)
at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:921)
at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:820)
at oracle.adfinternal.controller.engine.ControlFlowEngine.routeFromActivity(ControlFlowEngine.java:552)
at oracle.adfinternal.controller.engine.ControlFlowEngine.performControlFlow(ControlFlowEngine.java:148)
at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleAdfcNavigation(NavigationHandlerImpl.java:109)
at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:78)
at org.apache.myfaces.trinidadinternal.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:43)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:889)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:379)
at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
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:205)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at 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)
even though the execute method is there and the service is up and running. I am not sure whether its the correct way of doing it. Please shed some light on how to solve this use case
Some additional info:
Under the data controls pallete, the GET_ACCOUNTOperation method has a parameters section , which has "part" (java.lang.Object) as
the input parameter.
Regards,
RampalHi,
thanks for the quick turn-around. Jdev version that i am using is Studio Edition Version 11.1.1.6.0. And i am using SOAP. Isnt there a way without using a backing bean? I am planning to use it as a portlet. Would'nt creating a backing bean cause a problem in that case?? Also i am confused here . The method that i am dragging is GET_ACCOUNTOperation(Object). I tried passing the hashmap . It gave the following exception :
javax.el.MethodNotFoundException: Method not found: GET_ACCOUNTOperation.execute(java.util.HashMap)
Rampal -
What is the better way to pass input parameters between components?
Hi all,
I had a dispute with a colleague about passing data between different WDP Development Components. The situation is like this:
Colleague has a SearchWDP (parent) und I have a BrowseWDP (child). After searching for some objects and clicking a hit in the SearchWDP, the corresponding details should be shown in BrowseWDP, via passing a bunch of parameters such as selected item's id, etc.
Now which of the following is the better practice:
- Defining a node in BrowseWDP (child) with isInputParameter set to TRUE, creating a similar node from the same type (simply via ModelBinding, both WDPs are using the same model) in SearchWDP, and defining a mapping between them so that SearchWDP fills the input nodes. From BrowserWDPs perspective, I'd call this Pull method.
or...
- Defining a node in BrowseWDP (child) with isInputParameter set to FALSE, creating a setter method in BrowseWDP Interface Controller for the collection (to be passed as parameters) and calling a wdContext.nodeBlaBla().bind(pInputParameterFromModelType). From BrowserWDPs perspective, I'd call this Push method.
The colleague's argumentation in favor of Push has not convinced me at all and I'd like to ask your opinions. Is there a best practice or recommendation for this scenario? TIA
ps: Any answer will be rewarded.Hi Cuneyt,
Refer the links below, they are very informative!
http://help.sap.com/saphelp_nw04s/helpdata/en/22/15a441cd47a209e10000000a155106/content.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/67/cc744176cb127de10000000a155106/content.htm
These links are a part of the WebDynpro ABAP documentation, but the concepts are same for WDA and WDJ.
Considering your scenario, I would recommend the first alternative you have mentioned (if you refer the second link its called External Context Mapping), where component controller context node of component A (SearchWDP) is the source for Interface controller context (same name) of component B (BrowseWDP).
Thanks.
Chitrali -
How to make input parameters as optional in the function definition
I have created a function for a data service which is at the Normalized layer and has 3 input parameters.
This function is called at the Integration layer in which we have to pass only one parameter. But for the remaning 2 parameters it is throwing an error as we cannot pass those parameters.
Is it possible that we can pass less number of parameters in the higher layer.
I had also made those parameters as optional in the function definition(by applying '?' while defining the arguments-e.g. $x as xs:string?), but error was thrown while generating the query plan.
I have attached a Demo project, in which i have defined a function at the normalized layer and this function is been called at the integration layer.
Thanks,
KinjalThanks mreiche for the reply
But the problem is that while writing
function myfunction( arg1 as xs:string, $arg2 as xs:string?) { ... }
in function definition in the normalized layer, the query plan is throwing following error:-
com.bea.ld.QueryException: Cannot generate XQuery for the function {ld:DemoProject/Normalized/TestGeo}getGeo:3
at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:108) at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:290)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:248) at com.bea.ld.Server_ydm4ie_EOImpl_816_WLStub.executeFunction(Unknown Source) at workshop.liquiddata.xds.views.queryplan.QueryPlanPanel.compileFunction(QueryPlanPanel.java:583) at workshop.liquiddata.xds.views.queryplan.QueryPlanPanel.access$900(QueryPlanPanel.java:39) at workshop.liquiddata.xds.views.queryplan.QueryPlanPanel$5.run(QueryPlanPanel.java:469) at java.lang.Thread.run(Thread.java:534)
Caused by: com.bea.ld.QueryException: Cannot generate XQuery for the function {ld:DemoProject/Normalized/TestGeo}getGeo:3 at com.bea.ld.EJBRequestHandler.invokeFunction(EJBRequestHandler.java:720) at com.bea.ld.EJBRequestHandler.executeFunction(EJBRequestHandler.java:339) at com.bea.ld.ServerBean.executeFunction(ServerBean.java:95) at com.bea.ld.Server_ydm4ie_EOImpl.executeFunction(Server_ydm4ie_EOImpl.java:312)
at com.bea.ld.Server_ydm4ie_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:491)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:120)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:434)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:429)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:35)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
Caused by: com.bea.ld.server.FunctionCallQueryBuilder$QueryBuilderException: The following parameter type is not supported: {http://www.w3.org/2001/XMLSchema}string?
at com.bea.ld.server.FunctionCallQueryBuilder.addParameter(FunctionCallQueryBuilder.java:257)
at com.bea.ld.server.FunctionCallQueryBuilder.buildQuery(FunctionCallQueryBuilder.java:99)
at com.bea.ld.EJBRequestHandler.invokeFunction(EJBRequestHandler.java:716)
But no error is thrown when I call this function at the Integration layer,using
for $f in mfunction( 'test', () )
and the output which i get is as expected.
Maybe you are looking for
-
Downloads from itunesU where viewed, played and saved?
downloads from itunesU where viewed , played and saved?
-
Printing through Linksys Wireless Print Server
Ok.. Here is the question. I have a Linksys Wireless Print Server (WPSM54G) which is connected to a Canon MX700. In windows this works great. However I cannot get OS X (10.5.2) to print to the printer. The print server (with firmware update 1017) sup
-
I need to download the latest itunes but it says i already have it installed?
i need to download the latest itunes but it says i already have it installed?
-
Hi gurus, I created an universe based on Ms Excel sheet. I have created a webi report , but when iI run the report, it does not work ==> DataBase eroor : [Microsoft][ODBC driver manager] Data source name does not found and no default driver specified
-
Hi Friends, How to find out a generated ABAP program for transaction UPSPL. when user executes UPSPL, it generates the one ABAP program. How to find out the corresponing program name. It is very urgent for me. Please help me. will assign the points.