0

我正在尝试将 bryntum 组件(计划)集成到 php 中。我对 ext js 不太了解。请在此处查看图片

在这里,名称字段正在正确获取,而容量没有访问。这些值来自 Zoho CRM。我的代码类似于Click,而 r-read.php 文件是负责从 CRM 获取记录并将其存储为 json 格式的文件。它像是

{
    "success": true,
    "total": 9,
    "root": [{
        "Id": 1,
        "Name": "Sri Test",
        "Capicity": "190.0"
    }, {
        "Id": 2,
        "Name": "tester_test01",
        "Capicity": "500.0"
    }, {
        "Id": 3,
        "Name": "Tesing room 23",
        "Capicity": "5000.0"
    }, {
        "Id": 4,
        "Name": "Test for 6th product",
        "Capicity": "5000.0"
    }, {
        "Id": 5,
        "Name": "Banquet hall test-01",
        "Capicity": "500.0"
    }, {
        "Id": 6,
        "Name": "test room",
        "Capicity": "1000.0"
    }, {
        "Id": 7,
        "Name": "Grande Ballroom",
        "Capicity": "4000.0"
    }, {
        "Id": 8,
        "Name": "Cedar Room",
        "Capicity": "1400.0"
    }, {
        "Id": 9,
        "Name": "Maple Room",
        "Capicity": "1200.0"
    }]
}

在容量列中,它将像名称列一样显示 190.0、500.0、5000.0 等。

请让我知道您是否清楚。请帮我。

提前致谢。

4

1 回答 1

0

I'm not familier with the Bryntum schedular component, but most of the time when you have problems like these it's because you didn't define the Capacity field in your model.

I saw you used the following model: Sch.model.Resource. Can it be that is only has the Name field and not Capacity? Your JSON response looks fine to me.

于 2013-02-27T08:40:26.060 回答