Filtering Variables based on ForEach #5974
Unanswered
aputhuraya
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to render the
target_table_rowdynamically for eachproperty_target_table, which in turn, renders for each value in theavailable_propertiesvariable (see towards the end for definition of this part)The problem is in rendering the python variable called
budget_value(not a Reflex Var)The statement which sets it's value:
TargetWizardState.budgets[property_id][metric_id]returns an error:
For context, below is how
TargetWizardState.budgetsis defined:I am setting the value for this State variable already using a DB call.
My goal is simple:
For each of the rendered
target_table_row, show thebudget_valuethat corresponds to theproperty_idandmetric_idcoming into thetarget_table_rowfunctionThe problematic code:
Any help is much appreciated!
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions