on 07-04-2014 2:27 PM
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
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:
Jason Latko - Senior Product Developer at SAP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
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
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
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
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
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
What type of clients are you using. The WPF clients don't support ActiveX.
Stephen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Moving this to SAP for Mobile as not really mobile platform related.
Regards, Mike
SAP Customer Experience Group - CEG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.