Hi all,
So a customer asked us to modify the SalesTable form.
The aim here is to show the description of the configuration(InventDim.configId) of a generic product directly in the lines of a Sales order.
We managed to make a Query that finds the description (in EcoResMasterConfiguration.Description) and we also created a field that shows the description.
The problem is:
When the product configuration is changed directly in the Sales Line, the description field is not updated unless we press F5. We guess this happens because our query is making an outerjoin between tables and the data from the outerjoin is not updated "on the fly".
We tried to insert a datasource.refresh(), datasource.executeQuery() in the InventDim.configId:modified method but this does not update the line when the configId field is changed for a generic product in the sales order line view.
Making a "hidden" F5 is not an option since this will save the rest of the imputed data in the other lanes even if it is wrong or the user has not finished modifying it.
We did not use a Display (which would avoid all these problems) because the client wants to be able to filter through that field.
We did not use a View because the "description" field was not available in the EcoResMasterConfiguration table and we had to make an other join with an other table to obtain it.
Thanks in advance for any help you might have!