So i have a function which calculates ranks for countries but i want this function to be run when:
- user creates a scenario, submits some weightages and then run Fx
- User edits weightages, run Fx
But I am unable to define a function run after create/modify action. Is there any way to approach this?
I know the usual approach would be to store it in the function itself but since the weightages are being stored as part of scenarios and we are directly applying it to scenarios to calculate rank, the weightages are not stored in the writeback dataset.
Any advice would be helpful.