I am still new to esri's js-api. I am getting the error below at line 149 (queryTask.execute(cntryq);) in the attached file.
I have no idea how to resolve this error
Mathew, et al
I tried redoing my code similar to what attaching but have encountered errors. So I am back to my original code and was able to solve the TypeError.
Now for the last part..... I need to be able to click on the countries highlighted (based on the button clicked). Clicking on a highlighted country, triggers a query of the related table (tableURL) and the results of the query are displayed in the side panel on the right.
Can you or someone show me how I can add an onclick event and a relatedquery to my script?
Hope what I want makes sense
No problem, give me a shout if you need more help. I'm not always online but I try and check it regularly
Mathew,
Thanks for the quick code review and the assist.
I agree my code is rather crude and inefficient.
My original plan was to use esri-leaflet api but it could not handle related tables.
This api is new to me and at the moment I need to get a working version asap.
Once it done, I do plan to figure how everything works while I clean up the code.
Will review what you sent and let you know if I have any questions
Chris
Ok... firstly this code needs a tidy up! Split out your code and use standards, otherwise know one will want to read it and help you.
I've played around and improved the structure. I don't seem to be getting any TypeErrors
I am using ESRI's javascript API so I think I need someone from ESRI to look at it
Correct??
See the big Places link to the left of your avatar, click on it, then you can select a Space and post/move your question there. I am guessing you have some sort of java question but it could go in several spots, ie what are you using/developing. you will get better response if you use places/spaces and tags to direct your questions otherwise they end up in the void
Where is the appropriate place??
can you redirect your post to an appropriate Place to facilitate answering
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.