当前位置:网站首页>PeopleSoft warning, error, message box
PeopleSoft warning, error, message box
2022-07-21 23:52:00 【zhiyou-rookie】
Peoplesoft- Warning 、 error 、 Message box
PS Configure the prompt message path in the page :
Depending on the severity of the message , There will be different results .
- Cancel
- news
- Warning
- error
Different news , The program will enter different steps according to different severity .
- Display a message and force the cancellation of the program ;
- Display the message and continue processing
- Display messages and treat them as warnings
- Display messages and treat as errors
Messagebox,winMessage Class will not be triggered in the following types ;
- SavePreChange
- WorkFlow
- RowSelect
- SavePostChange
- Any PeopleCode event that fires as a result of a ScrollSelect (or one of its relatives) function calls, or a Select (or one of its relatives) Rowset class method.
MessageBox
syntax:MessageBox(style, title, message_set, message_num, default_msg_txt[, paramlist]);
-- Use cases
MessageBox(0, "", 1, 2, &string);
/* "0" yes buttons, Type details refer to the subscript ; "" stay web Service will be ignored ; "1" yes PS Message set number in ; "2" yes PS Message number in ; "&String" The message set number cannot be found & When message number , This content will be prompted by default ; "[paramlist]" Will dynamically replace 【 Message directory page 】 Of 【 Message text 】、【 Detailed description 】 Dynamic field in two fields %X ; Be careful : According to the news 【 severity 】 Whether the program is executed or not !! */
MessageBox Different buttons type :
Category | Value | Constant | Meaning |
---|---|---|---|
Buttons | 0 | %MsgStyle_OK | The message box contains one push button: OK. |
1 | %MsgStyle_OKCancel | The message box contains two pushbuttons: OK and Cancel. | |
2 | %MsgStyle_AbortRetryIgnore | The message box contains three pushbuttons: Abort, Retry, and Ignore. | |
3 | %MsgStyle_YesNoCancel | The message box contains three pushbuttons: Yes, No, and Cancel. | |
4 | %MsgStyle_YesNo | The message box contains two push buttons: Yes and No. | |
5 | %MsgStyle_RetryCancel | The message box contains two push buttons: Retry and Cancel. |
messagebox Different buttons Return value of type ( Numerical type ):
Value | Constant | Meaning |
---|---|---|
-1 | %MsgResult_Warning | Warning was generated. |
1 | %MsgResult_OK | OK button was selected. |
2 | %MsgResult_Cancel | Cancel button was selected. |
3 | %MsgResult_Abort | Abort button was selected. |
4 | %MsgResult_Retry | Retry button was selected. |
5 | %MsgResult_Ignore | Ignore button was selected. |
6 | %MsgResult_Yes | Yes button was selected. |
7 | %MsgResult_No | No button was selected. |
winMessage
/* Generally used for debugging and testing ;*/
winmessage(" Generally used for debugging and testing ");
Warning
/* Warnings are generally used in reports */
warning(" Warning content ");
/* Prompt the default content directly , Without interrupting the program */
Warning MsgGet(1000, 1, &String);
/*
"1000"PS Message set number in ,"1" yes PS Message number in ;"&String" The message set number cannot be found & When message number , This content will be prompted by default .
*
error
Error(" Prompt the error content ");
/* Prompt the default content directly , It interrupts the program */
Error MsgGet(11100, 180, &String);
/* "11100"PS Message set number in ,"180" yes PS Message number in ;"&String" The message set number cannot be found & When message number , This content will be prompted by default . Be careful not to contact MsgGetExplainText Use at the same time , Otherwise, the page will prompt two messages ! */
MsgGet
/* No matter how serious the message is , Just get information ;*/
&MsgText = MsgGet(30000, 2, "Message not found"," Dynamic parameters 1"," Dynamic parameters 2"," Dynamic parameters 3");
MsgGetExplainText
/* No matter how serious the message is , Just get information ; While getting messages , Message content can be dynamically replaced ;*/
&MsgText = MsgGetExplainText(message_set, message_num, default_msg_txt[, paramlist])
/* "[paramlist]" Will dynamically replace 【 Message directory page 】 Of 【 Detailed description 】 Dynamic fields in fields %X ; Be careful :【 Message text 】 Dynamic parameters cannot appear in , Otherwise, no message will be found !!! Cannot be on error Use at the same time , Otherwise, the page will prompt two messages ! */
Be careful :
MessageBox、Warning、winmessage Function does not terminate the program ;Error Will terminate the program . Of course , Depending on the message severity selected, the result will be different , for example :MessageBox If the adopted message is canceled or wrong in case of severity , It will also terminate the program .
边栏推荐
- Servlet 的编程技术
- Does Navicat 16 support native Apple silicon M1 chips| Apple user must read
- Day01 software testing foundation summary
- MySQL learning notes
- Frequently asked interview questions in software testing [3]
- JMeter之以页面形式保存测试过程数据
- Source lnsight 的使用(通过samba共享下阅读uboot)
- LR load balancer management, distributed load generator
- [CSV data file configuration of JMeter configuration component]
- 软件测试常问面试题【二】
猜你喜欢
How to write the use case of APP login function?
How to write use cases when uploading files?
JMeter read response header information / get request header
Vote | choose the database you want Navicat to support
搭建服务器内网yum仓库
Use case exercise 1
Dbeaver vs Navicat: database tool duel
In a word, how to measure the demand
JMeter之WebService(soap)请求
LAMP架构——mysql路由器(读写分离器)
随机推荐
Page redirection
Take you to easily decrypt the white box test and (Demo detailed explanation)
Special test of APP compatibility
How to test insert and update statements before execution
. WHL and Py installation method
Oracle database storage experiment management
Does Navicat 16 support native Apple silicon M1 chips| Apple user must read
Upload and download files of JMeter
Centos7配置MySQL多实例
Class inheritance experiment report
What should we do if the product is always in temporary demand
[software test model evolution]
Jenkins搭建
Pycharm 2019使用设置,让你用起来更便捷!
The solution of "the client page cannot be loaded" after running CS project with idea
JDBC访问数据库
Zhiqiu
Common assertions for judging the success of running results when using postman batch running interface
Software test interview questions and answers [1]
接口测试(1)