当前位置:网站首页>Name reference defined by peoplecode
Name reference defined by peoplecode
2022-07-21 23:50:00 【zhiyou-rookie】
peoplecode Defined name references
A defined name reference is a special expression , application peopletools The name of the definition in , for example record,page,component,business interlink wait . Grammatically , The name reference of a definition includes a reserved word to specify the type of definition , Then followed by a dot , Followed by peopletools The definition of . for example :RECORD.BUS_EXPENSE_OER Is the reference definition name BUS_EXPENSE_PER.
General situation , The defined name reference is passed to the function as a parameter . If you try to pass a string constant in a similar function to replace the defined name reference , Then you will report grammatical errors .
We can also use defined name references outside the function parameter list , For example, in comparison :
if (%Page = PAGE.SOMEPAGE) Then
/*do stuff specific toSOMPAGE*/
end-if;
In these cases , The defined name reference is the value of a string constant . Using this method to replace the string can make it easier to maintain the code when the definition name is modified .
stay peoplecode Editor , When we right-click on any definition with the cursor , We can choose to view the definition to open it .
Besides , For most definitions , If the definition specified in plaintext is not in peoplesoft application designer Created in , Then there will be an error message when saving the program .
Legal and illegal definition names
Legal definition name , Include your current Windows Alphanumeric and characters under #,@,$,_.
In some cases , Definitions also support the use of other characters . for example , There is a menu called A&M, Stored in the menu definition , Even if & Is an illegal character at the time of definition when we check the syntax or try to save peoplecode when , Illegal characters will cause errors .
There are two ways to avoid problems :
- Rename the definition so that it contains only legal characters
- Use quotation marks to enclose the definition name , for example :ITEMNAME.“A&M”
The second method is a commonly used workaround when there are illegal characters in the definition . If you use this notation , References to this definition name are not treated as string constants ;peopleTools Maintain the reference in the same way as other definition name references .
** Be careful :** If the definition name starts with a number , Then when we use the definition name reference, we must use quotation marks to reference the name . for example :Component.“1_DISCPLIN_ACTN”.
边栏推荐
- Test case management tool recommendation
- MySQL之多表关联删除/更新
- Leetcode notes 88 Merge two ordered arrays
- How to write the use case of APP login function?
- MySQL学习笔记
- Dynamic programming solution (add + sign to find the minimum sum problem)
- Chessboard coverage problem
- win7系统忘记登录密码怎么办?(不用启动盘情况下)
- JDBC access database
- Take you to easily decrypt the white box test and (Demo detailed explanation)
猜你喜欢
In a word, how to measure the demand
LVM磁盘多分区扩容(fdisk,vgdata,lvdata,df,resize2fs,lvextend,partprobe)
Pycharm 2019使用设置,让你用起来更便捷!
Day03 test case knowledge points summary (Part 2)
Day02 test case knowledge summary (Part 1)
How to do app installation test?
Page redirection
Follow the guidelines and improve yourself quickly: how to quickly turn functional testing to automated testing
JMeter之JDBC连接/操作数据库
棋盘覆盖问题
随机推荐
Analysis of cross apply and outer apply query of SQL Server - Part I
Pychart 2019 usage settings make it easier for you to use!
jmeter
Use case exercise 1
搭建服务器内网yum仓库
How to do app installation test?
LR 负载均衡器管理,分布式负载生成器
Pycharm 2019使用设置,让你用起来更便捷!
Possible solutions to the black screen before the pop-up language selection interface when using xencenter to create a virtual machine
LVS的不足之处及第四种转发类型FULLNAT
Test point exercise
JMeter之BeanShell生成随机汉字
视图
. WHL and Py installation method
Lamp架构——mysql集群及组复制(3)
测试工程师入门知识点整理
JMeter saves test process data in page form
lr负载
Does Navicat 16 support native Apple silicon M1 chips| Apple user must read
JMeter之BeanShell的变量使用方法