the case is the following. When I open a Sales Order form depending on products to have different Form Settings (eg different columns to appear with product A and different with product B)?
You must use the UI-API FormSettings Object for this. This a childobject of the Form (see SDK help for reference)
Depending what the difference are between item A and item B, you will need to keep attention to the performance.