on 2007 Jul 27 11:03 AM
Hello all,
I'd like to call a WDA application with passing parameters to the URL. Application would have no connection to the backend (no function calls etc.), with context only filled by parameters in the URL.
1. Is there, as in WD Java (WebContextAdapter), a method to read the data from the URL to send it to the context? Any code example would be welcome!
2. Is there a limitation on the number of parameters, and/or on the length of the URL string?
Thanks in advance,
Francois
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Maximum length of URL is practically 2K.
Apparently you can go to 2083 bytes on IE.
Never tested it as it is not nice way to send data.
Use the HTTP body to pass the data. (HTTP POST not get)
eg
CALL HTTP service xyz on ABAP stack.
Your custom service.
very simple to code.
That can have as much data as you like.
The data can be persisted, under a custom key.
Then redirect to a Service that is your WDA URL.
Passing only the KEY eg a GUID.
The WDA just reads the data.
That way you are not limited to the URL
Cheers
Phil.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'd like to answer your questions.
There is some different between WD4A and WD4J
You have created view: V_defualt, and Window: W_default.
W_defualt:
Window: Embed view --->v_default
Inbound Plugs: Importing parameter from Default--> define the parameters which you'l like to get from URL.
And also define the paramters in the Context.
then edit the code of method HanldeDefault
V_Default
Properties: add the W_Default controller as Used controller.
and define and map the context.
You can find a book "Wed Dynpro for ABAP" chapter 3 at SAP Press. it's a sample chapter.
Cheer!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
In the DEFAULT window of your application , you have a DEFAULT plug , inside that you can call this method
Data:lt_all_url_param TYPE tihttpnvp.
wdevent->get_data( EXPORTING name = '_ALL_URL_PARAMETERS'
IMPORTING value = lt_all_url_param ).
here in the lt_all_url_param , you will get all the URL parameters as name value pair.In this case , you dont have to explicitly specify this parameter anywhere.
Thanks
Anzy
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.