RecRef.GETTABLE(Rec); xRecRef.GETTABLE(xRec); //xRecRef here is just a simple RecRef variable FieldRef := RecRef.FIELD(YOUR_FIELD_NO); xFieldRef := xRecRef.FIELD(YOUR_FIELD_NO); IF FieldRef.VALUE <> xFieldRef.VALUE THEN...
TempBlob.Blob.CREATEOUTSTREAM(outstr); TempBlob.Blob.CREATEINSTREAM(instr);Now you can use other automation to actually populate the out and instreams. Read the outstream from a big text, and use the outstream as the source for your XMLPort.
table.BlobField.CREATEOUTSTREAM(ostream); bstr.WRITE(ostream);
table.BlobField.CREATEINSTREAM(istream); bstr.READ(istream);
=Last(Fields!PaymentMethodCode.Value)But do not forget, if you announced variable on CustLedgEntry2 DataItem on Layout you can get Value only on group by CustLedgEntry2 and deeper groups. If you need to get value elsewhere look at GetData and SetData function in layout.