cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding labels in webdynpro

Former Member
0 Kudos
58

Hi all,

I want to show date and time fields in my application.But the problem here is how to show the label as given below in webdynpro

StartDate:----


(YYYY/MM/DD)

Start TIme:-------

(HH:MM)

and for date filed to get the calander i am using date Type

but wat is the field type for Time

Regards

Padma N

Accepted Solutions (1)

Accepted Solutions (1)

srinivas_sistu
Active Contributor
0 Kudos

Hi

say for ex.

you have to show like this:::

lable1 Value1

then for your case,

take a transparent container(TC) with gridlayout and colomn count 1

add two lable element to this TC.

now

you dipla y like this...

TC value1

So that your

TC holds two lables like this

(label1)StartDate:----


(label2)(YYYY/MM/DD)

Regards,

Srinivas

Edited by: srinivas sistu on Sep 24, 2008 11:29 AM

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Padma,

Your question is not clear. "but wat is the field type for Time".

What i think is :-

if you are representing Time field with Context Attribute, then you can bind the property Type of that Attribute as TIME type.

if you want to retrieve time then as said above you can use Datetype.getTime(), but it returns long. so you need to work on Conversion of Date types. Let me know if you need any other clarification or else close the thread if this satifies your requirements.

Regards

Raghunandan

Former Member
0 Kudos

Hi,

For the Time, you try using the Date type or Calender type and get the Time from them.like datetype.getTime();

Thanks,

Np

Former Member
0 Kudos

hi,

refer the following doc.

Implementing a Calendar in Web Dynpro Java

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e012e6a2-8d21-2a10-1bb8-d9b606f3...