i want create links in oracle apex application itself. changes in development envireonment , production environment. need way determine current hostname , port. function can me?
the necessary method in apex_util-package , called host_url. parameter, can extend output:
given hostname example.com , port 5883.
function call | result ---------------------------------|----------------------------------- apex_util.host_url() | http://example.com:5883 apex_util.host_url('script') | http://example.com:5883/pls/apex/ apex_util.host_url('imgpre') | http://example.com:5883/i/ the result value imgpre depends on configuration @ application properties > user interface > general properties > image prefix.
Comments
Post a Comment