Table input

Info about design forms features
PetrS
Site Admin
Posts: 181
Joined: 11 Jul 2014, 13:55

Table input

Postby PetrS » 16 Jul 2014, 06:49

Table input - new dialog component.

ubSetting table structure:/b/u
list
*Insert new TableInput to the dialog./*:m
*Click on button at "Columns" row in PropertyGrid./*:m
*Define table columns./*:m/list:u

ubInserting values:/b/u
Last row of the table is always blank. It is used to insert new rows. Just type values in the last row, new row is added automatically.
Attachments
TableInputExample.cls
(13.33 KiB) Downloaded 550 times
Ing. Petr Slepicka
DesignForms Online
Engineering calculations online - EuroCode, AISC, statics
Automate your static calculations today!

PetrS
Site Admin
Posts: 181
Joined: 11 Jul 2014, 13:55

Re: Table input

Postby PetrS » 16 Jul 2014, 06:49

ubRemoving rows in table/b/u
1. Select row by click on the row headline (the most left gray cell)
2. Press DELETE on keyboard
Ing. Petr Slepicka
DesignForms Online
Engineering calculations online - EuroCode, AISC, statics
Automate your static calculations today!

PetrS
Site Admin
Posts: 181
Joined: 11 Jul 2014, 13:55

Re: Table input

Postby PetrS » 16 Jul 2014, 06:50

ubDisplay number of rows in source code:/b/u
x.Count where "x" is a variable connected to the table input
Ing. Petr Slepicka
DesignForms Online
Engineering calculations online - EuroCode, AISC, statics
Automate your static calculations today!

PetrS
Site Admin
Posts: 181
Joined: 11 Jul 2014, 13:55

Re: Table input

Postby PetrS » 16 Jul 2014, 06:50

ubFrequent bug in variable declaration:/b/u

object X; // declares variable "X" of type "object - array". No value is saved by this command.
object Y = new object; // declares variable "Y" of type "object - array" and assign new (empty) array to this :!: .

Use first command to declare variable linked to TableInput.
Second command declares variable and clears its value - do not use this for variable linked to TableInput. Otherwise you clear user's input!
Ing. Petr Slepicka
DesignForms Online
Engineering calculations online - EuroCode, AISC, statics
Automate your static calculations today!

PetrS
Site Admin
Posts: 181
Joined: 11 Jul 2014, 13:55

Re: Table input

Postby PetrS » 24 Jul 2014, 12:57

size=150New features/size

ubFixed rows/b/u
Set this property to define fixed number of table rows.
Set "-1" to disable this and allow user to add/remove rows

ubColumn sorting/b/u
There is a new boolean property in table column definition.
If checked, automatic column sorting is enabled.
If unchecked, no sorting is allowed.
Ing. Petr Slepicka
DesignForms Online
Engineering calculations online - EuroCode, AISC, statics
Automate your static calculations today!


Return to “Design forms features”

Who is online

Users browsing this forum: No registered users and 3 guests