BizTalk Server Orchestration - Accessing Message attribute in expression shape

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > March 2005 > Accessing Message attribute in expression shape





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 Accessing Message attribute in expression shape
Neil Hewitt

2005-03-09, 5:50 pm

whenever i try to assign a variable the value from a message in an expression
i get illegal dotted name whenever i try to assign an attributes value to a
defined variable.

the attribute from the message schema is an integer and the variable is of
int16. i pomoted the property in the schema and ithougth taht was all that
was required. is there something else i am missing ?
Neil Hewitt

2005-03-09, 5:50 pm

Seems to have corrected itself .. not terribly sure what i did - but now i
get the errpr cannot implicitly convert system.decimla to system.int16.
Curious because i have defined the variable that i am assigning the value to
as Int16 and the Message attribute is off type integer.

what could cause this ?

"Neil Hewitt" wrote:

> whenever i try to assign a variable the value from a message in an expression
> i get illegal dotted name whenever i try to assign an attributes value to a
> defined variable.
>
> the attribute from the message schema is an integer and the variable is of
> int16. i pomoted the property in the schema and ithougth taht was all that
> was required. is there something else i am missing ?

Ben Cuttriss

2005-03-10, 8:48 pm

Neil - not sure why you are getting your decimal error, but try using the
System.Convert class whenever doing type conversions. Pass it the variable
on the ToInt16 function and voila - it will do it.

Regards
Ben Cuttriss.

"Neil Hewitt" wrote:
[vbcol=seagreen]
> Seems to have corrected itself .. not terribly sure what i did - but now i
> get the errpr cannot implicitly convert system.decimla to system.int16.
> Curious because i have defined the variable that i am assigning the value to
> as Int16 and the Message attribute is off type integer.
>
> what could cause this ?
>
> "Neil Hewitt" wrote:
>
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com