|
This is the common problem we will face in the real time. Instead of passing
date to each and every portlet, we can keep a Global Parameter in Application
Server by which the whole page will get tuned to the given Global Parameter.
I will go step-by-step to make it easy to implement.
1. Logon to Portal with the super user previlige.
2. Go to the Dashboard where you want to keep Global Parameter.
3. Create an Portlet in the first position which is handy to the client.(Do this
by clicking Add Portlet button on any other portlet.)
4. Now Click on to Portlet Builder.
5. Now Click on to the Simple Parameter Form.
6. Now click OK.
7. Now Click on Define to define the parameter form.
8. Enter the desired Title, no matter whether you give header and footer.
9. Now Click on Next which will take you to the Layout tab.
10. Select Vertical or Horizontal based on your comfort.
11. Under the Label, enter the desired name which is displayed in the front end.
12. Select the required box from display as. If you want to enter the date as
Global parameter, \"Field\" will do.
13. Based on number of parameters you want to pass, you can hide the remaining
parameters by selecting \"Hidden\" under the \"Display As\".
14. If you selected List of Values, Just give those values in the LOV box in the
format given there.
15. Click Next which will take you to the Parameter Tab.
16. Select Personizable, if you are allowing user to enter the value (We are
doing this to give that flexibility to the client, so select it).
17. Give the default value if you wish to and give the name under description.
18. Click Apply and then OK.
*****Till now we made the Portlet ready to accept the values, Now we have to
think how to link it to the Portlets. Gotcha!!*****
Pre-requisites:
1. Edit Defaults of the Portlet and under the Parameters tab, Click on Update
and tick mark the Disco Parameter Box and select Disco Parameter 1.
******GET BACK TO ACTION NOW!!!*******
1. On the Top of the page you can see, Page: Properties (You must be a Super
User to see this)
2. Go to Parameter Tab now.
3. Add one Page Paramtere here. Enter the name Globe_Param in the box and click
on add.
4. Give the name you want to and enter default value if you have to and Give the
description to make other life easy and dont forget to select Customizable.
5. Now click on Simple Parameter Form. For Param1 = select Page Parameter. =
Global_Param.
6. Now go to the Discoverer Worksheet (I mean click on to that under this Simple
Parameter Form.), there you can see DiscoParameter1 = Page Parameter =
Global_Param.
******GOT IT?? THE DISCO PARAMETER WE SELECTED IN THAT PORTLET DEFAULTS WILL
CATCH THIS GLOBAL PARAMETER DATE AND PASS IT TO THE CORRESPONDING PORTLET. YOU
CAN CLICK ON MULTIPLE WORKSHEETS WHICH YOU WANT TO RESPOND AS PER THE GLOBAL
PARAMETER AND SET THE DISCO PARAMETER TO THIS GLOBAL PARAMETER*******
7. Now click OK and move to Events Tab which is the Next one to this.
8. Now click on "Simple Parameter Form" and then Click on "Submit". You can see
the options aside.

Now Select Go to Page as we want to re-run the query with the given parameter.
and adjust the Global_Parameter like above.
Now Apply -> OK.
Go to Dashboard and give a Global Date which will refresh all the Portlets as
per the given Global Date.
Any suggestion or help regarding this always welcome on anil.kanuri@gmail.com
|