Hi,
I'm trying to use the TargetPickerDialog and open it with an html button. Just following the examples provided.
It does open correctly and point to Enterprise Workspace. However if i cancel the Widget and reopen it, it it come up empty.
Using ContentServer 10.0 SP2 (2014-09)
Any idea ?
Thx
Here is the code:
`<!DOCTYPE html>
<style>
body { font-size: 11px; }
</style>
<script>
var picker={};
var connection = { url: "http://myserver/cs10/cs.exe/api/v1/", supportPath: "/img" };
function showPicker(){
csui.onReady( function() {
// Create the picker
picker = new csui.widget.TargetPickerDialogWidget( {
connection: connection,
done: function( args ) {
if( args.node ) {
alert( 'Selected nodeid: ' + node.id );
} else {
alert( 'No selection. Try again' );
}
}
});
// Show dialog
picker.show({placeholder: "#picker"});
});
};
</script>
Target Picker Dialog Widget
Select an object
<script>
</script>
`