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,
Vidhya
Hi 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
Similar Messages
-
How to pass parameters between two xterm windows?
Hi,
I would like to know how to pass parameters between two xterm windows where there are two independence processes running on them respectively ? Would appreciate if any one out there can advise me . Thanks.Global variables can be used, but you can do what the online help
says ...
Parameters are passed to called forms by means of a parameter
list. A parameter list is a named programmatic construct that is
simply a list of parameter names (called keys) and their values.
You can pass parameter values to forms invoked by the built-in
subprograms CALL_FORM, OPEN_FORM, and NEW_FORM. In addition, you
can pass parameter values to other Oracle tools with the
RUN_PRODUCT procedure.
A parameter you include in a parameter list can be either a text
parameter or a data parameter. The parameter type determines how
its value is interpreted.
Text Parameters The value of a text parameter being passed to a
called product is a CHAR string that can represent the following:
n a user-defined form parameter defined in a form invoked
by the CALL_FORM, OPEN_FORM, or NEW_FORM built-in subprograms
n a command line or user-defined parameter for a product
invoked with the RUN_PRODUCT built-in subprogram
Data Parameters The value of a data parameter being passed to a
called product is always the name of a record group defined in
the current form. (A record group is a data structure that
stores records derived from a query or through programmatic
assignment.) Data parameters are used to pass data to products
invoked with the RUN_PRODUCT built-in subprogram. You cannot
pass data parameters to forms.
The following table shows the structure of a parameter list that
contains four parameters:
Key Paramtype Value
CITY Text_Parameter 'BOGOTA'
CATEGORY Text_Parameter 'EXPORTS'
MULTIPLIER Text_Parameter '.0275'
NEW_DATA Data_Parameter 'RECORD_GROUP8'
arun reddy (guest) wrote:
: im trying to do this but i could not find any way for this.
: can any one help me how can i pass parameters between two forms
: in forms4.5. any help will be appreciated
: thanks.
null -
Hi All,
I was wondering how to pass text in MDX query.
Below mentioned is my sample query and it is working fine.
SELECT
{[Measures].members} ON AXIS(0),
NON EMPTY [0MATERIAL].[LEVEL01].MEMBERS
*[0DOC_NUMBER].[LEVEL01].MEMBERS ON AXIS(1)"
FROM [$ZTEST]"
WHERE {[0MATERIAL].[000012345]} ";
But in data base 000012345 consists of material name as Pepsi
Now based on Pepsi I want to fetch results? Is it possible?
Thanks in advance.Srinivas,
So you are using JAVA, if you consult the developer's guide there is a section specifically addressing your question the ResultSet API should handle this via the formatted
<b>Retrieving Result Sets
ResultSet API</b>
Note that the concept allows for more than two axes, however a two-dimensional, table-like data set makes the
example easy to illustrate. On the columns axis, two members (Store Cost and Store Sales) of the measures
dimension have been selected; on the rows axis, three members (Berlin, Hamburg, and Munich) of the City level
of a geographical hierarchy. The dataset has six cells:
Cells provide four mandatory properties:
Value supports all common column types, for example:
o numeric types
o dates
o time values
o strings
o null
Data type int value describing the data-type (see java.sql.Types)
Status state of the cell (for example, error or null)
<b> Formatted value a string representation of value</b>
You can retrieve text in this manner.
Do you want to be able to pass text as if it were a value as well?
Cheers,
Scott -
Form Personalization - Custom Function - How to pass parameters?
Hi,
My requirement is to call a custom mod pl/sql program (html page) from purchasing when the "approve" button is pressed. I have it working, but don't know how to pass parameters to my function.
I have my function defined and registered. In the definition under "Web HTML" tab, I have my pl/sql procedure call under "HTML Call". Where do the parameters go?
On the customization of form POXPOEPO, I am using Builtin - Launch a function. I want to pass the po_header_id, so under "Parameters", I did "Insert Item Value" of :PO_HEADERS.PO_HEADER_ID
My custom HMTL page is popping up, but the parameter is not being passed. Is there something in the Function Definition where I can define the incoming paramaters?
Thanks.
PaulHi paul;
There are many usefull link avaliable if you googling
http://www.google.com.tr/#hl=tr&biw=1259&bih=793&&sa=X&ei=4wxQTZmYEISRswaNktWSDQ&ved=0CC4QBSgA&q=How+to+pass+parameters%2Bform+personalization&spell=1&fp=64d53dfd7a69225a
Regard
Helios -
Form personalization - new custom function - how to pass parameters?
Hi,
My requirement is to call a custom mod pl/sql program (html page) from purchasing when the "approve" button is pressed. I have it working, but don't know how to pass parameters to my function.
I have my function defined and registered. In the definition under "Web HTML" tab, I have my pl/sql procedure call under "HTML Call". Where do the parameters go?
On the customization of form POXPOEPO, I am using Builtin - Launch a function. I want to pass the po_header_id, so under "Parameters", I did "Insert Item Value" of :PO_HEADERS.PO_HEADER_ID
My custom HMTL page is popping up, but the parameter is not being passed. Is there something in the Function Definition where I can define the incoming paramaters?
Thanks.
PaulPost your question in below forum:
General EBS Discussion
-Anand -
Does XML approach for passing parameters in the query make the query slow?
Hi,
I am using XML approach for passing parameters in a query. This is running very slow but when I pass comma separated values in parameter, it runs very fast.
So it concludes that we should not use XML approach for passing parameters. Please confirm me that Am I right or wrong?
I have also googled to clear my doubt but not get solution till now. please help me.
Regards,
Sachin914014 wrote:
Hi,
I am using XML approach for passing parameters in a query. This is running very slow but when I pass comma separated values in parameter, it runs very fast.
So it concludes that we should not use XML approach for passing parameters. Please confirm me that Am I right or wrong?
I have also googled to clear my doubt but not get solution till now. please help me.
Regards,
SachinShow us what you are doing, create a simple yet complete example we can run on our Oracle instances.
Then we will know exactly what you mean, and can comment appropriately.
Cheers, -
How to pass parameter to the Query String of the Named Queries'SQL
Firstly to say sorry,I'm a beginner and my English is very little.
Now I want to know
How to pass parameter to the Query String of the Named Queries'SQL in the Map editor.
Thanks.benzi,
Not sure if this is on target for your question, but see #5 in the link below for some web screencasts that show how to pass an input text form field value to the bind variable of a view object. If you're looking for something different, maybe provide some more details such as what you are trying to accomplish and what technology stack you are using - for example, ADF BC, JSF, etc.
http://radio.weblogs.com/0118231/stories/2005/06/24/jdeveloperAdfScreencasts.html
Also see section 5.9 and chapter 18 in the developer's guide.
thanks -
How to pass parameters from html to xacute query
hi experts,
I need to pass a variable from html to xacute query.i need the correct syntax for that .
Thanks in advance.
lokeshHi Lokesh,
I apologize if my message came off sounding rude - passing parameters to queries is fundamental to xMI, one of the basic concepts. I only meant that if you haven't had xMII training, you could benefit greatly
Kind Regards,
Diana Hoppe -
Passing parameters to oracle query
Hi Everyone,
I'm a newbie to oracle and need help passing parameters to an oracle query. For example, I need to show all the employees in a certain department.So a list of "DEPT_CODE"'s will be displayed on a webpage and then the selected value will be passed to the query. I currently have this query in MS Access and use the bracket for user input ("[Dept]"). But how can this be done in oracle?
I am using ASP.NET 2.0 and Crystal Reports XI. Basically I have a webform where users can select the date range and department from a listbox. When the submit button is clicked, the values are passed to the query in crystal reports. For example, I have a query with "DEPT" as a parameter. So I pass the value of the selected listbox item from the webform to the crystal report. But now I have to select data from an oracle database and provide parameters. This is where I need help.
Thanks in advance
-SamDuplicate post.
Refer to this thread
Passing parameters to oracle query -
How to pass parameters to reports
Hi,
I am a new user to dev2000, i am struck at passing parameters to the reports, i have used lexical referrences, to the where clause, in the query that i have written in reports builder. It created a user_parameter of that where_clause. now i am trying to pass this parameter, from the form to generate a report btw'n dates. please sugest me if there is any other way, or correct me if i am on the right path, here is the code that i am calling from the form.
DECLARE
pl_id ParamList;
--repid REPORT_OBJECT;
--v_rep VARCHAR2(100);
BEGIN
pl_id := Get_Parameter_List('tmpdata');
IF NOT Id_Null(pl_id) THEN
Destroy_Parameter_List( pl_id );
END IF;
pl_id := Create_Parameter_List('tmpdata');
Add_Parameter(pl_id, 'WHERE_CLAUSE', TEXT_PARAMETER, 'WHERE SYS_DATE = ''18-JUL-01''');
--repid := find_report_object('report34');
--v_rep := RUN_REPORT_OBJECT(repid);
Run_Product(REPORTS, 'REPORT34', ASYNCHRONOUS, BATCH,
FILESYSTEM, pl_id,NULL);
END ;
I am gettting an error saying FRM-41211: Integration error:ssl failure running another product.
this error is comming when i try to access for the first time, and
Starting report REPORT34 [Tue Jul 24 16:35:14 2001] ...
REP-0110: Unable to open file 'REPORT34'.
REP-1070: Error while opening or saving a document.
REP-0110: Unable to open file 'REPORT34'.
End report REPORT34 [Tue Jul 24 16:35:20 2001].
this for the next time, with out closing runtime env.
If i have to use RUN_REPORT_OBJECT how can i pass parameters to reports.
Another thing i encountered is when i am using RUN_REPORT_OBJECT which is working it shows me the parameter form of the reports and when i click on run report, it is just creating a file under forms directory and asking each time when i run report wether to replace it or not and from where it is calling the printer object and actually nothing is being printed, and every thing is fine with the printer and it is not showing the report out put and it shows end of report in the log file of the background report product.For your 1st problem it seems to be a bug in Forms 6i - you can visit this site:
http://pipetalk.revealnet.com/~plsql/
and find there 41211.
Helena -
How to pass Parameters between two forms
im trying to do this but i could not find any way for this.
can any one help me how can i pass parameters between two forms
in forms4.5. any help will be appreciated
thanks.
nullGlobal variables can be used, but you can do what the online help
says ...
Parameters are passed to called forms by means of a parameter
list. A parameter list is a named programmatic construct that is
simply a list of parameter names (called keys) and their values.
You can pass parameter values to forms invoked by the built-in
subprograms CALL_FORM, OPEN_FORM, and NEW_FORM. In addition, you
can pass parameter values to other Oracle tools with the
RUN_PRODUCT procedure.
A parameter you include in a parameter list can be either a text
parameter or a data parameter. The parameter type determines how
its value is interpreted.
Text Parameters The value of a text parameter being passed to a
called product is a CHAR string that can represent the following:
n a user-defined form parameter defined in a form invoked
by the CALL_FORM, OPEN_FORM, or NEW_FORM built-in subprograms
n a command line or user-defined parameter for a product
invoked with the RUN_PRODUCT built-in subprogram
Data Parameters The value of a data parameter being passed to a
called product is always the name of a record group defined in
the current form. (A record group is a data structure that
stores records derived from a query or through programmatic
assignment.) Data parameters are used to pass data to products
invoked with the RUN_PRODUCT built-in subprogram. You cannot
pass data parameters to forms.
The following table shows the structure of a parameter list that
contains four parameters:
Key Paramtype Value
CITY Text_Parameter 'BOGOTA'
CATEGORY Text_Parameter 'EXPORTS'
MULTIPLIER Text_Parameter '.0275'
NEW_DATA Data_Parameter 'RECORD_GROUP8'
arun reddy (guest) wrote:
: im trying to do this but i could not find any way for this.
: can any one help me how can i pass parameters between two forms
: in forms4.5. any help will be appreciated
: thanks.
null -
CF/Ajax - How to pass parameters to a cfwindow?
Hi,
Is there a way to pass parameters to a cfwindow?
If yes, please provide me with all relevant details.
HERE IS MY SITUATION:
I have a form, in which I'm looping over a recordset e.g.
<cfform name="frmTest">
<cfset counter = 0>
<cfloop query="variables.qTest">
<cfset counter = variables.counter + 1>
<cfinput
type="checkbox"
name="test_#variables.counter#_ch"
onClick="showPopUp(#variables.qTest.id#,#variables.qTest.amount#)">
</cfloop>
</cfform>
Here is my javascript / ajax:
<script type="text/javascript">
<!--
function showPopUp(id,amt){
ColdFusion.Window.show("approvalWindow");
//-->
</script>
And here is my cfwindow:
<cfwindow
name="approvalWindow" center="true" closable="true"
draggable="false" modal="true" title="Approval"
initshow="false" width="680" height="315">
HOW CAN I OBTAIN THE VALUES OF id AND amt HERE?
E.g.
<cfset idClicked = id>
<cfset amtClicked = amt>
I'll be needing those 2 variables for further processing...
</cfwindow>
I know I could have used a simple javascript window.open and passed those 2 parameters in the URL scope, but, I don't want my users to see what id I'm sending.
Thanks and regards,
Yogesh Mahadnac.Hi,
Many thanks for your answer.
It actually works under "static" conditions, i.e. if I'm calling the cfwindow inside a cfloop, the value of ID is not refreshed.
Let me show you what I mean.
For example, here is my form
<cfform name="frmTest">
<cfset counter = 0>
<cfloop query="variables.qTest">
<cfset counter = variables.counter + 1>
<cfinput
type="checkbox"
name="test_#variables.counter#_ch"
onClick="showPopUp(#variables.qTest.id#,#variables.qTest.amount#)">
</cfloop>
</cfform>
This gives the output, e.g.
Checkbox 1
Checkbox 2
Checkbox 3
Checkbox 4
Checkbox 5
ID 1
ID 2
ID 3
ID 4
ID 5
showPopUp(1,10)
showPopUp(2,15)
showPopUp(3,12)
showPopUp(4,15)
showPopUp(5,50)
Now, here is the showPopUp part (using the solution you provided to me):
<cfajaximport tags="cfwindow">
<script type="text/javascript">
<!--
function showPopUp(id,amt){
ColdFusion.Window.create('Window1','Window Title','test.cfm?ID='+ id + '&amt=' + amt,
{_cf_refreshOnShow:true,height:290,width:630,modal:true,closable:true,draggable:true,resi zable:false,center:true,initshow:true});
//-->
</script>
And then on test.cfm, we can easily obtain the value of ID and amt using the url scope
<cfset id = url.ID>
<cfset amt = url.amt>
<cfdump var="#url#" label="Checking values sent from checkbox">
Normally, the value of ID should be 1, 2, 3, 4 or 5 depending on the checkbox you click, right?
When you click the 1st one, ID 1 is sent in the url (this is fine).
However, if you click the 3rd checkbox after having clicked the 1st one, the value of ID and amt still reflect that of the 1st checkbox.
It is not "refreshed" to 3 and 12, you still get ID = 1 and amt = 10.
Is there anything we missed in the showPopUp script?
Thanks and regards,
Yogesh Mahadnac. -
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. -
Passing parameters to select query in DB link from invoke...
I am having a DB partner link which executes the select query based on user specified parameter.
Now i have created an invoke activity and specified input[this needs to be passed to query] and output parameters[this is query result]. This invoke activity calls DB partner link in which one parameter has been created to be used in select query. So my doubt is , will DB partner link take up the input parameter of invoke activity automatically or do we need to specify any mapping for this?When you create a db partnerlink the parameter you create for your select is the input and when you create the input variable in the invoke for this partnerlink it is created with the right type for the parameter.
Create an Assign before your invoke and assign a value to the input variable you created in the invoke. That value will be passed and used as the parameter in the select.
Heidi. -
How to pass parameters to individual regions in multitaskflow
I have a page, where the regions are added dynamically (using multiTaskFlow ). All the regions are of the same type( defined by same taskflow definition) and hence each region takes a different values for the same parameter type.
How do we pass different parameter values, when creating TaskFlowBindingAttributes?
Since TaskFlowBindingAttributes takes parametersMap as an EL string, I couldn't figure out , how to define the EL so that each region gets its parameter?
Following are the code snippets:
Java code for that is creating a List<TaskFlowBindingAttributes>
for(MyRegion region: regionList)
TaskFlowBindingAttributes tfBindAttr = new TaskFlowBindingAttributes();
tfBindAttr.setId(region.getId());
tfBindAttr.setTaskFlowId(new TaskFlowId("/WEB-INF/core/custom_app_task-flow.xml", "custom_app_task-flow"));
tfBindAttr.setRefreshCondition("ifNeeded");
tfBindAttr.setParametersMap(""); //??? How to pass params here since this takes EL String.
list.add(tfBindAttr);
Multitaskflow entry in pageDef file:
<multiTaskFlow id="multiRegion1"
taskFlowList="#{viewScope.core_extensibility_cusapp_model.uiAppTemplate.taskFlowBindings}"
xmlns="http://xmlns.oracle.com/adf/controller/binding"/>
Jspx code:
<af:forEach var="tf"
items="#{bindings.multiRegion1.taskFlowBindingList}">
<cust:showDetailFrame shortDesc="#{''}" id="sdf2">
<af:region value="#{tf.regionModel}" id="r1"/>
</cust:showDetailFrame>
</af:forEach>
thanks
maherHi,
what if you create a managed bean property as shown below
ManagedBean:
Map<String, ? extends Map<String, Boolean>> parameters = new HashMap<String,HashMap<String,Object>>();
then you create setter/getter for this map. This way you can address the HashMap for each region as
#{scope.managedbean.parameters['nested_hashmap_string']}
Frank
Maybe you are looking for
-
Iweb + dreamweaver CS4 + dropdown menu not working on all pc's
I created a dropdown-menu on CS4 DW, pasted it in html doc. and is part of my iWeb created site. Looks ok on apple: safari/firefox/iphone.. but on any pc does not matter which browser, it looks awfull, and the jumpmenu simply is not working.. what ca
-
Searching for Archiving Object for table COMH PP-PI messages header
Hallo, i am faced to archive records from table COMH (PP-PI message headers). And searched SMP, SDN, Dataguides but i could not find any objects or delete-reports for this table. Could anyone give input on how to get rid of the records in COMH? with
-
Call ABAP-progam (or Transaction Code) out of WEB-Template
Hi freaks, I want to call an ABAP-Program out of a web-template, preferably e.g. by clicking on a Push-Button. For my scenario here no parameters need to be passed (the ABAP-program simply fills a table). Cheers Georg
-
Hi, Does anyone know what the following Error message means and how to fix it? oracle.wh.jrt.sdk.JRTException: CCA-1507: Error occurred while trying to retrieve the Managed Bean Retrieval. Caused by: oracle.wh.jrt.sdk.JRTException CCA-1508: Error occ
-
How to identify reasons for a very slow transaction?
Hi All, If I see that a SAP standard transaction is very slow for every user, what are the areas that I will have to look to get it resolved. All other transactions work quick and only one transaction is very sluggish. How to find the root cause and