Last Enhancement injected context bug!

There is a issue injected with the new update. If a row is selected then the context of that row is lost if you try any non standard operations. We have a custom view that is defined as below

This custom view used to work fine depending on which line was selected prior to last enhancement update. Now it always picks the first line in the grid/datasheet. Need a fix urgently.
1 person has
this question
+1
Reply
  • Please insert the view definition between XML/HTML comment symbols. The definition is not visible in your post. The example is below.


    <!--
    <dataController>
    ....
    </dataController>
    -->
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned

  • The custom view definition is as below
    <!--
    <view id="applyLineDiscount" type="Form" commandId="command1" label="Apply Line Discount">
    <headerText>Choose a coupon to apply the discount to the selected line.</headerText>
    <dataFields>
    <dataField fieldName="DiscountType" />
    <dataField fieldName="DiscountId" aliasFieldName="DiscountName" />
    <dataField fieldName="DiscountAmount" dataFormatString="c" columns="10" />
    <dataField fieldName="SkuId" aliasFieldName="SkuCode" readOnly="true"/>
    <dataField fieldName="UnitPrice" dataFormatString="c" columns="15" readOnly="true" />
    <dataField fieldName="Qty" columns="15" readOnly="true" />
    <dataField fieldName="LineDiscount" dataFormatString="c" readOnly="true"/>
    <dataField fieldName="LineTotal" dataFormatString="c" columns="15" readOnly="true" />
    <dataField fieldName="ExtendedPrice" dataFormatString="c" readOnly="true"/>
    <dataField fieldName="ShippingTotal" dataFormatString="c" hidden="true" />
    <dataField fieldName="LineNum" hidden="true"/>
    <dataField fieldName="LineNumGUID" hidden="true" />
    <dataField fieldName="OrderID" hidden="true"/>
    <dataField fieldName="OrderGUID" hidden="true"/>
    <dataField fieldName="LineID" hidden="true" />
    <dataField fieldName="CustomerGUID" hidden="true"/>
    </dataFields>
    </view>
    -->

    This is how the business rule is invoked
    <!--
    [ControllerAction("OrderLines", "applyLineDiscount", "Update", "applyLineDiscount", ActionPhase.Before)]

    -->

    The rule invokes on the first line always.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. sad, anxious, confused, frustrated kidding, amused, unsure, silly happy, confident, thankful, excited indifferent, undecided, unconcerned