on 2011 Sep 05 9:38 PM
Hi,
I have the following requirment. I need to call webservice function module(by exporting some parameters and success, failure, cancel URLs) and will get iFrame URL and session ID as in the importing parameters.
I need to display the URL on clicking one button on the WEBUI screen. That iFrame URL is the place where we enter the credit card details and call the webservice system. and then the webservice system redirects to the success URL or Failure URL( These URLs are those which we send as exporting parameter to the webservice call).
Now my question is on how to create the URLs in WEBUI to send as exporting URLs?
Regards,
Request clarification before answering.
Hi Pushpa,
I believe you are using an event handler to call the Web Service Function Module and then getting the value of URL as importing parameter which you must be displaying in a field in Web UI.
In order to provide the URL navigation, you need to redefine the GET_P method of the attribute which is holding the URL value.
You need to redefine GET_P method of the attribute and implement the following sample code:
CASE iv_property.
WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
rv_value = cl_bsp_dlc_view_descriptor=>field_type_event_link.
WHEN if_bsp_wd_model_setter_getter=>fp_onclick.
rv_value = 'http://www.google.com'. " URL link
ENDCASE.
This will open up the URL in a new browser window or tab.
I hope I have understood the requirement correctly and provided a valid answer.
Thanks
Vishal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vishal,
Thank you for ur response. My problem is not displaying the URL. On displaying the new URL....On the URL screen I will enter the data on some fields and then press submit button...The control goes to the third party(Webservice system) server and from there it will do some validations and returns success URL if it is success and failureURL if it is failure and redirects to the success or failure URL. These success and failure URLs those we need to send them as exporting parameter in the webservice call. So how can I create these URLs in the component workbench?
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.