// Initiate transaction execute transaction tr on dataspace begin // Get current record using XPath var currRecord := data.lookupRecordByFullXPathForUpdate(tr, table, _ebx.parameters.requestXPath); // Create 'primary key' object var pk := complex.primaryKeyOf(); // assign the value from the currently selected record's 'id' field to the objects 'id' parameter pk.id := currRecord.id; end