[bug_fixed] New Feature: LinkedFieldNames Vs IndexFieldNames
Posted: 09.10.2006, 02:07
Dear Zeos Team
I did some changes of the original IndexFieldNames property to be LinkedFields property for conducting master-detail relationship. After this change, Old code still 100% work without remapping every call to IndexFieldNames to LinkedFields (as mdeams whishes). And I added a new IndexFieldNames property for sorting purpose, conforming to IndexFieldNames property of ADO dataset. Consequently, sorting data can be conducted by either IndexFieldNames property or combination of SortedFieldNames and SortType properties. By entering certain value (corresponding name of one or more fields of dataset) into one of the three properties, other property automatically make synchronization.
Suppose we want to sort data by e.g. FirstName in ascending order, we can either enter or select from list FirstName field via SortedFields property and set SortType property to be stAscending, and then the value of IndexFieldNames would be automatically “FirstName Asc”. Or we can enter “FirstName Asc” into IndexFieldNames property, so SortedField and SortType will be FirstName and stAscending.
Don’t worry about compatibility, it fully compatible. For all other user that were using IndexFieldNames as master-detail relationship, they just have to make little bit modification by moving the value of old Indexfieldnames property into LinkedFields, or by replacing their code corresponding IndexFieldNames by LinkedFields if they were making master-detail relationship programmatically, and everything will work properly. I have made very hard testing and I have used it in production purpose and everything looks good.
If we use TUltimGrid from JEDI, and we set its TitleButton property to True, in run time we can make sorting for each fields just by pressing any title of its columns.
Finally, if the members of this forum can accept these changes, I wish it will be added to the SVN project repository.
Note:
In these changes, also contain previous addition and modifications, thus are:
- BeforeApplyUpdates event
- AfterApplyUpdates event
- SortType property
- EmptyDataSet method
- InternalPost bug-fix
- InternalPost modification
Under construction: ChangedCount property.
Thanks a lot.
Bangfauzan (Fauzan Badriawan Madura Indonesia)
I did some changes of the original IndexFieldNames property to be LinkedFields property for conducting master-detail relationship. After this change, Old code still 100% work without remapping every call to IndexFieldNames to LinkedFields (as mdeams whishes). And I added a new IndexFieldNames property for sorting purpose, conforming to IndexFieldNames property of ADO dataset. Consequently, sorting data can be conducted by either IndexFieldNames property or combination of SortedFieldNames and SortType properties. By entering certain value (corresponding name of one or more fields of dataset) into one of the three properties, other property automatically make synchronization.
Suppose we want to sort data by e.g. FirstName in ascending order, we can either enter or select from list FirstName field via SortedFields property and set SortType property to be stAscending, and then the value of IndexFieldNames would be automatically “FirstName Asc”. Or we can enter “FirstName Asc” into IndexFieldNames property, so SortedField and SortType will be FirstName and stAscending.
Don’t worry about compatibility, it fully compatible. For all other user that were using IndexFieldNames as master-detail relationship, they just have to make little bit modification by moving the value of old Indexfieldnames property into LinkedFields, or by replacing their code corresponding IndexFieldNames by LinkedFields if they were making master-detail relationship programmatically, and everything will work properly. I have made very hard testing and I have used it in production purpose and everything looks good.
If we use TUltimGrid from JEDI, and we set its TitleButton property to True, in run time we can make sorting for each fields just by pressing any title of its columns.
Finally, if the members of this forum can accept these changes, I wish it will be added to the SVN project repository.
Note:
In these changes, also contain previous addition and modifications, thus are:
- BeforeApplyUpdates event
- AfterApplyUpdates event
- SortType property
- EmptyDataSet method
- InternalPost bug-fix
- InternalPost modification
Under construction: ChangedCount property.
Thanks a lot.
Bangfauzan (Fauzan Badriawan Madura Indonesia)