Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ComboBoxItem reverts value if text selected and changed

    Hi,
    In the following example try these steps:
    1. Run code and place cursor into the combo field just after the initial "m" value
    2. Backspace cursor to remove "m" and write "kg" instead
    3. Hit tab key - do those steps in less than 2seconds, so the pickList would not drop
    The new code "kg" stays as items display value - this is fine.
    This is what console log fired in formatValue shows:
    14:46:21.850:INP8:WARN:Log:m
    14:46:24.640:TMR7:WARN:Log:kg
    14:46:24.645:TMR7:WARN:Log:kg
    14:46:24.646:TMR7:WARN:Log:kg

    Now run (F5 - important) example again, and try these steps:
    1. Run code and place cursor into the combo field and select the whole "m" text
    2. Type "kg"
    3. Hit tab key - do those steps in less than 2seconds, so the pickList would not drop
    The new code "kg" stays for a while, but then it is replaced by original "m" value.
    This time console log shows:
    14:47:25.317:TMR4:WARN:Log:kg
    14:47:25.318:TMR4:WARN:Log:m
    14:47:25.321:TMR4:WARN:Log:m
    14:47:25.322:TMR4:WARN:Log:m

    Here is test code:
    Code:
    package pl.com.tech4.client;
    
    import com.google.gwt.core.client.EntryPoint;
    import com.smartgwt.client.data.DataSource;
    import com.smartgwt.client.data.Record;
    import com.smartgwt.client.data.fields.DataSourceIntegerField;
    import com.smartgwt.client.data.fields.DataSourceTextField;
    import com.smartgwt.client.util.SC;
    import com.smartgwt.client.widgets.form.DynamicForm;
    import com.smartgwt.client.widgets.form.FormItemValueFormatter;
    import com.smartgwt.client.widgets.form.fields.ComboBoxItem;
    import com.smartgwt.client.widgets.form.fields.FormItem;
    import com.smartgwt.client.widgets.layout.VLayout;
    
    public class MainEntryPoint implements EntryPoint {
      
        private DynamicForm df = null;
        private DataSource ds = null;
        private DataSource unitDS = null;
           
        public void onModuleLoad() {
            doLayout();
        }
       
        private void doLayout() {
            VLayout main = new VLayout();
           
            unitDS = new DataSource("UnitDir");
            unitDS.setRecordXPath("/response/data/UnitDir");
            DataSourceIntegerField idUnitField = new DataSourceIntegerField("id");
            idUnitField.setHidden(true);
            idUnitField.setPrimaryKey(true);
            DataSourceTextField codeField = new DataSourceTextField("code");
            unitDS.setFields(idUnitField, codeField);
            unitDS.setDataURL("UnitDir.xml");
            unitDS.setClientOnly(true);
           
            ds = new DataSource("ResourceUsedItem");
            ds.setRecordXPath("/response/data/ResourceUsedItem");
            DataSourceIntegerField idField = new DataSourceIntegerField("id");
            idField.setHidden(true);
            idField.setPrimaryKey(true);
            DataSourceTextField unitField = new DataSourceTextField("unit");
            unitField.setForeignKey("UnitDir.id");
            unitField.setValueXPath("unit/id");
            ComboBoxItem unitItem = new ComboBoxItem();
            unitItem.setDisplayField("code");
            unitItem.setValueField("id");
            unitItem.setOptionDataSource(unitDS);
            unitItem.setAddUnknownValues(false);
            unitItem.setFetchDelay(2000);
            unitItem.setEditorValueFormatter(new FormItemValueFormatter() {
    
                public String formatValue(Object value, Record record, DynamicForm form, FormItem item) {
                    SC.logWarn((String) value);
                    return (String) value;
                }
            });
            unitField.setEditorProperties(unitItem);
            ds.setFields(idField, unitField);
            ds.setDataURL("ResourceUsedItem.xml");
            ds.setClientOnly(true);
           
            df = new DynamicForm();
            df.setDataSource(ds);
            df.fetchData();
            main.addMember(df);
            main.draw();
        }
      
    }
    Test data:
    ResourceUsedItem.xml
    Code:
    <response>
        <requestId>ResourceUsedItem_request3</requestId>
        <startRow>0</startRow>
        <endRow>56</endRow>
        <totalRows>56</totalRows>
        <data>
            <ResourceUsedItem>
                <id>34710</id>
                <createdOn>2015-02-05T11:55:12Z</createdOn>
                <modifiedOn>2016-05-10T12:58:54Z</modifiedOn>
                <version>21</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>jacekr</id>
                    <code>jacekr</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <workOrder>
                    <id>1383</id>
                    <cause>
                        <id>1103</id>
                        <code>Awaria</code>
                    </cause>
                    <status>
                        <id>36527</id>
                        <code>Trwające</code>
                        <styleName>GREEN</styleName>
                    </status>
                    <asset>
                        <id>1222</id>
                        <code>89/WW</code>
                        <description>Opis do egz 89/WW</description>
                        <assetType>
                            <id>442</id>
                            <code>Pompy</code>
                            <description>od pompowania</description>
                        </assetType>
                        <department>
                            <id>401</id>
                            <code>Elektryczny</code>
                        </department>
                    </asset>
                    <workDefinition>
                        <id>1272</id>
                        <code>dokręcanie nakrętki</code>
                    </workDefinition>
                    <orderNo>000001</orderNo>
                    <description>I have created a very simple form that makes use of nested fields. When I programattically call setValues for fields that are nested they update in the UI as expected, however for fields that contain nested values they do not. I am curious what the proper methodology is, and if I am truly expected to tell these form items to redraw?</description>
                    <accounting>
                        <accountingOrder>ZLC</accountingOrder>
                        <category>kat1</category>
                        <schema>schemat1</schema>
                        <costCenter>
                            <id>1742</id>
                            <code>xxx/1</code>
                            <description>koszty produkcji</description>
                        </costCenter>
                        <accountNo>
                            <id>356</id>
                            <code>0001/A</code>
                            <description>0001</description>
                        </accountNo>
                    </accounting>
                </workOrder>
                <period>
                    <id>35054</id>
                    <code>02</code>
                    <description>luty</description>
                </period>
                <year>
                    <id>2025</id>
                    <code>2013</code>
                    <description>rok 2013</description>
                </year>
                <item>
                    <id>1896</id>
                    <itemNo>b/0</itemNo>
                </item>
                <unit>
                    <id>3165</id>
                    <code>m</code>
                    <description>metr</description>
                </unit>
                <itemDocType>
                    <id>2041</id>
                    <code>typA</code>
                </itemDocType>
                <documentNo>Opis</documentNo>
                <chargeDate>2015-02-25</chargeDate>
                <quantity>7</quantity>
                <unitPrice>7.15</unitPrice>
                <netValue>50.05</netValue>
                <resourceNo>123tmp</resourceNo>
                <userModifiable>true</userModifiable>
            </ResourceUsedItem>
        </data>
        <requestedDataSource>ResourceUsedItem</requestedDataSource>
        <status>STATUS_SUCCESS</status>
    </response>
    UnitDir.xml
    Code:
    <response>
        <requestId>UnitDir_request5</requestId>
        <startRow>0</startRow>
        <endRow>76</endRow>
        <totalRows>77</totalRows>
        <data>
            <UnitDir>
                <id>37308</id>
                <createdOn>2016-06-23T09:56:45Z</createdOn>
                <modifiedOn>2016-09-22T14:37:24Z</modifiedOn>
                <version>1</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>1</code>
                <description>x</description>
            </UnitDir>
            <UnitDir>
                <id>37317</id>
                <createdOn>2016-06-23T09:57:23Z</createdOn>
                <modifiedOn>2016-06-23T09:57:23Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>10</code>
            </UnitDir>
            <UnitDir>
                <id>37318</id>
                <createdOn>2016-06-23T09:57:27Z</createdOn>
                <modifiedOn>2016-06-23T09:57:27Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>11</code>
            </UnitDir>
            <UnitDir>
                <id>37319</id>
                <createdOn>2016-06-23T09:57:31Z</createdOn>
                <modifiedOn>2016-06-23T09:57:31Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>12</code>
            </UnitDir>
            <UnitDir>
                <id>37322</id>
                <createdOn>2016-06-23T09:57:42Z</createdOn>
                <modifiedOn>2016-06-23T09:57:42Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>15</code>
            </UnitDir>
            <UnitDir>
                <id>37324</id>
                <createdOn>2016-06-23T09:57:58Z</createdOn>
                <modifiedOn>2016-06-23T09:57:58Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>17</code>
            </UnitDir>
            <UnitDir>
                <id>37325</id>
                <createdOn>2016-06-23T09:58:04Z</createdOn>
                <modifiedOn>2016-06-23T09:58:04Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>18</code>
            </UnitDir>
            <UnitDir>
                <id>37326</id>
                <createdOn>2016-06-23T09:58:08Z</createdOn>
                <modifiedOn>2016-06-23T09:58:08Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>19</code>
            </UnitDir>
            <UnitDir>
                <id>37309</id>
                <createdOn>2016-06-23T09:56:50Z</createdOn>
                <modifiedOn>2016-06-23T09:56:50Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>2</code>
            </UnitDir>
            <UnitDir>
                <id>37327</id>
                <createdOn>2016-06-23T09:58:13Z</createdOn>
                <modifiedOn>2016-06-23T09:58:13Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>20</code>
            </UnitDir>
            <UnitDir>
                <id>37328</id>
                <createdOn>2016-06-23T09:58:18Z</createdOn>
                <modifiedOn>2016-06-23T09:58:18Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>21</code>
            </UnitDir>
            <UnitDir>
                <id>37329</id>
                <createdOn>2016-06-23T09:58:23Z</createdOn>
                <modifiedOn>2016-06-23T09:58:23Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>22</code>
            </UnitDir>
            <UnitDir>
                <id>37330</id>
                <createdOn>2016-06-23T09:58:27Z</createdOn>
                <modifiedOn>2016-06-23T09:58:27Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>23</code>
            </UnitDir>
            <UnitDir>
                <id>37331</id>
                <createdOn>2016-06-23T09:58:32Z</createdOn>
                <modifiedOn>2016-06-23T09:58:32Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>24</code>
            </UnitDir>
            <UnitDir>
                <id>37332</id>
                <createdOn>2016-06-23T09:58:36Z</createdOn>
                <modifiedOn>2016-06-23T09:58:36Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>25</code>
            </UnitDir>
            <UnitDir>
                <id>37333</id>
                <createdOn>2016-06-23T09:58:41Z</createdOn>
                <modifiedOn>2016-06-23T09:58:41Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>26</code>
            </UnitDir>
            <UnitDir>
                <id>37334</id>
                <createdOn>2016-06-23T09:58:52Z</createdOn>
                <modifiedOn>2016-06-23T09:58:52Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>27</code>
            </UnitDir>
            <UnitDir>
                <id>37335</id>
                <createdOn>2016-06-23T09:58:57Z</createdOn>
                <modifiedOn>2016-06-23T09:58:57Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>28</code>
            </UnitDir>
            <UnitDir>
                <id>37336</id>
                <createdOn>2016-06-23T09:59:03Z</createdOn>
                <modifiedOn>2016-06-23T09:59:08Z</modifiedOn>
                <version>1</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>29</code>
            </UnitDir>
            <UnitDir>
                <id>37310</id>
                <createdOn>2016-06-23T09:56:53Z</createdOn>
                <modifiedOn>2016-06-23T09:56:53Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>3</code>
            </UnitDir>
            <UnitDir>
                <id>37337</id>
                <createdOn>2016-06-23T09:59:16Z</createdOn>
                <modifiedOn>2016-06-23T09:59:16Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>30</code>
            </UnitDir>
            <UnitDir>
                <id>37338</id>
                <createdOn>2016-06-23T09:59:21Z</createdOn>
                <modifiedOn>2016-06-23T09:59:21Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>31</code>
            </UnitDir>
            <UnitDir>
                <id>37339</id>
                <createdOn>2016-06-23T09:59:25Z</createdOn>
                <modifiedOn>2016-06-23T09:59:25Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>32</code>
            </UnitDir>
            <UnitDir>
                <id>37340</id>
                <createdOn>2016-06-23T09:59:32Z</createdOn>
                <modifiedOn>2016-06-23T09:59:32Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>33</code>
            </UnitDir>
            <UnitDir>
                <id>37341</id>
                <createdOn>2016-06-23T09:59:39Z</createdOn>
                <modifiedOn>2016-06-23T09:59:39Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>34</code>
            </UnitDir>
            <UnitDir>
                <id>37342</id>
                <createdOn>2016-06-23T09:59:44Z</createdOn>
                <modifiedOn>2016-06-23T09:59:44Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>35</code>
            </UnitDir>
            <UnitDir>
                <id>37343</id>
                <createdOn>2016-06-23T09:59:50Z</createdOn>
                <modifiedOn>2016-06-23T09:59:50Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>36</code>
            </UnitDir>
            <UnitDir>
                <id>37344</id>
                <createdOn>2016-06-23T09:59:55Z</createdOn>
                <modifiedOn>2016-06-23T09:59:55Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>37</code>
            </UnitDir>
            <UnitDir>
                <id>37345</id>
                <createdOn>2016-06-23T10:00:00Z</createdOn>
                <modifiedOn>2016-06-23T10:00:00Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>38</code>
            </UnitDir>
            <UnitDir>
                <id>37346</id>
                <createdOn>2016-06-23T10:00:06Z</createdOn>
                <modifiedOn>2016-06-23T10:00:06Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>39</code>
            </UnitDir>
            <UnitDir>
                <id>37311</id>
                <createdOn>2016-06-23T09:56:56Z</createdOn>
                <modifiedOn>2016-06-23T09:56:56Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>4</code>
            </UnitDir>
            <UnitDir>
                <id>37347</id>
                <createdOn>2016-06-23T10:00:11Z</createdOn>
                <modifiedOn>2016-06-23T10:00:11Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>40</code>
            </UnitDir>
            <UnitDir>
                <id>37348</id>
                <createdOn>2016-06-23T10:00:18Z</createdOn>
                <modifiedOn>2016-06-23T10:00:18Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>41</code>
            </UnitDir>
            <UnitDir>
                <id>37349</id>
                <createdOn>2016-06-23T10:00:24Z</createdOn>
                <modifiedOn>2016-06-23T10:00:24Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>42</code>
            </UnitDir>
            <UnitDir>
                <id>37350</id>
                <createdOn>2016-06-23T10:00:29Z</createdOn>
                <modifiedOn>2016-06-23T10:00:29Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>43</code>
            </UnitDir>
            <UnitDir>
                <id>37351</id>
                <createdOn>2016-06-23T10:00:35Z</createdOn>
                <modifiedOn>2016-06-23T10:00:35Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>44</code>
            </UnitDir>
            <UnitDir>
                <id>37352</id>
                <createdOn>2016-06-23T10:00:43Z</createdOn>
                <modifiedOn>2016-06-23T10:00:43Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>45</code>
            </UnitDir>
            <UnitDir>
                <id>37353</id>
                <createdOn>2016-06-23T10:00:47Z</createdOn>
                <modifiedOn>2016-06-23T10:00:47Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>46</code>
            </UnitDir>
            <UnitDir>
                <id>37354</id>
                <createdOn>2016-06-23T10:00:51Z</createdOn>
                <modifiedOn>2016-06-23T10:00:51Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>47</code>
            </UnitDir>
            <UnitDir>
                <id>37355</id>
                <createdOn>2016-06-23T10:00:56Z</createdOn>
                <modifiedOn>2016-06-23T10:00:56Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>48</code>
            </UnitDir>
            <UnitDir>
                <id>37356</id>
                <createdOn>2016-06-23T10:01:00Z</createdOn>
                <modifiedOn>2016-06-23T10:01:00Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>49</code>
            </UnitDir>
            <UnitDir>
                <id>37312</id>
                <createdOn>2016-06-23T09:57:01Z</createdOn>
                <modifiedOn>2016-06-23T09:57:01Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>5</code>
            </UnitDir>
            <UnitDir>
                <id>37357</id>
                <createdOn>2016-06-23T10:01:05Z</createdOn>
                <modifiedOn>2016-06-23T10:01:05Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>50</code>
            </UnitDir>
            <UnitDir>
                <id>37313</id>
                <createdOn>2016-06-23T09:57:05Z</createdOn>
                <modifiedOn>2016-06-23T09:57:05Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>6</code>
            </UnitDir>
            <UnitDir>
                <id>37314</id>
                <createdOn>2016-06-23T09:57:08Z</createdOn>
                <modifiedOn>2016-06-23T09:57:08Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>7</code>
            </UnitDir>
            <UnitDir>
                <id>37315</id>
                <createdOn>2016-06-23T09:57:13Z</createdOn>
                <modifiedOn>2016-06-23T09:57:13Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>8</code>
            </UnitDir>
            <UnitDir>
                <id>37316</id>
                <createdOn>2016-06-23T09:57:18Z</createdOn>
                <modifiedOn>2016-06-23T09:57:18Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>9</code>
            </UnitDir>
            <UnitDir>
                <id>37285</id>
                <createdOn>2016-06-23T09:54:16Z</createdOn>
                <modifiedOn>2016-06-23T09:54:16Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>a</code>
            </UnitDir>
            <UnitDir>
                <id>37286</id>
                <createdOn>2016-06-23T09:54:25Z</createdOn>
                <modifiedOn>2016-06-23T09:54:25Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>b</code>
            </UnitDir>
            <UnitDir>
                <id>37287</id>
                <createdOn>2016-06-23T09:54:30Z</createdOn>
                <modifiedOn>2016-06-23T09:54:30Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>c</code>
            </UnitDir>
            <UnitDir>
                <id>37288</id>
                <createdOn>2016-06-23T09:54:34Z</createdOn>
                <modifiedOn>2016-06-23T09:54:34Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>d</code>
            </UnitDir>
            <UnitDir>
                <id>37289</id>
                <createdOn>2016-06-23T09:54:42Z</createdOn>
                <modifiedOn>2016-06-23T09:54:42Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>e</code>
            </UnitDir>
            <UnitDir>
                <id>37290</id>
                <createdOn>2016-06-23T09:54:46Z</createdOn>
                <modifiedOn>2016-06-23T09:54:46Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>f</code>
            </UnitDir>
            <UnitDir>
                <id>37291</id>
                <createdOn>2016-06-23T09:54:50Z</createdOn>
                <modifiedOn>2016-06-23T09:54:50Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>g</code>
            </UnitDir>
            <UnitDir>
                <id>37292</id>
                <createdOn>2016-06-23T09:54:55Z</createdOn>
                <modifiedOn>2016-06-23T09:54:55Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>h</code>
            </UnitDir>
            <UnitDir>
                <id>37293</id>
                <createdOn>2016-06-23T09:55:00Z</createdOn>
                <modifiedOn>2016-06-23T09:55:00Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>i</code>
            </UnitDir>
            <UnitDir>
                <id>37294</id>
                <createdOn>2016-06-23T09:55:05Z</createdOn>
                <modifiedOn>2016-06-23T09:55:05Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>j</code>
            </UnitDir>
            <UnitDir>
                <id>37295</id>
                <createdOn>2016-06-23T09:55:10Z</createdOn>
                <modifiedOn>2016-06-23T09:55:10Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>k</code>
            </UnitDir>
            <UnitDir>
                <id>341</id>
                <createdOn>2014-03-18T10:48:41Z</createdOn>
                <modifiedOn>2016-06-03T12:01:55Z</modifiedOn>
                <version>52</version>
                <createdBy>
                    <id>anonymousUser</id>
                    <code>anonymous</code>
                    <name>nymous</name>
                    <surname>ano</surname>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>1</id>
                    <code>Grupa pierwsza</code>
                </aclGroup>
                <code>kg</code>
                <description>kilogram</description>
                <validFrom>2015-05-26</validFrom>
                <validTo>2015-05-28</validTo>
            </UnitDir>
            <UnitDir>
                <id>37296</id>
                <createdOn>2016-06-23T09:55:16Z</createdOn>
                <modifiedOn>2016-06-23T09:55:16Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>l</code>
            </UnitDir>
            <UnitDir>
                <id>3165</id>
                <createdOn>2015-06-19T13:31:54Z</createdOn>
                <modifiedOn>2015-06-19T13:31:54Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>anonymousUser</id>
                    <code>anonymous</code>
                    <name>nymous</name>
                    <surname>ano</surname>
                </createdBy>
                <modifiedBy>
                    <id>anonymousUser</id>
                    <code>anonymous</code>
                    <name>nymous</name>
                    <surname>ano</surname>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>m</code>
                <description>metr</description>
            </UnitDir>
            <UnitDir>
                <id>37558</id>
                <createdOn>2016-07-25T13:58:10Z</createdOn>
                <modifiedOn>2016-07-25T13:58:10Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>jacekr</id>
                    <code>jacekr</code>
                </createdBy>
                <modifiedBy>
                    <id>jacekr</id>
                    <code>jacekr</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>m2</code>
                <description>metr kwadratowy</description>
            </UnitDir>
            <UnitDir>
                <id>34853</id>
                <createdOn>2016-02-10T10:41:51Z</createdOn>
                <modifiedOn>2016-02-10T10:41:51Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>mh</code>
                <description>motogodzina</description>
            </UnitDir>
            <UnitDir>
                <id>37297</id>
                <createdOn>2016-06-23T09:55:28Z</createdOn>
                <modifiedOn>2016-06-23T09:55:28Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>n</code>
            </UnitDir>
            <UnitDir>
                <id>37298</id>
                <createdOn>2016-06-23T09:55:45Z</createdOn>
                <modifiedOn>2016-06-23T09:55:45Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>o</code>
            </UnitDir>
            <UnitDir>
                <id>37299</id>
                <createdOn>2016-06-23T09:55:49Z</createdOn>
                <modifiedOn>2016-06-23T09:55:49Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>p</code>
            </UnitDir>
            <UnitDir>
                <id>344</id>
                <createdOn>2014-03-18T10:48:59Z</createdOn>
                <modifiedOn>2015-05-26T13:39:11Z</modifiedOn>
                <version>22</version>
                <createdBy>
                    <id>anonymousUser</id>
                    <code>anonymous</code>
                    <name>nymous</name>
                    <surname>ano</surname>
                </createdBy>
                <modifiedBy>
                    <id>anonymousUser</id>
                    <code>anonymous</code>
                    <name>nymous</name>
                    <surname>ano</surname>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>pk</code>
                <description>paczki</description>
                <validFrom>2015-05-18</validFrom>
                <validTo>2015-05-19</validTo>
            </UnitDir>
            <UnitDir>
                <id>37300</id>
                <createdOn>2016-06-23T09:55:53Z</createdOn>
                <modifiedOn>2016-06-23T09:55:53Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>q</code>
            </UnitDir>
            <UnitDir>
                <id>37301</id>
                <createdOn>2016-06-23T09:55:57Z</createdOn>
                <modifiedOn>2016-06-23T09:55:57Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>r</code>
            </UnitDir>
            <UnitDir>
                <id>34852</id>
                <createdOn>2016-02-10T10:41:30Z</createdOn>
                <modifiedOn>2016-02-10T10:41:30Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>rh</code>
                <description>roboczogodzina</description>
            </UnitDir>
            <UnitDir>
                <id>37302</id>
                <createdOn>2016-06-23T09:56:02Z</createdOn>
                <modifiedOn>2016-09-27T12:58:53Z</modifiedOn>
                <version>1</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>mateuszw</id>
                    <code>mateuszw</code>
                    <name>Mateusz</name>
                    <surname>Wontorski</surname>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>s</code>
                <description>sekunda</description>
            </UnitDir>
            <UnitDir>
                <id>342</id>
                <createdOn>2014-03-18T10:48:59Z</createdOn>
                <modifiedOn>2016-08-24T14:11:03Z</modifiedOn>
                <version>21</version>
                <createdBy>
                    <id>anonymousUser</id>
                    <code>anonymous</code>
                    <name>nymous</name>
                    <surname>ano</surname>
                </createdBy>
                <modifiedBy>
                    <id>anonymousUser</id>
                    <code>anonymous</code>
                    <name>nymous</name>
                    <surname>ano</surname>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>szt</code>
                <description>sztuki</description>
                <validFrom>2015-05-26</validFrom>
            </UnitDir>
            <UnitDir>
                <id>37303</id>
                <createdOn>2016-06-23T09:56:06Z</createdOn>
                <modifiedOn>2016-06-23T09:56:06Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>t</code>
            </UnitDir>
            <UnitDir>
                <id>37304</id>
                <createdOn>2016-06-23T09:56:12Z</createdOn>
                <modifiedOn>2016-09-27T12:52:33Z</modifiedOn>
                <version>1</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>mateuszw</id>
                    <code>mateuszw</code>
                    <name>Mateusz</name>
                    <surname>Wontorski</surname>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>w</code>
                <description>wat</description>
            </UnitDir>
            <UnitDir>
                <id>37305</id>
                <createdOn>2016-06-23T09:56:19Z</createdOn>
                <modifiedOn>2016-06-23T09:56:19Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>x</code>
            </UnitDir>
            <UnitDir>
                <id>37306</id>
                <createdOn>2016-06-23T09:56:23Z</createdOn>
                <modifiedOn>2016-06-23T09:56:23Z</modifiedOn>
                <version>0</version>
                <createdBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </createdBy>
                <modifiedBy>
                    <id>michalg</id>
                    <code>michalg</code>
                </modifiedBy>
                <aclGroup>
                    <id>0</id>
                    <code>Grupa zerowa</code>
                </aclGroup>
                <code>y</code>
            </UnitDir>
        </data>
        <requestedDataSource>UnitDir</requestedDataSource>
        <status>STATUS_SUCCESS</status>
    </response>
    SmartClient Version: v11.0p_2016-08-22/LGPL Development Only (built 2016-08-22)
    Observed in Chrominium 38.0.2125.101 (290379) (64-bit), FF 24.8.0 and others
    Thanks,
    MichalG

    #2
    Just a quick not to let you know we see the problem and agree that there's a bug here. We are working on a fix and should have something in the next day or two.

    Regards
    Isomorphic Software

    Comment


      #3
      We've made a change to the 6.0p and 6.1d branches which should address this issue. Please try the next nightly build, dated October 7 or above to pick up the change.

      Regards
      Isomorphic Software

      Comment


        #4
        Right, it is working now.
        Many thanks.
        Just one more thing: it still reverts value if ComboBoxItem.setFormatOnBlur(true) is used, even though no formatter is set:
        Code:
        package pl.com.tech4.client;
        
        import com.google.gwt.core.client.EntryPoint;
        import com.smartgwt.client.data.DataSource;
        import com.smartgwt.client.data.Record;
        import com.smartgwt.client.data.fields.DataSourceIntegerField;
        import com.smartgwt.client.data.fields.DataSourceTextField;
        import com.smartgwt.client.util.SC;
        import com.smartgwt.client.widgets.form.DynamicForm;
        import com.smartgwt.client.widgets.form.FormItemValueFormatter;
        import com.smartgwt.client.widgets.form.fields.ComboBoxItem;
        import com.smartgwt.client.widgets.form.fields.FormItem;
        import com.smartgwt.client.widgets.layout.VLayout;
        
        public class MainEntryPoint implements EntryPoint {
         
            private DynamicForm df = null;
            private DataSource ds = null;
            private DataSource unitDS = null;
               
            public void onModuleLoad() {
                doLayout();
            }
           
            private void doLayout() {
                VLayout main = new VLayout();
               
                unitDS = new DataSource("UnitDir");
                unitDS.setRecordXPath("/response/data/UnitDir");
                DataSourceIntegerField idUnitField = new DataSourceIntegerField("id");
                idUnitField.setHidden(true);
                idUnitField.setPrimaryKey(true);
                DataSourceTextField codeField = new DataSourceTextField("code");
                unitDS.setFields(idUnitField, codeField);
                unitDS.setDataURL("UnitDir.xml");
                unitDS.setClientOnly(true);
               
                ds = new DataSource("ResourceUsedItem");
                ds.setRecordXPath("/response/data/ResourceUsedItem");
                DataSourceIntegerField idField = new DataSourceIntegerField("id");
                idField.setHidden(true);
                idField.setPrimaryKey(true);
                DataSourceTextField unitField = new DataSourceTextField("unit");
                unitField.setForeignKey("UnitDir.id");
                unitField.setValueXPath("unit/id");
                ComboBoxItem unitItem = new ComboBoxItem();
                unitItem.setDisplayField("code");
                unitItem.setValueField("id");
                unitItem.setOptionDataSource(unitDS);
                unitItem.setAddUnknownValues(false);
                unitItem.setFetchDelay(2000);
                unitItem.setFormatOnBlur(true);
                unitField.setEditorProperties(unitItem);
                ds.setFields(idField, unitField);
                ds.setDataURL("ResourceUsedItem.xml");
                ds.setClientOnly(true);
               
                df = new DynamicForm();
                df.setDataSource(ds);
                df.fetchData();
                main.addMember(df);
                main.draw();
            }
         
        }
        Any chance to fix this too?
        MichalG

        Comment


          #5
          Also if you try to make any format display modification, for example:
          Code:
                  unitItem.setEditorValueFormatter(new FormItemValueFormatter() {
          
                      public String formatValue(Object value, Record record, DynamicForm form, FormItem item) {
                          return "(" + (String) value + ")";
                      }
                  });
          then it is still not good (selected and changed value is reverted to original a moment later.
          Code:
          package pl.com.tech4.client;
          
          import com.google.gwt.core.client.EntryPoint;
          import com.smartgwt.client.data.DataSource;
          import com.smartgwt.client.data.Record;
          import com.smartgwt.client.data.fields.DataSourceIntegerField;
          import com.smartgwt.client.data.fields.DataSourceTextField;
          import com.smartgwt.client.widgets.form.DynamicForm;
          import com.smartgwt.client.widgets.form.FormItemValueFormatter;
          import com.smartgwt.client.widgets.form.fields.ComboBoxItem;
          import com.smartgwt.client.widgets.form.fields.FormItem;
          import com.smartgwt.client.widgets.layout.VLayout;
          
          public class MainEntryPoint implements EntryPoint {
           
              private DynamicForm df = null;
              private DataSource ds = null;
              private DataSource unitDS = null;
                 
              public void onModuleLoad() {
                  doLayout();
              }
             
              private void doLayout() {
                  VLayout main = new VLayout();
                 
                  unitDS = new DataSource("UnitDir");
                  unitDS.setRecordXPath("/response/data/UnitDir");
                  DataSourceIntegerField idUnitField = new DataSourceIntegerField("id");
                  idUnitField.setHidden(true);
                  idUnitField.setPrimaryKey(true);
                  DataSourceTextField codeField = new DataSourceTextField("code");
                  unitDS.setFields(idUnitField, codeField);
                  unitDS.setDataURL("UnitDir.xml");
                  unitDS.setClientOnly(true);
                 
                  ds = new DataSource("ResourceUsedItem");
                  ds.setRecordXPath("/response/data/ResourceUsedItem");
                  DataSourceIntegerField idField = new DataSourceIntegerField("id");
                  idField.setHidden(true);
                  idField.setPrimaryKey(true);
                  DataSourceTextField unitField = new DataSourceTextField("unit");
                  unitField.setForeignKey("UnitDir.id");
                  unitField.setValueXPath("unit/id");
                  ComboBoxItem unitItem = new ComboBoxItem();
                  unitItem.setDisplayField("code");
                  unitItem.setValueField("id");
                  unitItem.setOptionDataSource(unitDS);
                  unitItem.setAddUnknownValues(false);
                  unitItem.setFetchDelay(2000);
          //        unitItem.setFormatOnBlur(true);
                  unitItem.setEditorValueFormatter(new FormItemValueFormatter() {
          
                      public String formatValue(Object value, Record record, DynamicForm form, FormItem item) {
                          return "(" + (String) value + ")";
                      }
                  });        
                  unitField.setEditorProperties(unitItem);
                  ds.setFields(idField, unitField);
                  ds.setDataURL("ResourceUsedItem.xml");
                  ds.setClientOnly(true);
                 
                  df = new DynamicForm();
                  df.setDataSource(ds);
                  df.fetchData();
                  main.addMember(df);
                  main.draw();
              }
           
          }
          Thanks,
          MichalG

          Comment


            #6
            Hi,
            It seems from testing against 11.0p 2016-10-14 that all the isuues has been fixed except the one mentioned in #4 (formatOnBlur=true).
            Is there any chance to fix that one too?
            Thanks,
            MichalG

            Originally posted by michalg View Post
            Just one more thing: it still reverts value if ComboBoxItem.setFormatOnBlur(true) is used, even though no formatter is set:
            Code:
            package pl.com.tech4.client;
            
            import com.google.gwt.core.client.EntryPoint;
            import com.smartgwt.client.data.DataSource;
            import com.smartgwt.client.data.Record;
            import com.smartgwt.client.data.fields.DataSourceIntegerField;
            import com.smartgwt.client.data.fields.DataSourceTextField;
            import com.smartgwt.client.util.SC;
            import com.smartgwt.client.widgets.form.DynamicForm;
            import com.smartgwt.client.widgets.form.FormItemValueFormatter;
            import com.smartgwt.client.widgets.form.fields.ComboBoxItem;
            import com.smartgwt.client.widgets.form.fields.FormItem;
            import com.smartgwt.client.widgets.layout.VLayout;
            
            public class MainEntryPoint implements EntryPoint {
            
            private DynamicForm df = null;
            private DataSource ds = null;
            private DataSource unitDS = null;
            
            public void onModuleLoad() {
            doLayout();
            }
            
            private void doLayout() {
            VLayout main = new VLayout();
            
            unitDS = new DataSource("UnitDir");
            unitDS.setRecordXPath("/response/data/UnitDir");
            DataSourceIntegerField idUnitField = new DataSourceIntegerField("id");
            idUnitField.setHidden(true);
            idUnitField.setPrimaryKey(true);
            DataSourceTextField codeField = new DataSourceTextField("code");
            unitDS.setFields(idUnitField, codeField);
            unitDS.setDataURL("UnitDir.xml");
            unitDS.setClientOnly(true);
            
            ds = new DataSource("ResourceUsedItem");
            ds.setRecordXPath("/response/data/ResourceUsedItem");
            DataSourceIntegerField idField = new DataSourceIntegerField("id");
            idField.setHidden(true);
            idField.setPrimaryKey(true);
            DataSourceTextField unitField = new DataSourceTextField("unit");
            unitField.setForeignKey("UnitDir.id");
            unitField.setValueXPath("unit/id");
            ComboBoxItem unitItem = new ComboBoxItem();
            unitItem.setDisplayField("code");
            unitItem.setValueField("id");
            unitItem.setOptionDataSource(unitDS);
            unitItem.setAddUnknownValues(false);
            unitItem.setFetchDelay(2000);
            unitItem.setFormatOnBlur(true);
            unitField.setEditorProperties(unitItem);
            ds.setFields(idField, unitField);
            ds.setDataURL("ResourceUsedItem.xml");
            ds.setClientOnly(true);
            
            df = new DynamicForm();
            df.setDataSource(ds);
            df.fetchData();
            main.addMember(df);
            main.draw();
            }
            
            }

            Comment

            Working...
            X