Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 19 18:11
    ShitalDkal starred cmv/cmv-app
  • Nov 09 13:55
    agraver starred cmv/cmv-app
  • Nov 06 00:14
    j-k-projects starred cmv/cmv-app
  • Oct 30 08:28
    ericanwang starred cmv/cmv-app
  • Oct 24 04:06
    scook12 starred cmv/cmv-app
  • Oct 22 09:06
    msamwill commented #967
  • Oct 20 21:06
    snyk-bot opened #970
  • Oct 16 20:20
    tmcgee commented #966
  • Oct 16 20:16
    tmcgee commented #966
  • Oct 13 17:49
  • Oct 12 15:16
    tmcgee closed #969
  • Oct 11 22:50
    tmcgee review_requested #969
  • Oct 11 22:50
    tmcgee review_requested #969
  • Oct 11 22:50
    tmcgee review_requested #969
  • Oct 11 22:50
    tmcgee labeled #969
  • Oct 11 22:50
    tmcgee milestoned #969
  • Oct 11 22:50
    tmcgee opened #969
  • Oct 11 22:40
    tmcgee closed #968
  • Oct 11 22:39
    tmcgee milestoned #968
  • Oct 10 05:34
    m-bixby starred cmv/cmv-app
asleepjk
@asleepjk

Hi everyone, I need some help to get a previous value in expression into search widget to automatically updates the next expression, for example in the search configuration:

``` 
                    searchFields: [
                        {
                            field: 'STATE,
                            label: 'STATE',                                

                            expression: '(STATE LIKE \'%[value]%\')',   // STORE  THIS VALUE
                            unique: true,
                            includeBlankValue: true

                        },

         {
                            field: 'CITY',
                            label: 'CITY',
                                                            where: 'STATE LIKE  \'%[value]%\')',   // AND PUT THE PREVIOS VALUE HERE
                            expression: '(CITY LIKE \'[value]%\')', // THIS WOULD BE A DIFFERENT VALUE
                            unique: true,
                            includeBlankValue: true

                        }
                    ],

```

