Showing posts with label Validation Expressions. Show all posts
Showing posts with label Validation Expressions. Show all posts

Tuesday, August 30, 2011

Now available : Data aggregation in list/chart views, Data-access & Caching functions and more..

Over the month we have rolled-in the following features in your free online database app builder and free online crm, built over Google App Engine for use with Google Apps.
  1. Data aggregation in list views & chart views
  2. Data access and Caching functions
  3. Search for files to attach from Google Docs

Data aggregation in list views & chart views

Numeric attributes (integer and float types) can now have a Default Aggregation configured to display the sum of the fields' values in the list views and in the chart views.

In our iFreeTools CRM, our free CRM app for use with Google Apps, we have enabled this for fields in Expected Revenue, Budgeted Cost and Actual Cost fields in Campaigns and for Amount and Expected Revenue in Opportunities.

The summation of the values from such fields will be listed below the list view as shown in the image below..


Along with this we have also enabled the result of aggregation from multiple attributes to be rendered in the same graph, so that you can compare related aggregation values visually.

The following image shows the chart views for Campaigns enabled to display values from 3 attributes, Expected Revenue, Budgeted Cost and Actual Cost, grouped by Campaign Status..


For your custom online database apps, built over iFreeTools creator you can specify this configuration in the Attribute form, when you add/edit the attribute details.

Note : All aggregation / charting features are currently restricted to work with smaller batch of data. When our Scheduled Reports feature is available, you can create summary / charts for full set of data.

Data-access and Caching functions

New data-access and caching functions listed below have been now added for use with expressions.

user
Usage : user()
Description : Returns the currently logged in user

fetch_one
Usage : fetch_one(entity_name, criteria)
Description : Returns a record for the given entity_name and filtering criteria
Example : fetch_one("Car", {"Company":"Honda", "Name":"City"}) will fetch a record from the entity having Display Name as Car and for the filtering condition to get the record for Honda City.

val_from
Usage : val_from(instance, prop_name)
Description : Returns a value of a property from the given instance.
Example : val_from(user(), "emailId") will return the current user's email-id, where emailId is the alias for the "Email Id" attribute in User system-entity.

cache
Usage : cache(name, expr)
Description : To cache the result of evaluation of expression expr with the given name.

cached_val
Usage : cached_val(name)
Description : Returns the value which was added to cache previously with the given name.


For more details, refer to Data Access and Cache Functions section the user guide.

Search for files to attach from Google Docs

When attaching files from Google Docs to your records, you now have the option to search for the required file based on text, to narrow down the files and attach the required file to your record.


Hope you like the new features.

Do keep sending in your suggestions on how we can make things better in your free online database app builder.

Friday, July 29, 2011

Date-Time and Error Functions now available for use within Expressions

Your favorite online database app builder tool over Google App Engine - iFreeTools Creator, now supports date-time functions within formula field expressions and in validation expressions.

The new date-time functions made available are listed below :


now
Usage : now ()
Description : Returns a datetime object having the current time.

date
Usage : date(year, month, day)
Description : Returns a date object for the given year, month and day values.

datetime
Usage : datetime (year, month, day, hours=0, minutes=0, seconds=0)
Description : Returns a datetime object for the given parameters. If hours, minutes and seconds are not provided, they will be taken to be 0 (zero).

timedelta
Usage : timedelta (days=0, seconds=0, microseconds=0)
Description : Returns a timedelta object representing a difference in time, for the given days, seconds and microseconds. Can be used to add or subtract date/datetime values.
Example: now() + timedelta(1) will give tomorrow's date and time.


We have also added support for raising error messages when validating values using expressions. Apart from detailing on how to enter the value for the field in the description, this function will enable you to specify the reason for the validation failing.


error
Usage : error(error_msg)
Description : Raises an error with the given error_msg. This will be shown in the form for the corresponding attribute which failed the validation expression.


We have also rolled in a new home page for iFreeTools Creator, now highlighting the important features available in the platform.



Keep sending in your valuable suggestions on how you think we can make iFreeTools better for you.

Wednesday, June 29, 2011

Expressions for Computed Formula Fields & Field Validations, now available in iFreeTools

The labs setup of the Google App Engine powered free online database apps creator, now has support for defining and using expressions for calculated formula fields and in validations.

Update : it is now available at http://creator.ifreetools.com too.

Note : When adding new formula expressions, you will need to re-index the existing records to have the formula value computed for those entries.

Formula Expressions

You can now define expressions based on values in other fields in the database record to compute the value of formula field.

For example, you might have First Name and Last Name as fields within your database record and may prefer to have them combined in another Name field. For this you can add the 3 attributes with data-type as Single line text (String) and for the Name attribute you can set the Formula Expression (under Advanced section of the attributes form) to be

val("First Name") + " " + val("Last Name")

The val function enables you to fetch the value of the field for a given display name.

The formula expressions can be set for any data-types, just make sure the return value of the expression is of the required type.

Aliases for fields

You can also set Aliases for the attributes and use them instead of the val functions, to have the formula to be something like

First_Name+" "+Last_Name

Validation Expressions

You can also define validations expressions which need to evaluate to True for the record to be stored into the database.

So, if you have a product code field and it should always be 5 characters in length, you can set the Validation Expression as

len(inputValue) == 5

For more details on the operators and functions available for use within expressions, kindly refer to Using Expressions for Formula-fields and Validations, in our user guide.


Hope you like the new feature. Do keep sending in your suggestions on how you believe we can make this app better for you.