tag:blogger.com,1999:blog-34020393.post2276816386752716450..comments2024-03-27T10:59:38.307-07:00Comments on Jim's PeopleSoft Journal: Serve those JavaScript Libraries Quickly... and SafelyJim Marionhttp://www.blogger.com/profile/12995110203807924786noreply@blogger.comBlogger30125tag:blogger.com,1999:blog-34020393.post-52415401209446008992018-08-01T01:24:04.440-07:002018-08-01T01:24:04.440-07:00Hi Jim,
Please we have issues displaying pop-ups....Hi Jim,<br /><br />Please we have issues displaying pop-ups. <br />All privously configured pop-ups are now displayed as a full screen message. We have processed with a load cache but the problem <br />still appear. <br />We have even tried with a simple example on a test page : We have configured a button whith the following code : <br />MessageBox(1, "", 17830, 3797, "Message Not Found"); <br />When clicking on the button, the pop-up doesn't appear<br />can you PLZ support usAdminhttps://www.blogger.com/profile/05024652605326925350noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-40307846375007412772016-09-01T04:39:04.645-07:002016-09-01T04:39:04.645-07:00Thanks Jim. I'm doing a reCaptha integration w...Thanks Jim. I'm doing a reCaptha integration with my PeopleSoft page. I create a Iscript function similar to yours that has below script in Message catalog. <br /><br />script src="https://www.google.com/recaptcha/api.js"<br /><br />I need to load this iscript when user enters that page, so that library gets loaded. I tried multiple ways but it is not loading. Can you please advise? <br /><br />Thanks, ShantanuShantanu Kumarhttps://www.blogger.com/profile/04952550085605349997noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-55019848377940740012012-11-13T10:28:36.446-08:002012-11-13T10:28:36.446-08:00thank you very much Jim. My inclination in regard...thank you very much Jim. My inclination in regard this issue was that the 8.52 deprecation posting, as it related to the behavior we we're seeing, was a red herring. I have been able to get to the external site by changing a peoplecode command. <br /><br />While we are able get to external site, and are returned from external site back to PS without issue; however, the behavior remains unpredictable in IE. In Firefox, Google Chrome, and Safari, we encountered no issues with the functionality of this page.<br /><br />Thus, I think the behavior we've seen is more attributable to IE8 issues versus HTML Area functionality being deprecated. Thank you for confirming my suspicions.Pinky&theBrainhttps://www.blogger.com/profile/14133863429847640031noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-81491580203224606992012-11-13T09:33:22.118-08:002012-11-13T09:33:22.118-08:00@Pinky, that quote applies specifically to HTML CR...@Pinky, that quote applies specifically to HTML CREF Templates stored as CREF's in the Portal Registry. CREF templates are in Portal Objects > Templates. Instead of HTML stored in the portal registry, PT 8.52 requires you to use iScript based CREF templates. This is for related content, workcenters, etc.Jim Marionhttps://www.blogger.com/profile/12995110203807924786noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-62516600987270578652012-11-13T09:28:51.257-08:002012-11-13T09:28:51.257-08:00Per a communication back in April of 2011, the fol...Per a communication back in April of 2011, the following was posted by Oracle<br /><br />"we no longer support HTML based templates for use with Peopletools generated pages. HTML can be used with static pages in 8.50 & 8.51, but customers will be required to move to new templates completely in 8.52"<br /><br />Does this verbiage relate to HTML areas? Would the deprecation of the templates prevent html area from routing user to external page outside of PS. What does the above mean and what does it apply to??<br />Pinky&theBrainhttps://www.blogger.com/profile/14133863429847640031noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-25834008025206979732012-11-08T12:36:59.800-08:002012-11-08T12:36:59.800-08:00@D, @Pinky, I have not seen this behavior. I think...@D, @Pinky, I have not seen this behavior. I think PeopleSoft generated HTML is run through HTMLTidy before it is sent to the browser. Ensure that your script element's HTML is correct. Between the begin and end tag, place a comment or a non breaking space so that the tag is not empty. Also make sure you properly quote attributes.<br /><br />HTML Areas are standard, delivered functionality, so open a case with MyOracle Support if you are not able to identify the issue.<br /><br />@Pinky, are you seeing your scripts moved to the head as well? Since you mentioned deprecated HTML objects, I'm wondering if you are using JavaScript injection through PT_COPYURL or something. In 8.52 there was an effort to consolidate common HTML definitions. The point was to improve performance.Jim Marionhttps://www.blogger.com/profile/12995110203807924786noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-16171962760047254022012-11-08T12:28:58.344-08:002012-11-08T12:28:58.344-08:00I am having a similar issue, where we are using an...I am having a similar issue, where we are using an html area to call an external page (redirect user to page outside of ps). We recently upgraded to 8.52 and this functionality is no longer working. We suspect it is due to html objects being deprecated in 8.52. would greatly appreciate any direction on what we need to change to get page workingPinky&theBrainhttps://www.blogger.com/profile/14133863429847640031noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-48185001340667193782012-06-26T10:15:46.937-07:002012-06-26T10:15:46.937-07:00Jim, I got this technique from Chapter 6 of your b...Jim, I got this technique from Chapter 6 of your book and have been using it with much success. After our upgrade to peopletools 8.52 it no longer works. Seems that any script tag in a HTML Area is move to the page header. The "src=" of the script tag is not moved. So, you end up with an url between two script tags. Have you seen this behavior? I am trying to work on new solution.Dhttps://www.blogger.com/profile/08305373701011175037noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-72771684733064660482011-03-03T09:52:53.832-08:002011-03-03T09:52:53.832-08:00@Stanny, chapters 6, 7, and 8 build very heavily o...@Stanny, chapters 6, 7, and 8 build very heavily on each other. Each one rewrites significant portions of the shared code. You might use fiddler or firebug to see if there is a JavaScript library iScript that isn't downloading (either because it doesn't exist or because of a permission issue).<br /><br />For each chapter, the working code for that chapter is in the source code available from <a href="http://www.mhprofessional.com/downloads/products/0071664939/0071664939_code.zip" rel="nofollow">McGraw Hill</a>Jim Marionhttps://www.blogger.com/profile/12995110203807924786noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-62973895294946616002011-03-03T07:25:27.269-08:002011-03-03T07:25:27.269-08:00Hi Jim,
Thanks for your reponse. I just purchased...Hi Jim,<br /><br />Thanks for your reponse. I just purchased your book to understand how I can use Ajax to get the reponse from my iScript. I started reading chp 6 and 7 and I am on pg250 of chp 7 where I copied the bootstrap code at the end of the PT_COPYURL html defn. But I am getting this error "'null' is null or not an object." error line number points to buffer[0] = "/psc/" statement. I just wanted to know if this chp7 is defendent on others chapters.<br /><br />Could you please me with the error.<br /><br />Thanks,<br />StannyUnknownhttps://www.blogger.com/profile/07711364300217907835noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-11542891742711233682011-02-23T20:09:00.518-08:002011-02-23T20:09:00.518-08:00@Stanny, From SQL Object to JavaScript... At this ...@Stanny, From SQL Object to JavaScript... At this time, there is no "good" way to convert the output of SQL into a JSON object. Basically, what you do is string together the results as a JSON string, and return that as the result from your iScript. When you string together your JSON, make sure you encode unsafe characters. Take a look at my post <a href="http://jjmpsj.blogspot.com/2010/04/json-encoding-in-peoplecode.html" rel="nofollow">JSON Encoding in PeopleCode</a> for more information.Jim Marionhttps://www.blogger.com/profile/12995110203807924786noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-90937372000451541852011-02-23T12:18:46.978-08:002011-02-23T12:18:46.978-08:00Hi Jim,
Thanks for your reponse. I was able to do...Hi Jim,<br /><br />Thanks for your reponse. I was able to download the json_parse.js. Could you please give me an example of how to use this json_parse.js to pass the output of SQL object from an iScript to Javascript variable.<br /><br />Thanks,<br />StannyUnknownhttps://www.blogger.com/profile/07711364300217907835noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-34626499793090596832011-02-22T19:44:07.809-08:002011-02-22T19:44:07.809-08:00@Anand, I really hope you find the book useful. Th...@Anand, I really hope you find the book useful. Thank you for the compliments.<br /><br />I am very familiar with that error. I have only seen it under two conditions:<br /><br />1. Permission list/security. Make sure you select the Full Access drop-down item instead of the No Access one for you function.<br /><br />2. The URL is incorrect. By incorrect, I mean the function is spelled wrong, the field or record are spelled wrong, or you used the wrong case, upper when it should be lower, etc.<br /><br />You mentioned that you already set the permissions correctly, so the next place to look is your URL.Jim Marionhttps://www.blogger.com/profile/12995110203807924786noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-33872292328207962512011-02-22T18:17:33.564-08:002011-02-22T18:17:33.564-08:00Thanks Jim for the reply. I get the same error eve...Thanks Jim for the reply. I get the same error even though I added the web libraries to the permission list. BTW, I bought your book and I feel it is incredible.Its a great book.Unknownhttps://www.blogger.com/profile/13122292489628878989noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-70223843120683970852011-02-22T16:45:46.121-08:002011-02-22T16:45:46.121-08:00@Anand, make sure you add the iScript/WEBLIB to a ...@Anand, make sure you add the iScript/WEBLIB to a permission list and that your user has access to that permission list.Jim Marionhttps://www.blogger.com/profile/12995110203807924786noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-71753476383289890582011-02-22T14:04:51.313-08:002011-02-22T14:04:51.313-08:00Hello Jim,
I'm using jquery through an iscrip...Hello Jim,<br /><br />I'm using jquery through an iscript to build some custom UI. But, when I load the page I get error "permission denied - http://xxx.com/psc/dev/EMPLOYEE/HRMS/s/WEBLIB_NAVNEWS.ISCRIPT1.FieldFormula.IScript_JQuery" in internet explorer.<br /><br />Do you have any idea why I'm facing this error?Unknownhttps://www.blogger.com/profile/13122292489628878989noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-91995663240639633772009-08-17T09:54:07.000-07:002009-08-17T09:54:07.000-07:00@mymithraa, I'm not sure if there is a deliver...@mymithraa, I'm not sure if there is a delivered method, but you could use FieldChange PeopleCode to find similar matches. If similarities are found, then you could use one of the modal PeopleCode functions to show a list of matches and ask the user to pick one.<br /><br />The type ahead prompts demonstrated for PeopleTools 8.50 is probably your best bet. To get this feature, I suggest you upgrade to PeopleTools 8.50 when it is available.Jim Marionhttps://www.blogger.com/profile/12995110203807924786noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-59478886521231617552009-08-12T09:35:51.231-07:002009-08-12T09:35:51.231-07:00Jim,
In my current project, client is looking for ...Jim,<br />In my current project, client is looking for Live search in vendor search page. While they are adding new vendor they want the live search to be enabled inorder to avoid duplication. For eg: they have created a vendor with name 'Jim-peoplesoft'. Currently they are able to create vendor name 'JimPeoplesoft' which is a duplication. inorder to avoid this they are looking for livesearch. is there anyother way we can achieve override this issue..<br /><br />Thanks,mymithraahttps://www.blogger.com/profile/01626105447509584050noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-14698865269984811242009-08-12T08:56:33.750-07:002009-08-12T08:56:33.750-07:00@Giridhar, I think you are on the right track. Loo...@Giridhar, I think you are on the right track. Looking at your file location and the HTML/JavaScript source, I think I see the problem. The directory ...\webserv\PSTESTEDU\applications\peoplesoft\PORTAL is considered "/". Since you put the file in the TESTEDU\script, the path is actually /TESTEDU/script/ajaxtest.html.<br /><br />Depending on your web server and the web server's deployment mode, you may have to restart your web server after adding a file to the web server's file system.Jim Marionhttps://www.blogger.com/profile/12995110203807924786noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-14081399482543613962009-08-12T08:33:33.145-07:002009-08-12T08:33:33.145-07:00Jim,
I am Novice user to Ajax-Peoplesoft.I am try...Jim,<br /><br />I am Novice user to Ajax-Peoplesoft.I am trying my first test script to integrate ajax with PS.<br /><br />I tried the below script mentioned by you in one of the blog:<br /><br />script type="text/javascript" language="javascript"<br /><br />$(document).ready(function(){<br /><br /> $("#ajaxcontent").load("/ajaxtest.html", null, function() {<br /><br /> $("#ajaxcontent").fadeIn("fast");<br /><br /> });<br /><br />});<br /><br />script<br /><br /> <br /><br />div id="ajaxcontent" style="display: none;"<br /><br />!-- comment to keep PS from removing this empty div --<br /><br />/div<br /><br /> <br /><br />I am not able to see the output.. i have placed the ajaxtest.html in <br /><br />webserver path <..\webserv\PSTESTEDU\applications\peoplesoft\PORTAL\TESTEDU\script><br /><br />is this the correct place??...<br /><br /> Also where i have to place my jquery library file. <br /><br />Please advicemymithraahttps://www.blogger.com/profile/01626105447509584050noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-25275720822474022982009-05-29T15:45:47.479-07:002009-05-29T15:45:47.479-07:00@Stanny,
You need to use Ajax for this. I recomme...@Stanny,<br /><br />You need to use Ajax for this. I recommend using jQuery for your Ajax library. Using jQuery, you won't create a link to a new page, rather, you will use Ajax to send a transparent request and then get the response as a variable. For your data transfer format, I recommend JSON and the json.org JavaScript JSON parser. You can have jQuery eval the server's response, but I prefer the safety of a JSON parser.Jim Marionhttps://www.blogger.com/profile/12995110203807924786noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-30630187953259693832009-05-28T13:27:46.451-07:002009-05-28T13:27:46.451-07:00Hi Jim,
I need some help with IScript/Javascript....Hi Jim,<br /><br />I need some help with IScript/Javascript. I have a IScript function that executes a query against a SQL object and stores the return data in a local variable. Below it the iScript Function<br />Function ISCRIPT_XYZQRY();<br /> <br /> Local SQL &SQLGetIDXURL;<br /> Local string &URLIDX, &TEXTName;<br /> <br /> &SQLGetIDXURL = GetSQL(SQL.XYZ_IDXURLQRY);<br /> While &SQLGetIDXURL.Fetch(&TEXTName)<br /> &URLIDX = "" | &URLIDX | """,""" | &TEXTName | "";<br /> End-While;<br /> %Response.WriteLine(%Request.GetParameter(&URLIDX));<br /> &SQLGetIDXURL.Close();<br /> <br />End-Function;<br /><br />On my page I have a HTML Area that opens this iScript as follows<br /><br />script type="text/javascript" language="JavaScript" src="/psc/portdev/EMPLOYEE/EMPL/s/WEBLIB_TST.ISCRIPT2.FieldFormula.ISCRIPT_XYZIDXURLQRY"script<br /><br />I wanted to know how can I pass the output of the iScript to a javascript variable<br /><br />e.g. var test = I need to have this variable populated with the sql object query output from the iscript.<br /><br />Your help is highly appreciated.<br /><br />Thanks,<br />StannyUnknownhttps://www.blogger.com/profile/09180550969850381305noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-23459229866639993402009-05-21T11:53:38.359-07:002009-05-21T11:53:38.359-07:00@ASCET2006, you are exactly right. I tried the sam...@ASCET2006, you are exactly right. I tried the same thing a while back. No, I don't have a solution for this yet. I am not sure where the HTTP header gets set, but I'm guessing that it would be possible to override the value by implementing a servlet filter that is listed first in the servlet filter chain. That way it would be the last to return a response.Jim Marionhttps://www.blogger.com/profile/12995110203807924786noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-41099234536121027052009-05-19T12:33:00.000-07:002009-05-19T12:33:00.000-07:00Hi jim. this is a general question and not related...Hi jim. this is a general question and not related to this topic.i tried setting the "Cache-Control" value to "max-age=0" using IScript.<br />%Response.SetHeader("Cache-Control", "max-age=0");<br />but the server is returning its value to the browser as "no-cache". can u please help me in setting the Cache-Control header value.i was able to set all other header values except "Cache-Control"ASCET2006https://www.blogger.com/profile/01335850564923731985noreply@blogger.comtag:blogger.com,1999:blog-34020393.post-83284756744925193122009-04-01T09:58:00.000-07:002009-04-01T09:58:00.000-07:00@Raja, what you want is lazy loading. PeopleTools ...@Raja, what you want is lazy loading. PeopleTools 8.49 and earlier do not deliver lazy loading. To implement this, you will need to use Ajax. Take a look at the <A HREF="http://extjs.com/deploy/dev/examples/samples.html" REL="nofollow">Ext JS</A> Grid samples. You would use an IScript to serve data into the lazy loaded grid. If this is a read only grid, then this solution should be fairly easy to implement. If you want an editable grid, then you will have to either figure out how to update the component buffer with each change (hidden fields) or post data changes to IScripts.Jim Marionhttps://www.blogger.com/profile/12995110203807924786noreply@blogger.com