Hiya,
I don’t know if this is my misunderstanding of how this works or whether this a bug but I’ve got a strange thing happening in one of the handlers of my new Module.
Code for the handler is this…
// Call SITS LookupService - this is coming from the parent factory, declared within the EnrolNow project.
rc.objIterator = getPlugin(‘ioc’).getBean(‘SITSLookupListService’).getLookupListInfo(‘domicile’);
// Postcode search button view & properties
rc.QAS_labelID = ‘Country’;
rc.QAS_tableID = ‘QAS_country’;
rc.QAS_labelTitle = ‘country’;
rc.QAS_displayHolder = renderView(view=’#rc.viewPrefix#/dropdownResult’,module=rc.QASSettings.title);
// Push into the table template and return the HTML
event.setView(name=’#rc.viewPrefix#/tblPlaceHolder’,nolayout=true);
… and I have a postHandler that looks like this…
var rc = event.getCollection(); var i = 1; var deleteLst = "objQAS,objQASService,postCodeSearchBtn,QAS_DisplayHolder1,QAS_labelID,QAS_labelTitle,"; deleteLst &= "QAS_selectID,QAS_style,QAS_tableID,viewPrefix";// Clean up the variables we don’t want going back into the request collection of the calling application
for(i=1;i<=listLen(deleteLst);i++){
structDelete(rc,listGetAt(deleteLst,i));
}