public boolean validateFinDim(str _String)
{
DimensionAttributeValue dimensionAttributeValue;
DimensionAttribute dimensionAttribute;
boolean ret = true;
container dimCon = str2con('102-345', "-");
// Departments
if(conPeek(dimCon, 1) != "")
{
dimensionAttribute = DimensionAttribute::findByName('Department');
dimensionAttributeValue = DimensionAttributeValue::findByDimensionAttributeAndValueNoError(dimensionAttribute, conPeek(dimCon, 1), false, true);
if (!dimensionAttributeValue.RecId)
{
ret = checkFailed("Financial dimension Department value is not correct.");
}
return ret;
}
}
have these display values in system 1,2,3,4,5 , if someone use other than these system should throw error , i have created this method , is this approach fine ?André Arnaud de Cal... 291,703 Super User 2024 Season 2
Martin Dráb 230,433 Most Valuable Professional
nmaenpaa 101,156