Skip to content
Snippets Groups Projects
Commit 5576240a authored by francois.grand's avatar francois.grand
Browse files

#48 FormResultFixedVar.addFixedParameters() : modif pour tenir compte des...

 #48 FormResultFixedVar.addFixedParameters() : modif pour tenir compte des paramètres liés dont le mode est SINGLE
parent 70e78605
No related branches found
No related tags found
1 merge request!22Resolve "Lier des paramètres ou des résultats entre les calculettes"
import { ResultElement, cLog } from "jalhyd";
import { ResultElement, cLog, ParamValueMode } from "jalhyd";
import { FixedResults } from "../../results/fixed-results";
import { GraphType, VarResults } from "../../results/var-results";
......@@ -40,6 +40,10 @@ export class FormResultFixedVar extends FormResult {
for (const p of this._formBase.getDisplayedParamListFromState(ParamRadioConfig.FIX))
if (p.symbol !== "Pr")
this._fixedResults.addFixedParameter(p);
for (const p of this._formBase.getDisplayedParamListFromState(ParamRadioConfig.LINK))
if (p.paramDefinition.referencedParamValues.valueMode == ParamValueMode.SINGLE)
this._fixedResults.addFixedParameter(p);
}
public set graphType(t: GraphType) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment