cancel
Showing results for 
Search instead for 
Did you mean: 

ActiveX Control in Agentry

Former Member
0 Kudos

Hi,

We are trying to use an Activex control for a requirement in our Agentry application. But not sure how to integrate Activex project with Agentry app.

We have a custom developed Activex control and want to use it in our application.

Can you please guide on where do we include this Activex control in Agentry project and where can I find Agentry Activex API.

In the developer guide, it is mentioned that we have to implement Agentry Activex API methods. Where should we implement these methods?

Thanks

Message was edited by: Michael Appleby

Accepted Solutions (1)

Accepted Solutions (1)

jason_latko
Advisor
Advisor
0 Kudos

Narasimha,

You must implement the standard ActiveX methods in your control in order for the control to pass data back and forth with Agentry.  This link should have all the info you require:

http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc01951.0230/doc/html/Conce...

Jason Latko - Senior Product Developer at SAP

Former Member
0 Kudos

Thanks Jason for the response.

After we have the Activex control, How do we add Activex control source/project into our Agentry application?

Thanks

Narasimha

Former Member
0 Kudos

Hi Jason,

How do I install this Activex control on win32 Agentry client?

Thanks

jason_latko
Advisor
Advisor
0 Kudos

Narasimha,

You don't install the control on the client, you add it to a screen in the Editor as an External Field - ActiveX Control.  Specify the class name here for the Windows control to tie it to your screen.  As long as the control has been registered on the machine, it will appear on your client screen at run-time.

Jason Latko - Senior Product Developer at SAP

Former Member
0 Kudos

Thanks Jason for your suggestions.

I have registered the sample Activex control from the Agentry SDK on the machine and created a filed of type External Field - Active X Control in a detail screen. Specified the control class name and other Agentry and External value properties.

But after publishing the app and checked on the win32 client, the Activex control fields are not visible in the screen. They appear in eclipse Agentry plugin preview of the screen, but not visible on the client.

Am I missing something here in the screen definition?

Thanks,

Narasimha

jason_latko
Advisor
Advisor
0 Kudos

Narasimha,

Does your new ActiveX control work when testing it outside of the Agentry Client?  Make sure that the registration worked properly and that you can reference the control in a native application on that machine.  What you described in the editor should be working.

Jason Latko - Senior Product Developer at SAP

Former Member
0 Kudos

I am using the sample Activex control that comes with Agentry SDK installation.

Registered AgentryActiveX_VB.ocx in my machine and referring to AgentryActiveXCtrl.ctl file from Agentry Simple ActiveX Sample as the class name(Prog ID) for the External filed.

Thanks

Narasimha

jason_latko
Advisor
Advisor
0 Kudos

Narasimha,

That class name is incorrect.  The ProgID is usually a two part string with a decimal seperator:  AppName.ClassID.  You don't refer to a file, you need the correct ProgID string for that control.

You should also be able to find this ProgID using regedit and searching for the control name until you find the ProgID entry.

Jason Latko - Senior Product Developer at SAP

Former Member
0 Kudos

Thanks Jason.

The field is visible now and Sub button_Click() method in Activex control is invoked when I click on the field button. The issue was with the class name I mentioned in the Activex class name property. I earlier mentioned class name with type (.ctl) there.

Also, Can we integrate 3rd party Activex controls with the Activex that we develop? Is it possible to invoke any other 3rd party controls from the Agentry Activex API?

Thanks for your suggestions.


Narasimha

jason_latko
Advisor
Advisor
0 Kudos

Narasimha,

Good news!  Yes, you can use 3rd party controls, but you would need to wrap them in your own control that implemented the correct Agentry interface methods that are required.  Your wrapper control would then need to communicate with the 3rd party control to make use of it.  The wrapper would then be the control that is included on your Agentry screens.

Jason Latko - Senior Product Developer at SAP

Former Member
0 Kudos

Thanks a lot Jason.

We are trying to implement Agentry API methods to pass data from Agentry to Activex. Created properties in Agentry values list and tried to implement GetPropertyFromMappins and propertyAsString methods to retrieve from Activex side. But we are running into Runtime errors when execute it on client.

In the Agentry SDK sample projects, there is not enough information about the data retrieval from Agentry to Activex.

Is there any sample source code or project describing these Agentry API implementations?

Thanks,

Narasimha

Former Member
0 Kudos

Hi Jason,

We have some trouble in passing data from Activex to Agentry.

Using update rules on Activex field, I am able to send string value to Activex. But how do I pass a collection objects to Activex control from Agentry.

Our requirement is to send some of the properties from Service Order object to Activex control.

I tried defining properties in Agentry Values tab, but the GetPropertyFromMappings method is not getting called in the Activex control to read these values.

How do we invoke GetPropertyFromMappings or GetPropertyFromObject methods of Activex control to read data from Agentry client?

Thanks for your guidance Jason.

Regards

Narasimha

jason_latko
Advisor
Advisor
0 Kudos

Narashima,

It has been too long since I have used ActiveX with Agentry, and they have since improved the API to expose new methods for doing what you request that I am not familiar with.  Let me try to find someone who can help answer this for you.

Jason Latko - Senior Product Developer at SAP

Former Member
0 Kudos

Hi Jason,

did you get any time/chance to look into the above query?

Also for Activex controls, is only .OCX files are supported as activex controls in agentry? or can I use .dll files also as activex controls?

Thanks for your help.

Regards

Narasimha

jason_latko
Advisor
Advisor
0 Kudos

Narasimha,

Please contact me directly via e-mail about this issue.  Thanks,

Jason Latko - Senior Product Developer at SAP

Answers (2)

Answers (2)

Former Member
0 Kudos

What type of clients are you using.  The WPF clients don't support ActiveX.

Stephen

Former Member
0 Kudos

Hi Stephen,

We are targeting for Win32 clients.

Where can I find Agentry API for Activex and how do we integrate a 3rd party Activex control with syclo application?

Is there any document available on this?

Thanks,

Narasimha

agentry_src
Active Contributor
0 Kudos

Moving this to SAP for Mobile as not really mobile platform related.

Regards, Mike

SAP Customer Experience Group - CEG