How can we create a table using ui macro?

anjiadmin
Tera Expert

How can we create a table using ui macro as shown below.

table.png

I want to pass the values from the table to short description field of incident.

How can we achieve this?

Thanks,

Y Anjaneyulu

7 REPLIES 7

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


Thank you vignesh....I developed the table as shown below.



latest tab.png


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


Hello,

find_real_file.png

i have this table. i have to fetch information from project table and show here,how i can do it.