cancel
Showing results for 
Search instead for 
Did you mean: 

Hi Gurus

Former Member
0 Kudos

Hi Gurus....

I want to create a wd application that must display date and time at the top.So can any one please help me out with this????

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

1. Create one node NODE1 in the controller.

2. Create 2 attributes in this node namly TIME type TIMS and DATE type DATUM.

3. Insert 2 textview UiElement in the view.

4. Bind the text of these two UiElement to TIME and DATE.

Write the below code in the WDDOMODIFYVIEW of view.

Hope this will work.

DATA lo_nd_node1 TYPE REF TO if_wd_context_node.

DATA lo_el_node1 TYPE REF TO if_wd_context_element.

lo_nd_node1 = wd_context->get_child_node( name = wd_this->wdctx_node1 ).

lo_el_node1 = lo_nd_node1->get_element( ).

lo_el_node1->set_attribute(

name = `TIME`

value = sy-uzeit ).

lo_el_node1->set_attribute(

name = `DATE`

value = sy-datum ).

Hope this will work...

Thanks & Regards,

Arvind

Former Member
0 Kudos

Hi...

Thank you very much.It really worked .....Thank you so much for your help....

Answers (1)

Answers (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

In the future please use an appropriate forum thread title. Something descriptive about the subject of your question - not "Hi Gurus".