Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Is binding multi-value field from a datasource to a form ready for use?

$
0
0
Version: v9.0_2013-07-03/LGPL Development Only
Browsers: Chrome, Firefox

Hi, just curious. I noticed that if I bind a DataSourceField marked as multiple=true to a DynamicForm, SmartGWT automatically generates a Listgrid and Form (as shown in the attachment).

I was just wondering if this autogenerated Canvas was ready for production use, or if it were just for demo purposes.

If it's prod ready, how might one go about configuring the layout?

Just to clarify, my datasource has this piece of code:
Code:

                DataSourceField dataVendorFees = new DataSourceField();
                dataVendorFees.setName(Fields.DATA_VENDOR_FEES);
                dataVendorFees.setTypeAsDataSource(new DataVendorFeeDataSource());
                dataVendorFees.setMultiple(true);

And my view has this piece of code:
Code:

                FormItem dataVendorFees = new FormItem();
                dataVendorFees.setWidth(800);
                dataVendorFees.setHeight(800);
                dataVendorFees.setStartRow(true);
                dataVendorFees.setName(TacticDataSource.Fields.DATA_VENDOR_FEES);

                form1.setFields(dataVendorFees);

Please let me know if more details are required, thanks.

Edit:
Upon further investigation, I realized that the rendered FormItem is a NestedListEditorItem. But I can't seem to find this exposed in SmartGWT, so am I correct in assuming that it's not ready for use in SmartGWT just yet?

Attached Images
File Type: jpg auto.jpg (16.4 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles