tag:blogger.com,1999:blog-34020393.post6379182559705996271..comments2024-03-27T10:59:38.307-07:00Comments on Jim's PeopleSoft Journal: Simplify HTML Pagelet Migration with a Custom TransformerJim Marionhttp://www.blogger.com/profile/12995110203807924786noreply@blogger.comBlogger29125tag:blogger.com,1999:blog-34020393.post-11284617089460636332016-05-06T09:39:37.993-07:002016-05-06T09:39:37.993-07:00@Ti, there is nothing delivered. I believe those v...@Ti, there is nothing delivered. I believe those variables only work in the templates in the WEB-INF directory. The point of this blog post was to show you how to create a custom transformer so you can create your own key words for things like the dev/test/prod path.Jim Marionhttps://www.blogger.com/profile/12995110203807924786noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-35584347315281734622016-05-06T07:34:13.510-07:002016-05-06T07:34:13.510-07:00Jim,
I hae a similar problem, but on the branding ...Jim,<br />I hae a similar problem, but on the branding footer HTML. Every refresh I have to go there and udpate the hardcoded path (dev/test/prod), is there a meta data I can use to dynamically get the right path? Isee that some html files within the WEB-INF folder have <%=psCtxPath%><%=psHome%>, will this work inside an HTML definition?<br />Thanks!Tihttps://www.blogger.com/profile/12289283041661295231noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-64529755326651230692015-10-01T04:05:38.713-07:002015-10-01T04:05:38.713-07:00If your html is on a different server or outside P...If your html is on a different server or outside PeopleSoft, then try the URL data type.Jim Marionhttps://www.blogger.com/profile/12995110203807924786noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-42363247549203075932015-10-01T04:05:29.652-07:002015-10-01T04:05:29.652-07:00If your html is on a different server or outside P...If your html is on a different server or outside PeopleSoft, then try the URL data type.Jim Marionhttps://www.blogger.com/profile/12995110203807924786noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-14221137872899376892015-09-30T21:21:16.128-07:002015-09-30T21:21:16.128-07:00Hi jim,
I had a question , i want to show some inf...Hi jim,<br />I had a question , i want to show some information from a web page to peoplesoft landing page. i created pagelet using html type but didn't get solution.please tell me proper way.Anonymoushttps://www.blogger.com/profile/03948277151644182342noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-77838539846573204802013-12-13T09:46:58.775-08:002013-12-13T09:46:58.775-08:00@Tom, for Authors, no. The alternative is to publi...@Tom, for Authors, no. The alternative is to publish the news item with a custom stylesheet in Pagelet Wizard.Jim Marionhttps://www.blogger.com/profile/12995110203807924786noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-10746968029675540332013-12-13T07:58:07.695-08:002013-12-13T07:58:07.695-08:00Hi Jim,
I had a question about the Content Manage...Hi Jim,<br /><br />I had a question about the Content Management pagelet in Interaction Hub, but I didn't know where to post it - so asking here.<br /><br />A user with the 'Author' privileges can see 'Edit Content' link in a CM pagelet. Is there a way to hide this link in the pagelet without customizing the code or the HTML object?<br /><br />Thanks,<br />TomTom Mannancheryhttps://www.blogger.com/profile/01484855422965986265noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-14592138348961762542012-10-19T07:51:13.928-07:002012-10-19T07:51:13.928-07:00@Mohit, a pagelet is just a CREF that exists in th...@Mohit, a pagelet is just a CREF that exists in the portal registry under the folder Portal Objects > Pagelets > [some category]. When creating the pagelet, set the usage type to homepage pagelet.<br /><br />You can create a pagelet from anything, including an existing component. To avoid the "content reference already exists" error, add a parameter to the parameters section of the CREF (not attributes, but additional query string parameters). I usually add something like one=1.Jim Marionhttps://www.blogger.com/profile/12995110203807924786noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-73117294219834051792012-10-18T23:26:30.082-07:002012-10-18T23:26:30.082-07:00Hi Jim,
I want to show worklist as homepage porta...Hi Jim,<br /><br />I want to show worklist as homepage portal. Please help me<br /><br />Thanks,<br />Mohit.Mohithttps://www.blogger.com/profile/11669673680231491280noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-46599616672853735862012-03-05T11:35:04.724-08:002012-03-05T11:35:04.724-08:00@Abhishek, I'm pretty sure that if you turn of...@Abhishek, I'm pretty sure that if you turn off homepage caching, it will work the way you want it to work. For 8.48 no-cache pagelet settings, you may want to file a bug to get the settings. I'm not familiar with pagelet caching in pre 8.50.Jim Marionhttps://www.blogger.com/profile/12995110203807924786noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-60939203990584960702012-03-05T11:02:18.098-08:002012-03-05T11:02:18.098-08:00Thanks Jim, unfortunately we are still in 8.48. Is...Thanks Jim, unfortunately we are still in 8.48. Is there any solution for 8.48.. Now I think web profile option is also not working but I am sure it was working...Abhishekhttps://www.blogger.com/profile/16032186931157563952noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-81556328417068543992012-03-05T10:54:32.211-08:002012-03-05T10:54:32.211-08:00@Abhishek, I know exactly what you are talking abo...@Abhishek, I know exactly what you are talking about because I find myself in the same situation. PeopleTools 8.52 has a checkbox for CREF's that allows you to specify that a pagelet should not be cached. Another option that avoids cache is to set the 8.51 attribute to PTPGLTDEFERLOAD. This attribute is described in the Red Paper <a href="https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=REFERENCE&id=1399586.1" rel="nofollow">Configuring a Contemporary User Experience</a>. If neither of these options satisfy your requirements, then I suggest you log a bug.Jim Marionhttps://www.blogger.com/profile/12995110203807924786noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-66777932084262131362012-03-05T09:54:53.172-08:002012-03-05T09:54:53.172-08:00Hi Jim,
Need some suggest on refreshing the home ...Hi Jim,<br /><br />Need some suggest on refreshing the home page.. We have a pagelet on home page with Iscript.. We are doing some validation and based on output of validation we are displaying modal page. basically we need display modal email colelction page when user logon if the email address is not there.. the page works fine but it deosnt update the pagelet.. So if the user has enteretd the email address he should not see th modal again but unless he logs out he see the modal becaise of cache.. I read there are couple of the deluvered fucntion which would refresh the TAb but where it to use those fucntions as the page would be laoded with cache data it wont execute the fucntion and also ther eis another option of unchecking Cache home page in web profile config.. <br />the second option works but it would increase the load on the serevr by tripping everytime...<br /><br />Would you please suggest how can we fix this cache issue.. We need to have the code executed evertiem the page laods..Abhishekhttps://www.blogger.com/profile/16032186931157563952noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-18675145055241257742011-07-12T11:44:52.467-07:002011-07-12T11:44:52.467-07:00Ok.. I found where they have defined the footer bu...Ok.. I found where they have defined the footer but I dont understand why the HTML is cutting from bottom. Can yu please suggest.Abhishekhttps://www.blogger.com/profile/16032186931157563952noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-8926885378352688842011-06-27T12:37:51.599-07:002011-06-27T12:37:51.599-07:00Thanks a lot JIM for you help in this.
I could m...Thanks a lot JIM for you help in this. <br /><br />I could make it work... This is what I did... I am not sure if this is the best way of doing it... <br /><br />1)Create one TAB<br />2) Create a pagelet which calls Iscript for Home page...<br />3) Created iscript for all other pages.. <br />Function IScript_YourBenefits<br /> <br /> GEX_Prepare_URL();<br /> &html = GetHTMLText(HTML.GEX_YOUR_BENEFITS, &Url_Your_Benefits, &Url_Health_Wellness, &Url_TM_CareFund, &Url_TM_Discount, &Url_Store_n_Brand, &Url_Diversity, &Url_Safety);<br /> %Response.WriteLine(&html);<br /> <br />End-Function;<br /><br />Function IScript_HeathnWellness<br /> <br /> GEX_Prepare_URL();<br /> &html = GetHTMLText(HTML.GEXHEALTHANDWELLNESS, &Url_Your_Benefits, &Url_Health_Wellness, &Url_TM_CareFund, &Url_TM_Discount, &Url_Store_n_Brand, &Url_Diversity, &Url_Safety);<br /> %Response.WriteLine(&html);<br /> <br />End-Function;<br /><br />Function IScript_TM_CareFund<br /> <br /> GEX_Prepare_URL();<br /> &html = GetHTMLText(HTML.GEX_TM_CAREFUND, &Url_Your_Benefits, &Url_Health_Wellness, &Url_TM_CareFund, &Url_TM_Discount, &Url_Store_n_Brand, &Url_Diversity, &Url_Safety);<br /> %Response.WriteLine(&html);<br /> <br />End-Function;<br /><br />/*Iscript Your Benefits - End*/<br /><br />Function IScript_TM_Dicount<br /> <br /> GEX_Prepare_URL();<br /> &html = GetHTMLText(HTML.GEX_TM_DISCOUNT, &Url_Your_Benefits, &Url_Health_Wellness, &Url_TM_CareFund, &Url_TM_Discount, &Url_Store_n_Brand, &Url_Diversity, &Url_Safety);<br /> %Response.WriteLine(&html);<br /> <br />End-Function;<br /><br />Function IScript_StoreNBrand<br /> <br /> GEX_Prepare_URL();<br /> &html = GetHTMLText(HTML.GEX_STORE_BRAND, &Url_Your_Benefits, &Url_Health_Wellness, &Url_TM_CareFund, &Url_TM_Discount, &Url_Store_n_Brand, &Url_Diversity, &Url_Safety);<br /> %Response.WriteLine(&html);<br /> <br />End-Function;<br /><br />Function GEX_Prepare_URL<br /> <br /> &Url_Your_Benefits = &GEX_URL_PSC | &GEX_Portal_Registry_Name | "/" | &GEX_URL_Node | "/" | "s" | "/" | "WEBLIB_NEW_HIRE.ISCRIPT1.FieldFormula.IScript_YourBenefits";<br /> &Url_Health_Wellness = &GEX_URL_PSC | &GEX_Portal_Registry_Name | "/" | &GEX_URL_Node | "/" | "s" | "/" | "WEBLIB_NEW_HIRE.ISCRIPT1.FieldFormula.IScript_HeathnWellness";<br /> &Url_TM_CareFund = &GEX_URL_PSC | &GEX_Portal_Registry_Name | "/" | &GEX_URL_Node | "/" | "s" | "/" | "WEBLIB_NEW_HIRE.ISCRIPT1.FieldFormula.IScript_TM_CareFund";<br /> &Url_TM_Discount = &GEX_URL_PSC | &GEX_Portal_Registry_Name | "/" | &GEX_URL_Node | "/" | "s" | "/" | "WEBLIB_NEW_HIRE.ISCRIPT1.FieldFormula.IScript_TM_Dicount";<br /> &Url_Store_n_Brand = &GEX_URL_PSC | &GEX_Portal_Registry_Name | "/" | &GEX_URL_Node | "/" | "s" | "/" | "WEBLIB_NEW_HIRE.ISCRIPT1.FieldFormula.IScript_StoreNBrand";<br /> &Url_Diversity = &GEX_URL_PSC | &GEX_Portal_Registry_Name | "/" | &GEX_URL_Node | "/" | "s" | "/" | "WEBLIB_NEW_HIRE.ISCRIPT1.FieldFormula.IScript_Diversity";<br /> &Url_Safety = &GEX_URL_PSC | &GEX_Portal_Registry_Name | "/" | &GEX_URL_Node | "/" | "s" | "/" | "WEBLIB_NEW_HIRE.ISCRIPT1.FieldFormula.IScript_Safety";<br /> &Url_HomePage = &GEX_URL_PSC | &GEX_Portal_Registry_Name | "/" | &GEX_URL_Node | "/" | "s" | "/" | "WEBLIB_NEW_HIRE.ISCRIPT1.FieldFormula.IScript_HomePage";<br /> <br />End-Function;Abhishekhttps://www.blogger.com/profile/09137538400376812466noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-12010254218270751042011-06-23T12:11:28.155-07:002011-06-23T12:11:28.155-07:00@Abhishek, start at the bottom of this list of pos...@Abhishek, start at the bottom of this list of posts and read to the top: <a href="http://jjmpsj.blogspot.com/search/label/IScripts" rel="nofollow">IScript Posts</a>.<br /><br />Your PeopleCode will have your calls to GenerateScriptContentURL and then a call to GetHTMLText, and finally, %Response.Write to write the contents to the client. GetHTMLText will take the URL's as parameters and return the resultant HTML that you want to send to the client.<br /><br />I think you said you would make the iScript a tab CREF? No, it doesn't work that way. What you would do is create a tab CREF and add the iscript pagelet as required fixed. If you only want one pagelet, and not the 2 column/3 column layout then create your own template, set the layout to be 2 or 3 column, and then add a CREF attribute named PORTAL_HP_2COL_LAYOUT (or PORTAL_HP_3COL_LAYOUT) and set the value of the attribute to be your new HTML layout (usually a modified clone of PORTAL_HP_2COL_LAYOUT or PORTAL_HP_3COL_LAYOUT)Jim Marionhttps://www.blogger.com/profile/12995110203807924786noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-13010415425678762092011-06-23T11:37:59.635-07:002011-06-23T11:37:59.635-07:00Yes.. You got the requireent however I am confused...Yes.. You got the requireent however I am confused with tha what I need to do... I pasted the HTMl into HTML Object... and What would I write in the Iscript and how will I call the Iscript, If I make the content refference as Home Page TAB .. IT will be a tab but no data right?<br /><br />Please suggest.Abhishekhttps://www.blogger.com/profile/09137538400376812466noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-34873764719048520572011-06-22T12:34:40.525-07:002011-06-22T12:34:40.525-07:00@Abhishek, OK. So, it sounds like you are using an...@Abhishek, OK. So, it sounds like you are using an HTML based pagelet from pagelet wizard, and you don't want to hard code the URL for all the other pagelets within the one HTML pagelet. What I suggest instead is that you move your HTML into an HTML definition in app designer, replace the URL's with %Bind(:n) (where n represents the bind number), and then create an iScript to generate all the URL's. You would then register the iScript as a pagelet by going to PeopleTools > Portal > Structure and content, and then to Portal Objects > Pagelets > [folder where you want pagelet] and creating a new CREF with usage type set to Homepage Pagelet.<br /><br />Perhaps this is where you already were in your steps and is why you were creating a URL to an iScript from an iScript. That would make sense... although you wouldn't be doing a redirect if that was the case.<br /><br />Now, about the /h/ instead of /s/. As you probably know /h/ is for homepage URL's. It sounds like the GenerateScriptContentURL function isn't generating a fully qualified URL, like it is missing the server, site, portal, and node portions. Did you check your local portal node definition's portal setting? Not your default local node, but the local portal node. It would be something like HRMS, EMPL, ERP, CRM, ELM, EPM, etc, depending on the application.Jim Marionhttps://www.blogger.com/profile/12995110203807924786noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-50731231530343670082011-06-22T12:08:09.888-07:002011-06-22T12:08:09.888-07:00Ok let me explain the requirement
In our requirem...Ok let me explain the requirement<br /><br />In our requirement.. We have a home page and with links at the top which will call other pages... Now the home page is all HTML and for that we have created pagelet using data source as HTML.... <br /><br />This new pagelet is assigned to a TAB and it shows the page properly... Now we need to work on other pages which will be displayed when the user click on the link on the HOME page.. we created pagelet for other pages also( This pages will be displayed when user click on the link of HOME page) <br /><br />Now the issue is how do we call this different pagelets when user click on it??? We dont know how to call pagelet from HTML.... if we hardcode the link(Pagelet link) in the HTLM as "Href" it works but we dont want to hardcode as the sever may change and it not good.. <br /><br />We created Iscript which will generate the link to different pagelets... but we dont know how to call Iscript from HTML(used in the pagelet of HOME page)..... This is kind of critical and I never worked on scripting before so I dont even know if what I am doing is right..<br /><br />Please suggest.Abhishekhttps://www.blogger.com/profile/16032186931157563952noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-16172844334219147922011-06-22T11:28:45.553-07:002011-06-22T11:28:45.553-07:00@Abhishek, GenerateScriptContentURL is the functio...@Abhishek, GenerateScriptContentURL is the function to use. It should generate a /s/ URL, not a /h/ URL. I suggest you install <a href="http://www.fiddler2.com/fiddler2/" rel="nofollow">Fiddler</a> to see the redirects, etc, and see if you see something else going on.<br /><br />I am curious, though, why are you using an iscript to generate a URL to an iscript? Is this iscript just for testing purposes?Jim Marionhttps://www.blogger.com/profile/12995110203807924786noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-57157070142631561332011-06-22T09:17:51.177-07:002011-06-22T09:17:51.177-07:00I have created this Iscript..
Function IScript_G...I have created this Iscript.. <br /><br />Function IScript_GeneratePageletURl<br /> <br /> &uRL = GenerateScriptContentURL(%Portal, %Node, Record.WEBLIB_PTPPB, Field.ISCRIPT1, "FieldFormula", "IScript_PageletBuilder");<br /> &uRL = &uRL | "?PTPPB_PAGELET_ID=GEX_NEW_HIRE";<br /> %Response.RedirectURL(&uRL);<br /> <br />End-Function;<br /><br />when I give call this iscript on the URL it works fine... I see the pagelet... The problem is I am not able to call this from HTML<br /><br />His my HTML.. In the below HTML I need to call this Iscript when user clicks on Your benefit... With the current HTML its appending the Iscript path to the URL but its coming as /EMPLOYEE/EMPL/h/WEBLIB_PTPPB.ISCRIPT1.FieldFormula.IScript_GeneratePageletURl but when I change the "h" to "s" in the URL it shows the pagelet... <br /><br /><br /><br />I was also trying to use "script" but not sure its not working ... I am not sure how to change the h to s and if its the way of doing it... can you please suggest.Abhishekhttps://www.blogger.com/profile/16032186931157563952noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-33789681654652813922011-06-21T11:30:41.522-07:002011-06-21T11:30:41.522-07:00Sorry.. My question was not clear. What we need is...Sorry.. My question was not clear. What we need is.. a TAB on portal and that tabl will have a HTML page and the HTML page will have different link.. for example when we open a webpage we see file edit view favorites tools help.. The same way our HTML page will have at the top.. so when user click on the different link it will open a new HTML page.. To achive this we are planning to have a TAB and HTML pagelet with No Boders so that it will look like a Page.. and for every link we are planning to create HTML pagelet (HTML will be provied by other team) <br /><br />But we are not sure how we open a pagelet when the user clicks on the link at the top. We are not assiging the pagelt to any of the TAB so that it will not be visible. What I tried is in the HTML I hardcoded the URL with the other pagelet(gave the href) its pulling the pagelet but its opening header under header and its a hardcoding which we dont want.. Can you please suggest how can we achive this.. <br /><br />I am new to Portal and scripting....Abhishekhttps://www.blogger.com/profile/16032186931157563952noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-15012512020403720942011-06-21T10:24:51.200-07:002011-06-21T10:24:51.200-07:00@Abhishek, When you say, call another pagelet, are...@Abhishek, When you say, call another pagelet, are you referring to inter-portlet communication? PeopleSoft does not deliver anything like that. If you use JavaScript and HTML based pagelets, you could certainly build it into your pagelets.<br /><br />Your second request... are you trying to create a tabbed pagelet? I think the easiest way is to use the jQuery UI tabs and, for each tab, use the Pagelet Wizard iScript URL for each tab's content. You can get the URL for each pagelet by viewing the source of a homepage.Jim Marionhttps://www.blogger.com/profile/12995110203807924786noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-9986867772042791872011-06-21T07:50:12.067-07:002011-06-21T07:50:12.067-07:00Hi Jim,
I have a question regarding call pagelet ...Hi Jim,<br /><br />I have a question regarding call pagelet from another pagelet.<br /><br />We have a require where we got a HTLM from a source, using that we created a pagelet and showing in a seperate TAB, but the HTML has link at the top like different pages.. when you click on the link it should open a different HTML page.. the page is all read only means only TEXT and pics.. How can we achive this in Poeplesoft Portal... Its like webpage, where you open a web page and then click on different link to navigate to differnt pages. <br /><br />Please suggest.<br /><br />Thanks<br />!Abhishekhttps://www.blogger.com/profile/09137538400376812466noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-13985606576377878972011-06-21T07:45:23.153-07:002011-06-21T07:45:23.153-07:00Hi Jim,
I need some help on Peoplesoft portal.. W...Hi Jim,<br /><br />I need some help on Peoplesoft portal.. Wanted to know if its possible to call one pagelet from another.. <br /><br />We have a requirement... We need to build pagelet for New hire in our copany, The HTLM in the pagelet has links at the top, on click of the links it open a different HTLM page.. Like we see in soem of the websites.. <br /><br />I developed a paglet using that HTML but we dont know how to show the other pagelets when the Team Member clicks on other links at the top. <br /><br />Can you please suggest if its doable and how.. <br /><br />Thanks!Abhishekhttps://www.blogger.com/profile/16032186931157563952noreply@blogger.com