- Design the application.
- Create field definitions.
- Create record definitions.
- Build the application data tables.
- Create page definitions.
- Define components.
- Register the components.
- Test the application.
Showing posts with label Application Designer. Show all posts
Showing posts with label Application Designer. Show all posts
July 25, 2009
PS Technical: Development Steps
July 24, 2009
PS Technical: Field Definitions (Summary)
1. Creating New Field Definitions
- Create a new field definition.
- Character (Char)
- Long Character (Long)
- Number (Nbr)
- Signed Number (Sign)
- Date (Date)
- Time (Time)
- DateTime (DtTm)
- Image (Img)
- ImageReference (Iref)
- Attachment (Att)
- Specify attributes for a new field definition.
- Label ID
- Long Name
- Short Name
- Def (default)
- Not Used
- Chart Field
- Specify character field attributes.
- Field Length
- Format Type : Uppercase, Mixedcase, Numbers Only, SSN, SIN, Raw Binary, Name, Postal Code North America, Postal Code International, Phone Num North America, Phone Number International, and Custom
- Specify long character field attributes.
- Maximum Length
- Raw Binary
- Specify number field attributes.
- Integer Positions
- Decimal Positions
- Signed
- Specify date field attributes.
- Default to 2000 if year less than or equal to (Default is 50)
- Specify time field attributes.
- Time Formatting
- Specify DateTime field attributes.
- Time Formatting
- Specify image field attributes.
- Maximum Length
- Image Format
- Specify ImageReference field attributes
- Note: PeopleSoft supports BMP, DIB, GIF, CUT, EPS, JPG, PCX, PCT, RLE, and TGA image types. At runtime, the user can upload BMP, DIB, GIF, and JPG images to the database.
2. Using Multiple Labels
- Add a new label.
- Delete a label.
- Select record field labels.
3. Opening an Existing Field Definition
4. Viewing Field Properties
5. Changing Field Definitions
- Change field types.
- Rename field definitions.
- Delete field definitions.
- Print field definitions.
6. Setting Custom Field Formats
- Understanding Format Notation
- Lexical characters delimit character expressions and designate interpretation rules.
- Literal characters represent only themselves.
- Meta characters represent a class of characters.
- Meta Symbols: #; 0; .; 9; A; Z; @
- Lexical Symbols: *; +; []; {}; ?; !; ~; \; ()
- Changing format families. Max Display Length
- Editing formats.
- Add, update, and delete stored and display formats.
- Enter a description for the family.
- Specify options, such as uppercase and smart punctuation, for the family.
- Using family options.
- Smart Punctuation
- Make uppercase
- Test formats.
- Stored Format Name
- Display Format Name
- DB->Display
- Display->DB
7. Using the Translate Table
- Understanding the Translate Table
- Field type is Character.
- Field length is 1 to 4 characters.
- Field values consist of a relatively small, static set of values that are not maintained by the user.
- No other fields relate to this field.
- Add values to the Translate table.
- Field Value
- Effective Date
- Inactive
- Long Name
- Short Name
- Change translate values.
- Delete translate values.
- Save the Translate table.
- Note 1: When you select the Yes/No Table Edit, the system automatically points to the PSYESNO field in the Translate table
- Note 2: Translate Table Attributes are: FIELDNAME, LANGUAGE_CD, FIELDVALUE, EFFDT, VERSION, EFF_STATUS, XLATLONGNAME, XLATSHORTNAME, LASTUPDDTTM and LASTUPDOPRID
- Note 3: To save the Translate table, you must be authorized to modify field definitions. There is a special Translates Only security access level for fields that allows translate values to be updated, but not other field attributes.
July 23, 2009
PS Technical: Record Definitions (Summary)
1. Viewing Record Definitions
- View basic field definitions.
- View key-related characteristics and default values.
- View editing options.
- View PeopleCode program types.
- Reorder fields.
- Size and sort columns.
2. Saving Record Definitions
3. Naming Record Definitions
- The name length can be up to 15 characters, with the exception of the Temporary Table type, which has a maximum length of 13.
- The name must begin with a letter and can contain underscores to make it more readable.
- Avoid special characters, such as # or $, which can cause problems in some database environments.
- Record Naming Conventions: _TBL, _VW, _DVW, _WRK, _SBR, _QVW, _WL, R_, AUDIT_, WEBLIB_, FUNCLIB_, and DERIVED_
4. Creating a New Record
5. Opening an Existing Record
6. Manipulating Fields in Record Definitions
6. Set record properties.
- SQL Table; SQL View; Dynamic View; Derived/Work; SubRecord; Query View; Temporary Table; and Non Standard SQL Table Name
- Keys for dynamic views should not be effective date fields.
6. Manipulating Fields in Record Definitions
- Insert fields into records.
- Insert subrecords into records.
- Set general properties.
- Set use properties.
- Create user-defined audit record definitions.
- Tools Table: Identifies SQL tables owned by Enterprise PeopleTools development, which is typically the same ownership as indicated by the PPLTOOLS project.
- Managed: Identifies SQL tables owned by Enterprise PeopleTools development that
contain information which is used by managed (cached) objects. - Upgrade Job Not Needed: Identifies SQL tables that do not require an upgrade job to be defined. This option applies only to “A to B” upgrades.
- The Append ALL (Dynamic Views) option applies to dynamic views. If it is set, at runtime the system appends the WHERE clause generated at runtime to all the SELECT statements in a dynamic view with a UNION. Also, if it is set, at runtime the system generates FILL as the table alias in the WHERE clause condition. For example, FILL.
LIKE ’%O%’. You need to specify which table corresponds to the FILL in the dynamic view definition. For example, FROM tableA FILL. This is because the same record field name may exist in two different records.
- Set record field use properties.
- Add from and through logic to the search page.
- Set record field edit properties.
- Move fields in the same record.
- Move fields to another record definition.
- Delete a field from a record definition.
- Rename record definitions.
- Delete record definitions.
- Print record definitions.
- Create SQL view and dynamic view Select statements.
- Note: Time Zone and Related Date Fields
July 20, 2009
PS Technical: Administering Data
• Use the Build menu.
• Create tables.
• Create indexes.
• Alter tables.
• Create triggers.
• Create views.
• Administer DDL.
The basic components of the PeopleSoft DDL support include the following:
PeopleSoft Security enables you to specify which users can build scripts, run scripts (Execute SQL now), maintain DDL, and so on. Access Security from the PeopleTools link in the menu.
Note: The Execute SQL now option is unavailable if you use the Alter Tables Build option. However, you can use the Execute and build script option when using Alter Tables. Selecting this option builds a script with the entire alter SQL. This script may help if errors are encountered during the alter process. However, if there are multiple tables in an alter process and an error occurs, the errors are reported to a log file and the process continues to the next table.
Using Command Line Syntax to Build a Project
to be continued.............
• Create tables.
• Create indexes.
• Alter tables.
• Create triggers.
• Create views.
• Administer DDL.
1. Understanding Data Administration and the Build Process
Reviewing DDLThe basic components of the PeopleSoft DDL support include the following:
- DDL model definition: A complete set of the supported DDL statements for each database platform. Statements include Create Table, Create Tablespace, and Create Index. Each DDL model statement has substitution parameters that can be specified at the database level or overridden for individual records.
- RecordDDL: Specify the DDL model substitution parameters for an individual record.
- Index DDL: Specify the DDL model substitution parameters for an index.
- Sizing sets: A way to maintain multiple versions of your DDL model statements for a database platform. For example, you can use one sizing set during a development phase, when tables have only test data, and another during production, when tables have much more data.
PeopleSoft Security enables you to specify which users can build scripts, run scripts (Execute SQL now), maintain DDL, and so on. Access Security from the PeopleTools link in the menu.
Note: The Execute SQL now option is unavailable if you use the Alter Tables Build option. However, you can use the Execute and build script option when using Alter Tables. Selecting this option builds a script with the entire alter SQL. This script may help if errors are encountered during the alter process. However, if there are multiple tables in an alter process and an error occurs, the errors are reported to a log file and the process continues to the next table.
Using Command Line Syntax to Build a Project
- Connect the project to the source database.
- Use the build settings from the Windows registry to generate the SQL script for the create or alter processes.
- Before running the build command line, verify that, the project’s system components are created and loaded and the build options are set in the Windows registry.
- Available Parameters: HIDE (used to hide the PeopleSoft Application Designer interface), CT (Database type), CS (Server name), CD (Database name), CO (User ID), CP (User password), and PJB ( Project name).
- Example: PSIDE.EXE −CT MICROSFT −CD CJR810G −CO PTDMO −CP PTDMO −PJB CJR_PRJ
2. Creating Tables
- Because long character fields operate more efficiently in some database environments when they’re located at the end of the table, the Build process automatically positions long character fields at the end of the table for each database environment.
- After you build an updated SQL build script and run it, the PeopleTools tables and the system catalog tables are synchronized; the record definition and the application data table are synchronized.
- Create Indexes: Key fields -> Unique index: (_); Alternate search key fields -> Alternate index: 10 (0-9) per table; Custom indexes -> Custom index: (A-M) per table
- Note: You can have a maximum of 500 columns per table.
3. Creating Indexes
- Configure indexes.
- Add a custom index.
- Edit the DDL.
4. Altering Tables
to be continued.............
July 15, 2009
PeopleSoft Technical: Pages
Page Controls
There are three types of controls that are available to use on a page:
Aesthetic Controls
- Aesthetic controls
- Data entry controls
- Function and data processing controls
Aesthetic Controls
Aesthetic controls are the controls that allow you to make the page look the way you want, organize it the way you would like, and give messages out to the user of the page with text. Aesthetic controls are not associated with data in the database; they are only used on a one-time basis on a page to give the look and feel you would like. They do not relate back to a record nor do they change the property for reuse on other pages. Aesthetic controls are described in the
following sections.
Data Entry Controls
following sections.
- ChartChart frame is a placeholder on the page drawn as a box during design and during runtime using PeopleCode. The chart will be populated with the GetChart field type.
- FrameThis control draws a frame around a group of controls. A frame will also help you isolate controls, which will become clearer when you learn how the processing occurs on pages and components. When a frame with HTML is displayed on the Web, it will create an HTML table.
- Group Box
A group box is a box that you draw around a group of items and give a text label to. - Horizontal Rule
A horizontal rule is a horizontal line that can be drawn on a page to separate items on a page; horizontal lines are not for functionality, but for creating a visual separation on the page. - Image
An image allows you to create a frame that can be associated with one of two types of images—a standard Image type field or an ImageReference. An ImageReference can change dynamically during runtime and while the page is displayed. You can use a dynamically changing image to convey information to the user during runtime. - Static Image
A static image is a frame that is associated with a non-changing image. A static image is just what the name implies and it does not change during runtime. It is not associated with a record field but an image definition. - Static Text
Static text can be used to give users instructions on the page. Static text can be any text that does not change on the page. If your text will change, it is best to store it in a message catalog or in HTML rather than in static text.
Data Entry Controls
The data entry controls allow you to choose the way that the data will be entered, manipulated, and/or controlled on the page.
- Check Box
A check box is a toggle switch and represents in code an on or off, or Boolean function. It is for representing a yes/no, on/off, or 1/0 type of coding. - Drop-Down List Box
The drop-down list box is a data entry feature that allows for a single value to be chosen from a list of valid values. It is best to have three or more values to choose from; otherwise, it is over-coding to use a drop-down list box. - Edit Box
An edit box is used for data entry—any value can be placed in the edit box. Edit boxes are also used for data display; you can display values in fields, derive work records, and/or translate text fields and then make the edit box read-only. The data type for an edit box is text so you want to use an edit box to allow for data entry into a record that has a field that is a character, number, signed number, or date. - Long Edit Box
A long edit box is almost the same as an edit box; the difference is in size. If your field is a long value a scroll area is added to the edit box, allowing for scrolling through the text. The length is controlled by the contents rather than the size of the field. Common uses are for comments and descriptions. Long edit boxes are good for memo type entries and generally correspond to the “long character” type fields in the database. - Radio Button
Radio buttons are small round buttons representing a single value that has multiple options. You add radio buttons in groups to show the multiple options that a single value has. PeopleSoft recommends using radio buttons in cases with very few options; for more than a few options, they recommend the use of a drop-down list box. The reason is that drop-down lists will grow dynamically as more choices are introduced, whereas when adding radio buttons the page would need to be modified. - Subpage
A subpage can represent a single source for a page header and you can reuse it on multiple pages.
Function and Data Processing Controls
Function and data processing controls allow for creating separation of levels on your page.
- Grid
A grid allows you to place an object that behaves like a spreadsheet on your page. It has headings and cells, and can have push buttons, links, tabs, and more to allow for any type of navigation. A grid is similar in appearance to a scroll area and can be used instead of a single-level scroll area. Grids allow for the display of one-to-many relationships. - HTML Area
The HTML area gives you as a web designer an HTML object to insert onto a PeopleSoft page. This will provide you with all of the functionality of HTML inside of your PeopleSoft page. All standard HTML code can be written and called to in this object. Take a look at these illustrations. One shows the design of the HTML area; in the second, you can see how to call HTML object in PeopleCode. - Push Button/Hyperlink
The push button is the basic element on any page design. You can have the push button fire off PeopleCode or go to a hyperlink. It is one of the simplest objects, but can contain some of the most complex code. Here is a basic push button defined in Application Designer. - Scroll Area
A scroll area is very similar to a grid. It allows for easy navigation through rows using push buttons. Where the two differ is that in a grid you are limited to the types of controls you can place in it, but in a scroll area there is no limit. You can even place a scroll in a grid. The links and buttons that are defined in the scroll area are defined in the navigation bar. Within the navigation bar you have other settings: Find for searching, and View All so all the rows can be seen at once. Scroll areas also allow for random placement of fields; they can be side by side or one on top of another. - Scroll Bar
Scroll bars contain buttons and links for navigation, but instead of forming an area of data, the scroll bar creates a customized navigation bar. The developer must customize all navigation items and place them on the bar. The bar itself will not appear during runtime; the items that are placed on it display. - Primary Scroll Record
The primary scroll record directly relates to the SQL table and/or view that is connected to the page via the scroll levels. Each page can have only one primary scroll record, and it cannot be repeated in more than one scroll area on the same level. The parent/child relationship between the primary or parent scroll record will determine the structure of the other scroll areas on the page. Level 1 is the child to the parent, or Level 0, record. The child record, or Level 1 record, encloses what is on level 0, and Level 2 encloses what is on Level 1, and so on. It is important to note that Level 0 can have multiple records. The relationships from the primary record to the children records allow for the drill-down effect on a page. - Component BufferComponent buffer, is simply an area in memory that allows you to place data that is active in the component, or in simpler terms, the current record. There are two ways to refer to data that is in the component buffer: using a scroll path or using PeopleCode with RowSet. The fields that display data for the page controls and the rows of data associated with them are stored in the component buffer. One of the fields that contain data would be the primary scroll record. You can access the primary scroll record and direct movement through the available data with PeopleCode.
- Secondary Page
A secondary page is a control that is invisible at runtime. It allows you to associate a
secondary page with the primary or parent page. You then use a command push button or link to redirect the control to the secondary page as a pop-up page. The secondary page is used to gather data and/or display data that is not used as often as the main parent page. You use the DoModal PeopleCode function to display the secondary page.
Subscribe to:
Posts (Atom)