You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Trying to reference table column with a variable, error is variable not defines

edited Jul 22, 2019 5:26AM in Visual Builder 1 comment

Summary

Trying to reference table column with a variable, error is variable not defines

Content

Hi,

 

We are facing issues where we are trying to reference table columns with a variable, Ref : https://www.oracle.com/webfolder/technetwork/jet/jetCookbook.html?component=table&demo=columnAdditionTable

But it is throwing error 'Cols is not defined'

View Model:

require(['knockout', 'ojs/ojbootstrap', 'ojs/ojarraydataprovider', 'ojs/ojknockout', 'ojs/ojtable'],

define(['ojs/ojcore', 'knockout', 'jquery', 'ojs/ojtable'],   function(KnockoutTemplateUtils,ko,Bootstrap) {

                function viewModel()   {

                   this.cols =ko.observableArray([{"headerText":"job_nm","field":"job_nm"},

                                {"headerText":"intg_nm","field":"intg_nm"},

                                {"headerText":"intg_flow_id","field":"intg_flow_id"},

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!