I have a simple table with two input columns bound to a view model (vm). Say one of the properties is vm.ColA and the other is vm.ColB.
There are a number of other columns, so I have used
ko.mapping.fromJS(data, {}, this);
to create observables for each property. However, ColA and ColB must be able to take input, and when they do, influence the other. For example, say there is a Factor property such that (ColA * Factor = ColB) and (ColA = ColB / Factor).
I need to be able to enter a value in ColA and have it calculate ColB, but if I enter a value in ColB, it should calculate ColA.
I have looked at writeable computed observables, but so far, I have not been able to find an example or a discussion about two properties that would influence each other this way.