Sublist values cleared after pageInit Client Script
I am trying to inizialize a Purchase Order created from a Sales Order with Special Order.
I prepared a Client Script with pageInit function.
The body fields are initialized without any problem.
When I initialize the items from “Item” sublist, something strange happens. In particular, I am trying to set the rate field by taking values from a custom field that was inherited from Sales Order. The value is correctly initialized (i see it from the log) but it is cleared immediately afterwards. Obviously I tried the triggers like fireSlavingSync with no effects.
I also tried to use lineInit or sublistChanged entry points without any luck.
Has anybody experienced something like that? Does anybody know what is clearing the values?
Thanks in advance!