Roger Blanchard
447 posts
Registered:
29 Jun 2018
08 Jun 2021
Link to this post
We have an array in our Totals table called Tots. In the Business Entity Designer we are flattening this array as well as using field names that make sense to the developer. For example, Totals.Tot[8] is named Totals.OnHandUnits.
This works great using the dataset model class as the table model refers to the name we gave it.
When using the REST annotation below what is returned in the json response is the eTotals.Tot[8] not eTotals.OnHandUnits. Is this by design?
@RestAddress (type="record", address="/Item/~{ItemNum}/~{PackNum}", tables="eItem,eTotals,eActiveBatch", id="ItemNum,PackNum",
fields="eItem.*,eTotals.OnHandUnits,eActiveBatch.*", canRead="true", canUpdate="true", canDelete="false",
childAddress="eTotals:/Totals/~{ItemNum}/~{PackNum},eActiveBatch:/ActiveBatch/~{ItemNum}/~{PackNum}"
).