Skip to Main Content
IBM Data and AI Ideas Portal for Customers


This portal is to open public enhancement requests against products and services offered by the IBM Data & AI organization. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).


Shape the future of IBM!

We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:


Search existing ideas

Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,


Post your ideas

Post ideas and requests to enhance a product or service. Take a look at ideas others have posted and upvote them if they matter to you,

  1. Post an idea

  2. Upvote ideas that matter most to you

  3. Get feedback from the IBM team to refine your idea


Specific links you will want to bookmark for future use

Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.

ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.

IBM Employees should enter Ideas at https://ideas.ibm.com


Status Submitted
Workspace Cognos Analytics
Components Other
Created by Guest
Created on Mar 22, 2024

Update createDialog function to allow custom buttons

At the moment the createDialog function only allows for ok and cancel buttons. This is hardcoded into the function itself:
__glassAppController.Glass.getCoreSvc('.Dialog').createDialog:
 

createDialog(e) {
   const t = (0,
   a.default)("dialog");
   (e = Object.assign(Object.assign({}, e), {
       id: t
   })).callback && "object" == typeof e.callback && Object.keys(e.callback).length > 0 && Object.values(e.callback).filter(e=>e && "function" == typeof e).length > 0 && (this.registerCallbackForButton(e, "close", t),
   e.buttons && Array.isArray(e.buttons) && ["ok", "cancel"].forEach(n=>{
       (e.buttons.includes(n) || e.buttons.filter(e=>e.defaultId === n).length > 0) && this.registerCallbackForButton(e, n, t)
   }
   )),
   this.store.addDialog(e)
}

 

This means running the function:
__glassAppController.showMessage(
  '<span style="font-size:30pt;color:black">hello!</span>'
  , 'Message Title'
  ,'info'
  , ["ok","cancel","test"]
  , '300px'
  , function(a){console.log(a)}
  , true
)

 

will result in a message box with three buttons:
"Cancel", "__NOT_TRANSLATED__(undefined)", "OK"

with the middle button not performing any action when called.

Please add something like after the e.buttons...forEach:
e.buttons.filter(btn=>!["ok","cancel"].includes(btn??btn.name)).forEach(btn=>{
   this.registerCallbackForButton(e, btn[userLocale??default], t)
})

 

This would allow extension authors to pass custom buttons to createDialog:

__glassAppController.showMessage(
  '<span style="font-size:30pt;color:black">hello!</span>'
  , 'Message Title'
  ,'info'
  , ['ok','cancel',{"name":"test","default":"test","en-us":"US TEST","en-uk":"Brittest","en-au":"Throw another shrimp on the barbie!"}]
  , '300px'
  , function(a){console.log(a)}
  , true
 )

 

Without this extension authors need to write their own functions to add dialogs, which means that updates to Cognos will mean more maintenance on the author's side.

Needed By Quarter