How can we create a table using ui macro?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-08-2017 11:28 PM
How can we create a table using ui macro as shown below.
I want to pass the values from the table to short description field of incident.
How can we achieve this?
Thanks,
Y Anjaneyulu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-11-2017 03:21 AM
Thank you Vigneshwaran.....
Still I am not able to see the table on portal page ,..I used the variable type as ui page.
Thanks,
Y Anjaneyulu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-12-2017 03:40 AM
Thank you vignesh....I developed the table as shown below.
But we need to use the code in widget
Isuue-1:Here I can able to add the new row using add row button...But I cannot enter the data into it.
Isuue-2 is I want to pass the table values with column names to incident description field.
The code mentioned below is used for table creation shown above.
<?xml version="1.0" encoding="utf-8" ?>
<html>
<head>
<style>
table, td {
border: 1px solid black;
}
</style>
</head>
<body>
<p>Click the button to add a new row at the first position of the table and then add cells and content.</p>
<table id="myTable">
<tr>
<td>PO#</td>
<td>ARTICLE#</td>
<td>QUANTITY</td>
</tr>
</table>
<br>
<button onclick="myFunction()">Try it</button>
<script>
function myFunction() {
var table = document.getElementById("myTable");
var row = table.insertRow(-1);
var cell1 = row.insertCell(0);
var cell2 = row.insertCell(1);
var cell2 = row.insertCell(2);
cell1.innerHTML = "''";
cell2.innerHTML = "''";
cell3.innerHTML = "''";
}
</script>
</br>
</body>
</html>
Thanks,
Y Anjaneyulu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-30-2019 05:34 AM