cancel
Showing results for 
Search instead for 
Did you mean: 

Want to load dynamic URL from the WebDynpro application

Former Member
0 Kudos

Hi ALL,

My problem is I developed a WebDynpro application to show the vendor details in the table.

I created a iview in the portal and integrated the webdynpro application. Taken 2 columnwidth page.

In 1 column to showing the vendor details and in another column i want to show the site of the vendor.

Now, In row selection I want to show the homepage of the vendor site in another ivew(2nd column) of the page.

Kindly help me out.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

Hi Vijay,

I tried by using Fire event in the first IVIew and subscribe event in the second IVIew.

I created application WebDynpro java application and ABAP Webdynpro application.

Both applications are not working as expected.

Example :

In First IView :

WDPortalEventing.fire(

"urn:com.sap.tc.portaleventing.example",

"show",

wdContext.currentContextElement().getName()

In Second IView :

public void wdDoInit()

{

//@@begin wdDoInit()

//$$begin Enterprise Portal Eventing(1355316308)

WDPortalEventing.subscribe(

"urn:com.sap.tc.portaleventing.example",

"show",

wdThis.wdGetRaiseFireEventAction()

);

I created 2 IViews in the portal and added those IViews in the page. I tested the page. It is not working as expected.

Kindly, help me out.

Thanks & Regards,

Bhavani

saravanan_narayanan
Active Contributor
0 Kudos

Hello,

For me your code looks perfect. Are you firing the event on selection of the vendor? could you also make sure the namespace of the event and iview are same.

BR, Saravanan

Former Member
0 Kudos

Hi,

Thanks for replying.

Yeah, I checked the namespace of the IView and the event are same.

But still it doesn't work. Do i need to do any configuration settings/servies settings.

Kindly let me know...

Thanks,

lokesh_kamana
Active Contributor
0 Kudos

Hi,

Please follow the below process for passing data between two webdynpro applications using portal eventing.

Step1:-

Webdynpro Application 1 (Iview1)

Create an input field bind a context variable and have a button and write the following code in the button onaction.



  public void onActionOK(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
  {
  com.sap.tc.webdynpro.clientserver.event.api.WDPortalEventing.fire("urn:com.sap.tc.portaleventing.example","show",
				wdContext.currentContextElement().getHi());
  }

Here Hi-->is the context variable binded to the input field.

Step2:-

WDDOINIT write the following code:-



com.sap.tc.webdynpro.clientserver.event.api.WDPortalEventing.subscribe("urn:com.sap.tc.portaleventing.example","show",wdThis.wdGetRaiseFireAction());

While creating the action it should have the following 3 parameters.

1.dataObject-->Type String

2.namespace-->Type String

3.name-->Type String

Your action code should look like something below.



  public void onActionRaiseFire(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, java.lang.String dataObject, java.lang.String namespace, java.lang.String name )
 {
    wdComponentAPI.getMessageManager().reportSuccess("Value in the input field"+dataObject);
  }

Note:-

1.Make sure your using portal along with domain

Eg:-http://portal:50000/irj/portal--->wrong

http://portal.domain.com:50000/irj/portal--->right

2.EPCF level should be 1.

3.Check whether both applications run on the same domain.Sometimes portal eventing does not work between cross domain applications.We should do domian relaxing in order to achieve this.

Thanks & Regards,

Lokesh Kamana

lokesh_kamana
Active Contributor
0 Kudos

Any Update.

Thanks & Regards,

Lokesh Kamana

Former Member
0 Kudos

Hi Lokesh,

Thanks for giving good example.

But I have 2 doubts in that.

What is the 1st and 2nd point means?

1.Make sure your using portal along with domain

Eg:-http://portal:50000/irj/portal--->wrong

http://portal.domain.com:50000/irj/portal--->right

I want trying to give the right url as u mentioned above. But portal is not loading.I replace the domain with my domain name.

2.EPCF level should be 1.

Where can i check the EPCF level?

and the third is correct as u said.

Thanks & Regards,

Bhavani

lokesh_kamana
Active Contributor
0 Kudos

Hi,

Below is the clarification for ur issues.

1..com need not be there

eg:-http://<hostname>.<domain>:<port>/irj/portal

2.You can check the EPCF level at the below path

System Administration->System Configuration->Service Configuration

Under Applications Folder.

U find a folder com.sap.portal.epcf.loader>Services->epcfloader.

Property to be checked are:-

framework.level-->Should be 2

applet.trace.level--->should be 2

Thanks & Regards,

Lokesh Kamana.

p330068
Active Contributor
0 Kudos

Hi Bhavani

You can access the SAP portal with fully qualified domain name. Update the IP address and host name (fully qualified domain) of the server in the host file (Start > run > drivers > etc > host), then you can access with FQDN as mentioned by Lokesh.

I think for EPCF you can check the wiki to check the EPCF level : [Click here|http://wiki.sdn.sap.com/wiki/display/EP/EPCM%2bis%2bundefined] if there is any issue with EPCF otherwise not required.

Hope it will helps

Best Regards

Arun Jaiswal

Answers (1)

Answers (1)

saravanan_narayanan
Active Contributor
0 Kudos

you need to relay on portal events.

in the first iview, raise appropriate portal event and in the second iview embed the JSP page/ webyndpro application which will listen to the portal event and embed the corresponding vendor URL.

Hope this helps.

BR, Saravanan

Former Member
0 Kudos

Dear Sarvanan,

I am totally new to the EP. In the first view I am subscribing the event in the OnInit event and registerting the event in the button click event.

But what to do the second view. How the communication will happen between the two iviews.

Could you give me an example on this with code.

Thanks a lot...