Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to get the value of a field in a DataSource?

    Hello,

    I am using smartClient v10.0 for my project. I have a dataSource like below:

    codeData: isc.DataSource.create({
    ID: "codeData",
    dataFormat: "json",
    clientOnly: true,
    canEdit: true,
    allowEmptyValue: false,
    showPrompt: false,
    dataURL: "constituent/constCode",
    fields: [{name: "id", type: "text"},{name: "code", type: "text"},{name: "flag", type: "text"}],
    handleError: function(response, request) {
    isc.warn("Error reading constituent codes.");
    return false;
    }
    }
    )

    I want to use the value of the field 'flag' in a showIf condition. I will appreciate if anyone can say on how to get the value of a particular field in a field array of a declared dataSource.

    Thanks
    Akash

    #2
    I will appreciate any help on this. Thanks

    Comment

    Working...
    X