Carsten Driesner schrieb:
Hi Jimmy,

You have to call queryDispatch() and retrieve a dispatch object before you can call dispatch. I forgot to add "..." in my example.

You need your frame, query for XDispatchProvider and call queryDispatch. The dispatch object you get should be able to process your URL.

xParser.parseStrict(URL);
URL aURL = URL[0];

XDispatchProvider xDispatchProvider =
(XDispatchProvider)UnoRuntime.queryInterface(XDispatchProvider.class, xMyFrame );

XDispatch xDispatch = xDispatchProvider.queryDispatch( aURL, "_self", 0 );
if ( xDispatch != null )
  xDispatch.dispatch(aURL, propertyvalue);

Regards,
Carsten

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Thanks a lot Carsten, that did the trick. I did try that as well but had some problems obtaining the frame at first. It's working like a charm now, except that the default Basic Macro doesn't do what it's supposed to, but that's another mail :)

thanks again for the insight.

Cheers,
Jimmy


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to