...
Code Block |
---|
string fileName = ....; string appName = ....; FormsService formsService = ....; MediaFileSource source = new MediaFileSource(fileName, ApplicationFeed.MEDIA_SOURCE_TYPE); ApplicationQuery query = formsService.CreateApplicationQuery(null); ApplicationFeed apps = formsService.Query(query); ApplicationEntry app = apps.CreateEntry(); app.MediaSource = source; app = apps.Insert(app); |
Note |
---|
NOTE: the The following additions only exist in the .net client api version 5.1.1 Patch 3 |
How do I rename an application?
...
Code Block |
---|
<ns:form xmlns:ns="http://www.frevvo.com/schemas/_lvxDAF_vEd2bxNL8keLevQ"
name="FormTypeAtomTest">
<A>TestA</A>
<B>TestB</B>
</ns:form>
FormsService service = ...;
using (FileStream docStream = File.Open(@"C:\temp\_data.xml", FileMode.Open))
{
string id = "_LIAtYHC3EeKVINiYeE5iPA!_qrSmgInoEeKOdqjLR19yFQ!test1";
FormTypeEntry formType = service.GetFormType(id);
FormEntry form = formType.CreateFormEntry(docStream);
}
|
Example 3 – using link parameters and an XML document
Code Block |
---|
<ns:form xmlns:ns="http://www.frevvo.com/schemas/_lvxDAF_vEd2bxNL8keLevQ" name="FormTypeAtomTest"> <A>TestA</A> <B>TestB</B> <C>2013-06-30</C> </ns:form> FormsService service = ...; NameValueCollection nvc = new NameValueCollection(); nvc.Add("_formTz", "Asia/Kolkata"); using (FileStream docStream = File.Open(@"C:\temp\_data2.xml", FileMode.Open)) { string id = "_LIAtYHC3EeKVINiYeE5iPA!_qrSmgInoEeKOdqjLR19yFQ!test1"; FormTypeEntry formType = service.GetFormType(id); FormEntry form = formType.CreateFormEntry(nvc, docStream); |
How do I edit a form control?
...