By Chan - 10/2/2008
Hi,
As I remember some post mentioned latest version of SF has new property to specify default description field for sorting purpose at each BO. Is it implemented?
Thank you
|
By Trent L. Taylor - 10/3/2008
Yes, you just open the BO mapper and then select the field in question. Go to the custom properties and you can set the description to whatever you like regardless of where you are pulling the schem from. Also, be sure to rebuild the partial class after you do this.
|
By Chan - 10/3/2008
Hi
Thank you for reply.
Since I can set Field Description to every field, how does SF know which field to use as default sorting?
Thank you
|
By Trent L. Taylor - 10/5/2008
It will use the last one set. You should only set one here otherwise you may not get the result you were expecting.
|
By Chan - 10/6/2008
Hi,
If I am not mistaken, Field Description will be used to display at Data Conflict dialog as well. If only one could be set, then would it missing its purpose?
Thank you
|
By Trent L. Taylor - 10/6/2008
I didn't understand the second part of your question, but yes, the Description attribute is what gets used for concurrency conflict descriptions.
|
By Chan - 10/6/2008
Hi,
Since the Description attribute is what gets used for concurrency conflict descriptions, therefore, I will set value to ALL field Description.
In this case, would default sort feature work? If yes, how does SF determine which field to use?
If not, do you think having additional property for this purpose is better?
Thank you
|
By Trent L. Taylor - 10/7/2008
I think that there is some confusion here. The description attribute on the strong-typed field property is for description purposes only. It is shown in the type editors and concurrency exceptions. But when selected as a search field in a Browse Dialog, you can change the text that will appear on the label right there. This has absolutely nothing to do with a sort. Just the label text. The sort is applied to the values inside of the column that you define on the BrowseResultsLayout.
|
By Chan - 10/7/2008
Hi,
Thank you for clarification.
Then, is there any property in BO to set for default sort field (not browsedialog)?
|
By Trent L. Taylor - 10/7/2008
Well, you could set the Sort property of the BO...is that what you mean?
|