cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying no default zeroes for the numeric field in the table display.

Former Member
0 Kudos

hi folks,

I am binding a table in the context which has some numeric fields. I'm displaying the same table which has some records for editing purpose. But the problem is that the numeric field column is being displayed with zeros if it doesnot have any value in it. Can u explain how to disable the zeroes by not displaying them by defualt when there is no value for the numeric field.

regards,

Ramu

Accepted Solutions (1)

Accepted Solutions (1)

abhimanyu_lagishetti7
Active Contributor
0 Kudos

set the format of the context attribute TEST is the context attribute name

data: lr_info type ref to if_wd_context_node_info.

data: ls_prop type WDY_ATTRIBUTE_FORMAT_PROP.

lr_info = wd_context->get_node_info( ).

ls_prop = lr_info->GET_ATTRIBUTE_FORMAT_PROPS( name = 'TEST' ).

LS_PROP-NULL_AS_BLANK = 'X'.

lr_info->sET_ATTRIBUTE_FORMAT_PROPS( name = 'TEST'

FORMAT_PROPERTIES = ls_prop ).

Abhi

Answers (2)

Answers (2)

Former Member
0 Kudos

answered

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

I know that it doesn't help you right now, but in the very near future (NetWeaver 7.0 EnhP1), you will be able to set this property at the context level. Here is a little screen shot:

http://www.flickr.com/photos/tjung/2688368305/

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Now, thats looking great!!

Thanks

Abhi