掲示板

Setting properties for a page programmatically or send event to a page

8年前 に sandeep g によって更新されました。

Setting properties for a page programmatically or send event to a page

Junior Member 投稿: 29 参加年月日: 14/11/18 最新の投稿
Hi ,

I want to check,
1) if there is any way to send a event to all the portlets on a specific page by passing the page name (if the same portlets are on the different page they should not receive the event)
or
2) If there is a way to set properties of a specific page programmatically, so that portlets on that page can read the data.

My requirement is , I have to pass a data object from a portlet on a page to the other portlets on a specific page. if the same portlets are on a different page other than I have provided, they shouldn't receive the event.
I can do IPC via events but it will be received by the portlets if they are on the different page also.

Do you guys have any possible solutions to do this programmatically ?
thumbnail
8年前 に Kailash Yadav によって更新されました。

RE: Setting properties for a page programmatically or send event to a page

Regular Member 投稿: 211 参加年月日: 11/10/18 最新の投稿
Hi Sandip, can you clarify bit more your requirement? Do you want to use this object to display on portlet view(jsp) or you want to update DB? If want to display on page, you can use other methods of IPC like Public Render Parameters.
8年前 に sandeep g によって更新されました。

RE: Setting properties for a page programmatically or send event to a page

Junior Member 投稿: 29 参加年月日: 14/11/18 最新の投稿
Hi Kailash,
My requirement is,
Lets say we have three pages: Page1, Page2, Page3 , and two portlets : Portlet A and Portlet B
Page1 has Portlet A on it
Page2 has Portlet B on it
Page 3 has Portlet B on it.
Now Portlet A on Page1 searches a Account number and should send the account number to just Portlet B on Page2, Portlet B on Page3 should not get that event or data.
Now again PortletA on page1 searches Account number and should send the account number to just Portlet B on Page3., not to Portlet B on Page2.

These events should happen in background, when the user is on the Page1 itself. wheneve the user switches to Page2 or Page3 later in the session , he should see corresponding account number on Page2 and Page3.

This is what I am trying to do.
8年前 に Shahbaz Khan によって更新されました。

RE: Setting properties for a page programmatically or send event to a page

Junior Member 投稿: 70 参加年月日: 12/10/13 最新の投稿
Hi Sandeep,

I think Friendly URL's could help you in some way.
Do a little research on IPC with friendly URL's.