Victor Salvalagio Pereira wrote:
BenDet is an entity (from an external database) or it's a structure?
I'm asking this because the code from my extension is different from yours. My prefix for ssENBenDet is ssSTBenDet, and I have a structure, and not an entity.
Did you try instantiate ssENBenDet before the assign?
I don't have any code here using entities to compare...
Its a structure...
Yes i tried to initiate ssENBenDet but still error.
public void MssBEN2(string ssRefNo, out RLBenDetRecordList ssBenDetails) {
RCBenDetRecord rec = new RCBenDetRecord();
ssBenDetails = new RLBenDetRecordList();
rec.ssENBenDet = new ENBenDetEntityRecord();
rec.ssENBenDet.ssName = "WAQAS";
rec.ssENBenDet.ssAmount = "10";
rec.ssENBenDet.ssStatus = "ACTIVE";
ssBenDetails.Add(rec);
// TODO: Write implementation for action
} // MssBEN2
I think depending on structure attributes, Bit Array is defined by auto generated code and before setting attribute value, that bit array is null and value is not been set. :(