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 property Set component Changed and save the page. Now go on the online page, make some changes in field value and save the page.

What do you think will happen with that field value?

Open online page again and you will find that field value is not changed. Why?
Because Set component Changed property of field helps component buffer to check whether any change in that value has happened. If this property is unchecked any change in the field is ignored and that field in component buffer stays unchanged.

2. Disable saving page component property:

In component properties under Use tab there is a property checkbox named Disable saving page. After we check this checkbox, the save toolbar button in component properties under internet is automatically disabled, i.e delivered save button functionality can not be used after that. This property is very useful in removing that annoying error on page when we move out of the component without saving which says You have unsaved data on the page. Click OK to go back and save or click Cancel to continue without saving.

Don't worry still you can use DoSave() and DoSaveNow() functions using peoplecode to save the data in component.

This property has following significance:

  1. To remove the unsaved data prompt while moving away from component without saving.
  2. To disable the delivered save but we can use other toolbar buttons.

3. Search Edit Record field property for Search keys:

In record field properties when we select Search key option, Search edit is enabled to be selected.

Actually SetSearchEdit() function is for limiting the user search to '=' and to 'IN' operators.

e.g. if you want to search the data of Employee ID '12345' so on the search page you have to enter the whole Employee ID '12345'. 
If you will think that after entering only '123' in search field will enlist all the employee IDs starting with '123', search edit set on employee ID will prevent this from happening and search will give some error.

So now your search is limited to '=' or 'IN' only as: 
EMPLID = '12345' 
or 
EMPLID IN ('12345')

If you want to remove search edit from some field, simply use function ClearSearchEdit() on SearchInit for this. Or for enabling search edit, use function SetSearchEdit().

4. DiscardRow() and StopFetching() peoplecode functions:

DiscardRow() and StopFetching() are the delivered peoplecode functions which can only be used in RowSelect event.

DiscardRow is not to select a particular row based on some certain condition but continues with the next row in RowSelect.

But unlike the DiscardRow, StopFetching stops the execution of RowSelect based on some certain condition which we provide in peopleode on RowSelect event. From the definition of StopFetching function, we can understand that it acts like and error in RowSelect event.

5. Accessing the related display field in grid on peoplesoft pages:

There could be chances that we are required to access the related display field on grid. If there is only one record field as related display then its fine, no problem there. But it is complicated when there are multiple related displays from the same record fields.

Let us say that in one of the grid we want to show the names for JOB.SUPERVISOR_ID and JOB.EMPLID and these fields are display control fields and related fields for both is PERSON_NAME.NAME so referencing the related field of JOB.SUPERVISOR_ID will be an issue with the grid referencing syntax as it will reference the related field of JOB.EMPLID also.

Now here is the syntax for the same:

Let row of that field is &Grid_Row

Now accessing the related field of JOB.SUPERVISOR_ID:
&Grid_Row. JOB.SUPERVISOR_ID.GetRelated (PERSON_NAME.NAME).value;

Now accessing the related field of JOB.EMPLID:
&Grid_Row. JOB.EMPLID.GetRelated (PERSON_NAME.NAME).value

