【正文】
支持LOV返回多例 下面就實(shí)現(xiàn)上述的一個(gè)User的LOV。 網(wǎng)上下載apex_super_lov插件,導(dǎo)入至Application 在Region search1中創(chuàng)建一個(gè)Page Item選擇Plugins 點(diǎn)擊下一步選擇剛導(dǎo)入的super_lov,做如下配置 1) List of values desfinition:定義LOV的數(shù)據(jù) 2) Enterable :EnterableRestrictred to Lov 支持輸入并做即時(shí)校驗(yàn),若輸入的數(shù)據(jù)不存在則跳出Lov對(duì)話框 3) Item Display amp。 Return Columns:1,2 即為當(dāng)前控件New User設(shè)置點(diǎn)擊LOV后的顯示列值與返回例值 4) Searchable Columns:1,2 支持對(duì)哪些列進(jìn)行數(shù)據(jù)查詢 5) Hidden columns:可以對(duì)某些列做隱藏 6) Map From Columns amp。 Map To Items 用來設(shè)置其它列返回給界面上的Object項(xiàng). 效果圖: . Seclect List . Report . APEX部署 Application Express程序不需要編譯、依賴Oracle數(shù)據(jù)庫的即時(shí)運(yùn)行。對(duì)于開發(fā)員來說程序的部署在系統(tǒng)上線之前的UAT過程是很常見的。由于它所有的對(duì)象都是存在于數(shù)據(jù)庫,因此就像導(dǎo)數(shù)據(jù)庫對(duì)象一樣,可以把它導(dǎo)出為一個(gè)SQL文件。當(dāng)然這里是對(duì)一個(gè)Application做導(dǎo)入做出。 如圖: 導(dǎo)入Application至WorkSpace: 點(diǎn)擊上圖的導(dǎo)入選擇需要導(dǎo)入的SQL文件,然后step by step 3. APEX之調(diào)試、常用技巧、API API 發(fā)送郵件 :( p_to = '@', p_from = 'DO_NOT_REPLY@REQS', p_subj = '' || l_who || ' Has Covered ' || l_job || ' at ' || l_client || CHR (10), p_body = ‘just for test’)。 COMMIT。 ()。 PL/SQL中執(zhí)行頁面的跳轉(zhuǎn)控制 begin ... code which can raise an exception ... ('')。 。 exception when then raise。 raise again the stop APEX engine exception when others then ...。 code to handle the exception end。 4. APEX–EBS集成 . EBS中配置APEX頁面調(diào)用 在EBS中注冊(cè)一個(gè)Function,掛到相應(yīng)的職責(zé)下就OK了,具體配置如下: 注冊(cè)APEX的Function的類型都選擇SSWA jsp 函數(shù) ?targetAppType=APEXamp。p=111:10000:::::LANGUAGE,RESP_APPL_ID,RESP_ID:[LANGUAGE_CODE],[RESP_APPL_ID],[RESPONSIBILITY_ID] 其中上文中的111是對(duì)應(yīng)APEX的Application ID,10000 ,RESP_APPL_ID…就是傳參數(shù)給APEX頁面 有了上述的傳參后,我們就能在APEX頁面中做很多的業(yè)務(wù)操作了,等同于在Form中的操作。 那如何在APEX頁面中做該頁的權(quán)限校驗(yàn)?zāi)??比如這個(gè)頁面只有某個(gè)職責(zé)才可以使用。 解決方案一: 若用戶無職責(zé)訪問該頁面,當(dāng)用戶登錄該Application時(shí)無法在該頁做任何操作,新增一個(gè)Dynamic Action :Page_Load Page_Load的Condition: Condition Type:PL/SQL Function body Returning a Boolean Expression 1: declare user_t number := 0。 begin select count(user_id) into user_t from where user_id = :user_id and responsibility_id = :resp_id。 if (user_t 0) then return false。 end if。 return true。 end。 配置Dynamic Action的True Actions 解決方案二: 若用戶無該頁面職責(zé),則直接跳轉(zhuǎn)至錯(cuò)誤頁面。錯(cuò)誤頁面page_id:1 5. Reference ID Author Name Date Version Remark 6. Open and Closed Issues for this Deliverable Add open issues that you identify while writing or reviewing this document to the open issues section. As you resolve issues, move them to the closed issues section and keep the issue ID the same. Include an explanation of the resolution. When this deliverable is plete, any open issues should be transferred to the project or processlevel Risk and Issue Log () and managed using a project level Risk and Issue Form (). In addition, the open items should remain in the open issues section of this deliverable, but flagged in the resolution column as being transferred. Open Issues ID Issue Resolution Responsibility Target Date Impact Date Closed Issues ID Issue Resolution Responsibility Target Date Impact Date此資料由網(wǎng)絡(luò)收集而來,如有侵權(quán)請(qǐng)告知上傳者立即刪除。資料共分享,我們負(fù)責(zé)傳遞知識(shí)。