20230830 - 감사 Audit 컬럼

-- create tables

create table tbl_a (

    id                             number generated by default on null as identity 

                                   constraint tbl_a_id_pk primary key,

    col_a                          varchar2(4000 char),

    col_b                          varchar2(4000 char),

    created                        date not null,

    created_by                     varchar2(255 char) not null,

    updated                        date not null,

    updated_by                     varchar2(255 char) not null

)

;



-- triggers

create or replace trigger tbl_a_biu

    before insert or update 

    on tbl_a

    for each row

begin

    if inserting then

        :new.created := sysdate;

        :new.created_by := coalesce(sys_context('APEX$SESSION','APP_USER'),user);

    end if;

    :new.updated := sysdate;

    :new.updated_by := coalesce(sys_context('APEX$SESSION','APP_USER'),user);

end tbl_a_biu;

/


-- load data

 

-- Generated by Quick SQL Wednesday August 30, 2023  09:18:34

 

/*

tbl_a

  col_a

  col_b


# settings = { semantics: "CHAR", auditCols: true, language: "EN", APEX: true }

*/


20230830 - Local Timezone

select trunc(cast(from_tz(cast(SYSDATE as timestamp ), to_char(systimestamp, 'TZR')) at time zone 'Asia/Seoul' as date)) from dual


select trunc(cast(from_tz(cast(SYSDATE as timestamp ), to_char(systimestamp, 'TZR')) at time zone 'Asia/Kuala_Lumpur' as date)) from dual

20230830 - email 이메일 추출 REGEXP_SUBSTR(tags,'[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}')

 REGEXP_SUBSTR(tags,'[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}')

20230520 - Static Resources

https://blogs.oracle.com/apex/post/announcing-oracle-apex-static-resources-on-content-delivery-network


https://blog.cloudnueva.com/apex-static-files


Updates for later APEX Versions

April 7, 2019:  APEX 19.1 static resources are now available at https://static.oracle.com/cdn/apex/19.1.0.00.15/

November 19, 2019:  APEX 19.2 static resources are now available at https://static.oracle.com/cdn/apex/19.2.0.00.18/

April 23, 2020:  APEX 20.1 static resources are now available at https://static.oracle.com/cdn/apex/20.1.0.00.13/

October 21, 2020:  APEX 20.2 static resources are now available at https://static.oracle.com/cdn/apex/20.2.0.00.20/

May 12, 2021: APEX 21.1 static resources are now available at https://static.oracle.com/cdn/apex/21.1.0/

November 4, 2021: APEX 21.2 static resources are now available at https://static.oracle.com/cdn/apex/21.2.0/.

May 3, 2022: APEX 22.1 static resources are now available at https://static.oracle.com/cdn/apex/22.1.0/. 

November 10, 2022: APEX 22.2 static resources are now available at https://static.oracle.com/cdn/apex/22.2.0/. 

May 17, 2023: APEX 23.1 static resources are now available at https://static.oracle.com/cdn/apex/23.1.0/. 

20230511 - Sticky Header

1. 최상단에 버튼 리전 생성

Region - Identification - Title : BTN Header

Type : Static Content

Appearance - Template : Buttons Container

Advanced - Static ID : SID_BTN_HEADER



2. 두 개의 버튼 생성 및 위치 지정

3. 아래로 이미지 아이템

4. 그 아래로 Static Contents



5. CSS


.t-Header-branding {
    display: none;
    visibility: hidden;
}

#SID_BTN_HEADER {
    position: fixed;
    z-index: 2;
    --ut-button-region-border-radius: 0;
    --ut-button-region-box-shadow: none;
    --ut-button-region-margin: 0rem;
    border-width: 0;
    border-top-width: var(--ut-button-region-border-width,1px);
    left: 0;
    right: 0;
    background-color: transparent;
}






20230421 - 레드우드 테마 사용, 읽기전용 항목 사이즈 자동 변경 원래대로.

읽기 전용항목이 자동으로 굵은 Bold로 변경이 되어버려 원래 사이즈로 설정







style="font-weight: normal;"


참고

https://forums.oracle.com/ords/apexds/post/read-only-fields-to-normal-font-3480

20230421 - 컨펌 다이얼로그 Confirm Dialog





주문을 요청하시겠습니까?<br><br>
<span class="order-confirm-title">메뉴건수: </span><span class="order-confirm-desc">&P15_CNT.건</span><p></p>
<span class="order-confirm-title">주문금액: </span><span class="order-confirm-desc u-bold u-danger-text">&P15_TTL.</span><p></p>
<span class="order-confirm-title">배달방법: </span>
{case P15_DELIVERY/}
{when D/}
<span class="order-confirm-desc u-bold u-success-text">주소배달</span><p></p>
<span class="order-confirm-desc">이곳은 주소를 표시할 예정입니다.</span>
{when T/}
<span class="order-confirm-desc u-bold u-success-text">매장픽업</span>
<span class="order-confirm-desc">이곳은 주소를 표시할 예정입니다.</span>
{endcase/}






참고
https://blog.cloudnueva.com/apex-confirmation-alert-dialogs
https://blogs.oracle.com/apex/post/alert-and-confirm-dialogs-in-oracle-apex-212

20250315 - 글로벌 변수 Global Variables

G_USER Specifies the currently logged in user. G_FLOW_ID Specifies the ID of the currently running application. G_FLOW_STEP_ID Specifi...