How to increase / set the field size when using GlideDialogWindow() to update the message on a Service Offering Availability
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-17-2013 01:06 PM
I browsed through more than a dozen topics on the community and guru site but could not find an answer... SN Support is informing us this is a method SN Development is not feeling comfortable providing documentation for... and they are sending me to the community... 🙂
So: How could I increase the size of the input field on the Popup window so that I am no longer being prompted to keep the text under 40 characters and in the same time make the field bigger (textarea) that I don't have to scroll through a lengthy text?
Business Case:
- Modified the Max length of the message field on 'cmdb_ci_outage' from 40 to 1k
- The text shows up entirely and nicely on the Svc Offering Avail Gauge
- When I right click on the text on the gauge to update it I'm being prompted to keep it under 40 chars upon changing the text plus I need to do a lot of scrolling.
Thanks,
Cosmin
U of MN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-18-2013 04:43 PM
Posting your code will give us a better idea of what is causing the issue.
If you are using a UI page you can use CSS to set the height and width of the textarea element.
For increasing the character limit, go to the cmdb_ci_outage table (type "cmdb_ci_outage.list" in the Nav Pane).
Open any outage.
Right click on the message field > Personalize Dictonary.
Set Max length: 1000
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-22-2013 09:53 AM
Thanks for your response Justin!
I found out at a Local User Group about the fact that this class uses a UI Page and I found the UI Page used baseline by the render_gadget_service_availability UI Macro.
Now working on getting the textarea to work well on the UI Page. I'll post my code after getting it to work without flaws.
Thanks again!
Cosmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2013 06:42 AM
Baseline for UI Page 'dialog_update_outage_message' :
<input id="new_message_input" name="new_message_input" onfocus="this.select()" size="50" maxlength="40" value="${sysparm_message}" title="${gs.getMessage('Update Outage Message')}"/> -->
Changed to:
<textarea id="new_message_input" name="new_message_input" style="width: 100%" rows="6" wrap="soft" onfocus="this.select()" title="${gs.getMessage('Update Outage Message')}" >${sysparm_message} </textarea>
Baseline for UI Macro 'render_gadget_service_availability':
var d = new GlideDialogWindow('dialog_update_outage_message', false, 360, 0);
Changed to:
var d = new GlideDialogWindow('dialog_update_outage_message', false, 720, 0);