Recalculating Assessment Data for Demand?

SandyL83
Tera Guru

Hello,

I have a requirement to recalculate the Assessment Data Results on Demands. 

Current Assessment Data looks like this:

SandyL83_0-1679065678365.png

 

 

 

On the Assessment Instance, the user can update the values:

SandyL83_1-1679065678330.png

 

 

 

I am looking to create  UI Action on the demand page to recalculate the assessment data.. any ideas?


THank you

1 ACCEPTED SOLUTION

Ok, so now try to determine whether the business rule is running or not - do you still have the logging line, and are you seeing anything in the logs?

art_jones_0-1680110006654.png

I edited 4 values so this gets logged when the business rule runs

art_jones_1-1680110075330.png

 

 

 

View solution in original post

24 REPLIES 24

Hi, I think that error is related to the ui action (it has the rerun_metrics action reference).  Can you confirm that your ui action looks like this:

art_jones_1-1680020489396.png

 

Also I'm not sure why the business rule isn't running when you update the assessment question values.  Can you confirm that these are the values you are editing from the related list on the assessment instance record:

art_jones_3-1680020761535.png

 

 

 

Hello,

yes the UI action looks the same as yours:

SandyL83_0-1680022399866.png

 

And, to update the values yes I am going here:

SandyL83_1-1680022464827.png

Then here:

SandyL83_0-1680022589539.png

 

SandyL83_1-1680022658707.png

 

 

 

The last screenshot does not look like the correct record, it looks like the result as opposed to the instance question.  That's probably  the issue, as I believe for this to work the user should be editing the instance question record, not the results record.  The results are calculated so you don't want the user editing those, rather they should edit their original answer. Then the results are re-calculated in the business rule. 

 

This stuff can be quite confusing as there are a lot of tables involved. Also if the processes have been customized it can be even more confusing.  Based on you images above I think some things have been customized on the demand related lists.

 

Unf, I don't think you'll be able to get this working if users are editing the results records, because that will cause the normalized values to be out of synch with the other values.

 

Try opening the Assessment Instance form and add the Assessment Instance Questions related list to it, then retry the process by editing the value field on that list.

art_jones_0-1680027264768.png

 

art_jones_1-1680027275784.png

 

 

SandyL83
Tera Guru

Hello,

thanks! I see what you're saying and I added the Assessment Instance questions related list and am updating from there. 

No luck, I really think it's something with the business rule because when I debug I still see the message that says 10:38:36.10 Action script not found: rerun_metrics

 

Thanks again for all of your help.. I am going to keep trying to troubleshoot. If anything else pops into your mind just let me know. Thanks so much. 

 

 

Try changing the name of the business rule (from Rerun Metrics to Rerun Metrics New), and also the name of the action in the ui action (from rerun_metrics to rerun_metrics2).  See which change makes the error change.