Skip to content

In the ObjectList datasource, boolean properties should be accessible with a isPropertyName getter #11

@jef942

Description

@jef942

In the ObjectList datasource, when a business object has a boolean property, the value of this property should be accessible with a 'is' PropertyName getter.

With the current version, if the ObjectListDataSource contains a List of Contact and the Contact has a 'isCustomer' boolean property, the binding contact.isCustomer() generates the following error:

Script interpreter error, line=1, col=15: [TypeError] Error calling method 'isCustomer()' on an object of type 'org.openntf.xpt.objectlist.datasource.ObjectListDataEntry [Dynamic Java Wrapper, org.openntf.xpt.objectlist.datasource.ObjectListDataEntry]'

Work around: the boolean value can be retrieved using the following instruction:
booleanValue = contact.getBO().isCustomer()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions