Section | ||
---|---|---|
|
...
Installation
Tip |
---|
|
If you are using In-house and have downloaded the Google Connector:
- rename the download file named connector-google-apps.zip to google.war
- copy google.war to c:\frevvo\tomcat\webapps
Tomcat will automatically expand the war file and start the connector running. If you are not using the frevvo tomcat-bundle or have not installed the bundle into c:\frevvo make the necessary path adjustments to step 2 above.
Google Spreadsheets
forms can both write to and read from your Google spreadsheets.
Save Submissions to a Spreadsheet
provides wizards and a Google Connector that support easy direct connectivity with Google Spreadsheets. You'll need a Google Docs account and a frevvo account.
To save submissions to your Google spreadsheet, edit your form and use the Doc Action Wizard to configure your form to save your submissions into a Google spreadsheet. Each time someone uses and submits your form, a new row is added to your Google spreadsheet.
Note |
---|
Google will not automatically add a row to your spreadsheet. Make sure your spreadsheet has plenty of empty rows at the bottom for all your expected submissions. See Google Connector Known Issues. |
...
|
Warning |
---|
Google will no longer support the Google Documents List API 3.0 after April 20, 2015. All customers must upgrade their frevvo Google Connector to version 2.0 and migrate their forms by this date . The frevvo Google Connector v1.4 and earlier will not work after this date. If you are using v5.1.1+ you must upgrade to patch 9 to use the Google Connector 2.0. Follow the instructions here to upgrade the connector and here to upgrade . |
The information on this page refers to the Google Connector v1.4. Click here for the details about Google Connector v2.0.
Tip |
---|
customers building applications that are high volume and address critical business processes should not use Google Sheets in place of a production quality database. |
Installation
Tip |
---|
|
If you are using In-house and have downloaded the Google Connector:
- rename the download file named connector-google-apps.zip to google.war
- copy google.war to c:\<frevvo-home>\tomcat\webapps
- If you are using the tomcat-bundle, the google.war file is located in <frevvo-home>/ext/connectors. Copy the war file from this location to c:\<frevvo-home>\tomcat\webapps.
Tomcat will automatically expand the war file and start the connector running. If you are not using the tomcat-bundle or have not installed the bundle into c:\frevvo make the necessary path adjustments to step 2 above.
Google Spreadsheets
forms can both write to and read from your Google spreadsheets.
Save Submissions to a Spreadsheet
provides wizards and a Google Connector that support easy direct connectivity with Google Spreadsheets. You'll need a Google Docs account and a account.
To save submissions to your Google spreadsheet, edit your form and use the Doc Action Wizard to configure your form to save your submissions into a Google spreadsheet. Each time someone uses and submits your form, a new row is added to your Google spreadsheet.
Note |
---|
Google will not automatically add a row to your spreadsheet. Make sure your spreadsheet has plenty of empty rows at the bottom for all your expected submissions. See Google Connector Known Issues. |
If your form contains multiple documents because one or more controls are from the palette while other controls are from one or more XSD data sources, you can write each document to a different Google Spreadsheet. To do this use the Google Connector Url Manual Doc URI wizard to configure each Uri to a different spreadsheet or workbook within the spreadsheet.
Info |
---|
See the Google Connector Spreadsheet Tutorial for step by step instructions. |
Read from a Spreadsheet
forms can be initialized with data from a Google Spreadsheet by retrieving data from the Google Spreadsheet via a business rule. This form allows the user to select a customer from the dropdown. Once selected a business rule retrieves the address details from a Google Spreadsheet.
...
And the following Url parameters:
- media=jason json - This must be set as shown
- query=<query string> - This is where you specify which rows to match based on the data in your spreadsheet.
...
You can test your queries directly in the web browser. Note that characters such as the equals and double quotes must be URL encoded as shown in the examples below where you see %22 for quote and %3D for =
Code Block |
---|
http://www.frevvo.com/google/spreadsheets/query/u/<user>/p/<password> /s/DisclosureAddresses/w/ByName?media=json&query=name%3DHMF http://www.frevvo.com/google/spreadsheets/query/u/<user>/p/<password> /s/DisclosureAddresses/w/ByName?media=json &query=name%3D%22AAA Insurance%22 |
Update Spreadsheet Cells Cells
In addition to retrieving rows from a Google spreadsheet and adding rows to a spreadsheet, you can also update an data in an existing row. See the business rule example Sequential Numbers.
...
And the following Url parameters:
- media=jason json - This must be set as shown
- query=<query string> - This is where you specify which rows to match based on the data in your spreadsheet.
- update=<update string> - This is where you specify which cell(s) to update in the matched row(s)
- method=put - A hard coded Url parameter that must exist in the Url string
...
Form submissions can be saved to your your Google Apps Premier account. Note that Google Apps Premier accountfor Education account are currently not supported.
The first step is to create a Collection (effectively a folder) in your Google Apps account. This will be the location where your form submissions will be stored. For example, create a Collection called Leave Approvals.
Column | |
---|---|
50px | Create a new Google Apps Collection |
Use the Google Documents wizard
Column | ||
---|---|---|
| ||
- Click the Doc Action button in the toolbar at the top of the form.
- In the wizard that pops up, select the Save to Google Documents button.
- Enter your login credentials.
- After your login has succeeded, the wizard will show the list of Folders (Collections) available. Sub-folders are not listed in the folder list.
- Select the collection you created earlier (Leave Approvals).
- Choose a name for the Submission Folder. This name should be unique for each submission. The best approach is to choose a combination of controls in the form that will generate a unique name. For example, if your form contains controls named EFulName and StartDate for employee's full name and start date of the leave, then choose: {EFullName}_{StartDate}.
- Click the Finish button.
- Your form is now configured to save submissions to your Google Apps account.
...
Column |
---|
...
...
Credentials, Folder, Submissions Folder
= Google Documents =
...
Warning |
---|
Do not use spaces or special characters when creating submission folder names. |
Google Documents
Warning |
---|
The standard email wizard now supports HTML and CSS formatting plus form fields templates to pull an data entered into the form into your email message subject and body. |
...
The Google Documents Connector can be used to format emailed form submissions and to echo a formated document back to the page that submitted the form. Here is a sample email formated using the Google Document template [[#Google_Document_Template_Syntax|template shown below]].
[[Image:googleDocEmail.png]]
To use the Google Connector Edit your form and [[V4_Designing_Forms#Display_Message_formatted_Using_a_Google_Document | , edit your form and use the Form Action Wizard to echo a formatted document back to the page]] and/or [[V4_Designing_Forms#Format_.26_Email_Using_a_Google_Document | and/or use Doc Action Wizard to format an email message]].'''
Google Document Template Syntax
...
This feature is currently in alpha release. The syntax may change. The Google Document Connector uses a template syntax to insert values from a submitted form into the document. The syntax is ${form.[Name]}. Where [Name] is the name you gave to the particular form field in the frevvo Form Form Designer. Read more about [[V4_Designing_Forms#Name|naming form fields]].
Here is a Google document using the template syntax:
[[Image:googleDoc.png]]
'''Repeats''':
Repeats
Repeat controls have a special syntax. Assume that your form contains a repeating section named Expense. First you must add a Repeat As tag to the document. ${repeat form.[Name] as [alias]}. For example: ${repeat form.Expense as exp}. Then use the alias to reference the controls inside the repeat. The Connector's template processor will add a row to the table for each repeating item in the form submission.
[[Image:googleRepeat.png]]
'''Sections'''
Sections
Form controls nested inside sections must be referenced using a nesting notation. If two text controls named Firstname and LastName are nested inside of a section named PersonalInfo then the templates in your google document must be written as:
${form.PersonalInfo.FirstName}
$ ${form.PersonalInfo.LastName}
...
${form.MedicalHistory.PersonalInfo.FirstName}
${form.MedicalHistory.PersonalInfo.LastName}
'''Limitations'''
[[Image:18px-Symbol_OK.svg.png]] ${form.MedicalHistory.PersonalInfo.LastName}
Limitations
Tip |
---|
The connector currently supports only form controls from palette. It does not yet support form controls from XSD data sources. |
...
Templates are case sensitive. If your form field is named '''Hours''' then your template must be written as ${form.Hours}. Using lower case as in ${form |
...
.hours} will result in no field data in the document. |
Warning |
---|
|
...
...
...
...
|
Google Connector Known Issues
The frevvo Google Google Connector is an alpha release. These are the known issues we are working to solve. Please report any issues or feedback to us [http://www.frevvo.com/frevvo/web/static/bug here].
<table border="1" bgcolor="lightblue">
<tr>
<th>Ticket</th>
<th>Description </th>
<th>Work-around</th>
</tr>
<tr>
<td><span id="3931">3931</span></td>
<td>Google issues or feedback to us here.
Ticket | Description | Work-around |
---|---|---|
3931 | Google Connector fails to replace templates with form field |
...
values | Text formatting of the templates can possibly corrupt the underlying html document structure. If your document fails to produce results for certain templates, delete the template and re-add it to your document. Copy and pasting template tags can have the same effect. Both problems are due to the fact that the Google Docs is inserting html font tags into the middle of your templates. You can also fix this by cleaning up the document in the html view. But better to avoid the problem initially. |
...
7710 |
...
Google Connector fails to add row to google |
...
spreadsheet | The Connector will fail to add a submission to your google spreadsheet if the spreadsheet has no empty rows at the bottom. Make sure your spreadsheet has plenty of empty rows at the bottom for all expected form submissions. |
</td>
</tr><table>