How to Specify Header Labels for Dynamic Columns How to Specify Styles for Dynamic Columns According to Attribute Data Type

7-28 Desktop Integration Developers Guide for Oracle Application Development Framework Support for View Objects with Declarative SQL Mode To support view objects that are configured with declarative SQL mode and customized at runtime, ADF Desktop Integration ignores all attributes with the selected property set to False. On the server side, the JUCtrlHierNodeBinding object determines the attribute list and passes it to the integrated Excel workbook on request.

7.15.3 How to Specify Header Labels for Dynamic Columns

Use the following syntax to write EL expressions for the HeaderLabel property of a dynamic column: {bindings.TreeID.[TreeNodeID].hints.AttributeNamePrefix.label} or: {bindings.TreeID.hints.AttributeNamePrefix.label} Specify the same tree binding ID, tree node binding ID, and attribute name prefix values in the HeaderLabel property of the dynamic column as the values you specify for the Value properties of the dynamic column’s InsertComponent and UpdateComponent if the dynamic column supports Insert and Update operations. If you want the mandatory columns, where the end user must enter a value, to be marked with a character or a string, you must configure the HeaderLabel property. Use the following syntax to write EL expression to add a character or string to all mandatory columns: =IF{bindings.TreeID.[TreeNodeID].hints..mandatory}, prefix_ for_mandatory_cols , {bindings.TreeID.[TreeNodeID].hints..label} For example, the following EL expression adds an asterisk character to the mandatory columns label: =IF{bindings.MyTree.[myapp.model.MyChildNode].hints..mandator y}, , {bindings.MyTree.[myapp.model.MyChildNode].hints..label}

7.15.4 How to Specify Styles for Dynamic Columns According to Attribute Data Type

You can specify different styles for each data type according to the data type of the column. Use the following syntax to write EL expressions for the CellStyleName property of a dynamic column: =IF{bindings.TreeID.[TreeNodeID].hints..dataType}=data_ type , custom_style_expression1, custom_style_expression2 In the following example, the MyDateStyle style is applied to all date columns, and MyDefaultStyle is applied to other data type columns: =IF{bindings.MyTree.[myapp.model.MyChildNode].hints..dataTyp e}=date, MyDateStyle, MyDefaultStyle Note: The ADF Table component ignores the value of a column’s Visible property when you configure a column to be dynamic. For more information about ADF Table component column properties, see Table A–10 . Working with ADF Desktop Integration Table-Type Components 7-29 The following example shows another scenario where the MyDateStyle style is applied to all date data type columns, MyNumberStyle is applied to all number data type columns, and MyDefaultStyle is applied to other data type columns: =IF{bindings.MyTree.[myapp.model.MyChildNode].hints..dataTyp e}=date, MyDateStyle, IF{bindings.MyTree.[myapp.model.MyChildNode].hints..dataType }=number, MyNumberStyle, MyDefaultStyle For more information about EL expressions, see Appendix B, ADF Desktop Integration EL Expressions.

7.16 Creating an ADF Read-Only Table Component