Salesforce按钮,页面,后台类
小译丶
这个作者很懒,什么都没留下…
展开
-
Salesforce URL按钮重写
Id 放对象Name _lkid 放对象Idhttps://cs31.salesforce.com/a1N/e?CF00Np00000016oGy={!StoreInterManage__c.Name}&CF00Np00000016oGy_lkid={!StoreInterManage__c.Id}&RecordType=012p00000008uhR原创 2018-03-06 11:22:00 · 431 阅读 · 0 评论 -
Salesforce自定义按钮调用apex类,使用webservice
按钮中需要写{!REQUIRESCRIPT("/soap/ajax/35.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/35.0/apex.js")}var result = sforce.apex.execute("TransformAccount","transformAccount",{accId:'{!Account.Id}'}); sf...原创 2018-03-06 11:16:44 · 1087 阅读 · 0 评论 -
Salesforce自定义按钮跳转到新界面,url传值,参数直接用?带出
后台接取前台参数String id = apexpages.currentPage().getParameters().get('id');按钮中写法var url = '/apex/页面名?id={!order.Id}';window.open(url);例子:测试类中给参数赋值Apexpages.currentPage().getParameters().put('accId',acc.Id...原创 2018-03-06 11:11:45 · 2896 阅读 · 1 评论 -
Salesforce在自定义按钮中写查询,插入,更新
{!REQUIRESCRIPT("/soap/ajax/35.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/35.0/apex.js")}if('{!Opportunity.GYZ_IsCheck__c}' == false){if({!Opportunity.Probability} >= 90) { var opp= n...原创 2018-03-06 11:25:40 · 1134 阅读 · 0 评论 -
Salesforce Apex后台类控制页面跳转
public PageReference Save(){ PageReference pageRef = new PageReference('/801/o'); return pageRef; 或者 return new Pagereference('/'+this.o.Id);}原创 2018-03-06 11:33:14 · 1963 阅读 · 0 评论 -
Salesforce 使用StandardController 在后台类中获取当前记录Id
public class AddressInfoController { //带有特定参数的构造函数 public AddressInfoController(ApexPages.StandardController controller) { contractId = controller.getId(); //获取记录 controller.getRecord();...原创 2018-03-06 11:36:32 · 1116 阅读 · 0 评论 -
Salesforce 自定义按钮提交审批,获取简档名,判断查询的list是否为空,获取url参数
按钮中提交审批锁定记录{!REQUIRESCRIPT("/soap/ajax/35.0/connection.js")}{!REQUIRESCRIPT("/soap/ajax/35.0/apex.js")}var request = new sforce.ProcessSubmitRequest(); request.objectId="{!Opportunity.Id}"; var pr...原创 2018-03-06 11:39:09 · 605 阅读 · 1 评论