Fork me on GitHub
#fulcro
<
2023-09-02
>
fappy17:09:22

hi 🙂 in fulcro-rad, can one entry in ro/controls access the value that a sibling control stored as a local parameter in the report? If so, how is that done? for example: if fulcro-rad-demo’s InventoryReport had a “new item” button control, I could take the selected category from the ::category picker, and pass it in via the 3rd argument to form/create! to set a default value for Category when creating that new item …

(form/create! this ItemForm
  {:initial-state {:item/category category}})
… Also I think my code above is not quite right

Jakub Holý (HolyJak)09:09:17

I have access to the form instance in the control handlers, so you should be able to get the info from there, I believe. Just explore what is in the client db…

👀 2