# 相关接口

接口文档地址：<http://www.o2oa.net/x_desktop/portal.html?id=dcd8e168-2da0-4496-83ee-137dc976c7f6>

主要常用几个接口方法介绍

1、获取表单元素对象this.form.get(name)  //name元素标志

2、字段取值和赋值 field.getData(),field.setData("xxx")

3、打开应用

&#x20;        this.form.openCMS(name) //打开cms一个栏目

&#x20;        this.form.openProcess(name) //打开流程应用

&#x20;       this.form.openApplication(name) //打开其他应用

&#x20;     //启动一个发文管理实例，标题为：my file title，启动后提示`this.form.startProcess("公文管理", "发文管理", {"title": "my file title"}, function(json){                  this.form.notice("create file success!", "success"); });`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://o2oa.gitbook.io/course/liu-cheng-guan-li/untitled-2/xiang-guan-jie-kou.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
