Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/12/8647612/html/index.php:3) in /home/content/12/8647612/html/includes/bootstrap.inc on line 1162

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/12/8647612/html/index.php:3) in /home/content/12/8647612/html/includes/bootstrap.inc on line 1162

Warning: Cannot modify header information - headers already sent by (output started at /home/content/12/8647612/html/index.php:3) in /home/content/12/8647612/html/includes/bootstrap.inc on line 726

Warning: Cannot modify header information - headers already sent by (output started at /home/content/12/8647612/html/index.php:3) in /home/content/12/8647612/html/includes/bootstrap.inc on line 727

Warning: Cannot modify header information - headers already sent by (output started at /home/content/12/8647612/html/index.php:3) in /home/content/12/8647612/html/includes/bootstrap.inc on line 728

Warning: Cannot modify header information - headers already sent by (output started at /home/content/12/8647612/html/index.php:3) in /home/content/12/8647612/html/includes/bootstrap.inc on line 729
Ashar's blog http://www.compshack.com/blog/ashar Welcome to CompShack! CompShack is a user driven Dev2Dev IT community. Developers can ask questions, help answer questions, or just browse code and articles contributed by users. No registration required. You can register if you want to contribute code samples, share your knowledge at your own blog, and become adored in the community! en Nightly batch processes???? http://www.compshack.com/peoplesoft/nightly-batch-processes <p>Guys.... In this post I'm just sharing my thoughts on nightly batch processes rather than writing any technical solution or design.</p> <p>The other day we had some issues with a few of the batch processes running in our production. Some of the custom mass update processes where running for hours which slowed down the system and in turn crashing one of the app servers. Luckily we have failover app servers configured, so we didn't receive hundreds of emails and tickets logged by the end users. :-)</p> <p><a href="http://www.compshack.com/peoplesoft/nightly-batch-processes" target="_blank">read more</a></p> http://www.compshack.com/peoplesoft/nightly-batch-processes#comments PeopleSoft Other Articles PS Other Wed, 21 May 2008 16:44:33 +0000 Ashar 223 at http://www.compshack.com Compare Report in CSV or HTML format http://www.compshack.com/peoplesoft/peopletools/compare-report-csv-or-html-format <p>Click here -&gt; <a href="http://www.peoplesoftguys.com/2006/08/26/exporting-compare-reports-to-excel/">Compare Report in HTML format </a> to see how you can generate compare reports in HTML or CSV format.</p> http://www.compshack.com/peoplesoft/peopletools/compare-report-csv-or-html-format#comments PeopleCode PeopleSoft PeopleTools Portal Wed, 07 May 2008 19:05:36 +0000 Ashar 204 at http://www.compshack.com Compare data in different tables with same structure http://www.compshack.com/sql/compare-data-different-tables-with-same-structure <p></p><p>Here is the SQL to compare the differences in the data in different tables with same structure. Will be helpful for comparing the data between databases. This works in MS SQL Server if both databases are on same server or if there is a linked server configured for the other database.</p> <p><div class="geshifilter"><div class="sql geshifilter-sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> &nbsp;<span style="color: #66cc66;">*</span> <span style="color: #993333; font-weight: bold;">FROM</span><br /> <span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold;">SELECT</span> Max<span style="color: #66cc66;">&#40;</span>TableName<span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> TableName<span style="color: #66cc66;">,</span> FIELD1<span style="color: #66cc66;">,</span> FIELD2<span style="color: #66cc66;">,</span> FIELD3<br /> <span style="color: #993333; font-weight: bold;">FROM</span> <span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #ff0000;">'HRDB1..PS_MY_RECORD'</span> <span style="color: #993333; font-weight: bold;">AS</span> TableName<span style="color: #66cc66;">,</span> FIELD1<span style="color: #66cc66;">,</span> FIELD2<span style="color: #66cc66;">,</span> FIELD3<br /> <span style="color: #993333; font-weight: bold;">FROM</span> HRDB1<span style="color: #66cc66;">..</span>PS_MY_RECORD <br /> <span style="color: #993333; font-weight: bold;">UNION</span> <span style="color: #993333; font-weight: bold;">ALL</span> <span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #ff0000;">'HRDB2..PS_MY_RECORD'</span> <span style="color: #993333; font-weight: bold;">AS</span> TableName<span style="color: #66cc66;">,</span> FIELD1<span style="color: #66cc66;">,</span> FIELD2<span style="color: #66cc66;">,</span> FIELD3<br /> <span style="color: #993333; font-weight: bold;">FROM</span> HRDB2<span style="color: #66cc66;">..</span>PS_MY_RECORD <span style="color: #66cc66;">&#41;</span> A &nbsp;</div></div></p> <p><a href="http://www.compshack.com/sql/compare-data-different-tables-with-same-structure" target="_blank">read more</a></p> http://www.compshack.com/sql/compare-data-different-tables-with-same-structure#comments SQL PeopleSoft Mon, 14 Apr 2008 10:05:59 +0000 Ashar 158 at http://www.compshack.com PeopleSoft Application Development http://www.compshack.com/peoplesoft/peoplesoft-application-development <p>Lets start with the basics of application development in PeopleSoft. Well, I hope you all know that Application Designer is the tool which we used to develop PeopleSoft application and we usually call it as App Designer in short. Basically there are 8 steps in PeopleSoft Application Development.</p> <p>Here are the 8 steps of PeopleSoft Application Development:</p> <p>1. Design the application<br /> 2. Define new fields<br /> 3. Create record definitions<br /> 4. Build the records<br /> 5. Create page definition<br /> 6. Define the component<br /> 7. Registering the component<br /> 8. Test the application</p> <p><a href="http://www.compshack.com/peoplesoft/peoplesoft-application-development" target="_blank">read more</a></p> http://www.compshack.com/peoplesoft/peoplesoft-application-development#comments PeopleSoft Mon, 31 Mar 2008 17:39:30 +0000 Ashar 141 at http://www.compshack.com Security Tables http://www.compshack.com/peoplesoft/peopletools/security-tables <p>PSOPRDEFN - UserIds created.<br /> PSCLASSDEFN - Permission List definition.<br /> PSROLEDEFN - Role Definition table<br /> PSAUTHITEM - Menus, Components and Pages attached to a permission list.<br /> PSROLEUSER - Contains user and role mapping.<br /> PSROLECLASS - Role Permission List mapping.</p> <p>PSAUTHBUSCOMP -- Component Interfaces Permissions<br /> PSAUTHCHNLMON - Message Channels tagged to any particular PLs<br /> PSAUTHMP - Mobile Pages tagged to a particular Permission List</p> <p>PSUSERATTR<br /> PSUSEREMAIL<br /> PSOPRALIAS<br /> PSOPRALIASTYPE<br /> PSOPRALIASFIELD<br /> PSROLECANGRANT<br /> PSAUTHCUBE<br /> PSAUTHOPTN<br /> PSAUTHPRCS<br /> PSAUTHSIGNON</p> <p><a href="http://www.compshack.com/peoplesoft/peopletools/security-tables" target="_blank">read more</a></p> http://www.compshack.com/peoplesoft/peopletools/security-tables#comments PeopleSoft PeopleTools Mon, 31 Mar 2008 17:37:45 +0000 Ashar 140 at http://www.compshack.com PeopleSoft IDs http://www.compshack.com/peoplesoft/peoplesoft-ids <p>User Id</p> <p>The User Id is the ID associated with the individual user logging onto the PeopleSoft application, via PeopleTools.Validation of this ID is performed by the PeopleTools themselves at log-in time, by virtue of verifying that a row has been defined in the PSOPRDEFN table for this ID. The row in the PSOPERDEFN table contains information pertinant to PeopleSoft internal security administration, such as the access profile defining what areas of the application this ID will have access to, and a link to the ACCESS ID (defined later) associated with the UserId.</p> <p><a href="http://www.compshack.com/peoplesoft/peoplesoft-ids" target="_blank">read more</a></p> http://www.compshack.com/peoplesoft/peoplesoft-ids#comments PeopleSoft Mon, 31 Mar 2008 17:36:01 +0000 Ashar 139 at http://www.compshack.com Rowcounts in PS tables http://www.compshack.com/sql/rowcounts-ps-tables <p></p><p>Here is the SQL that you can use to fetch the number of rows in the PS tables in MS SQL Server database.<br /> <div class="geshifilter"><div class="sql geshifilter-sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SET</span> NOCOUNT <span style="color: #993333; font-weight: bold;">ON</span><br /> DECLARE @tablename VARCHAR <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">128</span><span style="color: #66cc66;">&#41;</span><br /> <span style="color: #808080; font-style: italic;">-- Declare cursor</span><br /> DECLARE <span style="color: #993333; font-weight: bold;">TABLES</span> CURSOR <span style="color: #993333; font-weight: bold;">FOR</span> <br /> <span style="color: #993333; font-weight: bold;">SELECT</span> TABLE_NAME <br /> <span style="color: #993333; font-weight: bold;">FROM</span> INFORMATION_SCHEMA<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">TABLES</span> <br /> <span style="color: #993333; font-weight: bold;">WHERE</span> TABLE_TYPE <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'BASE TABLE'</span> <span style="color: #993333; font-weight: bold;">AND</span> TABLE_SCHEMA <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'dbo'</span> <br /> <span style="color: #993333; font-weight: bold;">AND</span> TABLE_NAME <span style="color: #993333; font-weight: bold;">LIKE</span> <span style="color: #ff0000;">'PS_%'</span><br /> <span style="color: #808080; font-style: italic;">-- Create the table</span><br /> <span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">TABLE</span> <span style="color: #808080; font-style: italic;">#tables ( </span><br /> tablet CHAR <span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> <br /> RecordCount INT<span style="color: #66cc66;">&#41;</span><br /> <span style="color: #808080; font-style: italic;">-- Open the cursor</span><br /> OPEN <span style="color: #993333; font-weight: bold;">TABLES</span><br /> <span style="color: #808080; font-style: italic;">-- Loop through all the tables in the database</span><br /> FETCH NEXT <br /> <span style="color: #993333; font-weight: bold;">FROM</span> <span style="color: #993333; font-weight: bold;">TABLES</span> <br /> <span style="color: #993333; font-weight: bold;">INTO</span> @tablename<br /> <br /> WHILE @@FETCH_STATUS <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span></div></div></p> <p><a href="http://www.compshack.com/sql/rowcounts-ps-tables" target="_blank">read more</a></p> http://www.compshack.com/sql/rowcounts-ps-tables#comments SQL PeopleSoft Mon, 31 Mar 2008 17:32:37 +0000 Ashar 138 at http://www.compshack.com Bypass Component Search Page http://www.compshack.com/peoplesoft/peopletools/bypass-component-search-page <p>We can bypass the component search page in different ways.<br /> 1. One way is to set the key values using peoplecode and use the peoplecode function SetSearchDialogBehavior. You can write the code in the SearchInit PeopleCode. Suppose Employee Id is the only key, then the code will look like, </p> <p>EMPLID = %EmployeeId;<br /> SetSearchDialogBehavior(0);</p> <p>2. There is another method of using a record with no keys as the component search record. This will also bypass the search.</p> <p>Based on the requirement you can use any of the above methods.</p> http://www.compshack.com/peoplesoft/peopletools/bypass-component-search-page#comments PeopleTools Mon, 31 Mar 2008 17:27:17 +0000 Ashar 137 at http://www.compshack.com Send Emails in SQR http://www.compshack.com/sqr/send-emails-sqr <p>Here is the piece of code you can use to send email with attachments in SQR.</p> <p>BEGIN-PROCEDURE sendmail<br /> let $subject = 'Subject of the Email Here'<br /> let $to_list = 'email@email.com'<br /> let $ReportID = 'G:\PeopleSoft\Reports\Report_Name.pdf'<br /> let $alias ='Attachment File Name Alias including the file extension'<br /> let $enter = chr(10)chr(13)</p> <p><a href="http://www.compshack.com/sqr/send-emails-sqr" target="_blank">read more</a></p> http://www.compshack.com/sqr/send-emails-sqr#comments SQR Mon, 31 Mar 2008 17:24:26 +0000 Ashar 136 at http://www.compshack.com