on 08-26-2005 3:52 PM
I am passing windows login as a post request in the target Webdynpro application and webdynpro will parse the post request, using which it will retrieve some values using BAPI
How to do that ?
Hi,
Are you able to open webdynpro application first of all with that url without passing any parameters?
Try this first and then pass the parameters and try printing them using the below code in the wdDoInit() method.
String Name = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("firstName");
and print it like this wdComponentApi.getMessageManager.reportSuccess(Name);
NOw if everything works fine then use the same code just before you execute your model and pass the same parameters to the model.
unless and untill you finish the first step dont import the model.
May be the way u r passing the parameters to the model is wrong , but in that case there will be some different exception or error.
Tell me in detail wat all steps you r following.
Regards,
Sirisha.R.S.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
So you are able to print the url parameters?
Then it is not at all a problem? please try to get that values into a variable, like this:
String Name = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("firstName");
Now set the values of the model in the following way:
wdContext.<Modelnode()>.<currentmodelnodeelement()).<the modelnode attribute that u want to set-in this case-setFirstname(Name-the one that u got from url);
example:
wdContext.nodeZtrng().currentZtrng_Element().setFirstName(Name);
Try this and let me know if u were able to set the model node.
Now execute your model after passing certain parameters.
Regards,
Sirisha.
Regards,
Sirisha.R.S.
Hi
I have used this URL typed directly in the browser
http://chd087:51800/webdynpro/dispatcher/local/requestget/Myapp?firstname=ananda
BUT it is showing blank screen without errors
I have kept the code inside wdDomodifyView()of view controller.
Where should I place the code ?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ananda,
you will be calling your webdynpro application using a URL right?
So in that url you will add the parameters that which you want to send to your webdynpro application in this manner
"http://server:port/webdynpro/dispatcher/local/webdynproproject/webdynproapplicationname?<b>parametername(in this case-firstname)="valueof that parameter""</b>
and now you should read this value in your webdynpro view (not in the controller)that i mentioned in my previous post.
Try this out and let me know the status.
Regards,
Sirisha.R.S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ananda,
you will be calling your webdynpro application using a URL right?
So in that url you will add the parameters that which you want to send to your webdynpro application in this manner
"http://server:port/webdynpro/dispatcher/local/webdynproproject/webdynproapplicationname?<b>parametername(in this case-firstname)="valueof that parameter""</b>
and now you should read this value in your webdynpro view (not in the controller)that i mentioned in my previous post.
Try this out and let me know the status.
Regards,
Sirisha.R.S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ananda,
you will be calling your webdynpro application using a URL right?
So in that url you will add the parameters that which you want to send to your webdynpro application in this manner
"http://server:port/webdynpro/dispatcher/local/webdynproproject/webdynproapplicationname?<b>parametername(in this case-firstname)="valueof that parameter""</b>
and now you should read this value in your webdynpro view (not in the controller)that i mentioned in my previous post.
Try this out and let me know the status.
Regards,
Sirisha.R.S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ananda,
you will be calling your webdynpro application using a URL right?
So in that url you will add the parameters that which you want to send to your webdynpro application in this manner
"http://server:port/webdynpro/dispatcher/local/webdynproproject/webdynproapplicationname?<b>parametername(in this case-firstname)="valueof that parameter""</b>
and now you should read this value in your webdynpro view (not in the controller)that i mentioned in my previous post.
Try this out and let me know the status.
Regards,
Sirisha.R.S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ananda,
you will be calling your webdynpro application using a URL right?
So in that url you will add the parameters that which you want to send to your webdynpro application in this manner
"http://server:port/webdynpro/dispatcher/local/webdynproproject/webdynproapplicationname?<b>parametername(in this case-firstname)="valueof that parameter""</b>
and now you should read this value in your webdynpro view (not in the controller)that i mentioned in my previous post.
Try this out and let me know the status.
Regards,
Sirisha.R.S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
can u pls be a little more specific?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi sirisha
I have put this code inside wdDoinit()of controller
String Name = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("firstName");
wdContext.currentContextElement().setCmpctx_firstname(Name);
and where to specify the get name/value pair eg. firstName=ananda.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ananda,
If u r passing the parameter by name "firstName" through url to the target webdynpro application u can retrieve it in webdynpro using the following code:
String Name = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("firstName");
thus now u have the parameter in webdynpro and now u can push it on to R/3 using some events.
Regards,
Sirsha.R.S.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Write your own java logic in domodifyView() method.Use Stringtokenizer to parse the post request.Pass it to the required method in Webdynpro.have an event fired and pass it to R/3 from Webdynpro.
Hope it helps.
Rdgs,
Guru
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.