Pointers for developing selfservice in PeopleSoft

本文介绍了在PeopleSoft中实现自服务功能时需要关注的角色设置、用户配置、页面开发以及组件和应用包的使用等关键点。通过合理设置角色权限、管理用户配置、定制自服务页面和利用组件及应用包进行代码复用,可以有效提升自服务模块的灵活性和效率。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Pointers for developing selfservice in PeopleSoft

More and more companies use selfservice funcionality. PeopleSoft deliveres some out-of-the-box selfservice functionality, but what if you want to develope some yourself?

Here are some pointers to get you on the right track:

Roles
One of the most distinctive trademarks of selfservice functionality are the different roles an enduser can have, for instance:
- employees enter / adjust their own specific data
- managers can approve changes made by employees
- functional managers can setup/change configuration items, correct entered data and support employees and managers

Make sure you set up your permission lists & roles in PeopleSoft according to the roles you define for your selfservice customization.

User profiles
PeopleSoft users the OperatorID (OPRID) for logging on a user. On the other hand, the employee nr (EMPLID) is used when saving transactional user data. The link between the OPRID and the EMPLID of a user is made in the User Profile page. However, PeopleSoft does not force you to specify an EMPLID for every OPRID. You can even add the same EMPLID to different OPRIDs. This can cause errors in a self service module. In order to prevent this, create a process that checks for these things and schedule it daily.

Developing Self Service pages
The develoment of a self service page differs from a ‘normal’ page. Normally, you create a page object and put it into a component object. If you need a second scree, you define a second page and put it in a second component. In selfservice screens however, the information on a screen can be almost identical, but differs a bit depending on the role of the user. An example:
- an employee wants to request an absence of leave, so a page has to be created with all relevant input fields and a button to request the absence of leave.
- the corresponding manager has to approve or deCline the request. A page has to be available identical to the page where the use has entered the request, only the fields have to be display-only and the manager needs a button to approve and a button to decline.
- the functional manager at least must have the ability to look at the request (display-only) or even may have the ability to correct it (input fields available).

When using the normal way of creating a screen, you will have to create three more or less identical pages and three new components. It is easier however to create one page with all necessary fields / buttons for all roles, and put that page into three components (one for every role). With the use of PeopleCode you can then finetune the page for each role.

Using Component and Application Package PeopleCode
By using Component PeopleCode you can determine which fields / buttons are available based on the role. You can then use Application Package PeopleCode to define code that can be shared amongs all the components.

For instance, you can define a method called DisplayPage which accept the name of a component as a variable. In this method you can turn field on or off based on the given parameter. In the Component PostBuild event of each of the three components you can call this method providing the name of the component it is called from.

In the same way you can define for instance input checks in an Application Package and call it with Component Field Peoplecode from the relevant components.

 Viewed 14728 times by 2761 visitors


In VGA (Video Graphics Array) graphics, restoring colors typically involves sending pixel data to the display using memory-mapped I/O. Pointers and arrays play a crucial role in this process: 1. **Arrays**: You can create an array of bytes representing each pixel's color value, where each element corresponds to a specific color component (RGB, for example). The array would store red, green, and blue intensities for each pixel. ```cpp unsigned char colorArray[ScreenWidth * ScreenHeight][3]; ``` 2. **Pointers**: Instead of directly accessing elements, you'll often use pointers to access and modify these values more efficiently. For instance, you could have separate pointers for each color channel: ```cpp unsigned char* redPointer = colorArray; unsigned char* greenPointer = redPointer + ScreenWidth * ScreenHeight / 3; unsigned char* bluePointer = greenPointer + ScreenWidth * ScreenHeight / 3; ``` 3. **Mapping Memory**: In VGA, you need to map video memory (VRAM) to your program's memory space so that the hardware can read and write directly from there. This usually involves setting up memory addresses with BIOS calls. 4. **Sending Data**: To restore colors, loop through the pixels, load their corresponding RGB values from the array through the pointers, and send them to the VGA controller's addressable memory. Here's a simplified example in C/C++: ```cpp for (int y = 0; y < ScreenHeight; y++) { for (int x = 0; x < ScreenWidth; x++) { unsigned char r = colorArray[x][0]; unsigned char g = colorArray[x][1]; unsigned char b = colorArray[x][2]; // Send the pixel data to VRAM at the appropriate address vram_address(x, y) = r | (g << 8) | (b << 16); } } ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值