Pass parameter to Action0 from VbScript & Read it in Action0
Hello, Anyone please can you give me example of how can I pass parameter from vbScript to Action0 of UFT 11.53 and read it in Action0.
i tried your soluation
<managed-bean>
<managed-bean-name>testBacking</managed-bean-name>
<managed-bean-class>checklist.TestBacking</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>testValue</property-name>
<property-class>java.lang.String</property-class>
<value>${param.myParam}</value>
</managed-property>
</managed-bean>
it return to me in the getter method for the testValue the experssion as string ${param.myParam} but if i put ${param.myParam} it return value.
please advice.
Regards
Mohd.Weshah
Similar Messages
-
How to pass parameter /1BCDWB/DOCPARAMS from webdynpro?
Hi Experts,
We create a wdp view and indert an adobe form into it. And this form has an interface based on XML schema.
Now we want to translate this form into multi-language, and in wdp side, we will display diffenent language version of form for different regions.
I found that there is a paramater /1BCDWB/DOCPARAMS-LANGU, and it seems can control the language version in processing.
But I donot know how to pass parameter /1BCDWB/DOCPARAMS from wdp to adobe form.
Its my 1st to use adobe form and wdp, i really have no way out. Any advice will be Appreciated.
Thank you.
Richard@sahai: Hey no , I am using very very simple example without any query or complex statement. I just have 2 radio buttons in VIEW1. On clicking the radio button, the naviagtion to view2 is done and the value of selected radio button is passed as a parameter in the plug.
In the view2 , i just have a caption in my layout where i am displaying the parameter value by setting the attribute.THe warning i get is in view2. Here is the code. Apart from this there is no coding in view2.
METHOD HANDLEPLUG_IN_V2 .
DATA:
NODE_CAPT_MSG TYPE REF TO IF_WD_CONTEXT_NODE,
ELEM_CAPT_MSG TYPE REF TO IF_WD_CONTEXT_ELEMENT,
STRU_CAPT_MSG TYPE IF_VIEW2=>ELEMENT_CAPT_MSG ,
ITEM_MSG LIKE STRU_CAPT_MSG-MSG.
* navigate from <CONTEXT> to <CAPT_MSG> via lead selection
NODE_CAPT_MSG = WD_CONTEXT->GET_CHILD_NODE( NAME = `CAPT_MSG` ).
* get single attribute
NODE_CAPT_MSG->SET_ATTRIBUTE(
EXPORTING
NAME = `MSG`
VALUE = PAR_1 ).
ENDMETHOD. -
Pass parameter to portlet from jspx page
Hello guys, i have one question about portlet. Curently i have 2 application, 1 weblogic portal application and 1 portlet producer application. Both project was successfully setup. I already put 1 portlet created in the portlet producer into 1 page in the weblogic portal application. The problem is, how can i pass parameter from weblogic portal page (which i call the portlet) to the portlet. Thank you
Hi,
worth checking the WebCenter forum as both products seem to belong there: WebCenter Portal
Frank -
Passing Parameter to Report from a JSP
<p>I have a report which calls a Oracle stored procedure which requires some IN parameters. These parameters need to be passed from the JSP. For this scenario if someone has some sample code please post it.</p><p>Thanks.<br /></p><p> </p>
<p>In the scenario you described the report that connects to the stored procedure will automatically require parameters so they can be passed to the stored procedure.</p><p>Here is a link to a sample that passes a parameter to a report at runtime using BusinessObjects Enterprise XI R2:</p><p>http://diamond.businessobjects.com/node/1018 </p><p>Rob Horne<br /><a href="/blog/10">Rob's blog - http://diamond.businessobjects.com/blog/10</a></p>
-
URGENT:How to pass parameter to page from java portlet
Hi,
All i need to do is to pass a parameter from my custom java portlet to an omniportlet. Is it achievable? If so, please point me direction!
Thanks,
CerenHmm yeah or else you could use java.net.URLEncoder.encode(String s) to encode it automatically.
(java.net.URLDecoder.decode(String s) decodes btw) -
Passing parameter to report from form using RUN_REPORT_OBJECT method
Will you please let me know how to do this. I tried using run_product but it is giving error as too many declarations. So I decided to use RUN_REPORT_OBJECT, but no help is provided how to pass paramters to this routine from FORMS to REPORTS.
If you just want to change the heading of a column dynamically, you can go with any of the two options. For both the options, you need to remove the static text and replace it with any dummy field (ensure the reference of field w.r. to repeating frame)
1. Use the Format Trigger and change the heading to either "school" or "college" based on your field value.
Ex.
If :<field_name> = 'S'
then :dummy_field := 'School'
Else
:dummy_field := 'College'
End If;
Return (true)
2. Another option is similar to this and uses a CF.
(I would prefer CF).
Warm Regards,
Raja. -
Pass parameter to form from webpage?
Hi guys,
I'm aware that you are able to pass parameters between forms using CALL_FORM (using parameter list).
Is it possible to pass parameters to a form from the webpage?i am trying to pass the parent_id as a parameter to a portal page but am not able to... i can add it to the list of in parameters to the PL/SQL based parent id but when i add the parent id to the url then i get no result... i created a custom attribute for the parent id since there is no attribute build other then page group and page id... when I set the Parent ID attributes default value in the attribute properties of the item type based on PL/SQL it just brings back results for the default value and if i pass a different value for ithe parent id i dont get the correct result I get the result for the default parent id.
I am using the followin url to pass the parent id
http://localhost:7778/portal/page?_pageid=76,87832&_dad=portal&_schema=PORTAL&parentid=22223 -
Pass parameter to VC from workflow
Hi,
We created a Visual Composer application which we would like to call from a workflow. If we don't pass a parameter to the VC, it works, when we pass one, it doesnu2019t work.
Our Visual Composer application expects an input value called WI_ID.
We would like to call this Visual Composer aplication via an iView launched from a workflow item.
Our task is TS90000138 and its visualization contains DYNPARAM: wi_id=${item.externalId}.
If we execute this task, &iviewDynamicParameter=wi_id%3d000005985089&wi_id=000005985089 is added to the URL, but the value is not passed on to the VC application, because as explained in http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/2090414b-cd20-2a10-d594-8de9d146044a, Visual Composer expects &_paramsXmlStr_=<Params><Row%20WI_ID="5984427"/></Params>.
We tried two options:
Option 1:
change the task visualization to paramsXmlStr=<Params><Row%20WI_ID="${item.externalId}"/></Params>, but this results in the following line in the UWL XML (after re-registering the UWL WebFlowConnector and deleting the cache):
<Property name="iviewDynamicParameter" value="_paramsXmlStr_=<Params><Row%20WI_ID="${item.externalId}"/></Params>"/>
which is not a valid XML format due to the < and > signs.
Option 2:
encode the string as explained on http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2090414b-cd20-2a10-d594-8de9d146044a?QuickLink=index&overridelayout=true and enter paramsXmlStr=%3CParams%3E%3CRow%20WI_ID%3D%22${item.externalId}%22%20/%3E%3C/Params%3E into the task visualization.
When we execute this "the encoding gets encoded" and we get the following URL, which doesn't work either:
&_paramsXmlStr_%3D%253CParams%253E%253CRow%2520WI_ID%253D%2522000005985097%2522%2520%2F%253E%253C%2FParams%253E&iviewDynamicParameter=_paramsXmlStr_%3D%253CParams%253E%253CRow%2520WI_ID%253D%2522000005985097%2522%2520%2F%253E%253C%2FParams%253E
As explained on http://help.sap.com/saphelp_nw70/Helpdata/en/45/a7863f445f4617e10000000a114084/content.htm, there are only 3 pamaters (ID, CONFIRM, DYNPARAM) and no other one can be used.
Do you know how to fix this issue?
Thanks,
TamasHello Tamas,
I did succeed to call a Visual Composer model from the UWL (using workflow tasks coming from our ERP 6 backend).
I did customised UWL workflow task (within the portal) :
<Property
name="iviewDynamicParameter"
value="WI_ID=${item.externalId}"/>
<Property
name="iview"
value="pcd:portal_content/pcc_portal_application/.../xxx.uwl_task_VC"/>
Parameter WI_ID (WorkItem Id) is automatically sent by the portal system.
I set, in VC, a start point with a string data parameter called WI_ID.
When calling the model this parameter WI_ID is filled.
Hope it could help.
Rgds
Gilles -
Passing parameter value back from Child region [BTF] to Parent
Hello,
I am using Jdev 11.1.1.6. I have a use-case where I need to pass value back from child taskflow to parent.
Let me elaborate the use-case:
I have a main page which is implemented as BTF with fragment. This main page contains a child region [again a BTF with fragment].
I am passing a parameter value from parent page to it's region using taskflow input parameter. Now value for one of the parameter changes inside child/region taskflow and I need to make this value available to main page taskflow.
This parameter is just pageFlowScope variable, so basically not coming from any VO.
I know that taskflow can return value via return parameter but I don't know if that is true for taskflow implemented as region in a page.
Is it possible to communicate the pageFlowScope variable value from child region to it's parent page?
Thanks,
JaiHi Frank,
I tried to follow steps mentioned in your post but encountered error that "The scope of the referenced object #{viewScope.parentBeanName} is shorter than referring object childBeanName"
Let me explain what I did:
1. Created a bean parentBeanName in viewScope
2. Created another bean childBeanName in pageFlowScope
3. In ChildBean.java, created a private property parentBeanProperty for Class [ParentBean] and generated the accessors
4. Created a input parameter in region TF as:
<input-parameter-definition id="__28">
<name id="__27">parentBeanParam</name>
<value>#{pageFlowScope.childBeanName.parentBeanProperty}</value>
<class>ParentBean</class>
<required/>
</input-parameter-definition> 5. Since my mainPage contains child page as region. I added parameter to mainPageDef to pass it to child TF, like this
<parameter id="parentBeanParam" xmlns="http://xmlns.oracle.com/adfm/uimodel"
value="#{viewScope.parentBeanName}"/>6. Introduced a client method in childBeanName that is called from UI. There I am retrieving parentBeanParam instance from pageFlowScope and call setter method of my variable inside ParentBean.java
7. Ran the page but encountered the error.
Did I miss something somewhere?
Initially I got error where #{viewScope.parentBeanName} returned NULL due to parentBeanName not instantiated. I created a variable in mainPageDef with it's default value pointing to #{viewScope.parentBeanName.variableName}, which I guess will instantiate the bean in viewScope.
After this I got error of shorter scope. It never reached to code in Step 6 during execution cycle.
FYI - My application is based on UIShell and essentially a one page application. Main page referred above is also a jsff based on BTF. I hope, this should not affect this implementation but I thought of at least mention it.
Thanks,
Jai
Edited by: Jai Om on Dec 18, 2012 2:38 PM -
Passing Parameter to AbstractPortalComponent from Iview
Hi All,
i am trying to pass a parameter from iview so that i can retrieve in abstract portal component as
request.getParameer("parameterName") ;
Do any body know how to configure parameter for Iview created by
New From Par -> iview .Please pass the code.
advance thanks
kaushikHi,
Code for your question
package com.sapportal.training.portal;
import com.sapportals.portal.prt.component.*;
public class FirstPortalComponent extends AbstractPortalComponent
public static final String PARAMETER_NAME = "name";
public static final String HELLO_STRING = "HELLO_THERE";
public static final String HELLO_STRING_END = "!!!";
public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
response.setContentType(PortalComponentContentType.HTML);
String myName = request.getParameter(PARAMETER_NAME);
String hello_string ="";
// = HELLO_STRING + myName + HELLO_STRING_END;
if(myName !=null){
hello_string = HELLO_STRING + myName + HELLO_STRING_END;
response.write("<h3>" + hello_string + "</h3>");
response.write("<form method = 'post'>");
response.write("<p>Name:<input type = 'text' name='" + PARAMETER_NAME + "'size='20'></p>");
response.write("<p><input type = 'submit' value='submit' name='mysubmit'></p>");
response.write("</form>");
Reward useful answers -
Pass parameter to included page and read it in the included packing bean
Hello
i have a page include in adf page (main.jspx include body.jspx) and i send a parameter to the included page ,and the included page has a request scope backing bean ,and in the constructor for this backing bean i tried to read the parameter , how can i get the included parameter "userId" in the backingbean which is realted to body page i.e(i want to pass the userid parameter to the body backing bean),the following is my code.
main.jspx :
<f:subview id="Body">
<jsp:include page="/body.jspx";>
<jsp:param name="userId" value="123456"/>
</jsp:include>
</f:subview>
Regards
Mohd.Weshahi tried your soluation
<managed-bean>
<managed-bean-name>testBacking</managed-bean-name>
<managed-bean-class>checklist.TestBacking</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>testValue</property-name>
<property-class>java.lang.String</property-class>
<value>${param.myParam}</value>
</managed-property>
</managed-bean>
it return to me in the getter method for the testValue the experssion as string ${param.myParam} but if i put ${param.myParam} it return value.
please advice.
Regards
Mohd.Weshah -
PASSING PARAMETER TO REPORTS FROM FORMS...
I have one form called empform, by clicking a button i want to run report.
I have created a record_group by name emprec,
i am using same query for my report also with dame parameter.
My when button pressed trigger has following,
DECLARE
pl_id ParamList;
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,'EMPQRY',DATA_PARAMETER,'EMPREC');
*** empqry=query name on which report and record group is based***
Run_Product(REPORTS, 'g:\cl2\vatdata\emprep', SYNCHRONOUS, RUNTIME,FILESYSTEM, pl_id, NULL);
END;
but when i am clicking button to run report.
it is asking parameter again before displaying report.
Please let me know where i am doing mistake...
Thanks in advance..Hi!
To suppress Oracle Reports native Parameter Form just add:
add_parameter( pl_id, 'pARAMform', text_parameter, 'NO' );
Andrew Velichko
Brainbench MVP for Oracle Developer 2000 http://www.brainbench.com
null -
Pass Parameter from main page to include page (subview) and read it ?
Hello All
i have an include header.jsp page in main page.jsp ,and i included it by subview.
i want to pass a parameter ex(screen name) to the subview by using f:param.
Here is the code in main.jsp:
<f:subview id="headerSubView">
<jsp:include page="/commons/header.jsp" flush="true">
<jsp:param name="screenTitleByJspParam" value="screen2007"/>
</jsp:include>
<f:param name="screenTitleByFparam" value="screen2007"/></f:subview>
Code in header.jsp
1- <af:outputFormatted value="#{param.screenTitleByJspParam}"/> -- this dose not work
2- <af:outputFormatted value="#{param.screenTitleByFparam}"/> -- this dose not work (i want this manner)
So how i can send parameter by ]<f:param and read it by subview uesing adf/jsf tags ?
Regards
Mohd.Weshah
weshah79Dear thanassis
Thanks for you help ,your code is working successfully but my case is the following :
same your main jsp page but the subview tag in table :
<%@ page contentType="text/html;charset=windows-1256"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
<f:view>
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=windows-1256"/>
<title>main</title>
</head>
<body>
<h:form>
<afh:tableLayout>
<afh:rowLayout>
<afh:cellFormat>
<f:subview id="header">
<jsp:include page="header.jsp" flush="true">
<jsp:param name="pageTitle" value="Modify aa record"/>
</jsp:include>
<f:subview>
</afh:cellFormat>
</afh:rowLayout>
</afh:tableLayout> </h:form>
</body>
</html>
</f:view>
try it the parameter dose not work ,but if you want that code work successfully move the subview out of the table.
Do you know what is the problem ?
i want give you another hint maybe it is realted to the same problem, which is in my original page the body tag is adf tag ie(<afh:body>) your code dose not work with that tag until i changed the afh:body to html body.
Regards
Mohd.Weshah -
Post Author: usaitconsultant
CA Forum: JAVA
Would you know if there's a way to mimic Deski
document from BOXI server(CMS) to local machine, pass parameter, execute and
save in a mutiple report format then store in a local drive or network
drive? Most examples and tutorials in BO XI R2 I've seen are scheduling while drilling report is for web intelligence only and not desktop intelligence. Please let me know your ideas. I would really appreciate your help. Thanks.Post Author: usaitconsultant
CA Forum: JAVA
Hi Ted,
Thanks for the reply.The file is not available in the server. Though, I checked CMS and I found an instance in history tab and the status is failed with error below.
Error Message:
A variable prevented the data provider Query 1 with BANRRD30 from being refreshed. (DMA0008).When I checked my codes, I found out that the object Im using is for web intelligence data provider. However, I cannot find any documentation and example for passing parameter values in desktop intelligence data provider. Any idea on this? You think this is not suported by Report Engine SDK?Thanks. -
Can i pass parameter or global variable in view from 6i form
hi master
sir can i pass parameter or global variable in view from 6i form
i use view for some diff column calculation within the date then i use
where date between data1 and date2
in view but view not create
please give me idea how i pass external value in view
thank
aamirHi Antony!
I feel it may not produce the right results if you
dont include the where clause and using only group by
in view.You felt? Please clear, logical thoughts put here, not feelings.
(It may very well have all the Debit, Credit
for all the Accid where as the user wants only for
r some date range)Data range is determinated in Form by user, so if view should give final data set then you must back
on Ranjana first question: How to pass parameter or global variable to view from 6i form?
And also as Ranjit pointed out, If you have only
accid, sum(debit), sum(credit) in View, wheres this
enddate ??Of course, column entdate (or enddate?) must be included in view...
Cheers!
Maybe you are looking for
-
Hi guru's. I like to know how many fields can be taken from table for the view in GE , Is there any limit? we need to set delta for each field for delta extraction?. Regards. Harry
-
Imovie HD 6 freezes on opening, but HD 5 works fine
Imovie HD 5 (the version that came on the original install disk)works in my 10.4.11 G5 mac, but the ILife 06 version keeps freezing on opening. Help!
-
After I click on sleep, my iMac wakes up immediately after, what's wrong?
I want to make my iMac sleep, I click on SLEEP, it goes in sleep mode for a second and wakes up immediately. I don't touch my mouse nor the keyboard- What's wrong?
-
Silent install Oracle BPEL Process Manager 10.1.2.0.2 doesn't work
We try a silent install of BPEL Process Manager, but it doesn't work. We use this batchfile: setup.exe -nowait -force -responseFile C:\Oracle_BPEL.rsp This is our responseFile: RESPONSEFILE_VERSION=2.2.1.0.0 UNIX_GROUP_NAME=<Nicht festgelegter Wert>
-
I purchased at $129 photo shop elements 12, it has disapered from my computer
I dpurchased at $129 photoshop elements 12 and now it has disapeared from my compter. I had alot of fun using the purchase up until now.