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

65 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 idea is open.

Comments

Comments

  • philipp hartenfeller OP 12 months 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 11 months 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 7 months 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 5 months ago

    It is a good idea

  • milowski OP 3 months ago

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

  • nicolas pilot OP 3 months ago

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

  • nicolas pilot OP 3 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 38 hours 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)