Skip to Main Content
Feature Request FR-2501
Product Area Page Components
Status DELIVERED

48 Voters

Pre/Post Text Item Actions

nicolas pilot Public
· May 10 2022

Idea Summary
Add functionality to easily allow developers to add “actions” on Items in the Pre & Post Text

Use Case
When building a user-friendly App, we regularly need an “add” and “edit” functionality for an input field. For example here, when a user is creating a new Job, we would like to allow him/her to easily create or edit a Job Group.
For that, we use the “Pre Text” and “Post Text” with something like that
 

+ a lot of manual codes (JS + PL/SQL) to open the “Job Group” page etc…

I know that plugins exist for that, but it would be very nice to have built-in functionalities in APEX for that.
 

Preferred Solution
New attributes on Items : 
 

  • Post Text : Target (URL / Page / Javascript / None)
  • Post Text : Icon
  • Post Text : Custom Attributes
  • Pre Text : Target  (URL / Page / Javascript / None)
  • Pre Text : Icon
  • Pre Text : Custom Attributes
This has been delivered in Oracle APEX 22.2!

Comments

Comments

  • maxime tremblay OP 3.1 years ago

    I think it would be easier, better and more flexible to be able to position a button inside the pre/post position of an item

  • nicolas pilot OP 3.1 years ago

    Yes, that would be awesome, but the button should be displayed like in the screenshot…

  • ino.laurensse OP 3.1 years ago

    Good idea, also the button option. 

    I've used both methods. For the button option I've used jQuery  .insertAfter() which doesn't always work.

  • oracle.shohag OP 3.1 years ago

    • Go to Item Property > Advanced > Post Text

    <a href="f?p=&APP_ID.:60:&APP_SESSION.:::60::" class = "fa fa-plus"></a>
    
  • fac586 OP 3 years ago

    There is a significant lack of joined-up thinking in this area of the Universal Theme.

    When default Button Builder mark-up

    <button type="button" title="Find" aria-label="Find"
        class="t-Button t-Button--noLabel t-Button--icon">
      <span aria-hidden="true" class="t-Icon fa fa-search"></span>
    </button>
    

    appears in the Pre/Post Text properties of page items where the Item Pre/Post Text template option(s) are set to Display as Block, the result should be a button seamlessly integrated into the item, identical to the built-in activation button on Popup LOVs.

  • indrek OP 2.9 years ago

    Can this plug-in help or at least give hint how to make built-in feature 

    https://github.com/RonnyWeiss/APEX-Items-with-APEX-Buttons

  • jayson hanes Admin OP 2.9 years ago

    @indrek, it's not that we don't know how to do it :) .. besides, that guy Ronny is now on the APEX Development Team! This idea is set to be considered for a future release of APEX.

  • vincent morneau Admin OP 2.6 years ago

    In APEX 22.2 this is possible with the new Item Container region template! It comes with 3 main positions:

    • Button Start
    • Item
    • Button End

    Try it here: https://apex.oracle.com/pls/apex/r/apex_pm/ut/item-container 

    It's also possible to remove the gap between the item and button with the template options.

  • nicolas pilot OP 2.6 years ago

    Excellent Vincent, thank you very much for this.

    Just a small thing, when playing with this “Item container” region, I can see that the default margin (top & bottom) is different than the item margin…

     

    When changing the top & bottom margin to “small”, it is ok…