[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
ActiveX problem: propertyinterest  XML
Forum Index -> Development
Author Message
kabat

Power User

Joined: 10/12/2007 10:12:44
Messages: 78
Offline

Hi,

i'm using an ActiveX in my application. With the property "propertyinterest" i ask the activex for some parameters. In my callback method I read the results out of the BaseActionEvent with the method getParams(). Normally I get an array of Strings with the length 1. But now I have the following problem: one of my results has a comma (","). In this case the whole string is separated and I get an array with the length 2.

Is this behaviour desired?

Agnes
kabat

Power User

Joined: 10/12/2007 10:12:44
Messages: 78
Offline

I have a new question:
If the result value of a parameter is boolean, I receive from the ActiveX the value VT_BOOL{true} and VT_BOOL{false} respectively.
Is it possible for you to change it to the value "true" and "false" respectively?

Thanks, Agnes
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5521
Offline

Hi Agnes,

ad 1st topic: we added corresponding encode/decode functions into the ValueManager + changed the way of pushing data into and pulling data from the component.

Changes will be available from next Monday on.

Please take a look into ValueManager's functions:
(1) decodeMethod*,encodeMethod
(2) encode/decodeCSV


ad 2nd topic: we changed this...

Both answers refer to updated release (next Monday).

Björn

Björn Müller, CaptainCasa GmbH
kabat

Power User

Joined: 10/12/2007 10:12:44
Messages: 78
Offline

Hi,
how do I use these functions (1)+(2) properly? I tried for instance this:

BaseActionEventActiveX baeax = (BaseActionEventActiveX) ae;
String activeXData = baeax.getActiveXPropertyValues();
String[] activeXParams = ValueManager.decodeCSV(activeXData);

But I have still the same problem. The variable "activeXData" has only the data to the first ",". The rest is disappeared.

Agnes
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5521
Offline

The way you do it is correct... I'll contact you.
Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team