Hi,
I am currently trying to create a report from an instance specification. I have run into a couple problems while doing this, and have some questions specifically regarding slots of the instance specfications.
Question 1:
I am iterating through a foreach loop to retrieve slot values of the current instance. However, when they print out onto the report, they are not in the order that they are listed in the containment tree. I was wondering if there is a default way the report wizard decides to print slot values, because it seems to be very random, and not in the order I would expect or any listed order in my model. Is there a way to know how the report wizard is sorting the slot values, and if so, is there a way to change or manipulate that?
Question 2:
In my model, the instance specification I am creating the report for has a particular block as its classifier. The classifier block has both value properties and part properties, thus in the instance specification I created, it has slots for both the value properties and the part properties. Is there a way in the report wizard language to have only the slots that represent the value properties reported out when iterating through the slots? I don't want the slots that represent the part properties to be reported out, because the values of those slots are instance specifications themselves. I thought there might be a way to sort the slots, or simply have the foreach loop stop iterating when it hits the slots I don't want, but due to the way the report wizard seems to randomly output the slots in my report, this doesn't seem likely. So I was wondering if there was another way to do this.
Thanks in advance.