文件最后提交记录最后更新时间
!837 ability,Account,AppSample,Basic,common 等适配arm64位系统版本3 年前
!887 README整改3 年前
!513 更新根目录README和sample下的README4 年前
!887 README整改3 年前
!755 Container 正则修改3 年前
!514 900版本IDE对sample进行编译整改,DataAbility4 年前
!837 ability,Account,AppSample,Basic,common 等适配arm64位系统版本3 年前
README.md

Creation and Access of Native-based Data Abilities

Introduction

This sample shows how to create and access a Data ability in Extended TypeScript (eTS). Data abilities are added, deleted, updated, and queried using interfaces implemented through the rational database (RDB), and accessed using DataAbilityHelper.

Usage

  1. On the home page of the sample app, touch Batch insert in the upper right corner or + in the lower right corner to insert a data record to the Data ability through the DataAbilityHelper.

  2. Touch X next to the new data record in the list to delete the record.

  3. Touch a data record in the list to edit the record on the editing page. After the editing is complete, touch to save the data and return to the home page.

  4. On the home page, touch the search box at the top of the list to enter the search page. Enter the keyword for search. The data that contains the keyword is displayed in the list.

Constraints

This sample can only be run on standard-system devices.