Hello,
I have a uBAQ linked to UD110, with one field marked as updatable.(ShortChar08)
I’ve tested the uBAQ and it works as expected in BAQ designer. It calls Ice.BO.DynamicQuerySvc/Update and supplies all display columns visible in the BAQ Designer grid.
I’ve pulled this uBAQ into a Dashboard Panel Grid, with manual column set up (I am omitting some columns that I don’t need to work with in this grid - they are not present + hidden, but rather omitted)
In the ExecuteBaq call at app load, I can see that all display fields set up in my uBAQ are not returned to the client from Epicor. There is a SELECT statement being sent with the call, and only my configured grid columns are present in the payload. They are stored in the DataView tied to the grid. I have ShortChar01 set as a display field in the uBAQ, but it is not configured under Grid Model - columns, for example.
When committing the update with an event using the erp-baq/kinetic-baq widget (why does it have two names now…?), with BAQ Id and View name provided, using update mode and sending a single record, in the network trace I can see that the omitted columns from my grid are not included in the payload. (they couldn’t be, because they were never included on the SELECT statement, so don’t appear in the DataView)
All columns omitted from the grid are nulled in the UD table row on the UpdateBaq call (even though they are not marked updatable in the uBAQ)
Is that expected behavior? I’ve noted that a work-around is to include all display fields from the uBAQ as columns in the grid, but marked as hidden. This includes them in the SELECT statement and they are sent in the payload with the UpdateBaq call.
The uBAQ itself doesn’t list ShortChar01 (and the several other fields that get nulled) as updatable, so it seems like this should not be expected behavior.
Edit: fields not included in the uBAQ at all are being nulled as well.
uBAQ does not include ShortChar10 as a display field,
I’ve stored some data in the ShortChar10 column, then run my test, UpdateBaq BO will null ShortChar10 if not sent in the payload, even if that field is not included in BAQ at all.