Passing parameters for events
Hi,
I have a lot of buttons in my jsp page.. I would like to use the same event handler for all of them.. differentiating which one is clicked by means of a parameter.. How do i pass somthin like tat ....!
Any hints !
Regards
Bharathwaj
Hi,
I guess you dont get it yet !
In WebDynpro we have an option of adding a parameter as a argument with the Event.
(like public void onText(Event event,String myParameter)
Considering your case ..Assuming i dont want to use the button id .. how will i acheive this !
This is the requirement i am looking in ..What you are suggesting is using the id and manipulating values..
Regards
Bharathwaj
Similar Messages
-
Passing Parameters for url in portlet
I want to pass parameters through the url to a portlet.
As I can make that?
There is some example.
I am working with the portal 9i release 2 and jpdk november 2002 v2hi Frank,
Thanks for the response. We followed your suggestion and managed to capture URL parameters in afterPhase(LifeCycle.PREPARE_MODEL) and save parameters to ViewScope.
Then in beforePhase(LifeCycle.PREPARE_RENDER), we retrieve parameters back and invoke FndUIController.openMainTask method to launch the correponding taskflow but nothing happens.
public static void openTaskflowOnNewTab(String taskflowId) {
try {
FacesContext fc = FacesContext.getCurrentInstance();
ELContext elc = fc.getELContext();
ExpressionFactory ef = fc.getApplication().getExpressionFactory();
ValueExpression valExp = ef.createValueExpression(elc,"#{bindings.openMainTask}",Object.class);
JUCtrlActionBinding methodBinding = (JUCtrlActionBinding)valExp.getValue(elc);
Map params = methodBinding.getParamsMap();
params.put("label", "Some Title");
params.put("taskFlowId", taskflowId);
params.put("reuseInstance", true);
methodBinding.invoke();
} catch (Exception e) {
e.printStackTrace();
To prove that this method works, we create a UI button on the page (which binds this method in PageDef.xml), and associate this method to onclick event. At runtime after page is opened, clicking on the button does launch the taskflow on new tab successfully.
Do you happen to know what I do wrong in the beforePhase() method?
Thanks
-Phi -
Is it possible to pass parameters for the action in the confirmation dialog
I tried it but a null pointer exception is occuring. Is it possible to pass parameters ,if s give the solution....
Thanks and regards.
Karthik.Hi Karthi,
Directly it is not possible. You can achieve it by this way.
1> Create 2 Event Handlers say OK and OKTest.
public void OK(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin OK(ServerEvent)
String param = "abc";
wdThis.OKTest(wdEvent,param);
//@@end
public void OKTest(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String paramtest )
//@@begin OKTest(ServerEvent)
wdComponentAPI.getMessageManager().reportSuccess("Param : "+paramtest);
//@@end
2> Code for popup.
String dialog = "No of Rows : ";
IWDConfirmationDialog confDialog = wdComponentAPI.getWindowManager().createConfirmationWindow(dialog,wdThis.wdGetAPI().getViewInfo().getViewController().findInEventHandlers("OK"),"OK");
confDialog.setTitle("Test Window");
confDialog.show();
/thread/66776 [original link is broken]
Regards,
Mithu -
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. -
Transactional Iview passing parameters for search help window
Hi Experts,
I have to create a transaction ivew through which i need to pass parameters to search help window (having two entries ). In has to select the particular entry and then go to next step.
Can somebody give me guide me how to do it as i couldn't fine correct answer in the existing forum answers.
Regards,
SureshHi Suresh,
Have you read the [documentation|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/88/266a3e54a2e946e10000000a114084/frameset.htm]?
>ApplicationParameter
>
>You can enter parameter values for certain screen fields for displaying a SAP transaction here.
>This field is optional.
>
>The parameter values are specified with the following syntax:
>
><Screen_field1>=<Parameter1>
>&<Screen_field2>=<Parameter2>
>&<...>=<...>,...
>
>Process First Screen
>
>The possible values are trueand false. By default this field is defined as false. It is a required field.
>
>If the value is set to true, this corresponds to the input key function in the transaction. It takes effect if there are no required >fields in the transaction or if all the required values are maintained in the ApplicationParameter property.
Regards,
Pierre -
Hi
Im going to use FM: CS_BOM_EXPL_MAT_V2 and I want to only pass WERKS, but when I execute FM is gives exception as CALL_INVALID.
I saw all the Import parameters are Optional, but I think I need to pass more inputs to FM.
Please let me know what are MINIMUM input parameters required to run this FM
ThanksHi
In my requirement, there are range of WERKS and MATNR which has to be given from selection screen, where as In CS_BOM_EXPL_MAT_V2 function module I can only give single value for WERKS and MATNR.
Can any one guide me how can I implement this? -
Passing Parameters For Same Columns In 2 Different Tables
OBIEE 11g
I have 2 different dimension tables in my Subject Area.
Dim1 has following columns: Promotion Code, Promotion Description, Promotion Date
Fact1 has following columns: a_count, b_count, c_count
Dim2 has following columns: Promotion Code, Promotion Description, Promotion Date
Fact2 has following columns: a_count, b_count, c_count, d_count
Report 1 has following columns: Promotion Code, Promotion Description, Promotion Date, a_count, b_count, c_count (From Dim1 & Fact1)
Report 2 has following columns: Promotion Code, Promotion Description, Promotion Date, a_count, b_count, c_count, d_count (From Dim2 & Fact2)
I have tried to pass the parameters Promotion Code, Promotion Description, Promotion Date from Report 1 to Report 2 but this has not worked for me as Report 2 is not receiving the parameters. Is there a way I can do this. Thanks in advance.Thanks for your response Jay,
In Report 1 I have added prompts (Prompts tab) for Promotion Code, Promotion Description and Promotion Date. I have also set the following presentation variables in the prompts:
PromotionCode,
PromotionDescription
PromotionDate
In Report 2 I then add a filter for each of the same columns and match them to the presentation variables created in Report 1 as follows:
Promotion Code is equal to / is in @{PromotionCode}
Promotion Description is equal to / is in @{PromotionDescription}
Promotion Date is equal to / is in @{PromotionDate}
My expectation is that the values in the presentation variables will be passed from the Prompts in Report 1 to the filters in Report 2. This is not what is happening. Im not sure what I am doing wrong. -
Passing parameters for fuzzy search
Hello,
I am using Oracle 11.2 and do fuzzy search as following:
Create table tb_test(Nm varchar2(32));
create index fuzzy_idx on tb_test(Nm) indextype is ctxsys.context parameters(' Wordlist STEM_FUZZY_PREF');
select * from tb_test where contains(Nm, 'fuzzy(Wndy,,,weight)',1) >0;
The query works fine for hardcoded string 'Wndy'. I just wonder how can I use parameter to pass the match string in PLSQL?
Thanks,try this (not tested):
Procedure findMatchNm(nmStr in VARCHAR2)
IS
oraCursor REF CURSOR
str_val varchar2(100);BEGIN
str_val := 'fuzzy('||nmStr||',,,weight)';OPEN OraCursor FOR
'SELECT NM FROM TB_test WHERE contains(Nm, :s, 1)>0' USING str_val;LOOP
FETCH...
END LOOP;
END;
Edited by: stefan nebesnak on Jan 17, 2013 12:49 PM
using bind variable -
Problems with passing parameters for WEB template in URL in NW2004s
Servus,
We have NW2004s, BI 7.0, SP9
does anybody know where do I make a mistake? There are 9 variables which the user has to fill out.
Passing the parameters in URL string for a web template like: http://server:50100/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE=TEMPLATENAME&var_name_1=ZvarX&var_value_ext_1=2000 ....
but this doesn't function, I get only the first variable screen and not what's set in my URL.
Is it a bug? Any suggestions?
Thank you very much
StandaI solved it.
Solution:
URL Link "http://......./TEMPLATE=nameofthepage&TEMPLATE=nameofthepage
&VARIABLE_VARIANT=nameofthevariant" -
Passing parameters to event triggered functions
hi all,
i have created a button and added EventListener.
as mybutton.addEventListener(MouseEvent.CLICK,clickSt art);
when i implement the clickStart (event:MouseEvent) function i
want to pass
an array ,a String to this function as parameters .how can i
do this.
is it possible or not.
thanx.Well, not in that way.
The function automatically receives a parameter when you
create a callback with that function by "addEventListener", such
parameter is datatyped as the event type you defined in the
callback, in your case "MouseEvent". If you want to pass more data
when the function is called then you have to create your own event
class because almost all events just inform when something has
happened and send limited information. You can check the
documentation about creating a custom event class, there is a lot
of info about the topic. -
Problem while passing parameters for dashboard prompts in URL
Hi,
We have created a dashboard on OBI which has some dashboard prompts. We have a requirement that we shall open the dashboard from an external application. We are doing this by invoking an URL. We want the dashboard to turn with prompts already being applied.
I was trying to open the dashboard with the following URL
http://<servername:port>/analytics/saw.dll?Go&PortalPath=/shared/Procurement%20and%20Spend/_portal/Supplier%20Performance&Page=Overview
But when I use the above Go URL the dashboard is not coming up. It shows the following error
No Columns
The request cannot be performed because it contains no columns.
When I use the following URL(which has the keyword 'Dashboard' not 'Go') the Dashboard is coming up fine
http://<servername:port>/analytics/saw.dll?Dashboard&PortalPath=/shared/Procurement%20and%20Spend/_portal/Supplier%20Performance&Page=Overview
There are dashboard prompt defined in dashboard. When I try to send the filter value via URL(given below) it is not working. I just see the Dashboard coming up.
http://<servername:port>/analytics/saw.dll?Dashboard&NQUser=Administrator&NQPassword=SADMIN&PortalPath=/shared/Procurement%20and%20Spend/_portal/Supplier%20Performance&Page=Overview&P0=1&P1=eq&P2=Supplier."Supplier%20Name"&P3=1+AccessMicron
when we use the keyword Dashboard in the URL , can we pass the parameter for the dashboard proimpt ..? If we can do that .. how to do that ..? Is it the same manner that we do for Go URL. ..?
Please let me know if you need any more information on this.
Thanks in advance for your time,
Raj Kumar
Edited by: Raja Kumar on Jan 22, 2010 3:29 AMHi Raj,
Raghu is correct, you need the Action=Navigate to make prompts work, otherwise you get move to the target dashboard without prompts.
I think you figured it out your self, but the ?Go is for Answer Requests and ?Dashboard is for navigating to dashboards.
I would also recommend using col1="COLUMN_NAME" and val1=value syntax instead of the P0,P1, etc, etc. It's a little easier to read and implement.
Try this:
http://<servername:port>/analytics/saw.dll?Dashboard&Action=Navigate&NQUser=Administrator&NQPassword=SADMIN&PortalPath=/shared/Procurement%20and%20Spend/_portal/Supplier%20Performance&Page=Overview&col1=%22Supplier%22.%22Supplier%20Name%22&val1=1+AccessMicron
Good luck!
Best regards,
-Joe -
How to pass parameters for second screen to SAP webgui URL
Hi
I want to call SAP webgui from an application and want to pass some data which need to be prefilled in the screen.
Have gone through many threads
/people/durairaj.athavanraja/blog/2004/09/23/pass-parameter-to-its-url-upadated-21st-june-2008
https://www.sdn.sap.com/irj/scn/wiki?path=/pages/viewpage.action&pageid=22375
webbgui - calling a transaction and specify variant or parameter in url
Things work fine if I pass values to fields which are on first screen, but I am unable to pass data to fields on next screens.
Taking an example :
tCode for vendor creation is XK01 and it has many screens, now when I call url
http://HOST_NAME:8000/sap/bc/gui/sap/its/webgui/!?sap-client=CLIENT_ID&sap-user=SAP_USER&sap-password=SAP_PASSWORD&language=EN&~transaction=*XK01 RF02K-LIFNR=Ven1001;
I am able to view Ven1001 in vendor code in first screen
But when I call
http://phxng4709:8000/sap/bc/gui/sap/its/webgui/!?sap-client=100&sap-user=testuser1&sap-password=SAP12345&language=EN&~transaction=*XK01 RF02K-LIFNR=Ven1111;RF02K-BUKRS=COCO;RF02K-EKORG=NG01;RF02K-KTOKK=0001;ADDR1_DATA-NAME1=VEN_NAME
All the fields on first screen get populated but I don't get VEN_NAME in Name1 field on GUI
Tried this
http://phxng4709:8000/sap/bc/gui/sap/its/webgui/!?sap-client=100&sap-user=testuser1&sap-password=SAP12345&language=EN&~transaction=*XK01 RF02K-LIFNR=Ven1111;RF02K-BUKRS=COCO;RF02K-EKORG=NG01;RF02K-KTOKK=0001;Ok_Code=ENTR;ADDR1_DATA-NAME1=VEN_NAME
as well, but no success
Can anybody help. Thanks in advance
Ruhiyou can only pass values to first screen fields
-
How to pass parameters for second screen to SAP webgui URL (ITS)
Hi
I want to call SAP webgui from an application and want to pass some data which need to be prefilled in the screen.
Have gone through many threads
/people/durairaj.athavanraja/blog/2004/09/23/pass-parameter-to-its-url-upadated-21st-june-2008
https://www.sdn.sap.com/irj/scn/wiki?path=/pages/viewpage.action&pageid=22375
webbgui - calling a transaction and specify variant or parameter in url
Things work fine if I pass values to fields which are on first screen, but I am unable to pass data to fields on next screens.
Taking an example :
tCode for vendor creation is XK01 and it has many screens, now when I call url
http://HOST_NAME:8000/sap/bc/gui/sap/its/webgui/!?sap-client=CLIENT_ID&sap-user=SAP_USER&sap-password=SAP_PASSWORD&language=EN&~transaction=*XK01 RF02K-LIFNR=Ven1001;
I am able to view Ven1001 in vendor code in first screen
But when I call
http://phxng4709:8000/sap/bc/gui/sap/its/webgui/!?sap-client=100&sap-user=testuser1&sap-password=SAP12345&language=EN&~transaction=*XK01 RF02K-LIFNR=Ven1111;RF02K-BUKRS=COCO;RF02K-EKORG=NG01;RF02K-KTOKK=0001;ADDR1_DATA-NAME1=VEN_NAME
All the fields on first screen get populated but I don't get VEN_NAME in Name1 field on GUI
Tried this
http://phxng4709:8000/sap/bc/gui/sap/its/webgui/!?sap-client=100&sap-user=testuser1&sap-password=SAP12345&language=EN&~transaction=*XK01 RF02K-LIFNR=Ven1111;RF02K-BUKRS=COCO;RF02K-EKORG=NG01;RF02K-KTOKK=0001;Ok_Code=ENTR;ADDR1_DATA-NAME1=VEN_NAME
as well, but no success
Can anybody help. Thanks in advance
Ruhiyou can only pass values to first screen fields
-
DB Adapter 902 binding exception while passing parameters for simple string
Hi,
I have an PlSQL API with two input paramters of string type... But this is only started after XML validation TRUE on the BPM server.
The error is
<bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>902</code>
</part><part name="detail"><detail>
Internal Exception: java.sql.SQLException: ORA-00902: invalid datatype
Error Code: 902</detail>
</part><part name="summary"><summary>file:/oracle/product/10.1.3/soa/bpel/domains/Website/tmp/.bpel_BPELProcess1_1.0_c64929dfd2dacf95db3c9da081c1797d.tmp/callingAPI.wsdl [ callingAPI_ptt::callingAPI(InputParameters,OutputParameters) ] - WSIF JCA Execute of operation 'callingAPI' failed due to: Error while trying to prepare and execute an API.
An error occurred while preparing and executing the XXRBA.XXRBA_WEB_ADAPTER.FETCH_CUSTOMERS API. Cause: java.sql.SQLException: ORA-00902: invalid datatype
[Caused by: ORA-00902: invalid datatype
; nested exception is:
ORABPEL-11811
Error while trying to prepare and execute an API.
An error occurred while preparing and executing the XXRBA.XXRBA_WEB_ADAPTER.FETCH_CUSTOMERS API. Cause: java.sql.SQLException: ORA-00902: invalid datatype
[Caused by: ORA-00902: invalid datatype
Check to ensure that the API is defined in the database and that the parameters match the signature of the API. Contact oracle support if error is not fixable.
</summary>
</part></bindingFault>
The input XSD parameters in BPEL input
<element name="input" type="string"/>
The input XSD parameters in ADAPTER
<element name="P_WEB_ACCOUNT" type="string" db:index="1" db:type="VARCHAR2" minOccurs="0" nillable="true"/>
<element name="P_SOLICITED_ONLY" type="string" db:index="2" db:type="VARCHAR2" minOccurs="0" nillable="true"/>
The assignment I am doing in the .bple file is
<assign name="Assign_1">
<copy>
<from expression="bpws:getVariableData('inputVariable','payload','/client:BPELProcess1ProcessRequest/client:input')"/>
<to variable="Invoke_1_callingAPI_InputVariable" part="InputParameters"
query="/ns2:InputParameters/ns2:P_WEB_ACCOUNT"/>
</copy>
<copy>
<from expression="string('o')"/>
<to variable="Invoke_1_callingAPI_InputVariable" part="InputParameters"
query="/ns2:InputParameters/ns2:P_SOLICITED_ONLY"/>
</copy>
</assign>
--KhaleelYou have an attribute type in an object service that is supposed to be numeric, but when reading form the database it seems that is retrieving a non-numeric content...
Cheers,
Vlad -
Passing Parameters for Dashboard Prompts to Answers Report
I have the following requirement.
I want to pass the value of a 2 dashboard prompts to an answers report. What is the syntax using GO URL method.
Thoughts anyone?Refer to this link on how to achieve this: http://www.iwarelogic.com/2010/09/integrating-oracle-obiee-content-using-go-url-850/
Regards,
-Amith.
Maybe you are looking for
-
I need to know wherther oracle recommends creation of new EBO? if yes how I shall create that.Our situation is like that , we need to pass sourcing ALLOCATION_PERCENT,VENDOR_ID,VENDOR_SITE_ID to pass from PIM to custom legacy system.Please let me kno
-
My sequence will not show up in Color 1.5.3 when sent from FCP 7
I cannot get clips from FCP 7 to show up when sent to Color. I had been able to get this to work perfectly fine earlier, but now for some reason, when sending a sequence from FCP to Color, Color doesn't automatically create a new project with the seq
-
Import SAP WSDL into External Definition
Hi Friends, I'd like to import a WSDL into XI External Definition. However, the WSDL is gained from Web AS Web Service Navigator. So it is a zip file and consists of three WSDL files. How can I import them into the external definition? Thanks + Regar
-
How do I get my sidebar back in windows in iTunes 12
How do I get my (left) sidebar back after installing iTunes 12 on my PC using Windows 7
-
Hi experts I would like to know how can I create a sizing for CLM, I tried in SAP quiclsizing page but not found nothing. Some help will be welcome. Nilson Fonseca