一些peoplecode小技巧平【二】的更多相关文章

  1. PHP开发小技巧②—实现二维数组根据key进行排序

    在PHP中内置了很多对数组进行处理的函数,有很多时候我们直接使用其内置函数就能达到我们的需求,得到我们所想要的结果:但是,有的时候我们却不能通过使用内置函数实现我们的要求,这就需要我们自己去编写算法来 ...

  2. android小技巧(二)

    一.如何控制Android  LED等?(设置NotificationManager的一些参数) 代码如下: final int ID_LED=19871103; NotificationManage ...

  3. Swift开发小技巧--扫描二维码,二维码的描边与锁定,设置扫描范围,二维码的生成(高清,无码,你懂得!)

    二维码的扫描,二维码的锁定与描边,二维码的扫描范围,二维码的生成(高清,无码,你懂得!),识别相册中的二维码 扫描二维码用到的三个重要对象的关系,如图: 1.懒加载各种类 // MARK: - 懒加载 ...

  4. 一些peoplecode小技巧【一】

    1. Get the description of the translate value: No need to write SQLEXEC on PSXLATITEM passing fieldn ...

  5. MAC使用小技巧(二)

    一.Safari-->广告数量不足 --原因:DNS被拦截,被恶意推送广告. ----------------------------- [ 思路 ] 修改hosts文件 $ cd /etc $ ...

  6. js小技巧(二)

    //移动的图层,拖动 1.<span style='position:absolute;width:200;height:200;background:red' onmousedown=Mous ...

  7. C#一些小技巧(二)

    教你们怎么改配色方案,因为本人智障了很久,每次想改颜色的时候都会看到一大圈的选项,难以琢磨,但是智障了那么久终于被我找到了所有的关联. 首先,要告诉你们的是,其实C#里面要改的东西只有那么几个,但是注 ...

  8. 玩转CSLA.NET小技巧系列二:使用WCF无法上传附件,提示413 Entity Too Large

    背景:由于系统需要展示图片,客户上传图片到本地客户端目录,然后在数据库中存储本地图片地址,和图片二进制数据 错误原因:我是使用CSLA的WCF服务,使用了数据门户,WCF协议使用的是wsHttpBin ...

  9. Java开发小技巧(二):自定义Maven依赖

    前言 我们在项目开发中经常会将一些通用的类.方法等内容进行打包,打造成我们自己的开发工具包,作为各个项目的依赖来使用. 一般的做法是将项目导出成Jar包,然后在其它项目中将其导入,看起来很轻松,但是存 ...

随机推荐

  1. linux下安装nginx、pcre、zlib、openssl

    1.安装nginx之前需要安装PCRE库的安装  最新下载地址   ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/ tar –zxvf p ...

  2. 支付宝&腾讯的OpenID之路

         10年前上网很简单,那时我只用记住三个账号:QQ.21cn邮箱和中国联众.10年后的今天,应用或服务层次不穷:盛大网游.淘宝.豆瓣.人人.微博……太多的账号和密码我已经没办法记住.如果有一个 ...

  3. Realtek 8168 安装 VMware ESXi 提示没有驱动

    设备描述 Realtek RTL8168/8111 PCI-E Gigabit Ethernet Adapter   第一次安装提示: vmware esxi 5.5 install no netwo ...

  4. bitmap size exceeds VM budget

    bitmap size exceeds VM budget we can avoid this error by the following parts:1  its not how much ima ...

  5. Sqoop导数据出现的问题

    sqoop导数据卡住在INFO mapreduce.Job: Running job: job_1447835049223_0010 查yarn日志全是: INFO org.apache.hadoop ...

  6. 内网安装ubuntu包

    到http://packages.ubuntu.com搜索包下载下来,  再安装.

  7. CODESOFT 2015中的二维码该怎样生成

    由于二维条码具有储存量大.保密性高.追踪性高.抗损性强.备援性大.成本便宜等特性,其应用 渐趋广泛,因此二维码的制作对于CODESOFT条码设计软件的用户来讲可谓司空见惯.我们最常见的二维码要数QR码 ...

  8. selenium 速查手册 python版

    1.安装与配置 pip install selenium 基本使用selenium都是为了动态加载网页内容用于爬虫,所以一般也会用到phantomjs mac下如果要配置phantomjs环境的话 e ...

  9. Java后台工程师面试杂记——不跳不涨工资星人跳槽经历

    经过接近一个月的时间,完成换工作这件“小事”,前后总计面试了多家公司,最后也没接到几个offer,不过最终总算尘埃落定,就对这个过程进行一个总结吧. 在某互联网公司工作了近一年的时间,但是频繁的业务需 ...

  10. HTTP权威指南----缓存

    缓存的处理步骤: 1.接收----缓存从网络中读取抵达的请求报文2.解析----缓存对报文进行解析,提取出URL和各种首部3.查询----缓存查看是否有本地副本可用,如果没有,就获取一份副本(并将其保 ...