Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Trusha Savsani 15 posts 94 karma points
    Apr 25, 2017 @ 03:05
    Trusha Savsani
    0

    response.listViewProperties is always empty in list.controller.js

    I am using Ui-O-Matic 2.0.3. I have created one Model named same as my SQL table.

    list.html uses Properties to display list of records. And that Properties always filled from response.listViewProperties in list.controller.js as below.

    uioMaticObjectResource.getTypeInfo($scope.typeAlias, true).then(function (response) {
        $scope.title = response.displayNamePlural;
        $scope.primaryKeyColumnName = response.primaryKeyColumnName.replace(' ', '_');
        $scope.predicate = response.primaryKeyColumnName.replace(' ', '_');
        $scope.properties = response.listViewProperties;
        //$scope.properties = response.editableProperties;  // by trusha
        $scope.nameField = response.nameFieldKey.replace(' ', '_');
        $scope.readOnly = response.readOnly;
        $scope.listViewActions = response.listViewActions;
        $scope.predicate = response.sortColumn;
        $scope.reverse = response.sortOrder == "desc";
        // Pass extra meta data into filter properties
        $scope.filterProperties = response.listViewFilterProperties.map(function (itm) {
            itm.typeAlias = $scope.typeAlias;
            return itm;
        });
    
        // Sync the tree
        navigationService.syncTree({ tree: 'uiomatic', path: response.path, forceReload: false, activate: true });
        fetchData();
    });
    

    But the problem is response.listViewProperties always comes with empty array. What should I do to get filled Array from table?
    I am getting records in response.editableProperties, but I don't want editable records. Please help me to resolve this error as I have to complete my task as soon as possible.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies