Announcement

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

    Retreiving custom properties for datasource field

    I have been searching for an answer in the reference documentation and in the forums with no luck.

    I need to create custom properties/attributes for fields defined in my data source config (.ds.xml). Example:

    <field name="id" customProperty="somevalue">

    How do I access that custom value in the client (JS)? I don't see it in the actual field definition, and don't see a method that would allow me to retrieve it.

    #2
    isc.DS.get(dsId).getField(fieldName).customProperty

    Comment


      #3
      This is not working. When looking at the response from the data source loader, the custom properties are not in the field definitions. Is there a property on the data source configuration that I need to set to send these properties back in the response with each field?

      Comment


        #4
        No, it's automatic.

        What you're experiencing suggests that you're editing the wrong file, haven't saved the changes yet, or similar.

        Comment

        Working...
        X