# Solution Model issue

**URL:** <https://forum.servoy.com/t/solution-model-issue/16269>\
**Category:** Classic Servoy\
**Created:** [July 29, 2012, 12:58am UTC](https://forum.servoy.com/t/solution-model-issue/16269 "2012-07-29T00:58:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthewbrice](https://avatars.discourse-cdn.com/v4/letter/m/fbc32d/32.png) [@matthewbrice](https://forum.servoy.com/u/matthewbrice)\
**Post date:** [July 29, 2012, 12:58am UTC](https://forum.servoy.com/t/solution-model-issue/16269/1 "2012-07-29T00:58:01Z")

</div>

Hi to all,

I have an issue with the solution model. (in Version: 6.1.0 - build 1418, on a Mac running lion, in smart client) I have a very basic form that shows some records in table view. The form only has a body part and a footer part. I use some solution model code to add a a text field to the footer. After i click the button (which is also in the footer), the button disappears and the new text field shows in the form body part. If I resize the window slightly, the button reappears and the new text field moves down to the footer like it should. Here is the code i am using:

```auto
var _mainForm = solutionModel.getForm(controller.getName()) ;
	var _footer = _mainForm.getFooterPart() ;
	var _footerY = _footer.getPartYOffset() ;
	var _newField = _mainForm.newTextField('table_alias_name',50,_footerY + 5 ,150 ,26) ;
	
	_newField.enabled = false ;
	_newField.horizontalAlignment = SM_ALIGNMENT.RIGHT ;
	controller.recreateUI() ;

```

Any ideas of what I might be doing wrong here?

---

<div class="post-metadata">

**Author:** ![rgansevles](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@rgansevles](https://forum.servoy.com/u/rgansevles)\
**Post date:** [July 30, 2012, 10:21am UTC](https://forum.servoy.com/t/solution-model-issue/16269/2 "2012-07-30T10:21:30Z")

</div>

Matt,

Can you show this in a small sample?  
If so, please attach it to a case in our support system.

Rob
