cancel
Showing results for 
Search instead for 
Did you mean: 

What are steps to run the developed widget from the another mechine -URGENT

former_member192283
Participant
0 Kudos

I have developed one widget which is displaying some data from the R/3.

In the current setup. Widget Foundation tool is runngin at my mechine. and i have developed the widget also in my mechine itself.

If i want to deploy this widget in the other mechine and to run what are the changes i need to do it.

I have created the Custom widget template. In the project structure /js folder . we have some couple of .js files. In one of that "RFCRequest.js" contains the "RFC_REQUEST_URL"

This varible contains the url of the SAP foundation Tool. By default it conatins the ip address as 127.0.0.1.

When run the widget along with default things. I am getting the proper data. When change this Loop back ip address to my IP address. And then if run the widget, i am getting the error to not able to run the RFC.

If want to test the same widget to run from other mechine by using the Widget foundation toll running in mechine, what are the changes need to be done.

What is the process?Regards

Vijay

Accepted Solutions (1)

Accepted Solutions (1)

jaideeps
Advisor
Advisor
0 Kudos

hi vijay,

try with this..

thanks

jaideep srinivasan

*reward points if useful

Answers (1)

Answers (1)

Former Member
0 Kudos

In the js/utils folder you will have a file called RFCRequest.js. Inside that file there is a function called

RFCRequest().

Find the following lines in that function -

var RFC_REQUEST_URL = "http://127.0.0.1:7531/SapMiddleTier/RESTJSON/ewcs/service/rfct";

var RFC_REQUEST_URL_TEXT = "http://127.0.0.1:7531/SapMiddleTier/REST/ewcs/service/rfct";

And change the IP address from 127.0.0.1 to the IP address of the m/c where the SAP Foundation is running.

former_member192283
Participant
0 Kudos

Hi Varun,

Thanks for the reply,

I have done the same changes. But it was not working . After made the same changes , when i run the widget it is giving the popu message,like.

Please check the Widget Development Tool is running or not?

Regards

Vijay

Former Member
0 Kudos

Hello Vijay,

It is very good question. Till now we need to run SAP Widget Foundation in each and every system where we need to use Enterprise widgets.

To meet your requirement you need to make some changes in your sap widget foundation folder in C drive or where ever you installed.

In Server Side Settings

You would find a file with name middleware.xml.

1) In this file you will find a statement <Set name="host">localhost</Set>

2) Change the localhost as respective ipaddress(system ip address)

3) you can even change your port number from 7531 to any port

4) save it and run your own http file for ex:

http://ipaddress:7531/SapMiddleTier/app/

I tried this in many systems it is working correctly.

One thing to remember is It is not allowing any proxy settings.

so before that you need to remove your proxy settings.

  • Widget Side*

As varun said, you need to maintain your http name for RFC_REQUEST_URL and RFC_REQUEST_URL_TEXT.

Iam in way of making this as proxy free setting and to make our own http as default configuration when you click on widget foundation icon.

Please let me know if you have any questions.

Regards,

Kiran I

former_member192283
Participant
0 Kudos

Hi Kiran,

Thanks for your useful reply. I was able to run the foundatin tool configurations in browser after made the changes in the middleware.xml file.

Also i have made the changes in RFCRequest.js file also replaced the loopback address with the mechine ip address.

I was not able to understand related to the following proxy settings.

1) One thing to remember is It is not allowing any proxy settings.so before that you need to remove your proxy settings.

2)Iam in way of making this as proxy free setting and to make our own http as default configuration when you click on widget foundation icon.

Can u tell me where i need to make the changes related to the proxy?

Can u elabrate the above two points?

regards

Vijay

Edited by: Vijay Krishna Meda on Feb 11, 2008 4:00 PM

Former Member
0 Kudos

Hello Vijay,

So, Are you able to use the Widget foundation running in different system.

I was getting some proxy server error or firewall error when i was using the new Http configuration site.

The solution for both the questions are.

1) For server level Http setting follow this path

Explorer -> Tools -> Internet Oprions -> Connections -> Lan settings -> If proxy server is selected -> advanced -> in exceptions. add HTTP ip address as *.xxx.xx

2) For widget level, right click on the Widget Engine Icon that you are getting in the right hand side taskbar. You can find preferences-> Advanced-> select No proxy.

This will solve both issues.

Please reward points for all helpful answers.

Regards,

Kiran I

former_member192283
Participant
0 Kudos

Hi Kiran,

Problem got solved it is working fine.

Regards

Vijay

former_member192283
Participant
0 Kudos

Hi Kiran,

Any time have u tried to access any kind of the portal services from widget. Like i will give u the examples like.

If i want to see the list of the users login to the portal? we can use the portal activity report in the portal.

If i want to see the same kind of the report from the widget , how it is possible.

Like that any kind of the services in portal to access in the portal.

Regards

Vijay

Former Member
0 Kudos

Hello Vijay,

Please close the thread.

Regards,

Kiran I

Former Member
0 Kudos

Hello Vijay,

Please correct me if iam wrong, do you want to know how many users logged in portals or in widget.

As you said, you have a report which gives the data. So check the report name in R/3 which is giving the data.

Please post it as a new thread , so that you may get more answers .

Regards,

Kiran I

former_member192283
Participant
0 Kudos

hi Kiran,

I want to see the list of the users logged in to the portal. That information i want to display or access in the widget.

Like that any kind of the portal service or KM service need to access from the widget

How to do that.

Regards

Vijay

Edited by: Vijay Krishna Meda on Feb 11, 2008 5:07 PM

Former Member
0 Kudos

Hello Vijay,

There should be the function Module or Webservice for the report that you are saying.

What is the report name that you are using in portal to know users logged in..

Regards,

Kiran I

former_member192283
Participant
0 Kudos

kiran,

Like PortalAcitivityReport.

Regards

Vijay

jaideeps
Advisor
Advisor
0 Kudos

hi vijay,

As Kiran as suggested the idea about this issue...with his inputs i have written a blog"Widgets in client/server Env" ...

check out this blog..

/people/jaideep.srinivasan/blog/2008/02/09/enterprise-widgets-in-clientserver-environment

This works fine without proxy...I think this again depends on that network configuration.The Network admin has to configure the server Ip in such a way to work with proxy enabled.

thanks

jaideep Srinivasan