on 08-20-2014 12:57 PM
Hello everyone,
Is there any data type we can use to denote duration?
The scenario is that a user will need to enter hours and minutes and we should be able to use this information in reports.
thanks
Mahesh
Hello Mahesh,
Did you take a look the Reuse Library Duration?
HTH,
Horst
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Horst,
Thanks for responding.
I want to have a field in the UI for the user to enter hours and minutes.
Eg: 2 hours 20 minutes
I am wondering is there is a data type which takes these values and can be used in reports.
If we go by work around, we can have two fields - one text field for the user, and then a second field hidden which is populated by parsing the first one and which is used in the reports.
thanks
Mahesh
Indeed, this is not available for XBOs - there was nothing said that this is about XBOs.
According to the studio Library, in XBOs only the following elements are allowed, pick the one that comes closest to your use case:
- Amount
- Date
- DecimalValue
- CodeList – SAP code lists
- ID
- Identifier – SAP identifiers
- Indicator
- Quantity
- Time
- LANGUAGEINDEPENDENT_EXTENDED_Text
- WebURI
- EmailURI
By importing additional namespaces, you can access additional SAP CodeLists and Identifiers.
You can also use CodeLists that you have defined within your solution.
Sorry, no Duration in XBOs
Hi Olaf,
thanks for responding.
Could you please explain how you achieved the "day" unit?
I know we have a data type "quantity", but it will give you an option to select a type (day, hour, kilograms, litres etc) from a drop down.
Is there a way we can restrict the value to just "days"?
Also, we have to use this in PDI/SDK to drive some logic off of these fields in a standard BO and standard TI.
thanks
Mahesh
Hello Mahesh,
If you are using an Embedded Component to add the field to the standard screen then you can set the Initial Value for the Unit field as Day in Embedded Component.
Also you can write a code in Aftermodify to always set that field value to Day even if user changes that in UI.
Please let me know if that helps.
Thanks & Regards,
Meghna Sharma
User | Count |
---|---|
86 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.