[Progress Communities] [Progress OpenEdge ABL] Forum Post: tableRef is being ignored in JSDO for Angular 6

  • Thread starter christian.bryan@capita.co.uk
  • Start date
Status
Not open for further replies.
C

christian.bryan@capita.co.uk

Guest
HI We have noticed that even though we supply a tableRef property to a DataSource object in our Angular application the JSDO does not add the tableRef into the filter when calling the count invoke or the read / get. This causes incorrect results or errors for BE's which have multiple tables. Code example We are using the JSDO version 6 for Angular with Angular 6. Thanks Christian. public createDataSource ( businessEntity : string , mytableRef : string ){ var promise = new Promise (( resolve , reject ) => { this . jsdoService . isAuthorised () . then (( result ) => { this . jsdoService . jsdoSession . addCatalog ( this . jsdoService . serviceURI + "/web/Catalog/" + businessEntity ) . then (( result ) => { let myDataSource : any ; if ( mytableRef != '' ){ console . log ( "creating table ref version " + mytableRef ); myDataSource = new DataSource ({ jsdo: new progress . data . JSDO ({ name: businessEntity }) , tableRef: mytableRef , countFnName: "count" }); } else { console . log ( "creating none tableref datasource" ); myDataSource = new DataSource ({ jsdo: new progress . data . JSDO ({ name: businessEntity }), countFnName: "count" }); }

Continue reading...
 
Status
Not open for further replies.
Top