tailieunhanh - Pro Oracle Application Express P2

Report Pagination Style Different report pagination styles will affect the performance in displaying the report. For example, some of the pagination styles will display something like “Row Ranges X to Y of Z,” If you do not need to display how many total rows are returned from the query, you should choose to use a pagination style that displays only “Row Ranges X to Y.” | 22 CHAPTER 1 DEVELOPMENT BEST PRACTICES Report Pagination Style Different report pagination styles will affect the performance in displaying the report. For example some of the pagination styles will display something like Row Ranges X to Y of Z If you do not need to display how many total rows are returned from the query you should choose to use a pagination style that displays only Row Ranges X to Y. Error and Exception Handling Your APEX application can use many different anonymous PL SQL blocks functions procedures and packages when it is executing. If an error or exception occurs during the execution of some code you need to be able to handle that error or exception gracefully in such a fashion that flow of execution by the APEX engine is not broken. For example the following code catches the exception and sets the value of an application item declare v_salary INTEGER begin select salary into v_salary from emp where empno P1_EMPNO return v_salary APP_ERROR_MSG null exception when no_data_found then APP_ERROR_MSG Could not find the employee record. end You can then display the application item on the page in an HTML region using this syntax APP_ERROR_MSG. You would then create a branch on the page to branch back to itself if the value of the application item is not null thereby enabling the user to see the error and correct it. Packaged Code APEX allows you to write SQL and PL SQL code directly in a number of places via the Application Builder interface. For example suppose you create the following after-submit process in your login page to audit that a user logged in to the application. CHAPTER 1 DEVELOPMENT BEST PRACTICES 23 begin insert into tbl_audit id user_name action values APP_USER Logged On end Now while this would work it also means that if you ever want to modify the logic of the auditing you need to change the application. For example notice that you aren t currently storing a timestamp of when the audit action was performed. To .

TÀI LIỆU LIÊN QUAN
TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.