# VelocityReport field not displaying data.

**URL:** <https://forum.servoy.com/t/velocityreport-field-not-displaying-data/15379>\
**Category:** Classic Servoy\
**Created:** [January 19, 2012, 11:56am UTC](https://forum.servoy.com/t/velocityreport-field-not-displaying-data/15379 "2012-01-19T11:56:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlanBourke](https://avatars.discourse-cdn.com/v4/letter/a/b5a626/32.png) [@AlanBourke](https://forum.servoy.com/u/AlanBourke)\
**Post date:** [January 19, 2012, 11:56am UTC](https://forum.servoy.com/t/velocityreport-field-not-displaying-data/15379/1 "2012-01-19T11:56:01Z")

</div>

I’m building a simple report layout, header/detail style. In the Servoy code I’m creating a report context object with a Dataset in it, like this:

```auto
	// -- Create a report context object.
	var reportContext = new Object();
	
	// -- Get customer account header.
	var sql = 'select address1,address2,address3,address4,addresspc,accountname from customer'
	sql += ' where accountcode=?';
	var headerDataset = databaseManager.getDataSetByQuery('operastatement', sql, [globals.LoginOperaAccount], 1);	
	headerDataset.rowIndex = 1;
	application.output(headerDataset.getMaxRowIndex().toString());
	
	//application.output('acc :' + headerDataset.address1);
	
	reportContext.logo = StatementGetLogo();
	reportContext.accountHeader = headerDataset;
	
	plugins.VelocityReport.previewReport('statement.html', reportContext);

```

The dataset is getting data, for example headerDataset.address1 returns the correct string when examined in Debug view, as does reportContext.accountHeader.address1.

On my XHTML report I just have:

$accountHeader.address1

Which looking at the examples should output the correct address line 1 - however it just repeats the text ‘$accountHeader.address1’ when previewed.

Can’t figure out why …

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [January 19, 2012, 12:28pm UTC](https://forum.servoy.com/t/velocityreport-field-not-displaying-data/15379/2 "2012-01-19T12:28:04Z")

</div>

Hi Alan,

I just answered your question you also [posted](https://www.servoyforge.net/boards/2/topics/476) on the Velocity Report forum.  
Please don’t cross post questions like this. The Velocity Report forum is the right place to ask VR questions.

---

<div class="post-metadata">

**Author:** ![AlanBourke](https://avatars.discourse-cdn.com/v4/letter/a/b5a626/32.png) [@AlanBourke](https://forum.servoy.com/u/AlanBourke)\
**Post date:** [January 19, 2012, 12:36pm UTC](https://forum.servoy.com/t/velocityreport-field-not-displaying-data/15379/3 "2012-01-19T12:36:23Z")

</div>

> ROCLASI:  
> Hi Alan,
> 
> I just answered your question you also [posted](https://www.servoyforge.net/boards/2/topics/476) on the Velocity Report forum.  
> Please don’t cross post questions like this. The Velocity Report forum is the right place to ask VR questions.

I couldn’t figure out how to register on the VR forum when I posted here … blind!

Anyway in future I will post them there, thanks.
