Search This Blog

Showing posts with label pagelet. Show all posts
Showing posts with label pagelet. Show all posts

Friday, September 23, 2011

Embedding Pagelet to a Page

Never tried embedding the Pagelet to a page before. I have tried it on the home page or under a component. For those who have not tried this; below are the steps to do it.

Create a pagelet and publish it on the home page tab.



And make sure on the 6th step; that is on the publish pagelet step; to check the embedd pagelet option.



Now use the following code and place it under the event you like.

import PTPPB_PAGELET:*;
Local object &PWAPI, &Pagelet;
&PWAPI = create PTPPB_PAGELET:PageletWizard();
&Pagelet = &PWAPI.getPageletByID("ASDASD", False);
AMM_DERIVED.HTMLAREA = "
" | &Pagelet.Title |
"
" | &Pagelet.Execute() | "
";


AMM_DERIVED.HTMLAREA is the HTML area that you place on the page to display the embedded pagelet.

And the pagelet on the page will look like the one below.



Interesting right? Try it out!

Friday, September 17, 2010

Custom Navigation Collection and Pagelet

When we are working on PIA we often feel that we are visiting the same areas within the system regularly.

So to make our life easier we can create a Pagelet based on a custom Navigation Collection containing our often used components. This greatly reduces the number of clicks required for day-to-day work and could be really useful for end users.

Creating the Navigation Collection

First, let’s create the Navigation Collection. You can have whatever menus/components you want in your collection.

Go to PeopleTools > Portal > Portal Utilities > Navigation Collections

Add a Collection with an appropriate Name and Description Click Add Folder Select Menu Folder, from the Employee Portal. Use the prompt to locate the folder to add, click the plus folder next to a high level menu to expand it and choose a child menu. Highlight the top level, and click Add Folder again. Repeat the process until you have added all your folders.

We can also add links directly to the Components we used most often, like Process Monitor, and moved them to the top of the list. Click Save (and remember the name of your new Collection). Publishing the Navigation Collection as a Pagelet

Go to PeopleTools > Portal > Pagelet Wizard > Pagelet Wizard

Add a New Pagelet and fill out the Title etc Choose a Data Type of Navigation Collection Choose a Portal of Employee and prompt to find your Navigation Collection. We normally reduce the Max Child Links to 5. I choose the Menu layout. I set the ‘Parent Images’ = Small, Turn off ‘Parent Descriptions’ and set the ‘Child Display Type’ = Simple List.

On the final page, check HomePage Pagelet, choose a folder, and set the security required.That’s your Pagelet done. Now add it to your Homepage.

Adding a Pagelet to your Homepage From the PIA Homepage, select the ‘Personalize Content’ link. Place a Check in the Checkbox next to the Pagelet you want, then click Save. Click the Personalize Layout link. Select whether you want a 2 or 3 column layout, and move the new Pagelet to the column you wish it to appear in, click Save.

That’s how you can create your own Custom Navigation Collection and Pagelet.

Original link: PeopleSoft Tipster

Monday, September 7, 2009

Working with Pagelet Wizard



Pagelet Wizard pagelets are small pages that provide display-only snapshots of applicable content. Pagelet Wizard provides a user-friendly, browser-based graphical user interface (GUI) that leads you through the series of steps involved in creating and publishing a pagelet.
Portal administrators and nontechnical users can use Pagelet Wizard to integrate and transform data from a variety of data sources
Get more details about the same from the two peoplebooks given below:

o Enterprise PeopleTools 8.49 PeopleBook: Internet Technology
o Enterprise PeopleTools 8.49 PeopleBook: Using PeopleSoft Applications

Take note of the points below while you work with pagelets.

1.If you cannot find the 6th tab in the pagelet wizard during the development or Homepage Pagelet Check Box not in the 6th step of Pagelet wizard then
Run the PTPP_PORTAL_PACK.DMS script. The home pagelet publishing option will appear

2.The below tips will help you to create a permission list and role for viewing the pagelet for a user

This is used to give access to all the persons having the any Role to see the data and Pagelet in their Homepage. It can be cloned from PTPT1000 and we can remove all the unwanted fields.

I. In the page "Page" we have to add
   a. PORTAL_PERS_HOMEPAGE -->  PORTAL_PERS_HOMEPAGE--> Personalize Layout 
   b. PTPPB_PAGELET_WIZARD --> PTPPB_ADMIN_PREF --> Administer Personalize
   c. PTPPB_PAGELET_WIZARD --> PTPPB_USER_PREF ----> to access query
II. In page "Web Libraries --> WEBLIB_PTPPB --> IScript_PageletBuilder

3.For managing the alignment or the appearance of the pagelet in the homepage after publishing it, go to
Peopletools-->Portal-->Structure and Content -->Portal Objects -->Homepage -->Tabs-->Edit--> Tab Content
Check the control box and select some options from the drop down and save