Select to view content in your preferred language

How to use the Accordian Container?

1021
4
Jump to solution
11-13-2014 11:27 AM
ChrisHolmes
Frequent Contributor

I am trying to move an application from just using frames to using an accodian container.

Heres what I currently have and it seems to work ok:

Version6.PNG

Here's what I'm looking to change it to, using 2 parts in the accordian container (one for legend, one for the template picker). I've moved all of my code over from the old application that works to the new one, but it would seem it is not that simple to get it working (heck, the point data isn't even displaying in the map). If someone could show me or point me to some code that will help me figure out how I need to code my application to get it working in this new template I'd be very appreciative.

Here's a snapshot of what I'm looking at in the new application for look:

accordian.png

I've attached 2 zip files, AddRecord_V6 is the old application, index.zip is what I have so far for the new version.

Cheers,

Chris

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Chris,

    So I found some of the same issue as Jake, but I am not sure what he meant on number three as you are attempting to use the HomeButton and LocateButton dijits.

Anyway after you resolve those issues then you will see everything working as in the attached corrected file.

View solution in original post

0 Kudos
4 Replies
JakeSkinner
Esri Esteemed Contributor

Hi Chris,

I noticed a couple errors:

1.  The AttributeInspector module is spelled incorrectly.  Change this to:

"esri/dijit/AttributeInspector"

2.  The Button module is spelled incorrectly.  Change this to:

"dijit/form/Button"

3.  You have two constructors, 'new HomeButton' and 'new LocateButton' that both need to be change to:

new Button

4.  Also, the line "<script>var dojoConfig = { parseOnLoad: true };</script>" is not commented out.  Since you are not within the <script> tags, you are coding in HTML.  To comment out a line you would use <!--   -->.   However, this line is not needed and you can go ahead and delete it.

0 Kudos
ChrisHolmes
Frequent Contributor

Hi Jake,

Thanks for your help. I seem to have mixed up in the version I posted of the new application file, as a few of those items you identified were corrected in a question I posted yesterday by Tim Witt. Guess I need to clean up my versions and files.

Thanks for the other items you brought forward to me. Much appreciated

Chris

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Chris,

    So I found some of the same issue as Jake, but I am not sure what he meant on number three as you are attempting to use the HomeButton and LocateButton dijits.

Anyway after you resolve those issues then you will see everything working as in the attached corrected file.

0 Kudos
ChrisHolmes
Frequent Contributor

Hi Robert, thanks very much for your help. This learning on the go is not the easiest method. So I really appreciate the help I recieve from everyone on the site here. Thanks everyone!

Chris

0 Kudos