on 09-15-2016 5:35 PM
Riley,
Pass up that value as an Agentry Value to the control. Agentry Values are a sub-section of the External Value tab on the screen field you are extending with OpenUI. The Agentry Value must be set via a rule, and will be evaluated at runtime when the OpenUI control is created. Then from your C# code on WPF, you must create an instance of the Agentry interface you are extending, then call a method to retrieve the AgentryValue that you defined and set on the screen control:
IAgentryControlViewModelStringDisplay viewModel;
viewModel = this.DataContext as IAgentryControlViewModelStringDisplay;
string str = viewModel.GetAgentryString("TEST");
The above will return the AgentryValue you set for "TEST" on the screen control.
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.
Does it have to be the the Control View you are extending? What if I went:
AgentryClientSDK.IAgentryControlViewModel vm = DataContext as AgentryClientSDK.IAgentryControlViewModel;
string blob = vm.GetAgentryString("blobValue");
Even though I extend say ICustomAgentryControl
Also the Agentry value has to be set by a rule?
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.