Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add client-side projectResultService to perform calculation for a pro… #1507

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

entrotech
Copy link
Member

@entrotech entrotech commented Nov 10, 2023

…ject and return a populated rules array

I implemented a client-side projectResult.service which accepts a projectId and gets the project info including the formInputs and runs the calculationEngine, which results in a populated rules array containing about everything you would need to know about the calculation. This gives you the information for a single row in the desired CSV file representing one project.

Just to test, I hooked this up to the Context Menu Item "Download CSV" on the My Projects page, which then opens a dialog and shows a crude listing of the project rules, from inputs to measures (i.e. strategies) to calculations in roughly the order they appear on the Calculation Wizard.

Screenshots

@entrotech entrotech merged commit 5a8c3a9 into develop Nov 10, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant