Skip to Content
avatar image
Former Member

Not able to Disable the Seconds tab of Time using Agentry Open UI concept

Hello Experts,

I am trying to Disable Seconds Field in Time Format using Android Open UI concept for Agentry.

what I have done is --

1. I created the class MyDateTimeDisplayAdapter under the  Package  com.sap.mobile.platform.client.openui.extensions under Project  AgentryAndroidClientSolutions. I have run this project as an APK file in my Android Mobile.  The code for MyDateTimeDisplayAdapter class I took from Sample Open UI project(which comes with SDK).  As the code says, it will only display Hour and minutes in Time and Seconds field should be disable. But I am not getting the Seconds Field Disable.

2. 2nd thing which I have done is, In External Field I put the class name MyDateTimeDisplayAdapter under DocumentDate  Feild under PhysicalInventoryDocumentAdd screen. And Publish this Changes.

OpenUI.PNG (115.1 kB)
Agentry.PNG (88.7 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Oct 21, 2015 at 01:02 PM

    Manish,

    I suspect the reason you are not seeing the behavior your intend is that your OpenUI code is not actually being called and you are still seeing the default field.

    Have you confirmed that your code is being called through either the debugger, log messages or a toast popup (or similar)?  I would first start by confirming this.

    In looking at your Java project, it looks to me like the classes are in the wrong location.  I would expect to see your com.sap.mobile.platform.client.openui.extensions package and associated source file (MyDateTimeDisplayAdapter.java) under the src folder.  You may need to tell Eclipse to use the src folder as a source folder by right clicking on the folder -> Build Path -> Use as Source Folder.

    --Bill

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Bill,

      can you please suggest me, how to call  this class. I am seeing that My class is not getting call after setting the Log message.

      Do I need to add something more from Agentry side.

      - Manish