Logo
Logo
  • Blazor CMS Home
  • Oqtane Tutorials
  • Blazor CMS Home
  • Oqtane Tutorials
Oqtane Tutorials
Oqtane Tutorials

JavaScript Tutorial

Tutorial Home › JavaScript
Use Koi to Adjust to the Page CSS Framework
#1 Use the 2sxc JS API to get Data
Use the sxc data API to create/edit/delete data
The samples can differ based on your Razor base class or if you're running an old version.
Switch to Typed (2sxc 16+) Switch to Dynamic (Razor14 or below)
Requirements
  • 2sxc 7.00
Resources
  • JS 2sxc APIs
  • JS sxc.data Service
  • JS sxc.query Service
Related
  • turnOn Tutorial
  • WebAPI Basics: Call WebAPIs and REST using JavaScript

Use the 2sxc JS API to get Data

This page uses the sxc data API to get data from the backend and display it in a table with JavaScript.

In this tutorial you'll learn how to:

  • Create a $2sxc object using the current Module Id
  • Use the correct data source using .data()
  • Read data using the .getOne(id) query method
  • Read data using the .getAll() query method

Look at the content below to see the effect.

 

Use Koi to Adjust to the Page CSS Framework
#1 Use the 2sxc JS API to get Data
Use the sxc data API to create/edit/delete data
  • 2sic internet solutions
  • Langäulistrasse 62, 9470 Buchs SG, Switzerland
  • +41 81 750 67 77
Login