To get all dimension with - separated with provided dimension recid
Code:-
public static str Getdimensionset(RecId recid)
{
str descriptionLedgerLoc = '';
boolean first = true;
DimensionAttributeLevelValueAllView view,viewloc;
DimensionAttributeValue dimValue;
DimensionAttributeValueGroup dimensionAttributeValueGroup;
container con;
select firstonly viewloc
where viewloc.ValueCombinationRecId==recid;
while select view order by view.ValueOrdinal asc
where view.ValueCombinationRecId == recid
&& view.DimensionAttributeValueGroup==viewloc.DimensionAttributeValueGroup
{
if (!first)
{
descriptionLedgerLoc += " - ";
}
descriptionLedgerLoc +=view.DisplayValue ;
first = false;
}
return descriptionLedgerLoc;
}
Note:-dimensions will get with - separated
Thank you!!
.png)
.png)
.png)



