This topic contains 2 replies, has 0 voices, and was last updated by Olivier Gagnon NC 6 years, 7 months ago.

  • Author
    Posts
  • #18000

    georg.walther@altavia.de

    Hello,

    I am trying to create a popup using ext.js. It runs very nicely for a text input:

    Ext.Msg.prompt(“My Prompt Title”, “Please enter your text:”, handlePromptResult, this);

    // Solution provided by https://ursuscode.com/netsuite-tips/…on-saverecord/

    But how can I modify the input to be a dropdown list? Any suggestions?

    I am aware of the other possible solutions incl. using suitelets, but we want to try something more modern here.

    Regards,

    Georg
    This is a cached copy. Click here to see the original post.

  • #18001

    jshepler

    Not familiar with ext.js specfically, but a javascript prompt is always a text box and you have no control over that. Assuming the ext.msg.prompt is doing the same kind of thing, you probably won’t be able to use that componenent.

    If ext.js doesn’t have any kind of dialog or modal dialog component, you could always craft one yourself with javascript and document.createElement, appending other elements, and styling to float your div (i.e. position:absolute or position:fixed ). It would be messy, but if you have no other alternative and it HAS to be done, it’s an option.

  • #18002

    Olivier Gagnon NC

    Use of Ext.js – or anything that injects any code into NS interface – is highly discouraged as it is very likely to either stop working or break the screen entirely. NS may make changes to their UI and DOM and any point without prior notice, putting your customization at risk.

You must be logged in to reply to this topic.