Denverino
@Denverino
Hi everybody. Can you help me please?I added Export widget in my app, but nothing happens when i click Export button...
Tim McGee
@tmcgee
@gavinr Hi Gavin, Good to see you here. The commits you see since the last official release in 2017 are actually in the develop branch, not the master branch. I have consistently used the code in the develop branch for all deployments of CMV for clients since at least 2015 or 2016 without issue. The code for demo app is continuously deployed with each commit to the develop branch. The developers here and elsewhere that I have interacted with on this topic also use the latest code. I hope this helps.
@Denverino Check your configuration for the export widget to ensure you have preload: true. That is a fairly common mistake.
Tim McGee
@tmcgee
@asleepjk I believe you are asking to filter the second "City" list based on the value in the first "State" list. Is that correct? That type of dependency isn't currently implemented in my Search widget. I am sure that type of interaction is possible but the code doesn't support that at present.
Gavin Rehkemper
@gavinr
@tmcgee thanks for the response, that helps. So sounds like like we're not tagging releases, but in general the project tries to keep develop branch in a deploy-able state
Denverino
@Denverino
@tmcgee oh thank you!
Denverino
@Denverino
@tmcgee i have one more the same question. There are no ExportGraphics button in Draw widget(
Denverino
@Denverino
Do i need to add it manually?
Tim McGee
@tmcgee
@gavinr yep that is correct. develop branch should always be deploy-able.
Tim McGee
@tmcgee
@Denverino The Draw widget that is part of the core CMV project does not have the ability to export graphics.
triesco
@triesco
Hello CMV people. Hope everything good. Is there a way to show and hide columns on the attribute table dynamically?? Lets say I made a query with some other parameters, I would like to show some fields and hide other fields. Right now I have the table on the viewer config and all the available fields. Would like to do it dynamically. Any ideas?
Tim McGee
@tmcgee
Hello @triesco, With each query, you can include the columns array specifying the desired columns you want displayed. Instead of recreating that array in the configuration for each query (too much json), you can define all the columns in an array as a variable or object property, then clone that array for each query and show/hide columns as appropriate.
triesco
@triesco
@tmcgee Thank for the reply. And sorry to be a pain, but do you have a sample on how to call the columns ?? For what you are saying about the query, are you refereing to the query.OutFields?? or can I controll the columns after executing the query and managing the columns on the result??
Tim McGee
@tmcgee
@triesco I am not talking about the outFields array. I am referring to the columns array
You can also probably also do it with code after executing the query but if I am understanding correctly, it seems like that's more work that is harder to manage.
Tim McGee
@tmcgee
Your config would include something like this (obviously incomplete):
var cols1 = [
    {
        field: 'PDNAME',
        label: 'Name',
        width: 150
    },
    {
        field: 'ADDRESS',
        label: 'Address',
        width: 150
    },
    {
        field: 'PDTYPE',
        label: 'Type',
        width: 100
    }
];

var cols2 = lang.clone(cols1);
cols2[1].hidden = true; // hides the address field

...
gridOptions: {
    columns: cols2
},
...
Tim McGee
@tmcgee
@triesco If you'd like to pursue a different route, you should explore the dgrid documentation
triesco
@triesco
@tmcgee your solution, as always, worked great. Thanks Tim!
Tim McGee
@tmcgee
:+1:
César Augusto
@carrbrpoa
Hello, how long time!
@tmcgee, do you know if it's possible to append a header to the requests that are made to operationalLayers urls?
César Augusto
@carrbrpoa
Or maybe..any arcgis' requests?
Tim McGee
@tmcgee
@carrbrpoa hello my friend. I'm sure you could do whatever you need within a proxy. If the headers involve any security info or secrets, a proxy would be a more secure approach as well.
César Augusto
@carrbrpoa
Didn't remember that possibility, thought there was a "more built-in" option :)
Thanks @tmcgee !
Tim McGee
@tmcgee
@carrbrpoa If you need/prefer to use the Esri JavaScript API, you could probably use the esri request's setrequestprecallback method.
TamerAburass00
@TamerAburass00
How to change language in CMV wab ??
TamerAburass00
@TamerAburass00
How to change locale in CMV wab ??
ivo silvestre
@ivomts
On Print task, how to not include basemaps on legend? Tks
Tim McGee
@tmcgee
@TamerAburass00 The locale for WAB widgets is determined by the locale within your dojoConfig
Tim McGee
@tmcgee
@ivomts To my knowledge, the basemaps are not included in the legend when using the standard AGS Print Service with the default templates and that any modifications to the legend would require a customization of the Print Service on the server. If you are seeing the basemap included in the legend, my first suspicion is you are using custom Print Service and/or using custom templates? Alternatively, perhaps your "basemap" is added to the map in some other way than CMV's Basemap widget so the PrintTask treats it as an operational layer.
TamerAburass00
@TamerAburass00
I want to change the cmv wab to arabic language , How ??
KhaledMona
@KhaledMona
@tmcgee
How to change language in cmv wab , change to French language ???
KhaledMona
@KhaledMona
How to convert cmv wab from English to Arabic ?
Tim McGee
@tmcgee
@TamerAburass00 @KhaledMona I answered these questions yesterday by pointing out where you change the locale. If you've tried that and still need assistance, someone else here might be able to provide further guidance or perhaps try a support channel specific to WAB.
KhaledMona
@KhaledMona
@tmcgee
I changed the locale, but the language remains the same.
and where the support channel to WAB ?
Tim McGee
@tmcgee

@KhaledMona That method of using `'locale' in dojoConfig used to be supported by WAB but perhaps it isn't any longer in more recent versions of WAB. It seems to ignore it.

The default for WAB is to use the web browser's locale/language. When I change the language for my browser, the WAB widgets respond appropriately using the appropriate locale.

And most of the support for Web AppBuilder is in the Esri community forums: https://community.esri.com/community/gis/web-gis/web-appbuilder

KhaledMona
@KhaledMona
Ok, How to change my cmv wab from right to left ??
Tim McGee
@tmcgee
@KhaledMona This is how it used to be set with old versions of WAB: https://github.com/cmv/cmv-wab-widgets/blob/master/config/wabapp-config.js#L6 That should still work though I haven't tested it in several years. It is possible they may have changed their approach in newer versions of WAB.
ivo silvestre
@ivomts
Does anyone know how to disable the legend of a custom basemap when printing? Most the time the printing task fails. Tks in advance
KhaledMona
@KhaledMona
@tmcgee
In WAB ,
When i change the browser language the titles of left list don't changed , How to solve this problem ??
and The ( 'isRTL': true ) is don't work , are there another way ??
and the support channel don't work
Tim McGee
@tmcgee

@KhaledMona The titles in the left sidebar are yours to edit as you like. They are not associated with WAB in any way. The cmv-app demo provides an example of how to handle multiple languages.

isRTL in WAB is not well documented so unfortunately I don't have any more detail to provide.

Not sure what you mean by "the support channel don't work". The Esri community that I linked to is active and available.

Tim McGee
@tmcgee
@ivomts RE: "Most the time the printing task fails" suggests you need to troubleshoot the Print Service. I find the best way to do that is using the REST API. For layers on the map (basemap or otherwise), often the failure of the Print Service is due to the ArcGIS Server not being able to access the specific layer due to a timeout or network issue. The response from the Print Service usually identifies the error. Here is an old article that is still relevant for troubleshooting the Service.
KhaledMona
@KhaledMona
@tmcgee
Thank you , Finally I need the wab documentation , please ??
Tim McGee
@tmcgee
@KhaledMona This is the entry point for the English version of the WAB documentation: https://doc.arcgis.com/en/web-appbuilder/index.html
KhaledMona
@KhaledMona
@tmcgee Thank you
Tim McGee
@tmcgee
@KhaledMona :thumbsup: I hope it helps you out.
Denverino
@Denverino
Hi everyone. I need to example of config imageParameters. Especially i need to know how to set imageSR and bboxSR parameters in query string. Thank you.
KhaledMona
@KhaledMona
coordinates: {
                include: true,
                id: 'coordinates',
                type: 'ui',
                placeAt: '.cmv-ui-map .cmv-ui-bottom-left',
                path: 'jimu/BaseWidgetPanel',
                options: {
                    widgetManager: true,
                    config: {
                        widgets: [
                            {
                                id: 'WABCoordinate',
                                uri: 'wabwidgets/Coordinate/Widget'
                            }
                        ]
                    }
                }
            },
Where I found the documentation about options ??
eyad
@eyad0599
Hi friends, I want to run wab without turning on the internet, can I please help?
Tim McGee
@tmcgee
@eyad If you use Esri's Web AppBuilder by itself, you will need access Arcgis on-line or an instance of portal. You can use WAB widgets with CMV without an internet connection though libraries like the ArcGIS JavaScript API, Font Awesome, etc, and any map layers would need to be served locally - definitely possible but perhaps more limited in functionality.