Using Push Buttons and Hyperlinks

来源:互联网 发布:曼德拉知乎 编辑:程序博客网 时间:2024/06/11 00:17
 

Using Push Buttons and Hyperlinks

 

I thought I would take the time to write out some of the capabilities of using a Push Button or a Hyperlink on your PeopleSoft Pages.

PeopleTools allows you to add buttons and hyperlinks to your web pages. A push button and a hyperlink are really the same thing. The only difference is their appearance, which you choose when you create the button.

When you create push buttons you have several different options for the type that you will use. The most commone type of Push button is a PeopleCode push button. PeopleCode push buttons are attached to a field on a record definition, just like an edit box on a page. You must place your PeopleCode program within the FieldEdit and/or FieldChange event of the Record PeopleCode.

When push button is selected, FieldEdit or FieldChange PeopleCode that has been attached to that field will be performed.

You can also choose other actions for your push button. You can link a push button or hyperlink to any one of nine different actions:

·  External Link

·  Internal Link

·  Page Anchor

·  PeopleCode command

·  Process

·  Prompt Action

·  Scroll action

·  Secondary page

·  Toolbar action

Push buttons allow the application developer the flexibility to trigger processing based on a user request by clicking the push button or hyperlink.

There are many uses for hyperlinks and push buttons. For example,push buttons can be used to trigger an email, perform data inquiries, assign defaults or accomplish whatever you want.

Just remember that push buttons are attached to fields on a page. It can be any field, on any record definition. However, most buttons and hyperlinks are attached to derived/work records.

Event Sequence for Push Buttons
When a push button is selected, the component processor determines the field where it is attached. Any FieldEdit PeopleCode attached to the field is then executed. Once the FieldEdit executes successfully, FieldChange PeopleCode is triggered.

Steps to create a Push Button or Hyperlink:

1. Add your Push Button or Hyperlink control to the page and attach it to a record / field.

2. On the Page Field Properties, select the action for the button and set its properties.

3. If you are using PeopleCode, place your Program within the FieldEdit/FieldChange event(s). When the push button is selected, the Component processor determines the field where it is attached, then any FieldEdit and FieldChange PeopleCode attached to the field is executed.

原创粉丝点击