# Ui Table Widget- 7.0.1

**URL:** https://community.ofelia.com/t/ui-table-widget-7-0-1/6822
**Category:** Q&A
**Created:** [7 January 2016 11:00 UTC](https://community.ofelia.com/t/ui-table-widget-7-0-1/6822 "2016-01-07T11:00:58Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![vivek.paranthaman](https://avatars.discourse-cdn.com/v4/letter/v/cdc98d/32.png) [@vivek.paranthaman](https://community.ofelia.com/u/vivek.paranthaman)
#### Post date: [7 January 2016 11:00 UTC](https://community.ofelia.com/t/ui-table-widget-7-0-1/6822/1 "2016-01-07T11:00:58Z")

</div>

Hi,

I am populating List\<List\> from my connector, and storing it to the List type ProcessVariable, is there any extra stuff I need to do to get the values listed in to a table widget.

As of now, I am able to get the whole list of data in one single column, I have no BDM, assistance is much appreciated…

Thanks,

---

<div class="post-metadata">

### Author: ![Sean\_McP](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/sean_mcp/32/932_2.png) [@Sean\_McP](https://community.ofelia.com/u/Sean_McP)
#### Post date: [7 January 2016 12:06 UTC](https://community.ofelia.com/t/ui-table-widget-7-0-1/6822/2 "2016-01-07T12:06:06Z")

</div>

You need to change the list into json format…

see here

[http://community.ofelia.com/answer-postgres-query-result-list-lists-fills-only-first-column-form-table#comment-5333](http://community.ofelia.com/answer-postgres-query-result-list-lists-fills-only-first-column-form-table#comment-5333)

regards  
Seán

_PS: If this reply answers your question, please mark a resolved._

---

<div class="post-metadata">

### Author: ![vivek.paranthaman](https://avatars.discourse-cdn.com/v4/letter/v/cdc98d/32.png) [@vivek.paranthaman](https://community.ofelia.com/u/vivek.paranthaman)
#### Post date: [7 January 2016 12:34 UTC](https://community.ofelia.com/t/ui-table-widget-7-0-1/6822/3 "2016-01-07T12:34:18Z")

</div>

Hi Sean,

Thank you,  
I have solved it in different manner, I have used the HashMap to get my values, and access it with the key… Thank you for your effort.

---

<div class="post-metadata">

### Author: ![vivek.paranthaman](https://avatars.discourse-cdn.com/v4/letter/v/cdc98d/32.png) [@vivek.paranthaman](https://community.ofelia.com/u/vivek.paranthaman)
#### Post date: [7 January 2016 13:03 UTC](https://community.ofelia.com/t/ui-table-widget-7-0-1/6822/4 "2016-01-07T13:03:12Z")

</div>

However, if I want to access an ajax with the form, where I submit the values to be searched and it fetched the values in one single form, how to achieve that.(Not satisfied with the flow from process to process)

Thanks,

---

<div class="post-metadata">

### Author: ![vivek.paranthaman](https://avatars.discourse-cdn.com/v4/letter/v/cdc98d/32.png) [@vivek.paranthaman](https://community.ofelia.com/u/vivek.paranthaman)
#### Post date: [8 January 2016 05:23 UTC](https://community.ofelia.com/t/ui-table-widget-7-0-1/6822/5 "2016-01-08T05:23:24Z")

</div>

Hi Seán,

This explains pretty much, however… the form doesn’t allow to make changes in the available widgets, so as to apply on-click / ng-submit from a button…  
How is this external file accessed to a form/widget. It takes a risk lot of time to figure it out… This part with the bonita…  
jsRequest = “[http://localhost:2125/](http://localhost:2125/)/?getmessage=” + message;  
Thanks

---

<div class="post-metadata">

### Author: ![Sean\_McP](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/sean_mcp/32/932_2.png) [@Sean\_McP](https://community.ofelia.com/u/Sean_McP)
#### Post date: [8 January 2016 07:16 UTC](https://community.ofelia.com/t/ui-table-widget-7-0-1/6822/6 "2016-01-08T07:16:29Z")

</div>

Create a variable in the form of type Javascript Expression called message01

The value is

`
return jsGetMessage("myMessage"); 
`

Add a text field to the form and in the text box enter {{ message01 }}

Create a javascript file called jsGetMessage.js and add the following code:

`
function jsGetMessage(message) {
```
var module = "jsGetMessage ";
var debug = true;

if (debug == true) {
	console.log(module + "v01.00");
}
if (debug == true) {
	console.log(module + "Arriving");
}

var xmlhttp;
var gubeReturn = "No Message Found! Dingbats!";

if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari
	xmlhttp = new XMLHttpRequest();
} else { // code for IE6, IE5
	xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
var jsRequest;
jsRequest = "http://<<yourserver>><<:yourport>>/<<yourwebservice>>/<<yourpage>>?getmessage=" + message;

if (debug == true) {console.log(module + "jsRequest: " + jsRequest)};
xmlhttp.open("GET", jsRequest, false);
xmlhttp.send();
jsReturn = xmlhttp.responseText;
if (debug == true) {console.log(module + "jsReturn SUCCESS: " + jsReturn)};

if (debug == true) {
	console.log(module + "Leaving");
}

return jsReturn;

```
`

`}
`

UPDATED:  
Add an Asset to the Form, select Local and point to the file you created…this will then work.

I will leave you to write your ajax as you seem to know what to do there, and execute in preview mode. It works!

regards  
Seán

---

<div class="post-metadata">

### Author: ![Sean\_McP](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/sean_mcp/32/932_2.png) [@Sean\_McP](https://community.ofelia.com/u/Sean_McP)
#### Post date: [8 January 2016 07:19 UTC](https://community.ofelia.com/t/ui-table-widget-7-0-1/6822/7 "2016-01-08T07:19:13Z")

</div>

Third time of writing this…

One question please…if you can write down your whole requirement in one much easier…

Q1 data to table, done  
then Q2 data from ajax, done  
now Q3 change data? Sorry I don’t have time

I’ve updated the previous post to say how to add the js to the form and fixed the bit about jsRequest talking to your webservice.

regards  
Seán
