找回密码
 立即注册

QQ登录

只需一步,快速开始

hubiyun0901

注册会员

26

主题

56

帖子

180

积分

注册会员

积分
180

[已处理] Json数据源

hubiyun0901
注册会员   /  发表于:2023-9-18 16:25  /   查看:1084  /  回复:6
使用官网的示例,做JSON数据源,但是数据集查不到

jsonplaceholder.typicode.com/comments/







本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x

6 个回复

倒序浏览
Eden.SunWyn认证
超级版主   /  发表于:2023-9-18 17:17:02
沙发
您好,您帖子上的地址没有 https://   协议头,
您在浏览器**问一下:
https://jsonplaceholder.typicode.com/comments/
看是不是能有返回数据:


如果有的话,说明网络没问题,可以获取到数据,您创建数据源,保存之后没在创建数据集,就可以了:




本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
hubiyun0901
注册会员   /  发表于:2023-9-18 17:33:20
板凳
Eden.Sun 发表于 2023-9-18 17:17
您好,您帖子上的地址没有 https://   协议头,
您在浏览器**问一下:
https://jsonplaceholder.typicode ...

有的,网络当然是通的呢
回复 使用道具 举报
hubiyun0901
注册会员   /  发表于:2023-9-18 17:38:38
地板
能远程协助下吗
回复 使用道具 举报
Bella.YuanWyn认证
超级版主   /  发表于:2023-9-18 18:17:08
5#

您好,看您的截图您使用的应该是代码生成的桌面设计器,我这边使用16版本的进行了测试是正常的,您在仔细检查一下;





或者您根据您的版本再git上下载对应版本的文件,运行一下重新生成对应的exe再测看看。
git地址:https://github.com/activereports/Samples16/tree/main

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
hubiyun0901
注册会员   /  发表于:2023-9-18 23:28:23
6#
Bella.Yuan 发表于 2023-9-18 18:17
您好,看您的截图您使用的应该是代码生成的桌面设计器,我这边使用16版本的进行了测试是正常的,您在仔细 ...

您好,我使用的是13版本的!
回复 使用道具 举报
Bella.YuanWyn认证
超级版主   /  发表于:2023-9-19 10:59:40
7#
hubiyun0901 发表于 2023-9-18 23:28
您好,我使用的是13版本的!

您好,我这边找了个13的环境进行了测试,13中需要写schema和内容,我这边找了个例子,您可以参考一下,其次16版本针对json这方面的实现已比较稳定,而且使用很方便,推荐您使用16版本或者官网的最新版本17,这样使用会更方便。
13API链接:https://help.grapecity.com/activereports/webhelp/AR13/webframe.html#JSONProvider.html
官网:https://www.grapecity.com.cn/developer/activereports




schema:
{"$id":"http://example.com/example.json","type":"object","definitions":{},"$schema":"http://json-schema.org/draft-07/schema#","properties":{"Data":{"$id":"/properties/Data","type":"array","items":{"$id":"/properties/Data/items","type":"object","properties":{"CategoryId":{"$id":"/properties/Data/items/properties/CategoryId","type":"integer","title":"The CategoryId Schema","default":0,"examples":[123]},"CategoryName":{"$id":"/properties/Data/items/properties/CategoryName","type":"string","title":"The CategoryName Schema","default":0,"examples":["abc"]},"Description":{"$id":"/properties/Data/items/properties/Description","type":"string","title":"The Description Schema","default":0,"examples":["abc"]},}}}}}
内容:
{"Data":[{"CategoryId":1,"CategoryName":"Beverages","Description":"Soft drinks, coffees, teas, beers, and ales"},{"CategoryId":2,"CategoryName":"Condiments","Description":"Sweet and savory sauces, relishes, spreads, and seasonings"},{"CategoryId":3,"CategoryName":"Confections","Description":"Desserts, candies, and sweet breads"},{"CategoryId":4,"CategoryName":"Dairy Products","Description":"Cheeses"},{"CategoryId":5,"CategoryName":"Grains/Cereals","Description":"Breads, crackers, pasta, and cereal"},{"CategoryId":6,"CategoryName":"Meat/Poultry","Description":"Prepared meats"},{"CategoryId":7,"CategoryName":"Produce","Description":"Dried fruit and bean curd"},{"CategoryId":8,"CategoryName":"Seafood","Description":"Seaweed and fish"}]}



本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部