I am creating an object dynamically and would like to set a property (also an object) to be the value of a variable.
My code:
var guid, block, lot, muni, county, owner, prop_loc;
guid = 'Some unique value';
//code to set the other variable values here...
var menuItem = new MenuItem({
id: 'basic',
label: 'Report',
onClick: lang.hitch(this, function () {
topic.publish('basicReportWidget/reportFromIdentify', {
guid : { //set this to the guid string value
block: block,
lot: lot,
muni: muni,
county: county,
owner: owner,
prop_loc: prop_loc,
type: 'basic'
}
});
})
});