Hi All,I am using the auto save , i am able to save the dcr but only issue is that it is saving under data folder. Is there any way we can save a dcr to a particular folder which we wish. i am using the following code : function handle_save() { var nameval="12345"; IWDCRInfo.setDCRName(nameval,null); IWDatacapture.save(); return true; }Second Question:How can i add , a printer to the preview page on the top left corner and add a link i.e back to top at the bottom of the page.
Hi , Thanks for the reply i dont want to save the dcr outside data folder but if i have folder structure as /data/microsite/uk and i create a dcr in this folder,it should get saved in the folder uk instead of data but with the present option it is getting saved in the date folder
Hi All , i can get the path were i need to save but i am not sure how can i use it in the command IWDCRInfo.setDCRName(nameval,null);as when i give the command as IWDCRInfo.setDCRName(data/Path/name);it again saves in the data folder with name being the full path of the dcri am not sure if i am giving the command right !!!!
IWEventRegistry.addFormHandler("onSaveValid", Custom_SaveDialogBox);function getDCRNameFromPath(dcrFullPath){ var idx = dcrFullPath.lastIndexOf("/"); var dcrBaseName = dcrFullPath.substring(idx + 1, dcrFullPath.length); return dcrBaseName; }function Custom_SaveDialogBox(){ var parameter="vpath"; var DCR_location=""; var loc = parent.location.search.substring(1, parent.location.search.length); var param_value = false; var params = loc.split("&"); for (i=0; i<params.length;i++) { param_name = params.substring(0,params.indexOf('=')); if (param_name == parameter) { param_value = params.substring(params.indexOf('=')+1); } } if (param_value) { DCR_location=param_value; } else { DCR_location=""; } var Save_URL="/iw-cc/command/iw.formspub.browse_for_save_form?ceiling="+DCR_location+"&hier_callback=top.opener.top.getDCFrame(opener).saveAsCallback&vpath="+DCR_location; origdcrName = IWDCRInfo.getDCRName(); var dcrName = getDCRNameFromPath(origdcrName); /*If it's first time saving of the DCR, then we can have save dialog box as proper location, otherwise save it directly.*/ if(dcrName=="" && origdcrName=="") { var SaveHandle = window.open(Save_URL, "", "width=600,height=400,status=no,toolbar=no,location=no,resizable=yes,scrollbars=yes,left=320,top=250"); } else { IWDCRInfo.setDCRName(origdcrName,null); IWDatacapture.save(); }}
IWDCRInfo.setDCRName(data/Path/name);