public static FormPropertyList AllFormProperties(ClientContext context, string libraryUrl, string xsnUrl) { FormPropertyList propList = new FormPropertyList(); XsnWrapper xsnWrapper = new XsnWrapper(Utilities.DownloadXsn(context, libraryUrl, xsnUrl)); propList.FormProperties = xsnWrapper.GetAllXsnProperties(); xsnWrapper.Dispose(); return(propList); }
public static FormPropertyList AllFormPropertiesFromFormFileRequest(FormFileRequest formFileRequest) { FormPropertyList propList = new FormPropertyList(); XsnWrapper xsnWrapper = new XsnWrapper(Utilities.SaveFormFileRequest(formFileRequest)); propList.FormProperties = xsnWrapper.GetAllXsnProperties(); xsnWrapper.Dispose(); return(propList); }
public static ManifestFileWithProperties ManifestWithPropertiesFromFormFileRequest(FormFileRequest formFileRequest) { FormPropertyList propList = new FormPropertyList(); XsnWrapper xsnWrapper = new XsnWrapper(Utilities.SaveFormFileRequest(formFileRequest)); propList.FormProperties = xsnWrapper.GetAllXsnProperties(); xsnWrapper.Dispose(); return(new ManifestFileWithProperties(propList, new FormFile(manifestPath, xsnWrapper.Manifest.Manifest.OuterXml))); }
public static FormPropertyList FormName(ClientContext context, string libraryUrl, string xsnUrl) { ManifestWrapper manifest = new ManifestWrapper(FormFileContents(context, libraryUrl, xsnUrl, manifestPath).Contents); FormPropertyList properties = new FormPropertyList(); properties.Add(manifest.GetInitialCaption()); properties.Add(manifest.GetId()); return(properties); }
public static ManifestFileWithProperties ManifestWithProperties(ClientContext context, string libraryUrl, string xsnUrl) { using (XsnWrapper xsnWrapper = new XsnWrapper(Utilities.DownloadXsn(context, libraryUrl, xsnUrl))) { FormPropertyList propList = new FormPropertyList { FormProperties = xsnWrapper.GetAllXsnProperties() }; return(new ManifestFileWithProperties(propList, new FormFile(manifestPath, xsnWrapper.Manifest.Manifest.OuterXml))); } }
public static FormPropertyList FormSecuritySettings(ClientContext context, string libraryUrl, string xsnUrl) { ManifestWrapper manifest = new ManifestWrapper(FormFileContents(context, libraryUrl, xsnUrl, manifestPath).Contents); FormPropertyList propertyList = new FormPropertyList(); propertyList.Add(manifest.GetInitialCaption()); propertyList.Add(manifest.GetTrustSetting()); propertyList.Add(manifest.GetTrustLevel()); return(propertyList); }
public static FormPropertyList FormCompatibility(ClientContext context, string libraryUrl, string xsnUrl) { ManifestWrapper manifest = new ManifestWrapper(FormFileContents(context, libraryUrl, xsnUrl, manifestPath).Contents); FormPropertyList properties = new FormPropertyList(); properties.Add(manifest.GetInitialCaption()); properties.Add(manifest.GetInfoPathVersion()); properties.Add(manifest.BrowserCompatible()); return(properties); }
public ManifestFileWithProperties(FormPropertyList formProperties, FormFile formFile) { this.FormProperties = formProperties; this.FormFile = formFile; }