What is an Expression? An expression can consists of arithmetic expression, property expression, query expression and logical expressions. Eg 12 + 3 * 4 / 5 = 14, or #{principle} * #{rate} * 100 / #{time} where principle, rate and time are the identifiers, or #{Person.city} where person is the identifier which points to data source object of Person and city is the property of person.
AdvancedTopics |
Column Header, Column header group text. Setting same column header value to consecutive columns would render a column group header spanning accross the columns with the same value. Column Summary Formula, You can specify any expression. Sample expression sum(#{price}) 'Sum: ' + sum(#{price}) + newline() + 'Avg: ' + avg(#{price}) 'Avg of Day2:'+ avg(#{price}/100) 'Max:'+max(#{ day3}). Minimum Length For Tooltip, Applicable when show tooltip is checked. Resizable, Check this to allow ...
User Interface |
Datasource Expression can be used to access attribute values from a datasource's data. Commonly Used Syntax #{DatasourceName.attributeName} The DatasouceName above is case sensitive and the attributeName is not case sensitive. Any of the following expressions can be used to retrive the "Employee Name" attribute value from the Employee datasource #{Employee.Employee Name} #{Employee.employeeName} #{Employee. Emp loyee Na me } All the above are same as ...
Basics User Interface |
Default Value, Use this property to specify a default value for a field when creating a new record. eg #{session.userid} #{session.displayname} sysdate Some Constant Value or any other Expression. Enabled, Uncheck this if you want the component to be rendered as disabled. Field Label, Specifies the label to be used for the field within a FormPanel. Formula, It helps you do arithmetic calculations based on the formula that you provide. Refer to Expression for the help on mathamatical funcations.
Basics UI Components User Interface |
Here you need to specify the expression that has to execute when the condition is true. Action When False: Here you need to specify the expression that has to execute when the condition is false. Scope: In the scope tab you need to specify the scope level. Here scope level is nothing but to a specific role or to particular user. Enable the active checkbox. Now go to preview page and go to the page for which you have written the ui rule. Right Click and click on Reload Page Rules. Now when you login as a ...
Advanced Topics Wiki |
InfoCard can be used to display the summary info. Similar to a Field, InfoCard can be added inside any Container, Grid or FormPanel as shown below. InfoCard Properties. Property, Description. Bottom Text, The text shown below the value. You can use Expression to set a dynamic text. Show In Metrics, Check to display the value in metrics format eg 1K instead of 1000. Title, The text shown above the value. You can use Expression to set dynamic title.
UI Components |
Formula. Could be any expression eg ifNull(#{amount},0) sum('Datasource. attribute). Help Text. Text to be displayed as tooltip. Next Item Id To Focus. Item ID of the next focusable field into which the focus need to be set when the user tabs out of the current field. Override Read Only Style. Enter the style class name to be used when the field is read-only. Regex. "Regex" property defines the regular expression that you can specify to validate the data in the text field. eg [A-Z0-9._ %+-]+@[A-Z0-9.-]+\.[AZ]{2,4}
UI Components |
Note: Please refer to TextField for details on other properties that are not listed below. Format. Specify the number format to be used to display the value. Refer to GWT's NumberFormat for more information. Formula. Specify the expression to be used to derive the value for this field. eg #{Unit Price} * #{Quantity}. Column Summary Formula. Specify the formula (expression) to be used for the summary text. eg 'Total Salary: ' + sum(#{EmpDataSource.salary}). Show Summary. When checked, displays the ...
UI Components |
Where Used. Session Variables are used in the application UI to access certain parameters which are dynamic in nature from the implicit object session. The Platform creates this implicit object and it can be used in the application to set default values, while building Expressions etc. eg If you want to set the default value of a Text field with the email address of the current logged-in user, then you can use the expression #{session.emailAddress} for the "Default Value" property ...
Advanced Topics |
Note:We can specify multiple Item Id's with comma (,) as delimiter. Action Set Heading: We can change the header of UI Component like Grid,Content Panel etc.We need to specify Header and UI Item Id property. We can specify header either simple string or dynamic Expression. Action Set Height: We can change height of UI Component using this action. We need to specify the UI Item Id and Height property. We can specify height either in Pixel(px) or Percentage(%) according to UI Component layout.
UserInterface HowTo Wiki |
101 California Street, Suite 2710
San Francisco, CA 94111
440 N. Wolfe Rd.
Sunnyvale, CA 94085
Office 11, 5th Floor, Building 9,
Mindspace IT Park
Hyderabad 500081