|
POST
|
In my 3D scene, how can I define "elevationInfo" for a MapImageLayer (send by the server) so it will not be occluded (hidden) under a integrated-mesh layer, but be above it? A FeatureLayer has "elevationInfo" property to define its height, but MapImageLayer is composed of several SubLayer, and they have not this property... SInce we use integrated-mesh to display the buildings etc., it "covers" the MapImageLayer...
... View more
02-03-2022
06:56 AM
|
0
|
0
|
1040
|
|
POST
|
@Rayn , @OliviaZ_Meowth Sorry for the delay. Problem is solved - Last 4.* js Api versions require that "AppId" in the main config.json file will not be empty string, but the real AppId of the WAB application in the portal. The problem occurred since pressing the download button in the WAB Developer Edition in order to create the zip file, automatically empties the AppId value in the config (in the zip file), so we must expand the zip, re-insert AppId value in the config, then use the app folders tree or re-create the zip manually. This solution appears also in my question Single Sign-On (SSO) stopped working after upgrading WAB from 2.17 to 2.20 due to bug in API 4.19 and 4.20
... View more
02-02-2022
01:03 PM
|
1
|
0
|
2058
|
|
POST
|
I use WebAppBuilder 2.22 to develop 3D web apps with custom widgets (esri js API 4.22) for our portal. I use python peoprocessing tool and the 'esri/rest/geoprocessor' service to create in the portal a shape file that contains points, polygons and polylines feature layers. I succeeded to cause the server to display the shapefile in the web app (see in the code), but for some reasons this is not what I need... What I really need is to retrieve the feature layers themselves (the points layer, the polygon layer, the polyline layer etc.) and insert them into the scene by my code. But, "jobInfo.fetchResultData" gives somehoe an empty featureset for all the shapefile layers... I need help to fix this. The skeleton of my code is: geoprocessor.submitJob(gpUrl, gpParams) .then((jobInfo) => { jobInfo.waitForJobCompletion().then((jobInfo2) => { //this works to display the shapefle on the 3D scene, . //But for some reasons this is not what I need... jobInfo.fetchResultMapImageLayer(jobInfo.jobId) .then(function (shapefile) { sceneView.map.add(shapefile); }); //This is what I need... to get the layers themselves //I repeat this for points and for polylines jobInfo2.fetchResultData("polygonFC") . .then(function (result) { if (result.dataType == "feature-record-set-layer") { let featureSet = result.value; //but here, featureSet is an empty array... } });
... View more
01-31-2022
12:30 AM
|
0
|
1
|
2468
|
|
IDEA
|
I use WebAppBuilder 2.22 to develop 3D web apps (esri js API 4.22) with custom widgets for our portal. I am publishing geoprocessing tools services to our portal and I need to give the geoprocessing tool an input file, text or binary. I need the web app to be able to upload files not only manually from PC, but also automatically from the cloud (e.g. Amazon AWS), and also binary files. Could ESRI expand esri/request input capabilities to also upload a file by its URL?
... View more
01-27-2022
07:40 AM
|
1
|
0
|
1326
|
|
POST
|
I use WebAppBuilder 2.22 to develop 3D web apps (esri js API 4.22) with custom widgets for our portal. I published geoprocessing service to our portal and I need to give it an input file. My web app uses esri/request to upload a PC file, but I need the web app to also be able to automatically upload from url (when there is a file in the Amazon AWS cloud). Is there a way to do this? 1. Could ESRI add to esri/request an option to upload the file from URL? 2. Until ESRI add this capability, how can I conceive to do this? The file is binary. The web app can read it from the cloud, but how will the web app pass it correctly to the geoprocessing tool? Help will be greatly appreciated.
... View more
01-27-2022
07:24 AM
|
0
|
0
|
796
|
|
POST
|
Indeed, js API 4.* has a bug and it does not upload smoothly as js API 3.*, but I found a solution, based on Using JS API 4.9 and esriRequest to upload a KML file to a geoprocessing service I added a second special <input> in the form, then upload succeeded and returned json. The html form looks like: <form data-dojo-attach-point="uploadForm" enctype="multipart/form-data" method="POST" dir="ltr" data-dojo-type="dijit/form/Form" id="widget-gpcad2shp2-uploadForm"> <input type="file" name="file" multiple="false" accept=".dwg" id="widget-gpcad2shp2-input" class="inputfile" title="my title" data-dojo-attach-point="inputFile" hidden /> <label for="widget-gpcad2shp2-input">${nls.btn.inputFile.chooseFile}</label> <span id="widget-gpcad2shp2-file-chosen">${nls.btn.inputFile.noFileChosen}</span> <!-- extra input needed. see https://community.esri.com/t5/arcgis-api-for-javascript-questions/using-js-api-4-9-and-esrirequest-to-upload-a-kml/td-p/584182 --> <input type="hidden" name="f" value="json" /> </form> <span class="file-upload-status" style="opacity:1;" data-dojo-attach-point="uploadStatus"></span> and the js upload call looks like: var options = {//any of the 3 ways will work. For the last 2, you have to add 'dojo/dom' in the define at top //body: document.getElementById("widget-gpcad2shp2-uploadForm"), //body: dom.byId("widget-gpcad2shp2-uploadForm"), body: that.uploadForm.domNode, method: "post", responseType: "json" }; esriRequest( that.fileUploadedUrl, options) .then(that.successHandler, that.errorHandler);
... View more
01-27-2022
07:06 AM
|
0
|
0
|
1528
|
|
POST
|
I use WebAppBuilder 2.22 to develop 3D web apps (esri js API 4.22) with custom widgets for our portal. I published geoprocessing service to our portal and I need to give it an input file. I used esri/request to upload the input file to the proper url in order to be used by the geoprocessing service, but the upload failed. I think the upload url is correct - https://<serverDomain>/arcgis/rest/services/<geoprocessingService>/GPServer/uploads/upload but I get error 403 (that means that the authentication is OK, but there is no permission) What should I do? Help will be greatly appreciated.
... View more
01-27-2022
02:28 AM
|
0
|
1
|
1670
|
|
POST
|
@Wei_Ying , @Jianxia , Thank you very much! I see that the SAML login works now ok for WAB Developer Edition version 2.22 and js API 4.22 for some time I have been misleaded by the extra "Sign in" dialog box that is presented first, but now I see that after clicking "OK", I am presented with the 2 options login box, as should be. (thanks for pointing to the need to set correctly the "appId" config variable. I knew to do it, but, as I said, I was misleaded by the extra dialog box and have not noticed that the SAML login works no OK). With appreciation, Michael Lev
... View more
01-10-2022
01:32 AM
|
0
|
0
|
6860
|
|
POST
|
@Jianxia , Dear Jianxia, Long time have passed, and I have not yet received a message that this bug has been solved. I remind that our company needs that its customers' users will be using the SAML login in order that our company's 3D data will not be exposed publicly, so till this is solved, we are stuck with old JS API 4.18 and can't address the new features of the newer last versions. With appreciation, Michael
... View more
12-23-2021
12:07 AM
|
0
|
2
|
6908
|
|
POST
|
@JohnCoddHere , I don't understand your sentence "o I do not have the configured widgets stored locally"... I am not an expert, but I have some experience, so I will tell my thoughts: I have not tried to find an easy way to change themes and have the widgets arrange themselves automatically. What I did instead - I examined the themes, and I have chosen the "Launchpad Theme" which most suited me, and I am using it for a long time. The widgets arrangement is done in some places - In the config, either manually or interactively using the WAB "Configure App" pencil icon to enter edit mode, and select widgets and arrnge them. I did it once interactively, then I usually modife the config manually. I can there reorder them and I can put widgets on screen anywhere I want. The config file has the arrangement details for each widget according to the selected theme. The selected theme appears at the top of the config. Please note that the widgets are arranged in "classes" in the config, where the classes names are according to the theme. What I suggest to you, is to prepare different config files, each for a different theme. Then for each theme, use its config. I am afraid that you can't switch between themes when the web app is running. Each Theme has its folder in the top "themes" folder, where it has its special code for arranging the widgets. Pay attention that for widgets on the screen - only one can be opened at the same time. The setup of each widget is done in config.json in the widget folder, and in a folder per widget in the top "configs" folder, where the "config" folder have precedence, but this is not connected to the widgets arrangement on screen.
... View more
12-20-2021
09:38 PM
|
1
|
0
|
1167
|
|
POST
|
@AndreasEugster , I also use WAB Developer Edition 2.22 What I did - In config I added a new item "titleBrowserTab" and set it to the browseer tab title I want, and in jimu.js/ConfigLoader.js lines 223 to 224 I changed from: if(appConfig.title){ document.title = jimuUtils.stripHTML(appConfig.title); to: if (appConfig.titleBrowserTab){//mlev_modified. was appConfig.title document.title = jimuUtils.stripHTML(appConfig.titleBrowserTab);
... View more
12-20-2021
09:09 PM
|
1
|
5
|
4877
|
|
POST
|
@Rayn , Thank you! Indeed setting "appId" in config to the portal's application id, solved the problem fo JS API 4.18. For higher js API versions, "appId" can remain empty. I did it using WAB Developer Edition version 2.22 to create my web app, while changing in env.js to use the JS API version 4.18 Only pay attention - When WAB version 2.22 creates the zip, in empties the config "appId" !! You must "refill" it again after unziping !! We still use JS Api 4.18, since in newer versions, SAML login is not working in Web AppBuilder Developer Edition v2.20 and above after deploying the application on IIS. (This has been reported as Bug Number: BUG-000142159).
... View more
12-20-2021
10:53 AM
|
0
|
1
|
4838
|
|
POST
|
@Rayn , As I wrote here in another reply, I have the same problem (JS API 4.18 on WAB app on enterprise 10.9.1 enters endless login loop). As you wrote that you addressed ESRI tech support - is there a solution that you can tell me about? Thank you, Michael
... View more
12-20-2021
03:03 AM
|
0
|
4
|
4859
|
|
POST
|
@Wei_Ying , Same endless loop occurs also to us. I use Web AppBuilder Developer Edition 2.22 to develop web apps with custom widgets, and as I use ESRI JS API 4.18, I get endless login loop. Explanation: I am currently limited to ESRI js API 4.18, since SAML login is not working in Web AppBuilder Developer Edition with JS API versions newer than 4.18 [this issue has ESRI Bug Number BUG-000142159]. We upgraded the neterprise server to 10.9.1, and from that moment, JS API 4.18 enter endless login loops (newer API versions work ok, but as I explained above, we must currently use JS API 4.18) I will appreciate a solution.
... View more
12-20-2021
02:37 AM
|
0
|
2
|
2144
|
|
POST
|
@Kishore , I appreciate your very fast reply. I will watch. Michael
... View more
12-16-2021
04:51 AM
|
0
|
0
|
359
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-13-2026 04:27 AM | |
| 1 | 12-15-2024 12:09 AM | |
| 1 | 08-01-2024 03:45 AM | |
| 1 | 01-04-2024 04:00 AM | |
| 1 | 03-28-2024 01:25 AM |
| Online Status |
Offline
|
| Date Last Visited |
02-13-2026
04:26 AM
|