<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>Hints, Tips &amp; Gotchas (new posts)</title>
		<link>http://www.peoplesoftwiki.com/forum/c-63480/hints-tips-gotchas</link>
		<description>Posts in the forum category &quot;Hints, Tips &amp; Gotchas&quot; - Snippets of information that may help you out.</description>
				<copyright></copyright>
		<lastBuildDate></lastBuildDate>
		
					<item>
				<guid>http://www.peoplesoftwiki.com/forum/t-167656#post-528297</guid>
				<title>Opening CSV File gives &quot;SLYK&quot; error: Opening CSV File gives &quot;SLYK&quot; error</title>
				<link>http://www.peoplesoftwiki.com/forum/t-167656/opening-csv-file-gives-slyk-error#post-528297</link>
				<description></description>
				<pubDate>Wed, 08 Jul 2009 01:49:44 +0000</pubDate>
				<wikidot:authorName>Praj</wikidot:authorName>				<wikidot:authorUserId>52320</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>A CSV file created by an SQR using the information in <a href="http://www.peoplesoftwiki.com/generating-a-csv-file-from-sqr">generating a CSV file form SQR</a> was giving me the following error:</p> <div class="code"> <pre> <code>SYLK: File format is not valid</code> </pre></div> <p>Turns out that this is a known issue with Excel as reported in this <a href="http://support.microsoft.com/kb/323626" >Microsoft KB article (323626)</a>.</p> <p>If the first two characters in your CSV file are a capital I followed by a capital D (<tt>ID</tt>) the error occurs. Change this and the error goes away. You can either change the name of the header field or use lowercase <tt>id</tt>.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.peoplesoftwiki.com/forum/t-167120#post-526121</guid>
				<title>Field does not display a zero (0) value: Field does not display a zero (0) value</title>
				<link>http://www.peoplesoftwiki.com/forum/t-167120/field-does-not-display-a-zero-0-value#post-526121</link>
				<description></description>
				<pubDate>Sat, 04 Jul 2009 23:49:56 +0000</pubDate>
				<wikidot:authorName>Praj</wikidot:authorName>				<wikidot:authorUserId>52320</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>If you have a field that has a zero value, but doesn't show anything on the page, make sure you have the <em>Display Zero Value</em> option selected in the page field properties:</p> <table class="wiki-content-table"> <tr> <td><img src="http://peoplesoft.wikidot.com/local--files/images/page-field-display-zero.png" alt="page-field-display-zero.png" class="image" /></td> </tr> </table> <p>An obvious one, but easy to forget.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.peoplesoftwiki.com/forum/t-164735#post-516772</guid>
				<title>Auto Find Highlighted Text in App Designer: Auto Find Text in App Designer</title>
				<link>http://www.peoplesoftwiki.com/forum/t-164735/auto-find-highlighted-text-in-app-designer#post-516772</link>
				<description></description>
				<pubDate>Tue, 23 Jun 2009 22:33:47 +0000</pubDate>
				<wikidot:authorName>Praj</wikidot:authorName>				<wikidot:authorUserId>52320</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>If you put your cursor in the text you want to perform a find on and press CTRL + F, Application designer will open the find dialog box with the text field already populated, ready for you to perform the search. A nice little time saver. This works in both the PeopleCode and SQL editors.</p> <table class="wiki-content-table"> <tr> <td><img src="http://peoplesoft.wikidot.com/local--files/images/auto-find-text.png" alt="auto-find-text.png" class="image" /></td> </tr> </table> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.peoplesoftwiki.com/forum/t-151952#post-462557</guid>
				<title>PeopleSoft Views and Build Dependencies: PeopleSoft Views and Build Dependencies</title>
				<link>http://www.peoplesoftwiki.com/forum/t-151952/peoplesoft-views-and-build-dependencies#post-462557</link>
				<description></description>
				<pubDate>Tue, 28 Apr 2009 07:50:23 +0000</pubDate>
				<wikidot:authorName>Praj</wikidot:authorName>				<wikidot:authorUserId>52320</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I stumbled across this fantastic post about <a href="http://bloggingaboutoracleapplications.org/setting-dependencies-between-peoplesoft-views/" >setting dependencies when building PeopleSoft Views</a> on the <a href="http://bloggingaboutoracleapplications.org/" >Blogging About Oracle Applications</a> site.</p> <p>Essentially, in your record type properties, you can set a build sequence number. PeopleSoft builds views based on this sequence number by first building all views with sequence 0, then all views with sequence 1, then all views with sequence 2 and so on.</p> <p>If you have two views: <tt>PS_XYZ_VW</tt> and <tt>PS_ABC_VW</tt> where the view <tt>PS_ABC_VW</tt> <em>depends</em> on the view <tt>PS_XYZ_VW</tt> because it uses <tt>PS_XYZ_VW</tt> in its view sql then set the build sequence like this:</p> <ul> <li><tt>PS_XYZ_VW</tt> build sequence 0 (build first)</li> <li><tt>PS_ABC_VW</tt> build sequence 1 (build second)</li> </ul> <p>This will override the fact that alphabetically, <tt>PS_ABC_VW</tt> is before <tt>PS_XYZ_VW</tt> and will be built first by default (and fail).</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.peoplesoftwiki.com/forum/t-144818#post-440692</guid>
				<title>GetRowset Scroll Context Error: GetRowset Scroll Context Error</title>
				<link>http://www.peoplesoftwiki.com/forum/t-144818/getrowset-scroll-context-error#post-440692</link>
				<description></description>
				<pubDate>Mon, 06 Apr 2009 02:19:19 +0000</pubDate>
				<wikidot:authorName>Praj</wikidot:authorName>				<wikidot:authorUserId>52320</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>If you've worked with the Rowset class then you've no doubt encountered the GetRowset record not found in scroll level error before. Here's a screenshot:</p> <img src="http://peoplesoft.wikidot.com/local--files/forum:thread/get-rowset-scroll-context-error.png" alt="get-rowset-scroll-context-error.png" class="image" /> <p>This can mean a few different things depending on the context of the error, but in my example, I was trying to use <tt>GetRowset</tt> with the scroll context when in fact I was already in the right context.</p> <p>What I mean is that I was trying this:</p> <div class="code"> <pre> <code>&amp;rsSSR_CART_SUS = GetRowset(Scroll.SSR_CART_SUS);</code> </pre></div> <p>In <tt>SSR_CART_SUS.GBL.SSR_CART_SUS.RowInit</tt> Component PeopleCode.</p> <p>I'm already in the right context (in the <tt>SSR_CART_SUS</tt> scroll), so why am I trying to specify the scroll?</p> <p>That's what the error is about. The correct syntax is actually:</p> <div class="code"> <pre> <code>&amp;rsSSR_CART_SUS = GetRowset();</code> </pre></div> <p>Remember that working with Component PeopleCode is all about context - think about where your code is in relation to the structure of the component.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.peoplesoftwiki.com/forum/t-144137#post-438429</guid>
				<title>Accessing Data Archive Queries: Accessing Data Archive Queries</title>
				<link>http://www.peoplesoftwiki.com/forum/t-144137/accessing-data-archive-queries#post-438429</link>
				<description></description>
				<pubDate>Fri, 03 Apr 2009 05:37:47 +0000</pubDate>
				<wikidot:authorName>Praj</wikidot:authorName>				<wikidot:authorUserId>52320</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Data archive queries do not seem to show up when you perform a search in Query manager. For instance, I know that there is a query called <tt>AUDIT_SCH_TBL</tt> in Campus Solutions, however performing a search for that query by name in query manager returns no results:</p> <img src="http://peoplesoft.wikidot.com/local--files/forum:thread/query-manager-find-data-archive-query1.png" alt="query-manager-find-data-archive-query1.png" class="image" /> <p>However, if I change the search by to type and set the drop down from user to archive - it suddenly shows up …</p> <img src="http://peoplesoft.wikidot.com/local--files/forum:thread/query-manager-find-data-archive-query2.png" alt="query-manager-find-data-archive-query2.png" class="image" /> <p>By the way you can use the advanced search functionality in query manager to search for an archive query by name.</p> <img src="http://peoplesoft.wikidot.com/local--files/forum:thread/query-manager-find-data-archive-query3.png" alt="query-manager-find-data-archive-query3.png" class="image" />
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.peoplesoftwiki.com/forum/t-139147#post-419083</guid>
				<title>Attaching a 0 byte file gives a file not found error: Attaching a 0 byte file gives a file not found error</title>
				<link>http://www.peoplesoftwiki.com/forum/t-139147/attaching-a-0-byte-file-gives-a-file-not-found-error#post-419083</link>
				<description></description>
				<pubDate>Tue, 17 Mar 2009 06:43:43 +0000</pubDate>
				<wikidot:authorName>Praj</wikidot:authorName>				<wikidot:authorUserId>52320</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>When using file attachments in PeopleSoft if you attach a file that is 0 bytes (empty) then it will give you a <strong>file not found error</strong> (return code 9 - %Attachment_FileNotFound).</p> <p>This can be quite frustrating if you think there's something wrong with the way you are calling AddAttachment!</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.peoplesoftwiki.com/forum/t-135737#post-404781</guid>
				<title>Automatically Generate application class method parameters: Automatically Generate application class method parameters</title>
				<link>http://www.peoplesoftwiki.com/forum/t-135737/automatically-generate-application-class-method-parameters#post-404781</link>
				<description></description>
				<pubDate>Thu, 05 Mar 2009 05:04:50 +0000</pubDate>
				<wikidot:authorName>Praj</wikidot:authorName>				<wikidot:authorUserId>52320</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>When you create a new method in an application package class, you need to declare the method between <tt>class</tt> and <tt>end-class</tt>. This is where you normally specify the method name, any parameters passed to the method and the return parameter (if there is one).</p> <p>For example:</p> <div class="code"> <div class="hl-main"> <pre> <span class="hl-reserved">class</span><span class="hl-code"> </span><span class="hl-identifier">YourClass</span><span class="hl-code"> </span><span class="hl-identifier">method</span><span class="hl-code"> </span><span class="hl-identifier">YourMethod</span><span class="hl-brackets">(</span><span class="hl-code">&amp;</span><span class="hl-identifier">sInput</span><span class="hl-code"> </span><span class="hl-identifier">as</span><span class="hl-code"> </span><span class="hl-identifier">String</span><span class="hl-brackets">)</span><span class="hl-code"> </span><span class="hl-identifier">returns</span><span class="hl-code"> </span><span class="hl-types">boolean</span><span class="hl-code">; </span><span class="hl-identifier">end</span><span class="hl-code">-</span><span class="hl-reserved">class</span><span class="hl-code">;</span> </pre></div> </div> <p>When it comes to generating the same parameters in your <tt>method</tt> and <tt>end-method</tt> declaration, simply type:</p> <div class="code"> <div class="hl-main"> <pre> <span class="hl-identifier">method</span><span class="hl-code"> </span><span class="hl-identifier">YourMethod</span><span class="hl-code"> </span><span class="hl-identifier">Returns</span><span class="hl-code"> </span><span class="hl-identifier">True</span><span class="hl-code">; </span><span class="hl-comment">/* If you have a return */</span><span class="hl-code"> </span><span class="hl-identifier">end</span><span class="hl-code">-</span><span class="hl-identifier">method</span><span class="hl-code">;</span> </pre></div> </div> <p>Then press the green validate syntax icon on the toolbar, and it will automatically generate the parameters / return parameters for you. For example, you'll get:</p> <div class="code"> <div class="hl-main"> <pre> <span class="hl-identifier">method</span><span class="hl-code"> </span><span class="hl-identifier">YourMethod</span><span class="hl-code"> /+ &amp;</span><span class="hl-identifier">sInput</span><span class="hl-code"> </span><span class="hl-identifier">as</span><span class="hl-code"> </span><span class="hl-identifier">string</span><span class="hl-code"> +/ /+ </span><span class="hl-identifier">Returns</span><span class="hl-code"> </span><span class="hl-types">boolean</span><span class="hl-code"> +/ </span><span class="hl-identifier">Returns</span><span class="hl-code"> </span><span class="hl-identifier">True</span><span class="hl-code">; </span><span class="hl-identifier">end</span><span class="hl-code">-</span><span class="hl-identifier">method</span><span class="hl-code">;</span> </pre></div> </div> <p>If you add, remove, or change method parameters at a later date, again, make the appropriate changes to your method declaration (in the class area) and then press the green tick validate syntax icon and it will automatically update your method body.</p> <p>This saves you a bit of typing, reduces the possibility of typos, and just makes life that little bit easier :)</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.peoplesoftwiki.com/forum/t-135189#post-402325</guid>
				<title>Picking a Process Run Control Subpage: Picking a Process Run Control Subpage</title>
				<link>http://www.peoplesoftwiki.com/forum/t-135189/picking-a-process-run-control-subpage#post-402325</link>
				<description></description>
				<pubDate>Tue, 03 Mar 2009 05:49:42 +0000</pubDate>
				<wikidot:authorName>Praj</wikidot:authorName>				<wikidot:authorUserId>52320</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>What's the difference between the subpages <tt>PRCSRUNCNTL_SBP</tt> and <tt>PRCSRUNCNTL_SBP2</tt> ?</p> <p>The only difference I could find is that <tt>PRCSRUNCNTL_SBP2</tt> is slightly more compact with a height of 46px vs <tt>PRCSRUNCNTL_SBP</tt> with a height of 65px. So if you want to save some extra space in the header of your run control page, go for <tt>PRCSRUNCNTL_SBP2</tt>. The fields all appear to be exactly the same.</p> <p>Also don't forget to <a href="http://peoplesoft.wikidot.com/forum/t-103494/using-the-process-subpage-prcsruncntl-sbp-on-run-control-pages" >substitute</a> the subpage record name with your own run control record name in the subpage properties.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.peoplesoftwiki.com/forum/t-132789#post-393567</guid>
				<title>Default Value Constants for Time: Default Value Constants for Time</title>
				<link>http://www.peoplesoftwiki.com/forum/t-132789/default-value-constants-for-time#post-393567</link>
				<description></description>
				<pubDate>Mon, 23 Feb 2009 05:54:47 +0000</pubDate>
				<wikidot:authorName>Praj</wikidot:authorName>				<wikidot:authorUserId>52320</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>In Campus Solutions Self Service, the <em>My Class Schedule</em> page uses constant default values for the start and end times. These are the fields <tt>MEETING_TIME_START</tt> and <tt>MEETING_TIME_END</tt> on the record <tt>DERIVED_CLASS_S</tt>. The constant default for <tt>MEETING_TIME_START</tt> is <tt>8A</tt> for 8:00 AM and for <tt>MEETING_TIME_END</tt> the default is <tt>6P</tt> for 6:00 PM.</p> <p>What does this all mean? Well if you want to set a default value for a time field, use the convention <tt>1-12A or 1-12P</tt> e.g. <tt>1A</tt> for 1:00 am through to <tt>12P</tt> for 12:00pm.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.peoplesoftwiki.com/forum/t-128203#post-379646</guid>
				<title>App Engine State Records - Derived/Work or SQL Table?: App Engine State Records - Derived/Work or SQL Table?</title>
				<link>http://www.peoplesoftwiki.com/forum/t-128203/app-engine-state-records-derived-work-or-sql-table#post-379646</link>
				<description></description>
				<pubDate>Mon, 09 Feb 2009 05:21:57 +0000</pubDate>
				<wikidot:authorName>Praj</wikidot:authorName>				<wikidot:authorUserId>52320</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Ever wondered whether you should make your application engine state records derived or a SQL table? Well according to PeopleBooks the only reason you need a real table is if you want the ability to restart your application engine (set by default).</p> <p>A physical table is required for a restartable application engine program so that the values in the state record can be stored in the database and used when the process is restarted. A derived/work record would lose information after a restart.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.peoplesoftwiki.com/forum/t-122607#post-364235</guid>
				<title>Display Nulls in your Query Results: Display Nulls in your Query Results</title>
				<link>http://www.peoplesoftwiki.com/forum/t-122607/display-nulls-in-your-query-results#post-364235</link>
				<description></description>
				<pubDate>Fri, 23 Jan 2009 01:40:33 +0000</pubDate>
				<wikidot:authorName>Praj</wikidot:authorName>				<wikidot:authorUserId>52320</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p><a href="http://www.sqltools-plusplus.org:7676/" >SQLTools++</a> has a feature that lets you specify a null indicator in the output results grid (Tools &gt; Settings &gt; SQLTools &gt; Data Grid 2). I normally set this to something like &lt;null&gt;</p> <img src="http://peoplesoft.wikidot.com/local--files/forum:thread/sqltools-null-representation-setting.png" alt="sqltools-null-representation-setting.png" class="image" /> <p>Why is this useful? Because it tells you whether a value is space or a null. This is something you need to be wary of in PeopleSoft because a blank entry could be either a null or space. Any <strong>good</strong> SQL Tool should let you set this up as an option in your results grid.</p> <p>Note there are other ways to tell if the value in a field is a null or a space - one method is to return the length of the field (if its a space it will return 1, otherwise it will return a null - but that may depend on your database platform). Tables built through application designer usually include a constraint to indicate that the field cannot be null if it is not a date.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.peoplesoftwiki.com/forum/t-102752#post-358081</guid>
				<title>Is MessageBox a Think-Time Function?: Re: Is MessageBox a Think-Time Function?</title>
				<link>http://www.peoplesoftwiki.com/forum/t-102752/is-messagebox-a-think-time-function#post-358081</link>
				<description></description>
				<pubDate>Fri, 16 Jan 2009 05:27:02 +0000</pubDate>
				<wikidot:authorName>Praj</wikidot:authorName>				<wikidot:authorUserId>52320</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Looks like there's an exception to my exception!</p> <p>If you are using the <tt>MessageBox</tt> function to display a message catalog entry with bind parameters (e.g. bind variables %1, %2, %3) then it <strong>will behave as a think-time function</strong> even though you might be using a style parameter of 0 or <tt>%MsgStyle_OK</tt>. Note that the style parameter is the <em>first</em> parameter passed to the <tt>MessageBox</tt> function.</p> <p>So only the simplest OK message box with no bind parameters doesn't behave as a think-time function.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.peoplesoftwiki.com/forum/t-120109#post-356704</guid>
				<title>Dashes, Underscores or Spaces in File names?: Dashes, Underscores or Spaces in File names?</title>
				<link>http://www.peoplesoftwiki.com/forum/t-120109/dashes-underscores-or-spaces-in-file-names#post-356704</link>
				<description></description>
				<pubDate>Thu, 15 Jan 2009 00:04:15 +0000</pubDate>
				<wikidot:authorName>Praj</wikidot:authorName>				<wikidot:authorUserId>52320</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Ever wondered whether you should be using dashes (-), underscores (_) or spaces ( ) to separate the words in your file name?</p> <p>For example, which is best?</p> <ul> <li><tt>this-is-a-test.sql</tt></li> <li><tt>this_is_a_test.sql</tt></li> <li><tt>this is a test.sql</tt></li> </ul> <p>Well according to Jeff Atwood, looks it would seem that <a href="http://www.codinghorror.com/blog/archives/000574.html" >dashes</a> are the best choice because they are the official substitute character for spaces in <a href="http://www.codinghorror.com/blog/archives/000574.html" >regular expressions</a>.</p> <p>The choice is always yours, but I guess if there's already an established convention, it might be worth following ….</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.peoplesoftwiki.com/forum/t-112089#post-331239</guid>
				<title>Views and Database Field Sizes: Views and Database Field Sizes</title>
				<link>http://www.peoplesoftwiki.com/forum/t-112089/views-and-database-field-sizes#post-331239</link>
				<description></description>
				<pubDate>Wed, 10 Dec 2008 04:40:50 +0000</pubDate>
				<wikidot:authorName>Praj</wikidot:authorName>				<wikidot:authorUserId>52320</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>It would seem (in Oracle databases as far as I've tested) that when you create a view it uses the underlying table structure for field sizes (and perhaps other things) and not the PeopleSoft field definitions. So watch out - what you see in application designer may not necessarily match what is created in the database!</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.peoplesoftwiki.com/forum/t-109917#post-324018</guid>
				<title>PeopleSoft Query Database Driver Error.: PeopleSoft Query Database Driver Error.</title>
				<link>http://www.peoplesoftwiki.com/forum/t-109917/peoplesoft-query-database-driver-error#post-324018</link>
				<description></description>
				<pubDate>Tue, 02 Dec 2008 01:15:06 +0000</pubDate>
				<wikidot:authorName>Praj</wikidot:authorName>				<wikidot:authorUserId>52320</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>If you get the following error when trying to run a PeopleSoft Query:</p> <p><em>Database Driver Error. (30,11)</em></p> <p>It might actually just mean that you are using an expression but the text is longer than the length. E.g. by default any character expression is set to just 1 character in length, but your expression might be <tt>count(*)</tt>. This is longer than 1 character hence the error.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.peoplesoftwiki.com/forum/t-106249#post-312301</guid>
				<title>Truncated text in Long Edit Boxes: Truncated text in Long Edit Boxes</title>
				<link>http://www.peoplesoftwiki.com/forum/t-106249/truncated-text-in-long-edit-boxes#post-312301</link>
				<description></description>
				<pubDate>Wed, 19 Nov 2008 01:59:02 +0000</pubDate>
				<wikidot:authorName>darko_dj</wikidot:authorName>				<wikidot:authorUserId>115872</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>The amount of text entered in long edit boxes is not automatically limited to fit the field size. For example, if a long edit box is used for a field that is 1,500 characters long, one could keep entering characters over the 1,500 characters limit - and PeopleSoft will simply truncate the text over the limit at save time. This can be very frustrating for users, and can also affect data quality (since certain information entered in long edit boxes is lost).</p> <p>This issue was encountered in PeopleTools 8.47.7 (from memory, but I could be wrong) - I'm not sure whether it's been fixed in later versions.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.peoplesoftwiki.com/forum/t-103516#post-303851</guid>
				<title>Long fields in SQL definitions: Long fields in SQL definitions</title>
				<link>http://www.peoplesoftwiki.com/forum/t-103516/long-fields-in-sql-definitions#post-303851</link>
				<description></description>
				<pubDate>Sun, 09 Nov 2008 06:01:26 +0000</pubDate>
				<wikidot:authorName>darko_dj</wikidot:authorName>				<wikidot:authorUserId>115872</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>When inserting/updating a long field via SQL, ensure it's enclosed within %TextIn in your SQL definition. For example:</p> <p>INSERT INTO PS_SOME_RECORD(EMPLID<br /> , LONG_FIELD1<br /> , LONG_FIELD2)<br /> VALUES (:1<br /> ,%TextIn(:2)<br /> ,%TextIn(:3))</p> <p>If the long field is not enclosed within %TextIn, then the SQL will work with long field values up to 255 characters long. Anything over that will cause a "Fatal SQL error has occurred" message to pop up - so it's hard to pick up in testing.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.peoplesoftwiki.com/forum/t-103515#post-303843</guid>
				<title>%EffdtCheck Meta-SQL issues: %EffdtCheck Meta-SQL issues</title>
				<link>http://www.peoplesoftwiki.com/forum/t-103515/effdtcheck-meta-sql-issues#post-303843</link>
				<description></description>
				<pubDate>Sun, 09 Nov 2008 05:34:33 +0000</pubDate>
				<wikidot:authorName>darko_dj</wikidot:authorName>				<wikidot:authorUserId>115872</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>The %EffDtCheck construct expands into an effective date subquery suitable for a Where clause. However, it cannot be used with records that contain EFFSEQ as part of the key - in that case, the %EffDtCheck construct is expanded into an effective date subquery INCLUDING the EFFSEQ in the join criteria - which is wrong!</p> <p>For example, the following SQL:</p> <p>SELECT *<br /> FROM PS_JOB JOB<br /> WHERE EMPLID = :1<br /> AND EMPL_RCD = :2<br /> AND %EffdtCheck(JOB, JOB_ES, %CurrentDateIn)</p> <p>expands into:</p> <p>SELECT *<br /> FROM PS_JOB JOB<br /> WHERE EMPLID = :1<br /> AND EMPL_RCD = :2<br /> AND JOB_ES.EFFDT=(<br /> SELECT MAX(EFFDT)<br /> FROM PS_JOB JOB<br /> WHERE JOB.EMPLID=JOB_ES.EMPLID<br /> AND JOB.EMPL_RCD=JOB_ES.EMPL_RCD<br /> AND <strong>JOB.EFFSEQ=JOB_ES.EFFSEQ</strong> — this shouldn't be used in EFFDT sub-query<br /> AND JOB.EFFDT&lt;=TO_DATE(TO_CHAR(SYSDATE,'YYYY-MM-DD'),'YYYY-MM-DD'))</p> <p>As such, when retrieving the current effective row for a record with EFFSEQ as part of the key, the %EffDtCheck construct should not be used.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://www.peoplesoftwiki.com/forum/t-103506#post-303789</guid>
				<title>Interactive field processing on a deferred-processing component: Interactive field processing on a deferred-processing component</title>
				<link>http://www.peoplesoftwiki.com/forum/t-103506/interactive-field-processing-on-a-deferred-processing-component#post-303789</link>
				<description></description>
				<pubDate>Sun, 09 Nov 2008 03:39:34 +0000</pubDate>
				<wikidot:authorName>darko_dj</wikidot:authorName>				<wikidot:authorUserId>115872</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>There is no need to make the whole component interactive if you need a field interactive … simply untick the "Allow Deferred processing" on the field you want to respond interactively:</p> <a href="http://www.peoplesoftwiki.com/local--files/images/field_deferred_process_prop.jpg"><img src="http://www.peoplesoftwiki.com/local--resized-images/images/field_deferred_process_prop.jpg/medium.jpg" alt="Field deferred processing property" class="image" /></a> <p>As Praj has already indicated, processing modes follow a bottom-up approach from Page-Fields to the component. If a component is using deferred-processing mode, pages and fields within that component can be made interactive on an individual basis (by unticking the "Allow Deferred processing" box).</p> <p>However, if a component is interactive, then all pages and fields on that component are interactive as well.</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>