Printing graphics and dynamic layers

Discussion created by pramodharithsa on Jun 24, 2013
Latest reply on Jul 9, 2013 by JGravois-esristaff
Hi all,
I am working with this sample
But unable to get the print widget working when i add graphics(I am trying to present the search results as a graphic layer)
or the operational layers to the map.
it works only if arcgisonline services are being used.

Code sample:
Whats the tweak i am missing here?