on 03-31-2015 11:53 AM
HI experts,
I am integrating Open UI in agentry android ,i had imported all agentryUI framework for android and i had created one sample activity in the project AgentryAndroidClientResources , can i call that activity in agentry by passing activity name(Class name) in "ExternalField" in the screen set??
Kindly guide me my approach is correct or not
Thanks
Kaviyarasu.s
I would recommend that you start by using the sample Open UI controls first. Get those compiled into your client and tested and then use them as a template to understand how and where the code is put into the Agentry projects.
--Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yeah sure micheal,
I had created one filed in screen in agentry editor that screen has one row and one column so this will covers the whole page in the screen i had the filed type as "External Field",then in the External field section i had put my adapter class "ExternalUI"
That class i had created in Agentry AgentryAndroidClientSolution project within the "com.sap.mobile.platform.client.openui.extensions"
ExternalUI class will extend with ExternalDataDisplayAdapter class in the getview method i had constructed my own view and returned for my requirement i need web view so i returned as web view
if u need any layout view also we can do by this way
public View getView()
{
WebView webview=null;
if(_context!=null)
{
LinearLayout ll = new LinearLayout(_context);
ll.setOrientation(LinearLayout.VERTICAL);
webview = new WebView(_context);
browser.loadUrl("URL");
}
return webview;
}
Hi bill,
i have one suggestion in Open UI android returned view does not have any validation means if i set the field type as string it should accept only EditText view but in current version it will allow all the views to show on the agentry screen field from adapters.
if we do any validations of returned view it would be a good framework.
Thanks
kavi
Kavi,
The intent of Open UI types is to build upon a datatype from Agentry in terms of what is passed into the Open UI control. Once in the control you have complete control over what you choose to display and do with any passed in values. This gives you the most flexibility in terms of what you can do with the control area. If you want to add validation you can do that in your Open UI code.
For example, in Work Manager where we display the ESRI map control we do that from two input types in Agentry. First from the List View where we map multiple collections of points and second from a String where we map just the current workorder. In both case we display a map but use the input data differently to determine what shows where and when.
--Bill
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.