OK, so I've been meaning to ask about this for a long time, but you know what, there's only 24 hrs in a day.
I have a datasource with a foreign key item, like this:
I then have a DynamicForm with a bunch of items, including a comboboxitem for the reporter field.
I then have a list grid with all users, and when I click on the list grid, I populate the items.
Now, I notice that when I click on the first row in the grid and populate the Form for the first time, a fetch is triggered on my User datasource:
I thought this was needed, because of the field described above. However, when I then go in and edit the form, and click on the ComboboxItem for the first time, another fetch is issued!
As you can see, the textMatchStyle is the only thing that's different, but the first time the form component is requesting, and then the picklistmenu component requests again.
This is of course wasteful, is there anything I can do about it? I have the same issue for all forms with a databound foreign key FormItem in it.
I have a datasource with a foreign key item, like this:
Code:
<field name="reporterId" type="integer" title="Användare" foreignKey="user.id" required="false" combo="true"/>
I then have a list grid with all users, and when I click on the list grid, I populate the items.
Now, I notice that when I click on the first row in the grid and populate the Form for the first time, a fetch is triggered on my User datasource:
Code:
<operationConfig xsi:type="xsd:Object"> <dataSource>user</dataSource><repo xsi:nil="true"/> <operationType>fetch</operationType> <textMatchStyle>exact</textMatchStyle> </operationConfig> <componentId>isc_DefaultForm_0</componentId>< <operation>user_fetch</operation>
Code:
<operationConfig xsi:type="xsd:Object"> <dataSource>user</dataSource> <repo xsi:nil="true"/> <operationType>fetch</operationType> <textMatchStyle>substring</textMatchStyle> </operationConfig> <componentId>isc_PickListMenu_0</componentId> <appID>builtinApplication</appID> <operation>user_fetch</operation>
This is of course wasteful, is there anything I can do about it? I have the same issue for all forms with a databound foreign key FormItem in it.
Comment