Peoplecode转移到没有搜索记录的页面

时间:2017-04-04 21:45:11

标签: peoplesoft peoplecode

有没有办法使用PeopleCode" transfer"功能将(并​​填写字段)转移到组件使用INSTALLATION作为搜索记录的页面?

我们在PT 8.53上使用FSCM 9.1。

我尝试转移到的页面是AP_VOUCHER_INQUIRY 菜单路径为:应付帐款 - >查看应付帐款信息 - >优惠券 - >凭单

我有business_unit和我需要传递给它的voucher_id。在页面的Activate PeopleCode内部,我看到了:

  /*  If Business Unit and Voucher ID are being passed to this page, this code picks it out and populates the From/To fields and executes the search statement.  This code allows another page to use the TRANSFER function passing "some_record.BUSINESS_UNIT" and "some_record.VOUCHER_ID" as keys while opening Voucher Inquiry in a new browser.  */
 &bu = Unencode(%Request.GetParameter("BUSINESS_UNIT"));
 &vchr_id = Unencode(%Request.GetParameter("VOUCHER_ID"));
 &vchr_style_inq = Unencode(%Request.GetParameter("VOUCHER_STYLE_INQ"));
 &vndr_setid = Unencode(%Request.GetParameter("VENDOR_SETID"));

1 个答案:

答案 0 :(得分:4)

感谢Darryls99,我找到了一种方法:

 &url = GenerateComponentContentURL(%Portal, %Node, MenuName."ENTER_VOUCHER_INFORMATION", %Market, Component."AP_VCHR_INQ", Page."AP_VOUCHER_INQUIRY", "U");
 %Response.RedirectURL(&url | "&BUSINESS_UNIT=" | "BUPO" | "&VOUCHER_ID=" | &row.USM_ACTEXP_WRK2.VOUCHER_ID.value);