18.10.2014, 17:47 | #1 |
Участник
|
Default dimension sttribute value as a field on grid
Hi All,
Is there any way to display a field part of default dimension to the grid form control without using display method? I can do this through display method but the user cannot do filtering by this field therefore it is not appropriate. Here is my display method approach: X++: display public DimensionValue displayDefaultDimCostCenter() { DimensionAttributeValueset dimAttrValueSet; DimensionAttributeValueSetItem dimAttrValueSetItem; DimensionAttributeValue dimAttrValue; DimensionAttribute dimAttr; select firstOnly dimAttr where dimAttr.Name == "CostCenter"; select dimAttrValueSet where dimAttrValueSet.RecId == this.DefaultDimension join dimAttrValueSetItem where dimAttrValueSetItem.DimensionAttributeValueSet == dimAttrValueSet.RecId join dimAttrValue where dimAttrValueSetItem.DimensionAttributeValue == dimAttrValue.RecId && dimAttrValue.DimensionAttribute == dimAttr.RecId; return dimAttrValueSetItem.DisplayValue; } Is there any way to do that? Thank you in dvance. |
|
21.10.2014, 07:41 | #2 |
Участник
|
The only way то provide filtering by control that I know - use a joined data source. You can add several related tables directly on the form, or collect them first in the View.
You can also make individual interface to filter for special cases. Then you can set the user filter programmatically. Последний раз редактировалось S.Kuskov; 21.10.2014 в 07:46. |
|
|
|