Skip to content

Instantly share code, notes, and snippets.

@bizikov
Created August 12, 2015 11:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bizikov/e9fec8f92677501279b0 to your computer and use it in GitHub Desktop.
Save bizikov/e9fec8f92677501279b0 to your computer and use it in GitHub Desktop.
IBM Process Designer 8.5: Чтение и запись данных в Coach View
// Чтение БО
var data = this.context.binding ? this.context.binding.get("value") : null;
if (data) {
// ваш код
}
// Чтение параметра
var title = this.context.options.title ? this.context.options.title.get("value") : null;
if (title) {
// ваш код
}
var data = this.context.binding ? this.context.binding.get("value") : null;
if (data) {
var index = 0; // Номер выделенной строки
data.set("listAllSelectedIndices" , [index]);
// Обновляем БО
this.context.binding.set("value", data);
}
var data = this.context.binding ? this.context.binding.get("value").items : null;
data[0].name = 'Новое имя';
this.context.binding.set("value", data);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment