Skip navigation
Currently Being Moderated

Drag and Drop in tree view of XMLt

Jun 11, 2012 3:27 AM

Tags: #indesigncs5 #draganddrop #treeview

Hi Indesign Experts,

            I've a Indesign document. For that i Write a codes to display the xml in tree view in a output window. I got it as success. But my pblm is, I'm trying to drag and drop the elements by mouse. For that, I can't able to find a proper guide.... Can any one guide me...


My script:

// treeview creation in ne window.


var panel = win.add("panel", undefined, "Select XML Element");

panel.alignment = ["fill", "fill"];

panel.alignChildren = ["fill", "fill"];



var treeview = panel.add("treeview");

treeview.preferredSize = [300, 500];


Thanks in Advance,


  • Currently Being Moderated
    Jun 11, 2012 3:48 AM   in reply to Velprakash

    You can't do that with ScriptUI. You'll need the CS SDK/Extension Builder (or the InDesign SDK) for that.



    Mark as:
  • Currently Being Moderated
    Jun 11, 2012 4:57 AM   in reply to Velprakash

    I suggest you check out the Extension Builder and CS SDK forums. I don't know if you have experience with Flex and ActionScript, but you will need that for CS Extensions...



    You might want to consider buttons instead of drag and drop...

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points