Skip to Main Content
Feature Request FR-3826
Product Area Page Components
Status ROADMAP

76 Voters

Dynamic Action Action Type to Navigate

greg Public
· Jun 5 2024

Idea Summary
An Action type that looks like the link builder 
Ideally with the addition of grabbing client side values from page items

Use Case
I want to use a dynamic action to navigate. Perhaps open a modal page or redirect or open in new tab.

I want to be able to click a link or button and then navigate to a page using client side data in the URL.

Preferred Solution (Optional)
While it is possible to use apex.navigation a more declarative approach for a somewhat common requirement would be preferred.

I imagine it looking similar to how buttons, list items, breadcrumbs, branches have a target property that is the bundling of the Link Builder attributes. Let the user define the page item parameters to pass and then have the code in the dynamic action automatically get their values.

apex.server.process already does this part where it grabs the values off the page

Even if client side values are not available, it would be nice to have a declarative way to navigate using a dynamic action.

This is currently on the roadmap for a future release of Oracle APEX.

Comments

Comments

  • philipp hartenfeller OP 1.6 years ago

    This should be in native APEX! And it also should be able to just-in-time prepare the URL and not just statically when the page loads so that it works for dynamic targets.

    Until this is native, we have a free plug-in for that: https://apex.world/ords/f?p=100:710:::::P710_PLG_ID:UNITEDCODES_REDIRECT

  • rafael trevisan OP 1.5 years ago

    I also want this! This is actually very common use case, to navigate to somewhere else using Dynamic Action. Right now, every time I need to do that, I have to create a hidden page item to compute the apex_page.get_url and then use with the js api, very boring indeed.

  • radwan.salamehh OP 1.2 years ago

    instead of using build URL a dynamic action would be really useful: 

     BEGIN
    :P1_URL := APEX_UTIL.PREPARE_URL(
    p_url => 'f?p='||:APP_ID||':120:'||:APP_SESSION||'::NO::P120_PAGE_TO_GO:&P112_CURRENT_PAGE.',
    p_checksum_type => 'SESSION');
    END; 
    

    then

     window.location = apex.item('P1_URL').getValue()
    
  • uvilton OP 1 years ago

    It is a good idea

  • milowski OP 10 months ago

    And now with 24.2 changed behavior it is even more difficult then ever.

  • nicolas pilot OP 10 months ago

    @milowski in APEX 24.2, you should use apex.navigation.redirect and not window.location.href

  • nicolas pilot OP 10 months ago

    For info, United Code has a free (Commercially Supported) plugin for that : UC Redirect
    But Yes, this should be native to APEX !!!

  • sree.chandraa OP 7 months ago

     Thank you all ! I've been breaking my head over this for the past couple of days. Worked finally (even though it's a pain to do a workaround for something which is a very common use case)

  • nicolas pilot OP 7 months ago

    Hi Team, I’m a bit surprised this idea still isn’t on the roadmap.
    AI features and fancy workflows are great — but let’s not overlook the basics. Foundational improvements should come first.

  • jayson hanes Admin OP 7 months ago

    Nicholas, If there is a solid non-declarative way to achieve a thing, or a plug-in option, it seems natural that implementing as declarative would be a lower priority than something else that cannot be.

  • carl2 OP 7 months ago

    @jason : you have this wrong.

    If this is something lots of users of APEX need, APEX should provide it.
    Think of new people trying APEX out and not finding it.

    You're missing new customers this way.
    APEX should do its utmost best to gain new users

  • jayson hanes Admin OP 6 months ago

    @carl2 your opinion of my statement is wrong here - I don't disagree with you.

  • d.arboittedossantos OP 6 months ago

    We implement various workarounds in our apps to navigate around modals, and APEX components don't seem to behave consistently—such as action buttons on cards or content rows—when triggering events.

    Having this idea implemented would be great.

  • greg OP 6 months ago

    My (new) favorite way to handle this is to just submit the page and do an immediate branch. Works perfect. No URLs to figure out. No session state to submit. No checksums to compute.

  • fac586 OP 6 months ago

    @greg My (new) favorite way to handle this is to just submit the page and do an immediate branch. Works perfect. No URLs to figure out. No session state to submit. No checksums to compute.

    Branching to dialog pages is not supported.