随笔分类 - peoplecode
摘要:Configuring PeopleCode TraceSelect PeopleTools, Utilities, Debug, Trace PeopleCode to access the Trace PeopleCode page.You use this page to change the PeopleCode tracing options while online. This page does not affect trace options that are set in PeopleSoft Configuration Manager. Use Trace PeopleCo
阅读全文
摘要:Open the following defination and changed them.1. NEW_PS_LOGO (Image Type) - To change the logo.2. PORTAL_UNI_HEADER_NS4X (Html Type) - Change logo name on mouse over.3. PORTAL_UNI_HEARDER_NNS (Html Type)4. PT_BRANDING (Application Package Type) - Deals to manipulate homepage and portal look.Note:Do
阅读全文
摘要:The Rowset class contains two methods that can be used to show and hide all rows:ShowAllRows()HideAllRows()You can use these two methods to show or hide a grid on a page associated wtih a particular rowset.Simply make sure that the grid uses the main record that your rowset refers to, then refer to
阅读全文
摘要:If you are trying to set the value of a field through PeopleCode and that field happens to beNAMEthen you will experience the following error when using the shortcutRowset(Row).Record.Field.Value approach:&rsExample(1).DERIVED.NAME.Value = "This will error";Gives the following error wh
阅读全文
摘要:A blunt, but useful method for debugging PeopleCode is to use the inbuilt "Error" function to stop processing and provide a message.Something as simple as this can be a valuable debugging tool at times:Error "The value of variable x=" | &x;Most people use message box (or the
阅读全文
摘要:Use theSearchClear()method which is part of the Field class to clear search values on a particular search key field. This is how you canresetsearch parameters specified by a user when they press theReturn to Searchbutton.You can call this using the shortcut notation:RECORD.FIELD.SearchClear();Or you
阅读全文
摘要:I find that you often need to create and manipulate standalone rowsets. Sometimes you can get the data for your standalone rowset from the database using theFillmethod, however sometimes you'll want to copy from existing rowsets. This is where theCopyTomethod comes in handy.However there is one
阅读全文
摘要:AddToDateis aPeopleCode built-in functionfor manipulating a date in PeopleCode.You can use it toadjustdates forwards and backwards, by a given number of years, months or days.The basic syntax is:Local date &dtExample;&dtExample = %Date;/* Get date forward 1 year, 0 months, 0 days */&dtEx
阅读全文
摘要:If you are working with files or file attachments in PeopleCode, you will typically want to create a unique file name for each user to prevent them from overwriting each others files if files are being stored in the same folder.Here's a simple piece of PeopleCode that generates a file name prefi
阅读全文
摘要:1. Set component changed page field property:For understanding this open a page in application designer and in the field property of one of the edit field uncheck the propertySet component Changedand save the page. Now go on the online page, make some changes in field value and save the page.What do
阅读全文
摘要:Setting a Date to Null in PeopleCodeTo set a date to null in PeopleCode either use the SetDefault() function (deprecated) or the SetDefault field methodUsing the function:SetDefault(YOUR_RECORD.DT_FIELD);Using the field method If you are in the current context:YOUR_RECORD.DT_FIELD.SetDefault();Using
阅读全文
摘要:1. Get the description of the translate value:No need to write SQLEXEC on PSXLATITEM passing fieldname and Field value. Just use LongTranslateValue property to get the long description of the field as:Local Any &VALUE;Local Field &MYFIELD;&MYFIELD = GetField();&VALUE = &MYFIELD.L
阅读全文
摘要:在rowinit里面:/*增加打卡规则字段 陈楚豪 2013/5/7 新建*/Local Field &KL_PUNCH_RULE;&KL_PUNCH_RULE = GetRow().GetRecord(Record.SCH_SHIFT_DTL).GetField(Field.KL_PUNCH_RULE);&KL_PUNCH_RULE.ClearDropDownList();&KL_PUNCH_RULE.AddDropDownItem("01", Char(8233) | "正常上班打卡");&KL_PUNCH_R
阅读全文
摘要:今天遇到一个需求:在做页面输入验证的时候,如果用户没有输入某个项,那么这个项显示为红色,一直没头绪,也找peoplebook,发现field有一个style的方法,后来又在谷歌上找,终于找到了方法: Just to check, did you include custom stylesheet in PSSTYLEDEF? That is a key step in order to use any custom style sheet in PeopleCode or anywhere in app designer. This is what I did (a similar requi
阅读全文
摘要:%EDITTABLE is field in the work record DERIVED. This field is generally used a prompt table for various fields. This field would mostly be set at the Page Activate Level or the main keys RowInit Level. This field can be used to dynamically change prompt tables.Consider a scenario where if an employe
阅读全文
摘要:Views are a useful feature of SQL databases, letting us create virtual tables based on SQL select statements.PeopleSoft 8 provides the functionality to create dynamic views. These are essentially SQL statements executed on the fly by the PeopleSoft component processor. We can use dynamic views in Pe
阅读全文
摘要:Sometimes a situation in project work arises to have a dynamic prompt table for record fields on PeopleSoft pages. In PeopleSoft itself dynamic prompt table functionality is utilized to a great extent. So, the question is:How to achieve the same??We can accomplish dynamic prompt table in 2 ways:Usin
阅读全文
摘要:You will find yourself very familier to this topic. Ok, let me ask you one question:Let me know the names of some think-time functions?I know your answer will be...Winmessage, MessageboxNow I will ask...anything else???My dear friends, before we answer we should think what exactly is the definition
阅读全文
摘要:There was a question asked on the forum on how to hid a subpage. There is no Peoplecode function to hide a subpage directly, BUT one way around that is putting the subpage in a group box and hid the group box instead. Hiding the group box will end up hiding your sub pageMake sure to follow the follo
阅读全文
摘要:The below function is to be used on a grid with multiple check boxes. Place the code behind a FieldChange event and users will have the option to Select or Deselect grid rows all at once.Function selectAllRows(&rs As Rowset) Local number&i; Local Row&row;For&i=1To&rs.ActiveRowCou
阅读全文

浙公网安备 33010602011771号