on 06-04-2010 6:03 AM
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????
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the future please use an appropriate forum thread title. Something descriptive about the subject of your question - not "Hi Gurus".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.