Refreshing Combo
Hi Guys
How can I refresh a dataCombo after saving a new element in it?
I've the following dataCombo and after saving a new element I would like to fresh and reload that data in it?
<dataCombo id="Asset" name="Assets" align="left" size="30" maxRows="400"
sql="select ID, name From MSDS_Serenity.Kit Where (? is null or %UPPER(name)[%UPPER(?)) And Loc=? AND Active=1 and ParentKit is null and (RapidSterTemp != 1 or RapidSterTemp is null) and asset=1 order by name asc"
searchKeyLen="10"
editable="true"
required="false"
showEmpty="true"
displayColumns="1,2"
choiceColumn="2"
valueColumn="1"
dropdownWidth="230px" onchange="" onblur="zenPage.saveAsset(zenThis)">
<parameter value="?" />
<parameter value="" />
<parameter value="" />
</dataCombo>
I tried the following with no luck
var type = zen( "Asset");
type.clearCache();
type.executeQuery();
type.focus();
Thanks
Thanks
Comments
hi Rochdi,
the following may work
zen('Asset').executeQuery('true');
zen("Asset").refreshContents(true);