PageReference and ApexPages
来源:互联网 发布:淘宝网王俊凯同款手表 编辑:程序博客网 时间:2024/06/06 04:57
PageReference
ApexPages
PageReference page = Page.Mypage;
Test.setCurrentPage(page);
page.getParameters().put('Action', 'View');
PageReference pg = Page.Mypage2;
pg.getParameters().put('Action', ApexPages.currentPage().getParameters().get('Action'));
ApexPages.currentPage().getParameters().get('Action') == 'View'
ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.ERROR, Label.ERR004));
page
<apex:page standardController="Object_c" action="{!getInfo}" extensions="Controller" showHeader="false" sidebar="false" standardStylesheets="false" >
apex
public Controller(ApexPages.StandardController sc){
sc.addFields(new List<String>{ 'Field1__c','Field2__c' });
obj= (Object_c)sc.getRecord();
}
- PageReference and ApexPages
- PageReferenceのsetRedirect(false)
- ApexPages.currentPage().getParameters().get('XXX')用法
- salesforce pagereference 和接收url上传递的参数
- pagereference return to edite page or any view
- Salesforce中为服务器分页Pagination编写测试类-Test Class For ApexPages.StandardSetController, hasNext, next etc.
- " and '
- $* and $@
- AND
- AND
- & and &&
- ""and ‘’
- GetMessage () and PeekMessage () and SendMessage () and PostMessage ()
- eval and $()/``and typeset and xargs
- # and #line and __FILE__ and __LINE__
- 这样的东东怎么翻译:and and and And?
- Metalearning and ...?
- .And
- 端口转发和端口映射
- ORA-12516: TNS: 监听程序无法找到匹配协议栈的可用句柄解决方法
- [转] Java中创建对象的5种方式
- ES6(一) let和const命令
- XML Schema 学习(随笔一)
- PageReference and ApexPages
- [pta]02-线性结构3 Reversing Linked List (25分)
- #学志#vue入门01
- jquery实现时钟
- Docker中ubuntu安装vim
- 全球同服
- 线性表链式存储_调试_链表模板库封装思想
- 谈谈8583报文的使用及测试
- [PRML] Bayesian Learning 贝叶斯学习方法