I am attempting to use LaunchPickerTreeDialog js method to launch the OOTB SharePoint list picker. It works fine when selecting a list within the current web application however if I pass a parameter for a separate web application the picker shows and allows me select a list but closing it does not fire my call back function. Does anyone know why?
Hard to tell without code, but I'll try to post you solution that works for me.
You have to add this code to aspx page where you'll use tree dialog (in my case it's copy.aspx):
Then add JS function definition:
And then final code to use picker and control to store value in:
This is not entirely my solution. I've found it weeks ago somewhere on internet and modified to meet my needs.
Hope it helps.