none
Handling Nillable element in Map RRS feed

  • Question

  • Hi All,

    I am having map in which want to check that if source elements have Value of type Enumerator ( value 1 to 6)

    and  want's to map this to destination's schema's Value field of Type PositveInterger.

    If Incomming message(source) is not having fielement GetDetails or not having data in Firld Value then map null element in Deitnation element as

    <GetDataRequest>
        <GetDatils>
          <GetDetail>
            <Value></Value>
            <Name></Name>
          </GetDetail>
        </GetDatils>
      </GetDataRequest>

    i have set filed as nillable=true and it's optional...

    how to implement it ?


    Thanks and Regards, Nitin.

    Friday, October 16, 2015 9:27 AM

Answers

  • Hi,

    You can check for the logiscal existence of the field as below;

    After checking existence you can put your remaining logic to map or not map fields or records with specific values.

    In the same way you can also check for the logical existence of the record.

    Regards,

    Sharad


    • Edited by SharadVerma Friday, October 16, 2015 1:05 PM improved
    • Proposed as answer by Prakash NR Monday, October 19, 2015 11:13 AM
    • Marked as answer by Angie Xu Sunday, October 25, 2015 1:59 PM
    Friday, October 16, 2015 1:04 PM

All replies

  • Hi,

    You can check for the logiscal existence of the field as below;

    After checking existence you can put your remaining logic to map or not map fields or records with specific values.

    In the same way you can also check for the logical existence of the record.

    Regards,

    Sharad


    • Edited by SharadVerma Friday, October 16, 2015 1:05 PM improved
    • Proposed as answer by Prakash NR Monday, October 19, 2015 11:13 AM
    • Marked as answer by Angie Xu Sunday, October 25, 2015 1:59 PM
    Friday, October 16, 2015 1:04 PM
  • I also can concur that this approach works

    I hit a very similar problem, and had to do the same thing with logical existence tests


    Scott K Berger

    Monday, October 19, 2015 4:04 PM