06-15-2018 04:47 AM
wiebe@CARYA wrote:
And of course, that To XML method would face the same problem. As a workaround, 'flattening' the private data must be done by unbundling each item. That is error prone (and a bit annoying): if one item is added it's easy to forget to extend the To XML method.
You should consider clustering the data you want flattened (all the object data if you want). Then flatten that cluster in your method. That way, adding new items to the cluster requires no change to the flattening code. My "actors" use similar techniques (although their data is in a VI, rather than in an object) so I rarely need to change any flattening code.
06-15-2018 05:58 AM
@drjdpowell wrote:
wiebe@CARYA wrote:
And of course, that To XML method would face the same problem. As a workaround, 'flattening' the private data must be done by unbundling each item. That is error prone (and a bit annoying): if one item is added it's easy to forget to extend the To XML method.
You should consider clustering the data you want flattened (all the object data if you want). Then flatten that cluster in your method. That way, adding new items to the cluster requires no change to the flattening code. My "actors" use similar techniques (although their data is in a VI, rather than in an object) so I rarely need to change any flattening code.
I really don't want two in placement structures to unbundle\bundle my data.
Can't really say I've run into this a lot, and there are workarounds, and arguably you shouldn't really need it that often. I still think the hole matter of the default class\clusters just seems off.
AFAIC, bottom line is the results it's not expected nor properly documented.
06-15-2018 06:10 AM
wiebe@CARYA wrote:
@drjdpowellI really don't want two in placement structures to unbundle\bundle my data.
Why would you need that? Unbundling into subclusters doesn't require multiple steps. There is no extra work involved.
06-15-2018 06:46 AM
@drjdpowell wrote:
wiebe@CARYA wrote:
@drjdpowellI really don't want two in placement structures to unbundle\bundle my data.
Why would you need that? Unbundling into subclusters doesn't require multiple steps. There is no extra work involved.
You're right, never mind that. Almost weekend.