Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to dynamically add a columns to ojTable using oracle jet and knockout js

3197902Apr 17 2016 — edited Nov 15 2016

I have a requirement where I have to add extra column on a specific condition to Table Grid.

for example in the below table grid I have to add extra column like employeename to columns attribute dynamically while displaying a list page.kindly example me with clear example.I am struggling on this.

<table id="table"

       data-bind="ojComponent: {component: 'ojTable',

                                data: datasource,

                                columns: [{headerText: 'Remove', id: 'column1', sortable: 'disabled'},

                                          {headerText: 'Department Id',

                                           field: 'DepartmentId'},

                                          {headerText: 'Department Name',

                                           field: 'DepartmentName'}],

                                selectionMode: {row: 'none', column:'none'},

                                rowTemplate: 'row_tmpl'}">

</table>

Comments
Post Details
Added on Apr 17 2016
4 comments
1,553 views