Description Usage Arguments Value Examples
Sends a request to the iFormBuilder API to get a single record from a form or subform given a record id.
1 | get_page_record(server_name, profile_id, page_id, record_id, access_token)
|
server_name |
String of the iFormBuilder server name |
profile_id |
The id number of your profile |
page_id |
The id for the form |
record_id |
The id for the specific record to return |
access_token |
Access token produced by |
Dataframe of a single record from the given form
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | ## Not run:
# Get access_token
access_token <- get_iform_access_token(
server_name = "your_server_name",
client_key_name = "your_client_key_name",
client_secret_name = "your_client_secret_name")
# Get the id of a single form in the profile given the form name
form_id <- get_page_id(
server_name = "your_server_name",
profile_id = 123456,
page_name = "your_form_p",
access_token = access_token)
# Get a list of all record ids in the specified form
record_ids <- get_page_record_list(
server_name = "your_server_name",
profile_id = 123456,
page_id = form_id,
access_token = access_token)
# Inspect the top five record_ids
head(record_ids, 5)
# Get the first record in the list
single_record_id = record_ids[1]
# Get a single record from a form or subform
single_form_record <- get_page_record(
server_name = "your_server_name",
profile_id = 123456,
page_id = form_id,
record_id = single_record_id,
access_token = access_token)
# Inspect the first five columns of the single record dataframe
single_form_record[,1:5]
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.