Hi There,
I have a datastructure which is a self referencing hierarchy of data (structure of ClassABC where the Groups field on ClassABC has a list of ClassABC and so on). Is there any way to set the field layout settings such that it only applies to the very root of the hierarchy.
The following hides the labels, but it hides them for all levels of the hierarchy including the root...
var level = new FieldLayout {Key = "Level"}; level.Fields.Add(CommonFields.Display.GetField("Name")); level.Settings = new FieldLayoutSettings { LabelLocation = LabelLocation.Hidden}; level.Fields.Add(new Field {Name = "Groups", IsExpandable = true, Visibility = Visibility.Hidden}); return new[] {level};
I would like this to only apply to the child levels somehow.
Thank you,
Jonathan
Hi, When you reorder columns at parent level, is there any option to keep field order in sync at the child level?
Hello,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Yes, that worked. Kind of a hack, but it did work. Thanks
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I created two FieldLayouts and apply the first one to the root Records and the second one (where the headers are hidden) to the rest of the records, using the AssignFieldLayoutToItem method. Please let me know if this helps you or you have further questions on this matter.
Looking forward for your reply.