Using Vbscript, i'm fetching a value from textbox from UI. How to save that value to an xml tag -
below code tried save saleblockenddt tag in xml file, i'm fetching ui textbox. when run i've "object variable not set" error.
need solution save tag value
dim nspos dim nsparms dim szenddate dim sresult dim senddate senddate = trim(getfieldinput("ctxtenddate")) set nspos = createobject("espace.esnamespace") set nsparms = nspos.applyxml("pos\pos.xpa", 2) szenddate = trim(nsparms.parameters.saleblockenddt.text) if szenddate = "" nsparms.parameters.saleblockenddt.text = senddate end if sresult = nspos.save("pos\pos.xpa",2)
Comments
Post a Comment