|
Home > Archive > BizTalk Server General > April 2005 > BRE - is it possible to set a value in a repeating element by inde
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
BRE - is it possible to set a value in a repeating element by inde
|
|
| David Creel 2005-04-26, 5:53 pm |
| I have a schema like this:
<Order>
<ID>10</ID>
<OrderItems>
<OrderItem>
<ID>1</ID>
<Tax>1.1</Tax>
</OrderItem>
<OrderItem>
<ID>2</ID>
<Tax>2.2</Tax>
</OrderItem>
<OrderItem>
<ID>3</ID>
<Tax>3.3</Tax>
</OrderItem>
</OrderItems>
</Order>
I need to set a value for the 'Tax' element of a certain 'OrderItem' element
in a business rule action. If I knew which item ahead of time, obviously I
could hardcode an index into the set xpath. I don't know which item ahead of
time, so I need to pass the set xpath an index. The 'set wizard' for
xmlschema vocabulary in the rules editor only allows me to specify one
parameter - the value to be set.
Is it possible to do this without solving yet another problem with C# code?
--
===>DavidC
| |
| Matt Milner 2005-04-27, 2:47 am |
| What are the conditions you are checking for which will make you set the
value?
Matt
"David Creel" <DavidCreel@discussions.microsoft.com> wrote in message
news:DCFB0B75-EA57-412E-B6E7-C3A68222E4B1@microsoft.com...
>I have a schema like this:
> <Order>
> <ID>10</ID>
> <OrderItems>
> <OrderItem>
> <ID>1</ID>
> <Tax>1.1</Tax>
> </OrderItem>
> <OrderItem>
> <ID>2</ID>
> <Tax>2.2</Tax>
> </OrderItem>
> <OrderItem>
> <ID>3</ID>
> <Tax>3.3</Tax>
> </OrderItem>
> </OrderItems>
> </Order>
>
> I need to set a value for the 'Tax' element of a certain 'OrderItem'
> element
> in a business rule action. If I knew which item ahead of time, obviously
> I
> could hardcode an index into the set xpath. I don't know which item ahead
> of
> time, so I need to pass the set xpath an index. The 'set wizard' for
> xmlschema vocabulary in the rules editor only allows me to specify one
> parameter - the value to be set.
>
> Is it possible to do this without solving yet another problem with C#
> code?
>
> --
> ===>DavidC
|
|
|
|
|