You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在APEX_ITEM.DATE_POPUP中默认填充SYSDATE?

How to Default APEX_ITEM.DATE_POPUP to SYSDATE

Got it, let's tweak your code to get SYSDATE as the default value for your date popup. Right now your third parameter uses ISSUED_DATE as the pre-filled date—we just need to adjust that part to prioritize SYSDATE when needed.

Here's the modified code you can use right away:

APEX_ITEM.DATE_POPUP (2, ROWNUM, NVL(ISSUED_DATE, SYSDATE), 'dd-mon-yyyy')

Let me break this down clearly:

  • The third parameter in APEX_ITEM.DATE_POPUP controls the default displayed date. Using NVL() here gives us flexibility:
    • If ISSUED_DATE has a non-null value, it will still show that as expected.
    • If ISSUED_DATE is null, it will fall back to SYSDATE as the default selection.
  • If you want every instance to default to SYSDATE (ignoring ISSUED_DATE entirely), you can simplify it even more:
    APEX_ITEM.DATE_POPUP (2, ROWNUM, SYSDATE, 'dd-mon-yyyy')
    

Quick sanity check: Your date format mask 'dd-mon-yyyy' works perfectly with SYSDATE—APEX will automatically format the system date to match this pattern for the popup.

内容的提问来源于stack exchange,提问作者vg dutt

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.14 06:25:12