Versions Compared

Key

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

Now you need to create your form that integrates with your database SQL queries.

There are two ways of creating frevvo forms:

...

Code Block
http://<host>:<port>/database/<queryset name>/<query name>/schema?<template name>=<template value>

If your SQL Retrieve statement includes template variables, you’ll need to add the variable names as shown below. The schema itself does not require variables but the connector fetches the schema the same way it fetches data for the '''retrieve''' statement, so the connector expects the template names and values in the URI.

For the example we've been using so far, point your browser to the url: http://localhost:8082/database/myStore/customers/schema?customerId=1234

...


Still using the customers example, assume the Document URI for the schema customers is: 

 

Code Block
http://localhost:8082/database/myStore/customers?customerId={customerId}

If you choose the Write method to be ''POST'', the SQL statement that will be executed is:

 

Code Block
<create>               
 <statement>
 INSERT into customers (customerId,firstname,lastname)      
 VALUES ({customerId},'{firstname}','{lastname}')
 </statement>          
</create>

...

If you have already uploaded the schema to frevvo, you can still make the changes and update the schema. The process of updating the schema is described [[V4_Data_Sources_and_Schemas#Updating_a_Schema | here]];

Below are The common customizations :are discussed below.

Adding Dropdown/Radio Options

...