Layout Management [message #1015540] |
Fri, 01 March 2013 08:06 |
|
Hi,
I'm again here with a new problem.
This time my problem is organizing the layout of a form, in my form I have many fields (text, checkbox, smart field) divided by different group box. Some of these group box are within other.
My problem is that I cannot sizing correctly the fields and especially they overlap (see image as example)
I tried various combinations of the following properties:
- Fill Horizontal
- Grid X
- Grid Y
- Grid Weight X
- Grid Use UI Width
- Width In Pixel
Thanks in advance for help
-
Attachment: Layout.png
(Size: 7.97KB, Downloaded 682 times)
|
|
|
|
|
Re: Layout Management [message #1015965 is a reply to message #1015583] |
Mon, 04 March 2013 12:35 |
|
Hello Marco,
Your layout is fantastic, but a little bit complicated for a newcomer. I would suggest to experiment with parts of it in differenet forms, and when you have some experience, try again to build it as a whole.
The mentioned practice will help you also in the final product, if you want to use the templates.
There are around 20 fields in your forms. The formatting code for them with grouping and the Controller part of MVC if you want to have some interaction such as calculating some of them according the values specified to others or you want to do some kind of validation, it will easily result in a 1000 or more lines.
A better approach is to design and implement separately the "base curve" for example and after that create a template e.g. BaseCurveGroupField. Finally create a form using all of the created templates.
In that way you will have a more maintanable source code.
Although it is not an answer, i hope that could help.
|
|
|
Re: Layout Management [message #1015967 is a reply to message #1015965] |
Mon, 04 March 2013 12:46 |
|
Hi Stathis,
thank you very much for your suggestion ... I honestly had not thought to define various templates and then integrate them into a single form.
Have you some examples to clarify to me better ideas? Or can you suggest me some link about this idea?
For my bad luck, the image reported is only one part of a complex form that required in my project.
|
|
|
Re: Layout Management [message #1016000 is a reply to message #1015967] |
Mon, 04 March 2013 14:56 |
|
Hi Marcus again,
It is not so difficult, to produce the layout you want as you can see in the next image.
It just needs some experiments for various situations.
I have attached part of the code that produced it. And as you can see , i have created three example templateFields.
Hope it helps.
|
|
|
|
Re: Layout Management [message #1016060 is a reply to message #1016006] |
Mon, 04 March 2013 18:50 |
|
Hi Marco,
There are no mistakes, Just unfinished configuration of fields. You have to take care for the configuration of each field indivindually. I used some configuration options of Scout such as getConfiguredLabelPosition(), getConfiguredWidthInPixel(), getConfiguredGridColumnCount() for demo purposes. I also created three example templates.
The rest its up to you.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04786 seconds