# Transforming a Input Field to Combo box

**URL:** <https://techcommunity.softwareag.com/t/transforming-a-input-field-to-combo-box/90792>\
**Category:** Forum\
**Tags:** Mainframe-Integration, ApplinX\
**Created:** [July 27, 2009, 6:16pm UTC](https://techcommunity.softwareag.com/t/transforming-a-input-field-to-combo-box/90792 "2009-07-27T18:16:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kumar\_piyus](https://avatars.discourse-cdn.com/v4/letter/k/c57346/32.png) [@kumar\_piyus](https://techcommunity.softwareag.com/u/kumar_piyus)\
**Post date:** [July 27, 2009, 6:16pm UTC](https://techcommunity.softwareag.com/t/transforming-a-input-field-to-combo-box/90792/1 "2009-07-27T18:16:11Z")

</div>

Hi,  
I transformed a input text field to a combo box. The problem was that i was not able to change its position. I think that option is not present at all. The formatting option is available for the label.

Is there any way so that I can change the position of the combo box? If not, there should be an option because when I am changing an input field to a combo box, its hiding few characters of the label present on the right side. That’s looking very bad.

Please see the screen shot. Please do reply if you have any suggestions.  
 ![screen_shot.JPG](https://global.discourse-cdn.com/techcommunity/original/2X/1/1d75d8d0ce9ed02707aa315c4d53da2e134665d9.jpeg)

---

<div class="post-metadata">

**Author:** ![kumar\_piyus](https://avatars.discourse-cdn.com/v4/letter/k/c57346/32.png) [@kumar\_piyus](https://techcommunity.softwareag.com/u/kumar_piyus)\
**Post date:** [July 27, 2009, 7:31pm UTC](https://techcommunity.softwareag.com/t/transforming-a-input-field-to-combo-box/90792/2 "2009-07-27T19:31:41Z")

</div>

I got the answer to my question. The formatting can be done by code transformation. The following changes needs to be done.

1. Register a new transformation in the file GXInstantLogicContext.

instantConfig.addTagListener(new TRANSFORMATIONNAME());

1. Now make changes in the function “onNewCombobox” in the file(file name is same as the name of the new transformation here its TRANSFORMATIONNAME.java)

combox.setPosition(combox.getPosition().getRow(),combox.getPosition().getColumn()-6);

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:57pm UTC](https://techcommunity.softwareag.com/t/transforming-a-input-field-to-combo-box/90792/3 "2021-04-02T14:57:18Z")

</div>


