Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
synergy-components
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Irina Oleynik
synergy-components
Commits
d9bfd3dd
Commit
d9bfd3dd
authored
Apr 06, 2018
by
Sergey Antonovich
🇯🇵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update devTools-Interpreter.md
parent
9cafc534
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
interpreter/devTools-Interpreter.md
interpreter/devTools-Interpreter.md
+43
-0
No files found.
interpreter/devTools-Interpreter.md
View file @
d9bfd3dd
...
@@ -24,6 +24,42 @@
...
@@ -24,6 +24,42 @@
*
`api`
- Выполняет API методы Synergy
*
`api`
- Выполняет API методы Synergy
*
`log`
- Для удобного просмотра JSON в самом интерпретаторе
*
`log`
- Для удобного просмотра JSON в самом интерпретаторе
## Аргументы функций
`load`
(@param
**dataUUID `String`**
)
`getData`
(void)
`getUUID`
(void)
`getDocumentId`
(@param
**dataUUID `String`**
)
`getDataUUID`
(@param
**documentId `String`**
)
<hr>
`getValue`
(@param
**componentID `String`**
, @param
**key `String`**
)
`getValue`
(@param
**componentID `String`**
, @param
**tableID `String`**
, @param
**lineNumber `Int`**
, @param
**key `String`**
)
<hr>
`setValue`
(@param
**componentID `String`**
, @param
**value `String or Object`**
, @param
**key `String`**
)
`setValue`
(@param
**componentID `String`**
, @param
**tableID `String`**
, @param
**lineNumber `Int`**
, @param
**value `String or Object`**
, @param
**key `String`**
)
<hr>
`getRowCount`
(@param
**tableID `String`**
)
`convertTable`
(@param
**dataTable `Array`**
)
`save`
(void)
`destroy`
(void)
`api`
(@param
**method `String`**
, @param
**paramsObj `Object`**
, @param
**type `String`**
, @param
**dataText `Boolean`**
)
## Инструкция по использованию
## Инструкция по использованию
*
Добавить скрипт в интерпретатор и использовать.
*
Добавить скрипт в интерпретатор и использовать.
...
@@ -69,4 +105,11 @@ var data = form.api('asforms/data/save',{
...
@@ -69,4 +105,11 @@ var data = form.api('asforms/data/save',{
uuid
:
uuid
,
uuid
:
uuid
,
data
:
'
"data":
'
+
JSON
.
stringify
(
data
)
data
:
'
"data":
'
+
JSON
.
stringify
(
data
)
},
'
POST
'
);
// [POST]
},
'
POST
'
);
// [POST]
```
>Конвертировать таблицу
```
javascript
var
form
=
new
devTools
().
load
(
dataUUID
);
var
arr
=
form
.
convertTable
(
fd
.
getValue
(
'
Название таблицы
'
,
'
data
'
));
```
```
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment