設為首頁收藏本站

艾歐踢論壇

 找回密碼
 立即註冊

QQ登錄

只需一步,快速開始

搜索
熱搜: 活動 交友 discuz
查看: 1244|回復: 0
打印 上一主題 下一主題

Custom menu calling a Procedure

[複製鏈接]
跳轉到指定樓層
樓主
發表於 2017-6-11 20:46:02 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
Custom menu calling a Procedure
I have created a custom menu in project transactions (tbwProjectTransaction). I want to call a procedure, with input parameter projectsequencenr, when clicking on this custom menu. The procedure is in IFSAPP schema and I have granted IFSSYS access. I have also added lu and module to the procedure. The PL/SQL properties i call in the custom menus is

i_hWndFrame.tbwProjectTransaction.DbPLSQLTransaction(tbwProjectTransaction.colnProjectTransactionSeq,"&AO.My_procedure(:i_hWndFrame.tbwProjectTransaction.colnProjectTransactionSeq)")


But, i just get errors from IFS saying

Ifs.Fnd.FndSystemException: Unexpected error while calling server method AccessPlsql/Invoke ---> Illegal SQL rejected: ifs.fnd.services.plsqlserver.service.security.RejectedSqlException: ILLEGALPROC:Illegal procedure: HWNDFORM.TBWPROJECTTRANSACTION.COLNPROJECTTRANSACTIONSEQ


I guess there must be something wrong with the formula that calls the procedure. Can you help me find the correct call?


running on IFS 7.5

Two things.  
First the Procedure must be in a package and the module and lu lines must be some of the first lines in the package spec.  
Second, you have to refresh dictionary cache before the system will recognize the new code as safe to execute.

To be able to call your own database code from the EE client, either a package or a view, you need to grant access to the IFSSYS user.


This is done by calling the method Installation_SYS.Grant_Ifssys. After that you also of course need to grant access to the users that should be using it, but you should be able to use Solution Manager and the Security screens for that.





分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 轉播轉播 分享分享 分享淘帖
回復

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 立即註冊

本版積分規則

小黑屋|Archiver|手機版|艾歐踢創新工坊    

GMT+8, 2024-5-17 00:22 , Processed in 0.339505 second(s), 21 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回復 返回頂部 返回列表