[转帖]在Peoplecode中直接调用SQL_Hadoop,ERP及大数据讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  Hadoop,ERP及大数据讨论区 »
总帖数
1
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 3265 | 回复: 0   主题: [转帖]在Peoplecode中直接调用SQL        下一篇 
huarui.ren
注册用户
等级:上尉
经验:692
发帖:56
精华:0
注册:2013-11-5
状态:离线
发送短消息息给huarui.ren 加好友    发送短消息息给huarui.ren 发消息
发表于: IP:您无权察看 2013-11-12 11:37:30 | [全部帖] [楼主帖] 楼主

SQR 本身是一门技术,通常可用来做一些batchjob或者是生成报表,而在peoplesoft中,SQR的用处也很大很灵活。在PeopleSoft中,通常有2种方式来执行一个      SQR, 比较常用的方法是Process Scheduler,同时,我们也可以使用Peoplecode直接调用一个SQR文件。

下面我们具体来谈谈如果使用peoplecode调用一个SQR文件。
设计好相应的页面后,在为按钮添加peoplecode,

Local ProcessRequest &RQST; //定义与个processrequest实例
/* Create the ProcessRequest Object */
& RQST = CreateProcessRequest();
/* Set all the Required Properties */
& RQST.RunControlID = RunControlTable.RUN_CNTL_ID;// 这里就是你的run control table里面的run control id,此项为必须的。
&RQST.ProcessType = "SQR Process"; //类型
&RQST.ProcessName = "MySqr";//定义需要执行的SQR名字


/* Set any Optional Properties for this Process */ 以下这些是可选项,诸如Email之类的,可根据需要添加。

&RQST.RunLocation = &sRunLocation;
& RQST.RunDateTime = &dttmRunDateTime;
& RQST.TimeZone = &sTimeZone;
& RQST.PortalFolder = &sPortalFolder;
& RQST.RunRecurrence = &sRecurrence;
& RQST.OutDestType = &sOutDestType;
& RQST.OutDestFormat = &sOutDestFormat;
& RQST.OutDest = &sOutputDirectory;
& RQST.EmailAttachLog = &bEmailAttachLog;
& RQST.EmailWebReport = &bEmailWebReport;
& RQST.EmailSubject = &sEmailSubject;
& RQST.EmailText = &sEmailText;
& RQST.Schedule(); //加入到schedule中,执行sqr。


不管是通过Process Scheduler还是直接使用peoplecode调用,SQR的执行与写法都是一样的,无需做任何修改。

Note:This blog entries are focus on PeopleSoft & The Releated Technical skills,I will appreciate if you use it and recommend it.




赞(0)    操作        顶端 
总帖数
1
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论