Select to view content in your preferred language

Convert symbol variable

520
3
Jump to solution
12-04-2012 01:04 PM
jonsumr
Emerging Contributor
I'm trying to convert a symbol type variable to load in an image type variable to appear in my widget, but i'm failing at some point. Does anyone can help? thanks by the way:)
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Jon,

   Sure you just need to use the symbol.createSwatch() method. This gets you a UIComponent and then you just add that as a child to your widget.

View solution in original post

0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus
Jon,

   Sure you just need to use the symbol.createSwatch() method. This gets you a UIComponent and then you just add that as a child to your widget.
0 Kudos
jonsumr
Emerging Contributor
thanks Robert! this method really solved my problem. 😉
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jon,

   Glad that it worked for you. Don't forget to click the Mark as answer check (Step 1) on this post.
Follow these steps as shown in the below graphic:

0 Kudos