|
Extend the Dot Operator to function after List(And,Or,Rows)
Issue Type: |
Status: |
Priority: |
Date Submitted: |
Votes: |
Enhancement |
More Info Required |
High |
Tue 15th Dec 2015 |
3 votes
|
|
Found in version: |
Last Updated: |
Completed in version: |
Date Completed: |
Track Changes: |
5.0.34.1 |
Wed 23rd Dec 2015 |
|
|
Log In |
|
ElliotM | | Tue 15th Dec 2015 00:53 |
I would like for it to be possible to continue the dot operator after using List(And,Or,Rows).
I originally mentioned this idea in the Enhancement request http://www.adrift.co/bug/19059 by Daza as a point of discussion, but would like to make a separate request here as well.
Daza's original request was concerned with being able to print a store inventory in a row-wise fashion with an object's name and other stats listed alongside one another. If you could continue the dot operator after using List(And,Or,Rows), the following would be possible:
Groupkey.ForSale(Available).List(Rows).StoreText
From items in 'Groupkey', filter by state property 'ForSale' set to state 'Available' and output a List of Rows for contents of text property 'StoreText', which contains the text with object property references the author wants to list when this object is 'Available' for sale. |
|
Campbell | | Wed 23rd Dec 2015 15:15 |
It doesn't make sense to apply a property to a List function as this just returns a string. However, you should already be able to apply the property as a filter to the ForSale filter, like so:
Groupkey.ForSale(Available).StoreText
This will return a list of the StoreText properties. You would need to do your own formatting to separate them into separate lines though. |
|