Consider the case where you need to set some non-behaviour property as follows:
{ Foo: Lookup(ListA, title=Dropdown.Selected.Value).fooColumn, Bar: Lookup(ListA, title=Dropdown.Selected.Value).barColumn, Baz: Lookup(ListA, title=Dropdown.Selected.Value).bazColumn }
In that example, we had to perform 3 lookups to the same item, because we have no way of storing data in properties. We cant use Set() in non-behaviour properties.
To improve this situation, why not introduce a let style operator, similar to clojure's (let) function, that lets us temporarily store values.
With let, we could re-write the above as follows:
Let(
{LookupItem: Lookup(ListA, title=Dropdown.Selected.Value)}, { Foo: LookupItem.fooColumn, Bar: LookupItem.barColumn, Baz: LookupItem.bazColumn } )
This would save two network calls!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.