Format dates in VBCS page using functions

You can use oj-input-date or oj-input-date-time components for showing formatted date and use convertor options But when using above component only for read-only purpose to show some values in grid or table, it doesn’t make sense to use input fields. Instead we can use oj-bind-text field and pass data using following JavaScript function. The JavaScript … Read more

How to have different colors on rows based on one field in row in oj-data-grid

On a data grid, we can use a function in the cell.class-name attribute to dynamically pass the class name based on row data. “cellContext” will contain the required information. We can use console.log() to identify the structure. This can be used for other attributes, like “header.column.class-name” as well on oj-data-grid This can be used when … Read more

Format number in VBCS page using functions

You can use oj-input-number tag for showing formatted number and use convertor options But when using above component only for read-only purpose to show some values in grid or table, it doesn’t make sense to use input fields. Instead we can use oj-bind-text field and pass data using following javascript function. The JavaScript function will … Read more

How to make scroll bar thicker in vbcs table or gird

Based on the default redwood theme the table and grid scoll bar are very thin User can update it by adding the following code in app.css in vbcs application. width will increase the thickness of vertical scroll bar height will increase the thickness of horizontal scroll bar. Screenshot without additional css Screenshot with additional css … Read more