The Rookie Rides Again - Table View field position

Hi all,

I’ve created a form for table maintenance that has just one or two fields on it, and I display the form in Table View. In one example form I’ve created that has but one field on it the field’s location is set to, say, 150,70. However, when I run this form, the field is jammed up into the upper left corner of the form rather than where the Location says it should be. I’ve tried playing with the anchors, as well as the scroll bar properties, after looking at some earlier discussions here. If I set the form to “record view”, the field displays in the correct location, so the issue I’m having is related to Table View itself, I think.

Could anyone enlighten me on this or perhaps point me towards the documentation that might cover this?

Thanks and have a good day.

Ron

Hi Ron,

this is expected behaviour.
Table views do all the field positioning for you in the body part.

If you want a grid-like view with more control on the position of your elements, try ‘List view’

Hope this helps.

Hi Marc,

Thanks for the information. I’ll take a look at that.

Ron

Hi Marc,

Thanks for that information.

As you said, expected behavior. I’ve played around a bit to if I might entice the fields to move around a little. I can get some control over the vertical positioning of the fields by inserting a header, and sizing that appropriately. So far, no luck getting the fields to move away from the left margin of the form. I most recently tried using the Margin property on the 1st field, but that appears to have no effect. I’m considering the idea of inserting a label before the 1st field, and making it completely invisible while still taking up space in an effort to move the fields horizontally. Probably not worth the work at this point, but now I’m curious as to whether I can get it to happen.

It’s not a big deal, and mostly aesthetic. I have these little utility tables that I maintain with a form tied to the table. When there are only 1 or 2 fields, I’m just not all that enamored with having the fields where they are. I’d prefer them centered. But it’s ok.

Just out of curiosity, if there are Servoy folk about, could someone explain why the decision was made to not use the inherent positioning properties on the fields, and not giving developers control over where the fields would be placed? Given all the awesome stuff that Servoy can do, I was a bit surprised to find that I didn’t have any control over this.

Thanks again for your help. Have a good day.

Ron