1 Reply Latest reply: Dec 5, 2012 10:38 PM by 944105 RSS

    Updating charactertics using BS issue

    977514
      Hello,

      I am having issue with updating characteristics using BS , please see if some one can help me.

      My BS(Business Service) is,

      <schema pageAction="update">
      <premiseId mapField="PREM_ID"/>
      <premCharacteristic type="list" mapList="PREM_CHAR">
      <characteristicType mapField="CHAR_TYPE_CD"/>
      <characteristicValue mapField="CHAR_VAL"/>
      <effectiveDate mapField="EFFDT"/>
      <adhocCharacteristicValue mapField="ADHOC_CHAR_VAL"/>
      </premCharacteristic>
      </schema>

      in my BPA Script, EDIT area i am writing following code and updation my BS but it is not updating

      move "$premiseId" to "CM_PREM_CHAR/premiseId";
      move 'ADD-SEC' to "CM_PREM_CHAR/premCharacteristic+/characteristicType";
      move "$CURRENT-DATE" to "CM_PREM_CHAR/premCharacteristic[0]/effectiveDate";
      move "CM_PREM_CHARUI/adhocCharacteristicValue" to "CM_PREM_CHAR/premCharacteristic[1]/adhocCharacteristicValue";

      Plz help me...
        • 1. Re: Updating charactertics using BS issue
          944105
          Here if you see in the below code there is Inconsistency in the indexing and also + will create a new node so use [last()] instead of [0] or [1] to remain in the same node. And also list indexing cannot be 0 it always starts with 1.

          move "$CURRENT-DATE" to "CM_PREM_CHAR/premCharacteristic[0]/effectiveDate";
          move "CM_PREM_CHARUI/adhocCharacteristicValue" to "CM_PREM_CHAR/premCharacteristic[1]/adhocCharacteristicValue";