帖子
|
JS API v3文档说第三个参数是< Graphic[] >删除,唯一指定的要求是“要删除的功能数组”。const toDelete = new esriJS.EsriGraphic();toDelete.setAttributes({}) toDelete.attributes.objectid = objectid;const featureLayer = new esriJS.FeatureLayer(featureLayerUrl);featureLayer。applyEdits(null, null, [toDelete],(添加,更新,删除)=> {resolve(删除);}, err => {console.log(err);调试器拒绝(错);});(我的图层的objectIdField被称为objectid(全部小写))。 I can see that the function makes the POST but ignores the [toDelete] parameter that was passed in. What am I doing wrong?
...查看更多
|
0
|
1
|
70
|
帖子
|
JS API v3.37(我目前使用的AGE)和v3.42(试图使用最新的本地)我有以下代码const updatedGraphic =新图形()updatedGraphic. setgeometry (feature.geometry) updatedGraphic. setattributes (feature.attributes);const featureLayer = new esriJS.FeatureLayer(featureLayerUrl);featureLayer。applyEdits(null, [updatedGraphic], null,(添加,更新,删除)=> {resolve(更新);}, err => {console.log(err);调试器拒绝(错);});调用API成功。我可以在Fiddler中看到响应是预期的,有效负载包含返回的[添加,更新,删除]数组的数据。该特性也在服务器上进行了更新。 The error I get originates in the handling JS: TypeError: Cannot read properties of undefined (reading 'attributes') at Object._editHandler (init.js:2794:52) at Object.load (init.js:2730:514) at init.js:1006:78 at e (init.js:105:393) at f (init.js:105:182) at resolve.callback (init.js:107:10) at e (init.js:106:96) at f (init.js:105:182) at resolve.callback (init.js:107:10) at e (init.js:106:96) This is the updatedGraphic object (which is passed as an array to the applyEdits function) {_constructed: true, geometry: {…}, symbol: undefined, attributes: {…}, _sanitizeNumericValue: ƒ, …} attributes: {objectid: 14231, ftema: '0', fiskeribruk_type: '2', fiskeredskapskode: '10', objekt_id: null, …} geometry: {rings: Array(1), _ring: 0, spatialReference: {…}} infoTemplate: undefined symbol: undefined _computedAttributes: null _computedGeomVersion: null _computedVersion: null _constructed: true _geomVersion: 2 _sanitizeNumericValue: ƒ () [[Prototype]]: Object I have basically the same code to send adds and that works fine const newGraphic = new Graphic() newGraphic.setGeometry(feature.geometry) newGraphic.setAttributes(feature.attributes); const featureLayer = new esriJS.FeatureLayer(featureLayerUrl); featureLayer.applyEdits([newGraphic], null, null, (adds, updates, deletes) => { resolve(adds); }, err => { console.log(err); debugger reject(err); });
...查看更多
|
0
|
0
|
84
|
帖子
|
发布job search请求,指定在字段https://{{env.hostname}}/workflowmanager/workflow/{{env.workflowitemid}}/jobs/search?token={{env.token}} {"num": 10, "start": 0, "q": "1=1", "fields": ["JobId", "JobName", "priority", "dueDate", "currentStep"]中返回"currentStep"} Response指定"currentStep"为字符串,实际值为数组。{“q”:“1 = 1”、“字段”:[{" name ":“JobId”、“fieldType”:“字符串”},{“名称”:“JobName”,“fieldType”:“字符串”},{“名称”:“优先级”、“fieldType”:“字符串”},{“名称”:“dueDate”,“fieldType”:“DateTime”},{“名称”:“currentStep”、“fieldType”:“字符串”}],“结果”:[[“gM5_BuxmS6yKneDz4hNGew”、“JOB_1”,“低”,“2022 - 12 - 23 t10:30:57z”(“tempName " ] ], [ " avDKQmdgSGSlxC79hZju_A”、“JOB_2”、“低”,“2022 - 12 - 23 t10:31:01z”,[" tempName " ] ] ], " 开始”:0,“nextStart”:1、“num”:2}我试图修改请求,以包括“currentSteps”(复数),这是一个“作业”的实际属性,但API错误为“字段不存在”。
...查看更多
2周前
|
0
|
0
|
44
|
帖子
|
我想为这里描述的REST API生成一个c#客户端:https://developers.arcgis.com/workflow-manager/api-reference/rest/在该页的底部,它意味着OpenAPI Generator被用于生成文档-但我找不到一种方法来获得OpenAPI规范,我可以将其提供给OpenAPI Generator来生成客户端。
...查看更多
3周前
|
0
|
1
|
73
|
帖子
|
答案实际上在文档https://developers.arcgis.com/web-appbuilder/sample-code/open-multiple-widgets-simultaneously.htm中
...查看更多
10-12-202203:09我
|
0
|
0
|
25
|
帖子
|
我在WAB开发版中有一个小部件,它使用' IdentityManager '来管理用户身份验证。问题是我的WAB Dev Edition要求我登录,所以小部件总是接收一个已经登录的用户。我还通过' IdentityManager '实现了注销功能。destroyCredentials() ',但在页面重新加载WAB要求我登录。所以我从来没有测试过我的验证码。
...查看更多
10-12-202203:05我
|
0
|
1
|
270
|
帖子
|
我在WAB开发版中有一个小部件,它使用' IdentityManager '来管理用户身份验证。问题是我的WAB Dev Edition要求我登录,所以小部件总是接收一个已经登录的用户。我还通过' IdentityManager '实现了注销功能。destroyCredentials() ',但在页面重新加载WAB要求我登录。所以我从来没有测试过我的验证码。
...查看更多
10-12-2022上午02:59
|
0
|
0
|
48
|
帖子
|
我已经开发了一个面板内小部件,目前托管在头控制器。客户希望这个小部件在应用启动时启动,但他们在每个控制器中配置了其他小部件(头和5点通常放在折叠主题的搜索栏下),以在应用启动时启动。他们还想让这个新小部件与其他控制器中的小部件一起打开。我的理解是,每个控制器一次只能打开一个面板内小部件。这是否意味着我需要创建一个新的控制器?我还考虑过把我的小部件变成一个off-panel,这样我就可以把它放在Home按钮旁边了。面板外小部件可以为其内容实例化面板吗?如果有,怎么做?PanelManager在这方面似乎没有任何明显的功能。
...查看更多
10-03-2022下午01:01
|
0
|
1
|
68
|
帖子
|
是的,我同意从构造函数调用异步方法不是一个好的设计。我正处于侦察/播放模式,试图看看这个框架能做什么。然而,我认为你基本上是在做同样的事情。事件聚合器是即发即忘
...查看更多
10-01-2022福音11:24我
|
0
|
0
|
49
|
帖子
|
我有一个从URL https://services.arcgis.com/REDACTED/arcgis/rest/services/Parent_layer_attempt/FeatureServer构造的ServiceGeodatabase,在web界面上,我可以看到Feature服务的名称(红色)和服务ItemID。如何从ServiceGeodatabase对象中获取这些?我到处都找遍了,就是找不到。还有Info子资源(绿色),它提供了一个ItemInfo子资源,其中包含大量信息。这些是通过运行时API访问的,还是我需要对…/FeatureServer/info/itemInfo进行HTTP调用?
...查看更多
09-29-202205:18我
|
0
|
1
|
98
|