cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

setting maxitems cannot return the data correctly

lliangjb
1-Visitor

setting maxitems cannot return the data correctly

The custom service:

var query3 =

{

    "filters": {

        "type": "OR",

        "filters":[

            {

                "type":"EQ",

                "fieldName":"mingchen",

                "value":mingchen

            },

            {

                "type":"EQ",

                "fieldName":"suozaiquyu",

                "value":suozaiquyu

            },

            {

                "type":"EQ",

                "fieldName":"tichuzhe",

                "value":tichuzhe

            }

        ]

    } 

}

var params = {

oldestFirst: undefined /* BOOLEAN */,

maxItems: 3 /* NUMBER */,

endDate: undefined /* DATETIME */,

query: query3 /* QUERY */,

startDate: undefined /* DATETIME */

};

// result: INFOTABLE

var result = Things[thingname].QueryPropertyHistory(params);

页面截图.png

ACCEPTED SOLUTION

Accepted Solutions
liliu
12-Amethyst
(To:lliangjb)

Hi Mr. Guo,

QueryPropertyHistiry serivers works fine, it's your data issue, as we checked the firs 3 records are empty. That why we cannot search out the data.

Lily

View solution in original post

2 REPLIES 2
liliu
12-Amethyst
(To:lliangjb)

Hi Mr. Guo,

I checked your code, seems to be fine. I guess it's the service QueryPropertyHistory's issue. I will test and let you know the test result.

liliu
12-Amethyst
(To:lliangjb)

Hi Mr. Guo,

QueryPropertyHistiry serivers works fine, it's your data issue, as we checked the firs 3 records are empty. That why we cannot search out the data.

Lily

Announcements


Top Tags