Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    About creating and using a data source

    I created a data source as follow and am trying to show the data in a window. However, this error pops up : "ISC_Core.js:2051 POST PathToFile/SmartClient/SmartClient_v121p_2020-11-10_Pro/smartclientSDK/isomorphic/IDACall?isc_rpc=1&isc_v=v12.1p_2020-11-10&isc_xhr=1 net::ERR_FILE_NOT_FOUND"


    //To Creating data source
    isc.DataSource.create({
    id:"tagDataSource",
    fields:[
    {name:"A"},
    {name:"B"},
    {name:...},
    ...
    ],
    data: cData
    });



    //To Showing data
    isc.Window.create({
    title: "View Tag",
    items: [
    {title: "Tag List",
    items: [
    isc.ListGrid.create({
    ID: "TagList",
    dataSource: tagDataSource,
    fields:[
    {name:"A"},
    {name:"B"},
    {name:"..."},
    ...
    ],
    })
    ]
    });


    But when I replace the "dataSource: tagDataSource" by "data: cData" directly, it works.

    so. any idea how I should use the created data source properly?

    MANY THANKS !!

    #2
    Please take a look at the QuickStart Guide, Data Binding and Data Integration chapters. It's not clear what you expected to happen, but those chapters will clarify how DataSources work.

    Comment


      #3
      Hi Leochan,

      try dataSource: "tagDataSource" (with quotes).

      Best regards
      Blama

      Comment

      Working...
      X