how to send ui page user input data to email as notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2016 05:46 PM
Developers team,
I have created UI page through UI action button as follows. When user click on HPI button on Incident form, the following UI page opens.
If user enters the data manually and click on OK button, all manually enter data should be delivered to email as a notification below. How could I achieve this following email notification format?
PS: UI page form fields are manually added and not Incident fields or System fields.
"Current Status (Executive Summary 😞 Date and Time: 9/22/2016 07:46:00 (UTC)
Incident State: Active
Retests are passing and the NOC has received improved emails for each. Dashboards and Egraph show no traffic loss in Atlanta, In addition, we are also seeing 5xx errors on multiple ADN servers in the North American Region and have received two customer complaints isolated to Level3 circuits in CPM. AppSupport HTTP has been engaged to investigate.
Bridge Info: 1-866--99940=22
Ticket Number: INC0000018
Short description: Sales forecast spreadsheet is READ ONLY
Priority: 1 - Critical
Business Area Impact: Network
Location of Impact: boston
Incident Timeline: 07:10:00 (UTC) NOC started to receive mu
Lead on Floor: INC0000008
Group of Representatives: Sis
Next Expected Update: 20 minutes"

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2016 01:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2016 01:42 AM
Awesome. You nailed it. Its working perfectly awesome. Very much appreciated your solution. Thank you very much for your help Chetan

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2016 01:46 AM
Great !!
Please mark this as Correct Answer so that it can be helpful to others as well.
Thanks,
Chetan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2016 02:06 AM
Chetan,
Your solution was really helpful. One more question.
In order to auto populate the some fields data from Incident form to UI page fields ( for example Ticket number, state, priority short description) , i should use autocomplete="on", right? . <input type="text" class="form-control input-lg" id="ticket_number" name="ticket_number" value="" autocomplete="on"> correct me If I am wrong,
or else is there anything else I can use in the script?
For referencing the data, I am using
<td><label for="configuration Item"> Configuration item:</label></td>
<td><g:ui_reference name="ci" table="cmdb_ci" value="${jvar_cmdbi}"

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2016 02:32 AM
For this , you can send the data from Incident form to UI page as Dialog parameters for e.g.
var inc_number = g_form.getValue("number");
dialog.setPreference("number",inc_number);
Fetch the value passed on UI page like this:
<g:evaluate var="jvar_incident_number"
expression="RP.getWindowProperties().get('number')" />
and populate the field value with this data using ${jvar_incident_number} i.e.
<td ><input name="ticket_number" id="ticket_number" value="${jvar_incident_number}" type="text"/></td>
**Chetan