POST
|
Hello, You can bypass with this trick : https://community.esri.com/t5/arcgis-experience-builder-questions/create-page-template-or-copy-a-page-from-one-exb/m-p/1147259#M3817 I vote on your post and I hope that Esri develop a real solution.
... View more
02-26-2022
04:06 AM
|
0
|
0
|
2171
|
POST
|
Hi, I temporary change config.json file in summary folder in client\dist\templates\scrolling-page folder with config.json of the page app I need to import and it works. Is the a mean to add it differently and more persistent ? I try to copy folder and change manifest but it didn't appear. I also try to change the Json on client/dist/templates but it didn't work too. Thanks
... View more
02-23-2022
01:38 PM
|
0
|
0
|
1286
|
POST
|
Hi, I need to use some page in more than one experience builder project. I use experience builder developper. Is there a mean to copy a page from one app to another or transform a page as a template which could be use when we are adding a page ? Thanks. Guillaume
... View more
02-22-2022
01:58 PM
|
1
|
1
|
1388
|
POST
|
Hi, I make this : https://lacarto.ledepartement82.fr/Sample/GPDR_Banner/ to solve my problem (it is a little pretty in my final app but it not public for the moment. I need to develop something from react-cookie-consent to add it as a widget in my app and something to find if cookie are allow before showing video or external stuff. In Europe, it's something very important with GPDR so is there something in road map to do this ? Thanks. Guillaume
... View more
01-04-2022
08:26 AM
|
1
|
0
|
1026
|
POST
|
Hi, Are you sure that you're on auto on small screen ? If u're not and you don't want to switch to auton, you can find it on + -> wait item
... View more
12-30-2021
01:18 PM
|
0
|
1
|
810
|
POST
|
Thanks.We are in UE so I need to propose to my user if he want none, some or all cookies. I provide to use 2 things but it's in course of development : I add react cookie consent module and create a widget that I add in top or footer to display it each time ( https://www.npmjs.com/package/react-cookie-consent ) I add a link to display the window widget to ask user if he want some cookies and not others. To finalize it, I need to modify embedded widget to prevent loading of YouTube, Facebook... And propose a link in place of embed if cookies are decline. Not in react I found https://tarteaucitron.io/en/ but I don't know how to implement it on exb. I ask there to know if someone already solve this 😉 Thanks. Guillaume
... View more
12-27-2021
03:22 AM
|
0
|
0
|
1052
|
POST
|
Hi all! Is someone develop a consent banner for an ArcGIS experience builder appor use one in react? Thanks Guillaume
... View more
12-23-2021
01:16 PM
|
2
|
3
|
1109
|
POST
|
Hi, I need to create a portal for a part of my user using some different app : surveys, webappbuilders, js apps... I hope to build a front portal to ask them to log in 1 time and be logged on all app. Is there a widget that exist to do that ? Thanks Guillaume
... View more
12-17-2021
12:59 AM
|
0
|
1
|
478
|
POST
|
Hi, I need to put a survey123 form in an experience builder but when i try to do it, my survey didn't appear (error on loading) : In the console i see this : My survey was created by survey123 connect and use our portal to connect (the same portal that is used for experience builder developper). Is there an extra parameters to use the survey123 widget ? Thanks. Guillaume
... View more
12-17-2021
12:53 AM
|
2
|
8
|
1728
|
POST
|
Yes if you want. I use this geocodeur in the widget : https://geoservices.ign.fr/
... View more
11-18-2021
11:58 PM
|
1
|
0
|
857
|
POST
|
Hi, Yes. I put all basics functions in jimu.js in a personnal folder. I must copy it every time I update wab : Then I call it in the specifics widget like this : For the specific content of the feature, I put a widget in a subfolder to display the information : I specify it in config and I load it with require in widget : You can see the app here : https://lacarto.ledepartement82.fr/FranceServices/ Search (right) is the first widget. SidePanel is the second widget. Red is in jimu.js/personnalfolder. Blue is in the subfolder to display the information. Yellow is also in another subfolder but works with attributes. Great. Guillaume.
... View more
11-18-2021
06:28 AM
|
1
|
1
|
867
|
POST
|
Hi, To do this, I add this part to my code (after render() is load) : //Observer to know if the dom is on screen var observer = new IntersectionObserver((entries) => { entries.forEach(entry => { if (entry.intersectionRatio > 0) { console.log("Widget is on screen"); } else { console.log("Widget is NOT on screen"); } }); }, { root: document.documentElement }); //Launch it if (this.rootNode) { observer.observe(this.rootNode); } In a dom of my render i propose this ref : render() { return ( <React.Fragment> <div className='text-primary widget_itineraire_root' ref={(f) => { this.rootNode = f; }}> As you want... </div> </React.Fragment> ); } If something can be include directly in the state of widget it will be easier. Thanks. Guillaume
... View more
11-14-2021
11:17 PM
|
0
|
0
|
488
|
POST
|
Hi, In ArcGIS Experience, I try to develop an app with Query. My data has WKID = 2154 and I need to have his geometry with 4326 WKID. I try many and many things : getApiModule = () => { //Va cherche l'API Js pour dessiner return new Promise(resolve => {loadArcGISJSAPIModules(['esri/Graphic', 'esri/rest/support/Query', 'esri/geometry/Polygon', 'esri/geometry/SpatialReference']).then(modules => {[ this.graphicApi, this.queryApi, this.polygonApi, this.spatialReferenceApi] = modules; resolve('ok'); });});} recupRequete = () => { //Si besoin de cherche l'API de requête if (!this.queryApi) { this.getApiModule().then(() => { this.recupRequete() }) } else { //Construit la requête const q = new this.queryApi({ where: '1=1', outFields: ['*'], returnGeometry: true, outSpatialReference: { 'wkid': 4326 } }); console.log(q); //Stocke la requête dans le state this.query = q.toJSON(); } } I also try with q.outSpatialReference after new. and i try in place of { 'wkid': 4326 } this.spatialReferenceApi.WGS84 , 4326 . The URL sent to ArcGIS server didn't have outSR parameter like I enter it directly in ArcGIS Server. In Experience Builder, it seems that it is the dataSourceComponent which bring the request : In render part : <DataSourceComponent useDataSource={this.props.useDataSources[0]} widgetId={this.props.id} query={this.query} queryCount={true} onDataSourceCreated={this.onDataSourceCreated} > {this.recupDonnees} </DataSourceComponent> the functions : onDataSourceCreated = (ds: DataSource) => { //Récupère la datasource lors de sa création this.queryDs = ds; } recupDonnees = (ds: DataSource, info: IMDataSourceInfo) => { //Partie temporaire du stockage des options de la liste déroulante let tmp = []; //Si la datasource est chargée if (info.status === DataSourceStatus.Loaded) { //Parcours les résultats de la requête this.queryDs.getRecords().map((r: any) => { //Construit le label e foncton des champs choisis let label = ''; if (this.props.useDataSources[0].fields?.length == 0 || !this.props.useDataSources[0].fields) { label += r.getData()['objectid']; } else { for (let j = 0; j < this.props.useDataSources[0].fields.length; j++) { if (j != 0) { label += '-'; } label += r.getData()[this.props.useDataSources[0].fields[0]]; } } //Ajoute la donnée dans le contenu de la liste déroulante tmp.push({ label: label, value: r.getData()['objectid'] + label, info: r }); }) } //définie par défaut les coordonnées du premier enregistrement this.destinationChange(tmp[0]); //Remplace le contenu de la liste déroulante this.setState({ destinations: tmp }); return null; } To get the same result with API javascript (and the projection works), You're right, I need to change recup result by : recupDonnees = (ds: any, info: IMDataSourceInfo) => { if (info.status === DataSourceStatus.Loaded) { if (ds.dataSourceJson?.query?.where?.sql) { //get the filter apply on ds in ExB this.query2.where += ' AND ' + ds.dataSourceJson.query.where.sql } //apply the query this.queryTaskApi.executeQueryJSON(ds.url, this.query2).then(function (results) { console.log("query results: ", results); //STATE_ABBR should be "ID" console.log("STATE_ABBR: ", results.features); }); } } Is there a mean to do this directly on the DataSourceComponent of ExB ? My ArcGIS Server is in 10.6.1 Thanks. Guillaume ARNAUD
... View more
11-14-2021
11:13 AM
|
0
|
0
|
342
|
POST
|
I know and now, as I know it's an experience issue I will post there ! Thanks
... View more
11-12-2021
11:00 AM
|
1
|
0
|
1582
|
POST
|
Hi @Noah-Sager, In Experience Builder, it seems that it is the dataSourceComponent which bring the request : In render part : <DataSourceComponent useDataSource={this.props.useDataSources[0]} widgetId={this.props.id} query={this.query} queryCount={true} onDataSourceCreated={this.onDataSourceCreated} > {this.recupDonnees} </DataSourceComponent> the functions : onDataSourceCreated = (ds: DataSource) => { //Récupère la datasource lors de sa création this.queryDs = ds; } recupDonnees = (ds: DataSource, info: IMDataSourceInfo) => { //Partie temporaire du stockage des options de la liste déroulante let tmp = []; //Si la datasource est chargée if (info.status === DataSourceStatus.Loaded) { //Parcours les résultats de la requête this.queryDs.getRecords().map((r: any) => { //Construit le label e foncton des champs choisis let label = ''; if (this.props.useDataSources[0].fields?.length == 0 || !this.props.useDataSources[0].fields) { label += r.getData()['objectid']; } else { for (let j = 0; j < this.props.useDataSources[0].fields.length; j++) { if (j != 0) { label += '-'; } label += r.getData()[this.props.useDataSources[0].fields[0]]; } } //Ajoute la donnée dans le contenu de la liste déroulante tmp.push({ label: label, value: r.getData()['objectid'] + label, info: r }); }) } //définie par défaut les coordonnées du premier enregistrement this.destinationChange(tmp[0]); //Remplace le contenu de la liste déroulante this.setState({ destinations: tmp }); return null; } To get the same result with API javascript (and the projection works), You're right, I need to change recup result by : recupDonnees = (ds: any, info: IMDataSourceInfo) => { if (info.status === DataSourceStatus.Loaded) { if (ds.dataSourceJson?.query?.where?.sql) { //get the filter apply on ds in ExB this.query2.where += ' AND ' + ds.dataSourceJson.query.where.sql } //apply the query this.queryTaskApi.executeQueryJSON(ds.url, this.query2).then(function (results) { console.log("query results: ", results); //STATE_ABBR should be "ID" console.log("STATE_ABBR: ", results.features); }); } } Is there a mean to do this directly on the DataSourceComponent of ExB ? Thanks. Guillaume
... View more
11-12-2021
01:24 AM
|
0
|
1
|
1588
|
Title | Kudos | Posted |
---|---|---|
1 | 04-27-2022 05:24 AM | |
1 | 04-25-2022 11:35 PM | |
5 | 04-28-2021 08:08 AM | |
1 | 02-22-2022 01:58 PM | |
1 | 01-04-2022 08:26 AM |
Online Status |
Offline
|
Date Last Visited |
04-06-2023
07:33 AM
|