Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Create Custom Duplicate Row in Custom Menu Action

user10761694Jan 19 2023 — edited Jan 20 2023

I need to add a custom Duplicate Row to the custom menu action menu in Interactive grid.

1. How do I invoke duplicate row action programmatically, from a custom menu action that I have created on my interactive grid?
Here is example of my custom menu action that I created by adding the following code in the Page's Function and Global Variable Declaration

function clickActionMenu(obj, menuId) {  
  var menu$ = $("<div id='actionsMenu'></div>");
  $("body").append(menu$);
menu$.menu({ 
  iconType: "fa",
  items: [
       {   
      type: "action",
      labelKey:"Show Details",
      action: function(menu, btn) {
            var action      = 'nav';
            var ajaxCallbackName = 'GET_URL_APP_DETAILS';
            var gridId      = '';
            var pageId      = '';
            var setSessionItems  = '';
            var waitSpinnerItemId = ''; 
                    var button$   = $(btn);
                    var detailId  = button$.attr("data-detail-id");
                    var detailInd = button$.attr("data-detail-ind");
                    var params   = [corpListInd, optionId];
                    apexServerProcess(action, ajaxCallbackName, gridId, pageId, params, setSessionItems, waitSpinnerItemId)
                      .done (function(){})
                      .fail (function(errorMessage){aris_message(errorMessage,'ERR');})
                      .always(function(errorMessage){})
          }
    },

2. When the duplicate row is created, how do I modify the column value of a virtual column? 
I need to change the value of one virtual column when the row is duplicated. Please let me know how to do this?

We are on Apex 20.1

Thank you

Comments
Post Details
Added on Jan 19 2023
12 comments
1,425 views