Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [JET2] Struggling with iterate command
[JET2] Struggling with iterate command [message #30944] Tue, 14 August 2007 13:58 Go to next message
Eclipse UserFriend
Originally posted by: evaandoli.dodo.com.au

Hi,
Trying to get a comma separated list of a repeat value:-

Input:-
<ruleValues type="Converted" variableName="[onsetPBCD]" decimalPlaces="2">

<whoUses>SetPremiumBeforeChargesAndDiscounts</whoUses>

<whoUses>SetGrossPremium</whoUses>

<whoUses>SetSmallPolicy</whoUses>

</ruleValues>

Jet Command: ($aValue is a ruleValues)
"<c:iterate select="$aValue/whoUses" var="aWho" delimiter=","><c:get
select="@aWho"/></c:iterate>"

Seems to not pick up the iterate over the items.

Im sure I've just got the syntax wrong but I can't figure it out.

Stu
Re: [JET2] Struggling with iterate command [message #31505 is a reply to message #30944] Mon, 27 August 2007 13:36 Go to previous messageGo to next message
Paul Elder is currently offline Paul ElderFriend
Messages: 849
Registered: July 2009
Senior Member
Stu:

a quick fix:

Jet Command: ($aValue is a ruleValues)
"<c:iterate select="$aValue/whoUses" var="aWho" delimiter=","><c:get
select="$aWho"/></c:iterate>"

(change @aWho to $aWho)

"Stu" <evaandoli@dodo.com.au> wrote in message
news:f9scdt$v7$1@build.eclipse.org...
> Hi,
> Trying to get a comma separated list of a repeat value:-
>
> Input:-
> <ruleValues type="Converted" variableName="[onsetPBCD]" decimalPlaces="2">
>
> <whoUses>SetPremiumBeforeChargesAndDiscounts</whoUses>
>
> <whoUses>SetGrossPremium</whoUses>
>
> <whoUses>SetSmallPolicy</whoUses>
>
> </ruleValues>
>
> Jet Command: ($aValue is a ruleValues)
> "<c:iterate select="$aValue/whoUses" var="aWho" delimiter=","><c:get
> select="@aWho"/></c:iterate>"
>
> Seems to not pick up the iterate over the items.
>
> Im sure I've just got the syntax wrong but I can't figure it out.
>
> Stu
>
>
Re: [JET2] Struggling with iterate command [message #32582 is a reply to message #31505] Thu, 06 September 2007 09:38 Go to previous messageGo to next message
Tex Twil is currently offline Tex TwilFriend
Messages: 179
Registered: July 2009
Senior Member
Hi Stu,
did this fixed your problem ? I have the same issue and I just can"t iterate
through the "whoUses" values! Even if I write
<c:iterate select="$aValue/whoUses" var="aWho" delimiter=",">
loop
</c:iterate>

it prints nothing


regards,
Tex


"Paul Elder" <pelder@ca.ibm.com> a écrit dans le message de
news:fauk3b$nb9$1@build.eclipse.org...
> Stu:
>
> a quick fix:
>
> Jet Command: ($aValue is a ruleValues)
> "<c:iterate select="$aValue/whoUses" var="aWho" delimiter=","><c:get
> select="$aWho"/></c:iterate>"
>
> (change @aWho to $aWho)
>
> "Stu" <evaandoli@dodo.com.au> wrote in message
> news:f9scdt$v7$1@build.eclipse.org...
>> Hi,
>> Trying to get a comma separated list of a repeat value:-
>>
>> Input:-
>> <ruleValues type="Converted" variableName="[onsetPBCD]"
>> decimalPlaces="2">
>>
>> <whoUses>SetPremiumBeforeChargesAndDiscounts</whoUses>
>>
>> <whoUses>SetGrossPremium</whoUses>
>>
>> <whoUses>SetSmallPolicy</whoUses>
>>
>> </ruleValues>
>>
>> Jet Command: ($aValue is a ruleValues)
>> "<c:iterate select="$aValue/whoUses" var="aWho" delimiter=","><c:get
>> select="@aWho"/></c:iterate>"
>>
>> Seems to not pick up the iterate over the items.
>>
>> Im sure I've just got the syntax wrong but I can't figure it out.
>>
>> Stu
>>
>>
>
>
Re: [JET2] Struggling with iterate command [message #32773 is a reply to message #32582] Thu, 06 September 2007 12:23 Go to previous messageGo to next message
Paul Elder is currently offline Paul ElderFriend
Messages: 849
Registered: July 2009
Senior Member
Tex:

I would definitely change this to:

<c:iterate select="$aValue/@whoUses" var="aWho" delimiter=",">
loop
</c:iterate>

"Tex Twil" <chaljan@hotmail.com> wrote in message
news:fbohq3$ahl$1@build.eclipse.org...
> Hi Stu,
> did this fixed your problem ? I have the same issue and I just can"t
> iterate through the "whoUses" values! Even if I write
> <c:iterate select="$aValue/whoUses" var="aWho" delimiter=",">
> loop
> </c:iterate>
>
> it prints nothing
>
>
> regards,
> Tex
>
>
> "Paul Elder" <pelder@ca.ibm.com> a
Re: [JET2] Struggling with iterate command [message #32848 is a reply to message #32773] Thu, 06 September 2007 12:28 Go to previous messageGo to next message
Tex Twil is currently offline Tex TwilFriend
Messages: 179
Registered: July 2009
Senior Member
ok
but in this case I only get the 1st value.

regards,
Tex
"Paul Elder" <pelder@ca.ibm.com> a écrit dans le message de
news:fborid$n99$1@build.eclipse.org...
> Tex:
>
> I would definitely change this to:
>
> <c:iterate select="$aValue/@whoUses" var="aWho" delimiter=",">
> loop
> </c:iterate>
>
> "Tex Twil" <chaljan@hotmail.com> wrote in message
> news:fbohq3$ahl$1@build.eclipse.org...
>> Hi Stu,
>> did this fixed your problem ? I have the same issue and I just can"t
>> iterate through the "whoUses" values! Even if I write
>> <c:iterate select="$aValue/whoUses" var="aWho" delimiter=",">
>> loop
>> </c:iterate>
>>
>> it prints nothing
>>
>>
>> regards,
>> Tex
>>
>>
>> "Paul Elder" <pelder@ca.ibm.com> a écrit dans le message de
>> news:fauk3b$nb9$1@build.eclipse.org...
>>> Stu:
>>>
>>> a quick fix:
>>>
>>> Jet Command: ($aValue is a ruleValues)
>>> "<c:iterate select="$aValue/whoUses" var="aWho" delimiter=","><c:get
>>> select="$aWho"/></c:iterate>"
>>>
>>> (change @aWho to $aWho)
>>>
>>> "Stu" <evaandoli@dodo.com.au> wrote in message
>>> news:f9scdt$v7$1@build.eclipse.org...
>>>> Hi,
>>>> Trying to get a comma separated list of a repeat value:-
>>>>
>>>> Input:-
>>>> <ruleValues type="Converted" variableName="[onsetPBCD]"
>>>> decimalPlaces="2">
>>>>
>>>> <whoUses>SetPremiumBeforeChargesAndDiscounts</whoUses>
>>>>
>>>> <whoUses>SetGrossPremium</whoUses>
>>>>
>>>> <whoUses>SetSmallPolicy</whoUses>
>>>>
>>>> </ruleValues>
>>>>
>>>> Jet Command: ($aValue is a ruleValues)
>>>> "<c:iterate select="$aValue/whoUses" var="aWho" delimiter=","><c:get
>>>> select="@aWho"/></c:iterate>"
>>>>
>>>> Seems to not pick up the iterate over the items.
>>>>
>>>> Im sure I've just got the syntax wrong but I can't figure it out.
>>>>
>>>> Stu
>>>>
>>>>
>>>
>>>
>>
>
>
Re: [JET2] Struggling with iterate command [message #33061 is a reply to message #32848] Thu, 06 September 2007 15:10 Go to previous message
Paul Elder is currently offline Paul ElderFriend
Messages: 849
Registered: July 2009
Senior Member
Tex:

This is the array problem again, as we have noted in another thread.

Paul
Previous Topic:EMF iterate through an Enumeration's fields
Next Topic:Re: JET EXTENSION!
Goto Forum:
  


Current Time: Thu Apr 25 07:33:46 GMT 2024

Powered by FUDForum. Page generated in 0.03558 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top