tag:blogger.com,1999:blog-34020393.post9083481778216366077..comments2024-03-27T10:59:38.307-07:00Comments on Jim's PeopleSoft Journal: What is a WEBLIB?Jim Marionhttp://www.blogger.com/profile/12995110203807924786noreply@blogger.comBlogger19125tag:blogger.com,1999:blog-34020393.post-62805062662922571172022-05-04T09:38:23.371-07:002022-05-04T09:38:23.371-07:00is your weblib code calling a message? if so, chec...is your weblib code calling a message? if so, check the service operation security.Junk Yardhttps://www.blogger.com/profile/16324834484765602457noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-87677381834605618852021-11-29T20:19:55.977-08:002021-11-29T20:19:55.977-08:00Normally that is all that is required. I assume yo...Normally that is all that is required. I assume you can access the iScript just fine without the Navigation Collection? I suggest comparing the iframe URL when embedded in the navigation collection to the URL you would manually type or from the content reference test.Jim Marionhttps://www.blogger.com/profile/12995110203807924786noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-35346034270267605612021-11-29T08:41:07.644-08:002021-11-29T08:41:07.644-08:00Hi Jim.
We created a custom "WEBLIB_CX_CHKT&...Hi Jim.<br /><br />We created a custom "WEBLIB_CX_CHKT" and it works fine with the PeopleSoft Administrator (role) security. But when we remove the PeopleSoft Administrator role from the end users ("Applicants"), the process fails and gives an error message: "Authorization Error -- Contact your Security Administrator".<br /><br />The Applicant user does have the necessary Role / Permission List that grants them Full access to the new custom "WEBLIB_.<br /><br />What specific access does this Person (or the role / Permission List this person has) need for accessing the custom WEBLIB_.<br /><br />We tried giving a bunch of other access to several other WEBLIBs as we saw a lot of talk on issues with accessing WEBLIB, but with no luck. Couldn't find a good documented what exactly is needed to access the WEBLIBs.<br /><br />The IScript / WEBLIB is called from a Content Reference on a Navigation Collection. There isn't a Component / Page or field change event involved calling the IScript.<br /><br />Appreciate your suggestions.<br /><br />Vinod.Anonymoushttps://www.blogger.com/profile/11416932036211030162noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-79911983960844267272013-04-01T12:03:40.341-07:002013-04-01T12:03:40.341-07:00@Shawn, the way it works on my system is that I hi...@Shawn, the way it works on my system is that I hit the iScript URL and the system returns a login page for that same URL. When I submit my credentials, the login form's action appends the ?cmd=login&languageCd=ENG to the form post. PeopleSoft processes this form post, and then just returns the iScript contents itself without the ?cmd=login... it sounds like you are seeing different behavior. If that is the case, then I have two recommendations for further assistance:<br /><br />1. Log a case with support<br />2. Submit a question to the <a href="https://forums.oracle.com/forums/forum.jspa?forumID=432" rel="nofollow">PeopleSoft General OTN forum</a>Jim Marionhttps://www.blogger.com/profile/12995110203807924786noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-84056430973707865932013-04-01T11:53:23.218-07:002013-04-01T11:53:23.218-07:00Hi Jim and thanks for the response,
We are on PT ...Hi Jim and thanks for the response,<br /><br />We are on PT 8.50 and it is in the script on the signin.html page, i believe this is delivered code.<br /><br />Thanks,<br />ShawnAnonymoushttps://www.blogger.com/profile/04411216338252514051noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-73069944051882371092013-04-01T10:48:12.179-07:002013-04-01T10:48:12.179-07:00@Shawn, I am very glad you enjoyed the session at ...@Shawn, I am very glad you enjoyed the session at Alliance this year. It is one of my favorite conferences each year.<br /><br />I wanted to test out what you stated in your question. When I navigate to a URL that looks like this: http://my.peoplesoft.server/psc/portal/EMPLOYEE/EMPL/s/WEBLIB_THE_ISCRIPT.ISCRIPT1.FieldFormula.IScript_MyFunction and I have not logged in, then I do see a login page, which is what we would all expect. After logging in, it takes me directly to the iScript. It did not add ?cmd=login. I have seen various tools releases treat this differently, so that could be the problem. The other thing I suggest you review is the signon.html template in your sites psftdocs directory in the WEB-INF folder of the web server. Perhaps it has the signon target hard coded?Jim Marionhttps://www.blogger.com/profile/12995110203807924786noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-74816043455159512062013-04-01T08:52:36.252-07:002013-04-01T08:52:36.252-07:00Hi Jim,
enjoyed your sessions at Alliance this ye...Hi Jim,<br /><br />enjoyed your sessions at Alliance this year.<br /><br />I want to supply user with link to WEBLIB_ IScript_ method as and external link for say a mobile page.<br /><br />after they log in the url has a ?&cmd=login&languageCd=ENG appended. Which doesn't execute the iscript...? just gives me a blank page. do you know a work around this?<br /><br />ThanksAnonymoushttps://www.blogger.com/profile/04411216338252514051noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-43742284260774935542009-04-28T09:35:00.000-07:002009-04-28T09:35:00.000-07:00@Satyen, strCurrUrl is a client side variable. On ...@Satyen, strCurrUrl is a client side variable. On the server side, if the URL is a component URL, then you should get the same values from the %Request variable's properties. The PeopleBooks documentation for <A HREF="http://download.oracle.com/docs/cd/E13292_01/pt849pbr0/eng/psbooks/tpcr/htm/tpcr19.htm#d0e50366" REL="nofollow">RequestURI</A> shows how to reconstruct a URL (server, path, query string, etc).<br /><br />If the delivered method doesn't satisfy your needs, then I would add an HTML Area to the page with JavaScript and HTML to copy strCurrUrl to a custom input type="hidden" form field. When the form is posted to the component processor, the value of the form field will be available to the <A HREF="http://download.oracle.com/docs/cd/E13292_01/pt849pbr0/eng/psbooks/tpcr/htm/tpcr19.htm#d0e49788" REL="nofollow">%Request.GetParameter()</A> method. Just make sure you name your hidden input field with a cryptic name that is not likely to match an existing field name.Jim Marionhttps://www.blogger.com/profile/12995110203807924786noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-75181789110293132932009-04-28T05:43:00.000-07:002009-04-28T05:43:00.000-07:00Jim,
Great blog and very informative.
I am looking...Jim,<br />Great blog and very informative.<br />I am looking to access the strCurrUrl js variable in PeopleCode, into a PC variable. Or is there a Peoplecode Global Valiable that has this value? I tried using AbsolutecontentURL property. I was unable to use it because I could not capture the cref using the GetCrefXXX functions dynamically. <br />Can you share a code snippet to get the URL in strCurrUrl or the absolute content url into a PeopleCode Variable?<br />Thanks<br />BoseSatyenhttps://www.blogger.com/profile/16851679391025087045noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-38918300287872610602009-03-20T00:42:00.000-07:002009-03-20T00:42:00.000-07:00Thanks a lot for the posting Jim, I have started r...Thanks a lot for the posting Jim, I have started reading it.. will let you know as of how it works for me :-)<BR/><BR/>ThanksPon Arun Kumarhttps://www.blogger.com/profile/01795072666364055094noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-11163548046859922452009-03-19T13:22:00.000-07:002009-03-19T13:22:00.000-07:00@Pon Arun Kumar, I added a JSON example post: Serv...@Pon Arun Kumar, I added a JSON example post: <A HREF="http://jjmpsj.blogspot.com/2009/03/serve-json-from-peoplesoft.html" REL="nofollow">Serve JSON from PeopleSoft</A>.Jim Marionhttps://www.blogger.com/profile/12995110203807924786noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-58143232637068949752009-02-16T11:47:00.000-08:002009-02-16T11:47:00.000-08:00@Pon Arun Kumar, PeopleBooks does not have example...@Pon Arun Kumar, PeopleBooks does not have examples of IScripts returning JSON. Since JSON is just text, you can use %Response.Write to write your JSON text just like you would write HTML. I will work on an example to post as a new blog entry. Thank you for the excellent suggestion!Jim Marionhttps://www.blogger.com/profile/12995110203807924786noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-27398614654991626042009-02-10T04:51:00.000-08:002009-02-10T04:51:00.000-08:00Hi Jim, I tried browsing the peoplebooks for sampl...Hi Jim, I tried browsing the peoplebooks for sample iScripts returning JSON.. Could you please post a sample? It would be of great help.<BR/>Thanks,Pon Arun Kumarhttps://www.blogger.com/profile/01795072666364055094noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-24079438686355026232008-07-18T14:07:00.000-07:002008-07-18T14:07:00.000-07:00@Pon Arun Kumar, yes, you can export the contents ...@Pon Arun Kumar, yes, you can export the contents to a flat file. Use the GetFile function with a File object to write the AbsolutePortalURL and label to a flat file. If you want to do this as a batch process, then I suggest an AppEngine scheduled to run daily. Using a File object, you can create the entire HTML index.<BR/><BR/>Here is another idea... Are you displaying a list of links on another site? Then try this, create an IScript that returns JSON in the format [{url: "http://...", label: "The link title"}, ...]. Give guest access to the IScript. On your other site, use Ajax to read the JSON and display the list.<BR/><BR/>If you prefer something a little more static, then, yes, go with the File object.Jim Marionhttps://www.blogger.com/profile/12995110203807924786noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-85042569620492633322008-07-18T13:16:00.000-07:002008-07-18T13:16:00.000-07:00By exporting the result of the "Test Content Refer...By exporting the result of the "Test Content Reference" into a flat file ?<BR/><BR/>we are able to retrieve the complete URL right? All I am trying to do is to capture this information (complete URL) into a flat file.Pon Arun Kumarhttps://www.blogger.com/profile/01795072666364055094noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-39487158422325843462008-07-18T13:13:00.000-07:002008-07-18T13:13:00.000-07:00Great!I was looking out for "AbsolutePortalURL". I...Great!<BR/><BR/>I was looking out for "AbsolutePortalURL". I quickly ran through the peoplecode API reference peoplebook and got an idea.<BR/>In the meantime,.. <BR/>Say for example, I have the portal object Name "XXXXXXXX_GBL", component details , etc from the PORTAL_CREF_ADM page, Is there any way in which i could export the result of the "Test Content Reference" into a flat file ?<BR/><BR/>So that I am reading from the flatfile and displaying it on a popup or any other window outside peoplesoft environment ? The whole idea is to provide a non-peoplesoft user to get into the exact place within peoplesoft. so that the complexities of navigation is avoided.Pon Arun Kumarhttps://www.blogger.com/profile/01795072666364055094noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-13316553873415612032008-07-18T12:32:00.000-07:002008-07-18T12:32:00.000-07:00@Pon Arun Kumar, Are you trying to get the URL for...@Pon Arun Kumar, Are you trying to get the URL for a component? If so, try GenerateComponentXXXURL. If you want the full URL for a particular page, then look at the JavaScript variable strCurrUrl. If you have Firefox with Firebug, if you are in a PeopleSoft component, and if your URL has psp in it, go to the Firebug console and type<BR/><BR/>frames['TargetContent'].strCurrUrl<BR/><BR/>This will display the URL for the current component.<BR/><BR/>If you want to get the CREF name for a URL, then submit that URL to an IScript/WEBLIB and use the PortalRegistry.FindCRefForURL method to get a reference to the CREF.<BR/><BR/>Somehow, I don't think I've answered your question. Yes, you can do what you are trying to do from a WEBLIB/IScript. Reading your question again... Let me rephrase with an example:<BR/><BR/>Let's say that a user has access to the PeopleTools > Security > Permissions & Roles folder. Let's also say you want to generate a page with links to the items in that folder (for display in an Ajax popup, etc). Can you enumerate the URL's for the items in that folder? Yes. First you need a reference to the folder you want to enumerate. Look up <I>FindFolderByName</I> in the PeopleCode API Reference PeopleBook for an example. If you don't know the CREF name for folder, you can "walk" the hierarchy starting from the PortalRegistry.RootFolder property. Once you have a reference to the folder, you can enumerate the CREF's by accessing the folder's ContentRefs collection. Each of the CREF's in the ContentRefs collection has multiple URL properties, like AbsolutePortalURL, etc.Jim Marionhttps://www.blogger.com/profile/12995110203807924786noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-16094596525798383242008-07-18T11:30:00.000-07:002008-07-18T11:30:00.000-07:00Hi Jim,Hope you are doing great !I am a frequent v...Hi Jim,<BR/><BR/>Hope you are doing great !<BR/><BR/>I am a frequent visitor for your blog for almost more than a year now,.. and this is the first time I am scrapping you.<BR/><BR/>My question:<BR/><BR/>I am looking for exporting the content reference - URL of a particular page from within peoplesoft or if feasible a group of url's of the pages under a folder in peoplesoft. Is this feasible by using WEBLIB_CREF ? <BR/><BR/>Any thoughts on this regard would be higly appreciated.Pon Arun Kumarhttps://www.blogger.com/profile/01795072666364055094noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-485649580376042662008-07-18T11:28:00.000-07:002008-07-18T11:28:00.000-07:00This comment has been removed by the author.Pon Arun Kumarhttps://www.blogger.com/profile/01795072666364055094noreply@blogger.com