Flash Islands : pass event parameters to Web Dynpro
Hi,
I am trying to pass a parameter to Web Dynpro using "FlashIsland.fireEvent()". The event is fired, but I cannot get the parameter.
I WD I created a GACEvent :
name = doSomething
onAction = doSomethingAction
In this Event I created a GACEventParameter
name = returnText
type = string
In Flex I implemented following function :
private function click():void
var returnText:String;
returnText = "Dit is een test";
FlashIsland.fireEvent(this,'doSomething',returnText);
This is the code of the action in WD :
public void onActionDoSomethingAction(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent)
//@@begin onActionDoSomethingAction(ServerEvent)
wdComponentAPI.getMessageManager().reportSuccess(wdEvent.getString("returnText"));
//@@end
The event is fired, but I get the message "invalid message: null". What am I doing wrong?
Regards,
Jeroen
Hi,
Wrong syntax when you fire the event. The correct syntax is :
flex code :
var myParam:String = new String();
var myValue:String = "Test";
FlashIsland.fireEvent(this,"Event1",);
Regards,
Jonas
Similar Messages
-
Regarding how to pass the data from web dynpro to workflow
hi gurus,
how to pass the data from web dynpro to workflow.
Regards
vijayCheck this [thread|SAP_WAPI_START_WORKFLOW;
-
How to pass the data from web dynpro to workflow.
hi gurus,
how to pass the data from web dynpro to workflow.
Regards
vijayHi
you can use function module
data ls_input_container TYPE swr_cont.
data lt_input_container TYPE TABLE OF swr_cont.
CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
EXPORTING
task = ptask
IMPORTING
return_code = lv_return_code
new_status = lv_new_status
TABLES
input_container = pinput_container
message_lines = lt_message_lines
message_struct = lt_message_struct.
where you pass the data in imnternal table "pinput_container" as
ls_input_container-element = 'KUNNR'.
ls_input_container-value = ls_skna1-kunnr ."wd_this->lv_kunnr.
APPEND ls_input_container TO lt_input_container .
ls_input_container-element = 'CLUSER'.
ls_input_container-value = lv_cluser.
APPEND ls_input_container TO lt_input_container .
ls_input_container-element = 'BUKRS'.
ls_input_container-value = lv_bukrs. " youe value as per requirement.
APPEND ls_input_container TO lt_input_container .
ls_input_container-element = 'VKORG'.
ls_input_container-value = ls_sknvv-vkorg. " youe value as per requirement
APPEND ls_input_container TO lt_input_container .
ls_input_container-element = 'VTWEG'.
ls_input_container-value = ls_sknvv-vtweg. "youe value as per requirement.
APPEND ls_input_container TO lt_input_container .
ls_input_container-element = 'SPART'.
ls_input_container-value = ls_sknvv-spart. "youe value as per requirement.
APPEND ls_input_container TO lt_input_container .
*Also Forgot to mention where ptask is your workflow ID *
Regards,
Arvind
Edited by: Arvind Patel on May 14, 2010 7:38 AM -
Passing event parameters to copy of DECISION task TS20000118
Hi.
I have made a copy of the decision task TS20000118 which is the standard approve/reject user decision step.
In the decision step, i have a link to ME13 transaction which is done by passing object_id and giving the "display" method as default method for the ZBUS3003 object which takes Info record number as key.
My problem is users are restrcited by PORG auth object in ME13 also and along with Info record number, i have to pass porg, plant, vendor , material to ME13 link.
I have defined event parameters to capture this 4 fields but i dont know where to pass this parameters as TS20000118 where the link appears in using the DECISION object and not the DISPLAY method,.
I dont want to make this 4 fields as object key because it will mean altering many other things. Also, int he DISPLAY method based on info record number i cannot retrieve 4 fields bcos there mioght be multiple records for same info record number.
Appreciate if you can let me know how i can pass event parameters to ME12 link in DECISION step of Task TS20000118 .
Regards
PN.Hello user12628! I have the same problem. Did you solve it? I have dynamically generated size of my Event Parameter String[] mass. And some times I have Error that URL string very long :). That is why I want to use POST method instead GET. if you has found solution,please let me know.
Message was edited by:
kostik -
Set Context From Event Handler in Web Dynpro ABAP
Hi,
I am passing some parameters when navigating from one view to another. Now I would like to set the context of the second view. How can I achieve that in Web Dynpro ABAP?
Thanks.
/ ElvezI figured out ...
element->set_attribute(
exporting name = `NAME`
value = value ). -
Need example for using query string parameters in Web Dynpro
Hello,
Is it possible to transfer a Web DynPro application parameters at the query string (URL)?
Can someone please show me an example of how to pass it and how to retreive it using code inside an application?
Thank you in advanceHi,
when launching WD apps in the Portal you have to define a WD iView in the Portal. This can be started using the NavigationTarget parameter.
Parameters (ie. Business Parameters) that should be passed to the WebDynpro application can be defined in the iView itself - the iView attribute is called "Application Parameters". Here you can also define variable expressions like "emailaddr=<User.email>" so that the value of the email address is evaluated on runtime.
This way you don't have to care about URL encodings at all
The following user expressions can be used:
<User.displayname>
<User.uniquename>
<User.firstname>
<User.lastname>
<User.salutation>
<User.jobtitle>
<User.department>
<User.email>
<User.telephone>
<User.mobile>
<User.fax>
<User.streetaddress>
<User.city>
<User.zip>
<User.country>
<User.state>
<User.timezone>
udo -
Passing a parameter to Web Dynpro from an external system
Hi All,
I want to pass a parameter to a Web Dynpro Application from an external browser.
I have developed a simple application with an input "ServiceOrder".
In the Portal I have created an Iview for the Web Dynpro application and have set an Application Parameter (ServiceOrder="000003000012"). Just for testing.
In web Dynpro Controller I have created an attribute in the Context and write tje code below in the wdDoInit.
String SO = WDProtcolAdapter.getProtoclAdapter().getRequestParameter("ServiceOrder");
wdContext.currentContextElement.setServiceOrder(SO);
My problem is that the String SO is empty.
Please help.
Regards,
RidouanHi R. Taibi,
try this.
IWDProtocolAdapter protocolAdapter = WDProtocolAdapter.getProtocolAdapter();
IWDRequest request = protocolAdapter.getRequestObject();
wdContext.currentContextElement().setServiceOrder(request.getParameter("ServiceOrder"));
regards
Gunter -
How to Pass Java Objects between Web Dynpro and Java SAP iViews
Basically I have an SAP web dynpro iView that I do stuff with and I want to pass an object to another iView which is just a regular Java iView. From what I've read and tried, I can't just stick something in the session object and hope that the Java iView can pull it down the other end. I had a dream that it was possible (seriously).
Anyway, are there any possible solutions around? Please advice and share you throughts. I will try to dream about it again tonight and see if its really gonna work this time.
thanks for your help in advanceThere is no easy way you can pass objects other than those supported by express such as String, map, list etc.
Though not advised, you can create a class with static variables to handle the storage of such java objects during transition between form and workflow. You will need to somehow identify the objects uniquely . -
How process HTTP-parameters in Web Dynpro?
Hello,
as a beginner in Web Dynpro I would like to know if and how it's possible to read http-parameters, e.g. those of "javax.servlet.http.HttpServletRequest" in a WD component..
When I call a WD application by a URL, it could be done from another SAP-Web application where the Request-parameters have been filled - and I want to display/process the contents in WD.
Hope there is a solution for that -
Regards,
JensHi Jens,
you can access HTTP parameters via the WDWebContextAdapter:
http://help.sap.com/javadocs/NW04/current/wd/com/sap/tc/webdynpro/services/sal/adapter/api/IWDWebContextAdapter.html
You can call in wdDoInit() for instance
String Name = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("parameter-name");
HTH
Daniel -
Get URL parameters of Web Dynpro Application using Floor plan manager
Hi Experts,
I have a web dynpro component using FPM. The default window of the application is FPM_WINDOW which is an interface view of component of FPM framework. so I cannot get the URL parameters in handledefault of a normal web dynpro app which is not using FPM. How do I get URL parameters in this case through FPM? Thanks!Hi,
I guess you might have created the application under FPM_OIF_COMPONENT/FPM_GAF_COMPONENT. For that add the pramaters to the PARAMTERS tab of teh application.
Now, you can use
data lo fpm type ref to if_fpm.
lo_fpm = cl_fpm=> get_instance( ).
CALL METHOD lo_fpm->mo_app_parameter->get_value
EXPORTING
iv_key = 'PERNR' "Application param name
IMPORTING
ev_value = lv_pernr.
Regards,
Lekha. -
Syntax for passing Xcelsius parameters to Webi Report (Drill Down)
Hi,
I am trying to drilldown from an Xcelsius chart to a webi report by passing the prompts. And I have given the following syntax:
http://<CMS SERVER>:<PORT>/OpenDocument/opendoc/openDocument.jsp?iDocID=<DOCID>&sType=wid&sRefresh=Y&mode=full&lsSCalendarYear/Month=JAN2009&&lsSBusiness+Category=
Corporate.
When I click on the chart in Xcelsius, it opens the webi report in a new window. First & foremost, it asks me to login again(this is during testing from the Xcelsius application itself and I am not sure this would happen when I publish the dashboard to BOBJ infoview server). And then in the Webi report, it is showing the prompts screen, instead of directly accepting the passed on values and displaying the report. Am I doing something wrong? Can anyone please help?
KalyanHi, Kalyan!
I do not know exactly what the problem of your URL/syntax is, but I know that I successfully managed to call a WebI report out of an Xcelsius dashboard. So, let's have a look at my URL/syntax:
http://<CMS SERVER>:<PORT>/OpenDocument/opendoc/openDocument.jsp?
iDocID=<ID>&
sIDType=CUID&
sRefresh=Y&
lsSCountryKey=DE&
So, the differences are:
-> I use the WebI report's CUID and I put this ID type ("CUID") into the URL: "...&sIDType=CUID&..."
-> I do not use "sType" and "mode"
-> The rest, i.e. the report's specific parameters/prompts - all starting with lsS... is the same.
As I said before: I do not know if there is a relevant difference, but why not giving it a try...?
Regards
Micha -
Passing Multiple Parameters to Web Forms
I need to run a form through an URL (say by clicking on a link) and I need to pass more than one parameters to the called form , can anybody help me to know how to separate the two parameters , say p1 and p2 , in the URL address . I tried like this :
http:\\197.45.3.89./dev60cgi/ifcgi60.exe?form=login&userid=&otherparams=p2=ppx40001.fmx&p1=RMA&lookAndFeel=generic&colorScheme=teal
But the problem is with the syntax for separating the two parameters
&otherparams=p2=ppx40001.fmx&p1=RMA
does not work as I separate them with '&'.
What is the actual syntax ?
Thanks in advance folks .
Have a great new Year !!Hey first of all turn your http:\\ to be http:\\ and the only thing I can think of is to use ? instead of &. I apologize in advance if this is totally useless :-)
Keith -
Pass Values between 2 web dynpro applications
Hey,
I have a created an application which display data from table 1, I am capturing the value ON_LEAD_SELECT
and calling another application2,
I wanna be able to export the value selected from applciation1 into
applciation2.
This what I tried to export selected value, it didn't work through:
in application 1:
construct a URL
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = 'APPLICATION2'
IMPORTING
out_absolute_url = str.
concatenate str '?' 'carrid =' ls_sflight-carrid into str.
get reference of window from component
l_cmp_api = wd_comp_controller->wd_get_api( ).
l_window = l_cmp_api->get_window_manager( ).
get reference of window of target component
result = l_window->create_external_window(
url = str ).
result->open( ).
Thanks in advance>
Abdul kourani wrote:
> Hi Thomas,
>
> Thanks for the quick reply. I used the method you recommended
>
> call method cl_http_server=>append_field_url
> exporting
> name = 'carrid'
> value = ls_sflight-carrid
> changing
> url = str.
>
> but Im getting a not-compatible type error , since VALUE is expected to be string.
> lets say hypothetically I successfully exported the value from application 1, how can I possibly
> read it in application 2
> for example:
>
> * read data
> select * from sflight into table lt_data
> WHERE carrid = ????.
>
> Thanks
Whatever value you have, you need to put into string format anyway.
Just declare a temporary string field and move yoru carrid value to it before calling the append_field_url method.
From application 2 you read the URL parameters using the start plug of the window.
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/ca3351508f04e7e10000000a42189c/frameset.htm
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/b44e6ae8603095e10000000a421937/frameset.htm -
How to set Application Parameters in web dynpro application
Hello everyone,
I have a requirement where I need to set a table as a scrollable table , as i go through this link
[http://help.sap.com/saphelp_nw04s/helpdata/EN/b5/ac884118aa1709e10000000a155106/content.htm]
I found that there is a application parameter WDTABLENAVIGATION which needs to be set to SCROLLBAR
I checked on every bit in nwds for the DC where I can set this parameter but could nt find it .
Can anyone please help me out in finding this and making my table scrollable.
regards,
RajThanks for the response arindam,
Do you have any idea how to set value , i tried with some values and it has been ending up in errors.
Kindly help me out ..
Regards,
Raj -
On click event on alv web dynpro.
I've inserted this code in the WDDOINIT method:
DATA: l_ref_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
l_ref_INTERFACECONTROLLER = wd_This->wd_CpIfc_Alv( ).
DATA:
l_VALUE type ref to Cl_Salv_Wd_Config_Table.
l_VALUE = l_ref_INTERFACECONTROLLER->Get_Model( ).
Display button in column subty
lr_column = l_value->if_salv_wd_column_settings~get_column( 'SUBTY' ).
CREATE OBJECT lr_button.
lr_button->set_text_fieldname( 'SUBTY' ).
lr_column->set_cell_editor( lr_button ).
Display link in column connid
lr_column = l_value->if_salv_wd_column_settings~get_column( 'SUBTY' ).
CREATE OBJECT lr_link.
lr_link->set_text_fieldname( 'SUBTY' ).
lr_column->set_cell_editor( lr_link ).
When I test the WD the dump occurs in this method:
method ensure_active_component.
if if_wd_component_usage~has_active_component( ) = abap_false.
Active component must exist when ...
>>>>>>>>>>>>> raise exception type cx_wdr_rt_exception
exporting
textid = cx_wdr_rt_exception=>no_active_component_found
msgv1 = me->name.
endif.
endmethod.
Why?Hello,
I am not too sure for your requirement, but what I could understood is "You have created an ALV table of buttons and have assigned with same onaction method, once cliked on any of the button, you want to figure out which button has been clicked?" If this is the casse then there is a very easy way to find out where the click has taken place, use the code below in the on action method of the button in the alv table.
data: lo_context_element type ref to IF_WD_CONTEXT_ELEMENT,
lv_clicked_row type int4.
check wdevent is bound.
lo_context_element = wdevent->get_context_element( 'CONTEXT_ELEMENT' ).
check lo_context_element is bound.
lv_clicked_row = lo_context_element->get_index( ).
Once this is executed, lv_clicked_row would contain the index of the table row where the user have clicked, this value can be further used for business logic derivation purpose.
Please let me know if this does not help!
Thanks & Regards
Abir Chakraborty
Maybe you are looking for
-
Diagnosing cause of kernel panic on a Mac Pro
I've got an early 2009 Mac Pro with the following specs: 2.66 GHz Quad-Core Intel Xeon 16 GB 1066 MHz DDR3 ECC NVIDIA GeForce GT 120 512 MB OS X 10.8.1 Problem is, at random times, my Mac would just shut down and then restart after I clicked through
-
Can't find any raw files to convert when I am using Adobe DNG converter
Recently I purchased a new Olympus XZ-1 camera. I shoot exclusively RAW pictures (raw files for this camera are called .orf). Then when I tried to import these .orf files in the organizer of Phtoshop Element 8 it was imposible, nor then I could see t
-
What heart rate monitors will pair with the new iPod nano?
Are there heart rate monitors that will pair with the new 7th generation iPod nano?
-
I rented 4 movies. They were all in iTunes library box. I selected the move arrow and they all moved to my iPod box and my iPod flashed that it was synching. Waited until I got the note, ok to disconnect. Now when I go to my iPod, only 1 of the 4 mov
-
Materialized View and Ord Media questions
Hey Guys, My first question is on the use and creation of materialized views which i have previously done using TOAD. The question that i have is where/if can i visually see the constraints that are on a materialized view and where is the information