Home » Modeling » M2T (model-to-text transformation) » [Galileo, XPAND] Select just one Object with the same name
[Galileo, XPAND] Select just one Object with the same name [message #871951] |
Tue, 15 May 2012 07:47 |
Ricardo Ben Amor Messages: 51 Registered: March 2012 |
Member |
|
|
Hi,
I have a little problem for making an operation with my XPAND project.
The problem is the following :
I get some informations from an XML files, I recover a list of information.
In that list, I have some name which are the same. Example :
In my list I have 4 or 5 times the name "ID4". My answer is, how I can just take one time the name "ID4", because i don't need him 4-5 times because is the same.
I just want him one time.
But, i don't know how i can do, have you an idea about my subjet maybe?
Thanks in advance,
Best Regards,
|
|
| |
Re: [Galileo, XPAND] Select just one Object with the same name [message #872092 is a reply to message #871958] |
Tue, 15 May 2012 12:50 |
Ricardo Ben Amor Messages: 51 Registered: March 2012 |
Member |
|
|
I don't understand what are you saying...
I mean, i have a list of my numbers "4,4,4,4,4,5,5,5,5,5,5,6,6,6,6,6 etc....". When I take the list, i don't have the expression ToSet on a list.
The only expression I have are : toString(), toInteger, upTo(Integer), upTo(Integer,Integer).
|
|
| | | |
Re: [Galileo, XPAND] Select just one Object with the same name [message #872197 is a reply to message #872124] |
Tue, 15 May 2012 16:28 |
Ricardo Ben Amor Messages: 51 Registered: March 2012 |
Member |
|
|
Like I say it works but the result into my application not.
I have to look about an another strategy. Could be possible for EACH ID : 4,4,4,4,4,4 or ,6,6,6,6,6,6 to add an enumeration.
I'm explaining, this ID are the same and i want to make an difference between the 3 or 4 of them. So I had to each ID a letter or something to make the difference.
The resultat could be :
ID4_a
ID4_b
ID4_C
ID6_a
ID6_b
etc.....
Regards
|
|
| | | | | |
Goto Forum:
Current Time: Sat Sep 21 18:09:14 GMT 2024
Powered by FUDForum. Page generated in 0.05156 seconds
|