Quantcast
Channel: SCN : All Content - SAP for Mobile
Viewing all articles
Browse latest Browse all 6147

Data Exchange between OpenUI control (WPF) and Agentry

$
0
0

Hi All,

I'm trying to implement a OpenUI add-in for the Windows (WPF) Agentry client which updates Agentry properties and calls an action. I'm having trouble understanding the OpenUI interface of the Windows Agentry client.

 

Scenario:

I've added a new property called ZTest of type String to the MainObject of Work Manager (6.1).

I've also added a new field ZOpenUITest of type "String" to the WorkOrderTileListView screen (it's basically shown below the order list)

In the ZOpenUITest screen field, I've set the Class Name to "MyStringEditAdapter", added "ZTestExternalValue" to the External Values list and I've added an action ZTestUpdate to the action list

 

I used the sample control project from the OpenUI SDK for WPF as a start and started playing around with the MyStringEditAdapter class. But I'm unclear on how to expose a string to the external value (ZTestExternalValue) and how to call the ZTestUpdate action. I'm able to debug into the code - so this is not an issue of getting the add-in running.

 

I tried something like this:

AgentryClientSDK.IAgentryControlViewModelStringEdit vm = DataContext as AgentryClientSDK.IAgentryControlViewModelStringEdit;

but it's returning null.

 

This returns a valid reference:

AgentryClientSDK.IAgentryControlViewModelStringDisplay vm = DataContext as AgentryClientSDK.IAgentryControlViewModelStringDisplay;

But I didn't find a way a way to expose the external values or trigger the Agentry action. For exposing the external values, I would assume there is an even which I need to implement.

 

Unfortunately the documentation on OpenUI for WPF is rather thin imho. I appreciate any input.

Thanks!


Viewing all articles
Browse latest Browse all 6147

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>