on 02-06-2009 6:09 AM
hi all,
I have a inputfiled,and this inputfield bind to a context's attribute,and its type is T
when I open this view , this inputfield will show "00:00:00"
but I want it show empty string.
and I want to use method "set_nullable()" and set_attribute_null as SDN said
some one can show me the code
thanks so much
Hi,
DATA lo_nd_nd_time TYPE REF TO if_wd_context_node.
DATA lo_el_nd_time TYPE REF TO if_wd_context_element.
DATA ls_nd_time TYPE wd_this->element_nd_time.
navigate from <CONTEXT> to <ND_TIME> via lead selection*
lo_nd_nd_time = wd_context->get_child_node( name = wd_this->wdctx_nd_time ).
lo_nd_nd_time->set_attribute_null(
EXPORTING
index = USE_LEAD_SELECTION*
name = 'ATR_TIME'
-).
This is code for displaying the input field null of attribute type T. ATR_TIME is the Attribute name and ND_TIME is the node name. Put this code in the Initialization event.
Regards,
Ragu.
Edited by: Ragu Prasad on Feb 6, 2009 7:30 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i guess one way is like to code it in such a way that..ON_LOAD chk if this particular cell of the component is having a value 0 .If so clear it n make it blank or use field conversion here.
u can use the methids set_attribute_null. u can chk this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.