cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Getting the value from an ActiveX control in XUI

mark.cole
1-Newbie

Getting the value from an ActiveX control in XUI

Adepters,




I have a dialog that I have created in XUI with an ActiveX Control. A Date Time Picker.




<activex id="dtpVerified" progid="MSComCtl2.DTPicker"></activex>




I'm trying to find the right method in ACL to get the value I have picked in the control. I have used the following methods but they all return 0 when the value I really what is the date (06/15/2007).



dlgitem_get_value($dlg, 'dtpUpdated');


dlgitem_get_value($dlg, 'dtpUpdated.Value');


dlgitem_get($dlg, 'dtpVerified', 'VALUE');


dlgitem_get_appdata(($dlg, 'dtpUpdated');




Can anyone help?




Regards,




Mark Cole


Application Developer


Jane's Information Group


( +44 (0)20 8700 3976


7 +44 (0)20 8700 3900


*<u></u><u> Mark.Cole@janes.com</u>




Registered Address: Jane's Information Group Ltd, Sentinel House, 163 Brighton Road, Coulsdon, Surrey, CR5 2YH, UK. Company Registration Number: 954081.



Disclaimer: This e-mail, its content and any file attachments are confidential and may be legally privileged. If you have received this e-mail in error, please do not copy, disclose it to any third party or use the contents or attachments in any way. Please destroy it and contact +44 (0)20 8700 3700, +1 (703) 683 3700 or e-mail info@janes.com. Whilst we check the communications we send for virus infection, we accept no responsibility for any loss or damage caused to your systems by the communication you receive. This e-mail or its attachments may contain personal views which are not the views of Jane's Information Group unless specifically stated.

3 REPLIES 3

Hey Mark,

It sounds like you should have been at PTC-User. I think this was one of
the topics covered. 😉

Seriously, see some sample code here (uses JScript instead of ACL, to take
advantage of ActiveX events):
http://adepters.org/resources/example-code/xui/xui-activex-calendar/

This is based on code originally shared by John Dreystadt and other
Arbortext folks. There's more about ActiveX samples in the Customizer's
Guide on pg. 145 or PDF pg. 157 (this using the old 5.2 way of viewing the
documentation).

Using ACL, I'm not sure how you detect the change to your date picker, but
what happens when you do this:
dltitem_get_value($dlg, dtpVerified)

Let us know how it goes,
Jason





"Mark Cole" <mark.cole@janes.com>
06/15/2007 03:21 AM
Please respond to
<adepters@arbortext.com>


To
<adepters@arbortext.com>
cc

Subject
Getting the value from an ActiveX control in XUI






Adepters,
I have a dialog that I have created in XUI with an ActiveX Control. A
Date Time Picker.
<activex id="dtpVerified" progid="MSComCtl2.DTPicker"></activex>
I'm trying to find the right method in ACL to get the value I have picked
in the control. I have used the following methods but they all return 0
when the value I really what is the date (06/15/2007).
dlgitem_get_value($dlg, 'dtpUpdated');
dlgitem_get_value($dlg, 'dtpUpdated.Value');
dlgitem_get($dlg, 'dtpVerified', 'VALUE');
dlgitem_get_appdata(($dlg, 'dtpUpdated');
Can anyone help?
Regards,
Mark Cole
Application Developer
Jane's Information Group
( +44 (0)20 8700 3976
7 +44 (0)20 8700 3900
* Mark.Cole@janes.com
Registered Address: Jane's Information Group Ltd, Sentinel House, 163
Brighton Road, Coulsdon, Surrey, CR5 2YH, UK. Company Registration Number:
954081.
Disclaimer: This e-mail, its content and any file attachments are
confidential and may be legally privileged. If you have received this
e-mail in error, please do not copy, disclose it to any third party or use
the contents or attachments in any way. Please destroy it and contact +44
(0)20 8700 3700, +1 (703) 683 3700 or e-mail info@janes.com. Whilst we
check the communications we send for virus infection, we accept no
responsibility for any loss or damage caused to your systems by the
communication you receive. This e-mail or its attachments may contain
personal views which are not the views of Jane's Information Group unless
specifically stated.

Hi Jason,

I have read through all the documentation and checked out your example
but it all just confuses me. Can I write a couple of script methods in
the XUI itself to perform get/set methods on the value and call them
from ACL? Do you think this is possible?

Mark

Reposting to new list address for archive...
Announcements