Created
August 12, 2015 11:11
-
-
Save bizikov/e9fec8f92677501279b0 to your computer and use it in GitHub Desktop.
IBM Process Designer 8.5: Чтение и запись данных в Coach View
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Чтение БО | |
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) { | |
// ваш код | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var data = this.context.binding ? this.context.binding.get("value").items : null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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