# Change column content in Table View

**URL:** <https://forum.servoy.com/t/change-column-content-in-table-view/13012>\
**Category:** Classic Servoy\
**Created:** [October 10, 2010, 9:56pm UTC](https://forum.servoy.com/t/change-column-content-in-table-view/13012 "2010-10-10T21:56:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ffow](https://avatars.discourse-cdn.com/v4/letter/f/2bfe46/32.png) [@ffow](https://forum.servoy.com/u/ffow)\
**Post date:** [October 10, 2010, 9:56pm UTC](https://forum.servoy.com/t/change-column-content-in-table-view/13012/1 "2010-10-10T21:56:02Z")

</div>

I have a form with a table view and want to display one of the columns with amended data (need to perform a calculation on the foundet value on a particular coilumn then diosplay that result)

So I tried something whereby i defined a global variable and on the form I defined a field with it as the data provider.

Using the following code the form only displays the last rows values on every row instead of each row having a unique value.

Any ideas how I do this would be appreciated.

```auto
	for ( var i = 1 ; i <= foundset.getSize() ; i ++ ) {
   		var vRecord = foundset.getRecord(i);	
		do something with vRecord.mycolumn
		globals.glbl_variable = result of the calculation

// the global.glbl_variable is the coilumn data provider on the form
                  }
		
	}

```

---

<div class="post-metadata">

**Author:** ![ngervasi](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@ngervasi](https://forum.servoy.com/u/ngervasi)\
**Post date:** [October 11, 2010, 11:51am UTC](https://forum.servoy.com/t/change-column-content-in-table-view/13012/2 "2010-10-11T11:51:28Z")

</div>

A global variable is by definition global. You need to use a record variable.  
A record variable can be defined by creating an unstored calculation like this:

```auto
function myRecordVariable()
{
	return;
}

```

But I have the feeling that you could solve your issue with a simple calculation. If you can explain what you are exactly trying to do maybe we can help.
