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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

custom Interactive grid toolbar textfield is null?

seanzh4 days ago

Hi, everyone,

Apex 24.2. I have a custom IG toolbar text field for email address but i can't get its value (text, innertext, $v or pure javascript call), any idea? thanks!

function(config) {
    let $ = apex.jQuery,
        toolbarData = $.apex.interactiveGrid.copyDefaultToolbar(),
        toolbarGroup = toolbarData.toolbarFind("actions3");

 toolbarGroup.controls.push({
 	type: "TEXT",
    subtype: "e-mail",
    placeholder: "Email Address",
    label: "Email",
    id: 'P27_EMAIL_ID'
});

 toolbarGroup.controls.push({
 	type: "BUTTON",
     label: "Email This Order",
    id: 'P27_SEND_ID',
    action: "p27-email-da",
    hot: true
});

//  actions
config.initActions = function(actions){
  actions.add({
    name: "p27-email-da",
    action: function() {
      alert('email is='+ document.getElementById('P27_EMAIL_ID').text);
    }
  });
};

    config.toolbarData = toolbarData;
    return config;
}
This post has been answered by Karel Ekema on Mar 27 2025
Jump to Answer

Comments

Post Details

Added 4 days ago
5 comments
80 views