...
Note |
---|
The command prompt includes the new form name (''../forms/TestForm>''), so you can [[DataAPI_DesigntimeIntegration#Editing_a_Form.2FFlow | edit the form]] Downloading and Uploading a Form/Flow from the command line at this point. |
Java Docs===
Editing a Form/Flow
...
To edit a form, you first select the application the form belongs to, and then select the form you want. See [[DataAPI_DesigntimeIntegration#Downloading_and_Uploading_a_Form.2FFlow | Downloading and Uploading a Form/Flow]] for for instructions on selecting an application.
Once you've gotten to the application you want, you can use the '''forms''' command forms command to see what forms it contains and use '''?list''' to to see what you can do with them. In the example below, we use '''select 1''' to to select the first form in the list (''Address Book'').<pre>
Code Block |
---|
localhost:8082/david@monahan.com/apps/DTM July 2011> forms |
...
----------------------------------------------------------------------------------------- |
...
URL ! http://localhost:8082/frevvo/web/tn/monahan.com/api/formtypes |
...
# | UPDATED | KIND | READONLY | VISIBILITY | NAME |
...
1 | 2011-07-25T14:31:47.118 | FORM | false | PUBLICTENANT | Address Book |
...
2 | 2011-07-18T17:04:13.255 | FORM | false | PUBLICTENANT | Dinner Selections |
...
3 | 2011-08-08T11:29:18.522 | FORM | false | PUBLICTENANT | TitleDepartment |
...
4 | 2011-07-25T16:24:51.003 | FLOW | false | PRIVATE | Flow 42 |
...
----------------------------------------------------------------------------------------- |
...
localhost:8082/david@monahan.com/apps/DTM July 2011/forms> ?list |
...
Name Abbr ArgNum Descr up 1 UPLOAD an application (e.g. 'upload /var/contacts_apps.zip') |
...
... |
...
... |
...
... |
...
select s 1 SELECT an entry (e.g.: 'entry {entry#}') |
...
localhost:8082/david@monahan.com/apps/DTM July 2011/forms> select 1 |
...
----------------------------------------------------------------------------------------- |
...
ID | _fNScEK4rEeCMGZK99v93jw!_W0jPga4rEeCMGZK99v93jw!david |
...
URL | http://localhost:8082/frevvo/web/tn/monahan.com/api/formtype/_fNScEK4rEeCMGZK99v93jw!_W0jPga4rEeC |
...
MGZK99v93jw!david |
...
UPDATED | 2011-07-25T14:31:47.118 |
...
NAME | Address Book DESCRIPTION | David - July 2011 KIND | FORM READONLY | false VISIBILITY | PUBLICTENANT ----------------------------------------------------------------------------------------- |
...
localhost:8082/david@monahan.com/apps/DTM July 2011/forms/Address Book> |
...
If you want, use
...
?list
...
to see what you can do with the form.
...
Code Block |
---|
Name Abbr ArgNum Descr |
...
edit 0 EDIT form (e.g. 'edit') |
...
schema 0 LIST form controls (e.g. 'controls') |
...
... |
...
... |
...
... |
...
print p 0 PRINT this entry (e.g. 'print') |
...
delete d 0 DELETE this entry (e.g. 'delete')pe |
...
refresh r 0 REFRESH this entry (e.g. 'refresh') |
...
localhost:8082/david@monahan.com/apps/DTM July 2011/forms/Address Book> |
...
To edit the form, type '''edit''' and press '''Enter''' edit and press Enter. The command line displays the response below, and frevvo launches the form designer and displays the form you selected.<pre>
Code Block |
---|
localhost:8082/david@monahan.com/apps/DTM July 2011/forms/Address Book> edit |
...
Editing form: http://localhost:8082/frevvo/web/tn/monahan.com/user/david/app/_W0jPga4rEeCMGZK99v93jw/formtype/_fNScEK4rE |
...
eCMGZK99v93jw?edit=true&embed=true&_method=post&apikey=IIGGTVxO1DtiDmUSnIiLzmXQjd6SGJ5c%252FpLVUNm%252FKE8AWzjV0xakncsLK |
...
l2aocCYxj3lHuYWNr5q4Su8O%252FQlyQ%253D%253D |
...
localhost:8082/david@monahan.com/apps/DTM July 2011/forms/Address Book> |
...
[[Image:api-pix_FormDesigner-EditForm.png]]
You can edit the form in the designer as if you had logged in through the UI. Make any changes you want to the form, and then click '''Finish''' or '''Cancel''' to Finish or Cancel to exit the designer. You return to the UI login page.
[http://static.frevvo.com/resources/docs/site/4.1.5/com.frevvo.forms.cli/xref/com/frevvo/forms/cli/shell/FormTypeEntryShell.html Source Code Example]
=== Using a Form/Flow ===
Once you've selected a form, you can use it; this is, you can Source Code Examples
Using a Form/Flow
Once you've selected a form, you can use it; this is, you can run the form as an end-user would. See the [[DataAPI_DesigntimeIntegration#Editing_a_Form.2FFlow | Editing a Form/Flow topic]] above above for instruction on selecting a form. Then simply type '''use''' at use at the command prompt and press '''Enter'''. frevv opens opens the form or flow in your browser.<pre>
Code Block |
---|
localhost:8082/david@monahan.com/apps/DTM July 2011/forms/Address Book> use |
...
Using form: http://localhost:8082/frevvo/web/tn/monahan.com/user/david/app/_W0jPga4rEeCMGZK99v93jw/formtype/_fNScEK4rEeC |
...
MGZK99v93jw?embed=true&_method=post&apikey=IIGGTVxO1DtiDmUSnIiLzmXQjd6SGJ5c%252FpLVUNm%252FKE8AWzjV0xakncsLKl2aocCYxj3lH |
...
uYWNr5q4Su8O%252FQlyQ%253D%253D |
...
localhost:8082/david@monahan.com/apps/DTM July 2011/forms/Address Book> |
...
[http://static.frevvo.com/resources/docs/site/4.1.5/com.frevvo.forms.cli/xref/com/frevvo/forms/cli/shell/FormTypeEntryShell.html Source Code Example]
Display a List of the Controls in a Form
...
After you select a form, you can display a list of all the controls in the form. See the [[DataAPI_DesigntimeIntegration#Editing_a_Form.2FFlow | Editing a Form/Flow topic]] above above for instruction on selecting a form. Then simply type '''controls''' at controls at the command prompt and press '''Enter''' Enter. You see the list of controls.<pre>
Code Block |
---|
localhost:8082/maggie@monahan.com/apps/Sand Box/forms/Order Form> controls |
...
----------------------------------------------------------------------------------------- |
...
URL ! http://localhost:8082/frevvo/web/tn/monahan.com/api/controltypes?ownerId=_bQdBsLSPEeCTSNrzu9T5_w!_PpnhcbSPEeCTSNrz |
...
u9T5_w!maggie |
...
# | CONTROL TYPE | DISPLAY TYPE | READONLY | REQUIRED | COMMENTS? | NAME |
...
1 | InputControlType | Text | false | true | false | Name |
...
2 | PanelControlType | Panel | false | true | false | AddressPhone |
...
3 | InputControlType | Text | false | true | false | Address1 |
...
4 | InputControlType | Text | false | false | false | Address12 |
...
5 | InputControlType | Text | false | true | false | City |
...
6 | InputControlType | Text | false | true | false | State |
...
7 | InputControlType | Text | false | true | false | ZipPostalCode |
...
8 | InputControlType | Phone | false | false | false | HomePhone |
...
9 | InputControlType | |
...
Phone | false | false | false | MobilePhone 10 | PanelControlType | Panel | false | true | false | Date_OrderNum 11 | InputControlType | Date | false | true | false | OrderDate 12 | InputControlType | Text | false | true | false | OrderNumber 13 | PanelControlType | Panel | false | true | false | OrderDesc 14 | TextareaControlType | TextArea | false | false | false | Description 15 | SubmitControlType | null | false | true | false | Submit 16 | SubmitControlType | null | false | true | false | Cancel ----------------------------------------------------------------------------------------- |
...
localhost:8082/maggie@monahan.com/apps/Sand Box/forms/Order Form/controls> |
</pre>Once you display the list, you can select a control and rename it, edit its description, or even delete it.<pre>
Code Block |
---|
localhost:8082/maggie@monahan.com/apps/Sand Box/forms/Order Form/controls> select 11 |
...
----------------------------------------------------------------------------------------- |
...
ID | _6rHRwbSPEeCTSNrzu9T5_w!_bQdBsLSPEeCTSNrzu9T5_w!_PpnhcbSPEeCTSNrzu9T5_w!maggie |
...
URL | http://localhost:8082/frevvo/web/tn/monahan.com/api/controltype/_6rHRwbSPEeCTSNrzu9T5_w!_bQdBsLSP |
...
EeCTSNrzu9T5_w!_PpnhcbSPEeCTSNrzu9T5_w!maggie |
...
UPDATED | 2011-08-10T13:04:20.275-04:00 |
...
NAME | OrderDate DESCRIPTION | Order Date CONTROL TYPE | InputControlType DISPLAY TYPE | Date READONLY | false REQUIRED | true COMMENTS? | false ----------------------------------------------------------------------------------------- |
...
localhost:8082/maggie@monahan.com/apps/Sand Box/forms/Order Form/controls/OrderDate> ?list |
...
Name Abbr ArgNum Descr link l 1 OPEN a link in the browser (e.g. 'link {link#}') |
...
descr d 1 UPDATE this entry's description (e.g. 'descr {newDescription}') |
...
links l 0 SHOW all entry links (e.g. 'links') |
...
links li 1 SHOW feed links for given rel attr (e.g. 'links {relAttr}') |
...
name n 1 UPDATE this entry's name (e.g. 'name {newName}') |
...
print p 0 PRINT this entry (e.g. 'print') |
...
delete d 0 DELETE this entry (e.g. 'delete') |
...
refresh r 0 REFRESH this entry (e.g. 'refresh') |
...
localhost:8082/maggie@monahan.com/apps/Sand Box/forms/Order Form/controls/OrderDate> |
...
[http://static.frevvo.com/resources/docs/site/4.1.5/com.frevvo.forms.cli/xref/com/frevvo/forms/cli/shell/FormTypeEntryShell.html Source Code Example][http://static.frevvo.com/resources/docs/com.frevvo.forms.java-4.1.4-javadoc/com/frevvo/forms/client/FormTypeEntry.html
=== Downloading and Uploading an XSD ===
...