Skip to content

Commit

Permalink
Feature/fix issue string size table fields (#26)
Browse files Browse the repository at this point in the history
* Update ARBAOTBrowser.xml

Fix StringSize property value

* Update ARBAOTBrowser.xml

* Change string size lookup to use MetadataSupport

* Removing workingTableId variable since it is no longer needed

---------

Co-authored-by: Caleb Blanchard <[email protected]>
  • Loading branch information
HieiOne and Caleb Blanchard authored May 17, 2023
1 parent 74361dd commit cca0d9b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Metadata/AOTBrowser/AOTBrowser/AxForm/ARBAOTBrowser.xml
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,20 @@ public class ARBAOTBrowser extends FormRun
AxEnumValue enumValue = _object as AxEnumValue;
value = int2Str(symbol2Enum(enumName2Id(enum.Name), enumValue.Name));
}
else if (_object is AxTableFieldString && _property.Name == "StringSize")
{
AxTableFieldString fieldString = _object;
AxEdt extendsEdt = Xpp.MetadataSupport::GetEdt(fieldString.ExtendedDataType);
if (extendsEdt != null)
{
AxEdtString extendsEdtString = extendsEdt as AxEdtString;
value = int2Str(extendsEdtString.StringSize);
}
else
{
value = _property.GetValue(_object).ToString();
}
}
else
{
value = (_property.Name == ARBAOTBrowserConstants::Label
Expand Down

0 comments on commit cca0d9b

Please sign in to comment.