Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Once you have a FormTypeEntry Url you can get the:

Code Block
* Form UI url ('''formtype''' link)

...


* Form Designer UI ('''formtype-editor''' link)

...


* Submissions UI ('''submissions''' link)

...


* The list of controls/fields contained in this form ('''controltypes''' link)

...


* XML Schema for this form ('''schema''' link)

Note that for some of the links above there are two links for the same rel attribute (e.g. the '''formtype''' link): 

Code Block
* the '''text/html''' link that can be used directly in a browser or in an <iframe/>, and

...


* the '''text/javascript''' link that can be embedded in an html page using an <script/> tag.

...

Inserting a new FormTypeEntry

...

...

Code Block
POST /frevvo/web/tn/{tenantId}/api/formtypes

...



<entry xmlns="http://www.w3.org/2005/Atom">

...


    <title type="text">Expense Report</title>

...


    <summary type="text">Edit the form to change this description.</summary>

...


</entry>

</pre>And the server will respond with:<pre>

Code Block
200 OK

...



<entry xmlns="http://www.w3.org/2005/Atom"

...


        xmlns:fd="http://schemas.frevvo.com/fdata/2008"

...


        xml:lang="en"

...


        xml:base="http://localhost:8082">

...


    <id>_0vNZwD8KEd6yc_ZDP21S1Q!_nv8uAT8KEd6yc_ZDP21S1Q!johndoe</id>

...


    <title type="text">Expense Report</title>

...


    <summary type="text">Edit the form to change this description.</summary>

...


    <updated>2009-05-12T12:48:11.509-04:00</updated>

...


    <link type="application/atom+xml"

...


        href="/frevvo/web/api/formtype/_0vNZwD8KEd6yc_ZDP21S1Q!_nv8uAT8KEd6yc_ZDP21S1Q!johndoe"/>

...


    <link rel="self" type="application/atom+xml"

...


        href="/frevvo/web/api/formtype/_0vNZwD8KEd6yc_ZDP21S1Q!_nv8uAT8KEd6yc_ZDP21S1Q!johndoe"/>

...


    <link rel="edit" type="application/atom+xml"

...


        href="/frevvo/web/api/formtype/_0vNZwD8KEd6yc_ZDP21S1Q!_nv8uAT8KEd6yc_ZDP21S1Q!johndoe"/>

...


    <link rel="formtype" type="text/html"

...


        href="/frevvo/web/user/johndoe/app/_nv8uAT8KEd6yc_ZDP21S1Q/formtype/_0vNZwD8KEd6yc_ZDP21S1Q?
        embed=true&amp;_method=post&amp;apikey=1VeRclWJogwX2lUlGuLo9kglWN%252BUdNE9c9UGI6z7sJuRnYBOrCjoAdZ8kBVHKkZC9j5Ss%252BQYVwv%252BsIxsxTIAqg%253D%253D"

...


        title="Link to the FormType Expense Report HTML"/>

...


    <link rel="formtype" type="text/javascript"

...


        href="/frevvo/web/user/johndoe/app/_nv8uAT8KEd6yc_ZDP21S1Q/formtype/_0vNZwD8KEd6yc_ZDP21S1Q/embed?
        apikey=1VeRclWJogwX2lUlGuLo9kglWN%252BUdNE9c9UGI6z7sJuRnYBOrCjoAdZ8kBVHKkZC9j5Ss%252BQYVwv%252BsIxsxTIAqg%253D%253D"

...


        title="Link to Javascript code that can be used to embed this FormType in an HTML page"/>

...


    <link rel="controltypes" type="application/atom+xml"

...


        href="/frevvo/web/api/controltypes?ownerId=_0vNZwD8KEd6yc_ZDP21S1Q!_nv8uAT8KEd6yc_ZDP21S1Q!johndoe"

...


        title="Expense Report's Control Types"/>

...


    <link rel="formtype-editor" type="text/html"

...


        href="/frevvo/web/user/johndoe/app/_nv8uAT8KEd6yc_ZDP21S1Q/formtype/_0vNZwD8KEd6yc_ZDP21S1Q

...

?
        edit=true&amp;embed=true&amp;_method=post&amp;apikey=1VeRclWJogwX2lUlGuLo9kglWN%252BUdNE9c9UGI6z7sJuRnYBOrCjoAdZ8kBVHKkZC9j5Ss%252BQYVwv%252BsIxsxTIAqg%253D%253D"

...


        title="Link to the FormType Designer Expense Report HTML"/>

...


<link rel="formtype-editor" type="text/javascript"

...


href="/frevvo/web/user/johndoe/app/_nv8uAT8KEd6yc_ZDP21S1Q/formtype/_0vNZwD8KEd6yc_ZDP21S1Q/embed?edit=true&amp;apikey=1VeRclWJogwX2lUlGuLo9kglWN%252BUdNE9c9UGI6z7sJuRnYBOrCjoAdZ8kBVHKkZC9j5Ss%252BQYVwv%252BsIxsxTIAqg%253D%253D"

...


title="Link to Javascript code that can be used to embed this FormType in an HTML page"/>

...


<link rel="submissions" type="text/html"

...


href="/frevvo/web/user/johndoe/app/_nv8uAT8KEd6yc_ZDP21S1Q/formtype/_0vNZwD8KEd6yc_ZDP21S1Q/submission?embed=true&amp;apikey=1VeRclWJogwX2lUlGuLo9kglWN%252BUdNE9c9UGI6z7sJuRnYBOrCjoAdZ8kBVHKkZC9j5Ss%252BQYVwv%252BsIxsxTIAqg%253D%253D"

...


title="Use FormType Expense Report"/>

...


<link rel="submissions" type="text/javascript"

...


href="/frevvo/web/user/johndoe/app/_nv8uAT8KEd6yc_ZDP21S1Q/formtype/_0vNZwD8KEd6yc_ZDP21S1Q/embedsubs?apikey=1VeRclWJogwX2lUlGuLo9kglWN%252BUdNE9c9UGI6z7sJuRnYBOrCjoAdZ8kBVHKkZC9j5Ss%252BQYVwv%252BsIxsxTIAqg%253D%253D"

...


title="Link to Javascript code that can be used to embed this FormType's submissions in an HTML page"/>

...


<link rel="schema" type="application/xml"

...


href="/frevvo/web/user/johndoe/app/_nv8uAT8KEd6yc_ZDP21S1Q/formtype/_0vNZwD8KEd6yc_ZDP21S1Q/schema"/>

...


<fd:owner id="_nv8uAT8KEd6yc_ZDP21S1Q!johndoe"/>

...


<fd:visibility value="public"/>

...


<content type="application/zip"

...


src="/frevvo/web/user/johndoe/app/_nv8uAT8KEd6yc_ZDP21S1Q/formtype/_0vNZwD8KEd6yc_ZDP21S1Q/file/content.zip"/>

...


</entry>

 

<<pre></pre>

===== Updating a FormTypeEntry =====

...