cancel
Showing results for 
Search instead for 
Did you mean: 

how to make view disable dynamically

Former Member
0 Kudos

Hi experts,

i want to view disable dynamically for this i am not using any view container,can you please suggest me.

Thanks in Advance,

Edited by: Lavanya YH1504 on Sep 13, 2010 7:21 AM

Accepted Solutions (1)

Accepted Solutions (1)

Madhu2004
Active Contributor
0 Kudos

Hi,

Can you elaborate on what is the issue.

Madhu

Former Member
0 Kudos

Hi,

i want to disable the view at the time of display based on some condition ,for this i didn't use any view container it is simple view for this where i want to write the code (is in wd_init),can u suggest me with some sample code.

thanks in advance,

Madhu2004
Active Contributor
0 Kudos

hi,

Create an attribute ( "Enable") in the view's context of type WDY_BOOLEAN and bind it to ENABLE property of ROOTUIELEMENTCONTAINER.

In the WDDOINT method set the attribute value to ABAP_FALSE if view should be disbaled else to ABAP_TRUE if view to be enabled.

Regards,

MAdhu

Former Member
0 Kudos

hi ,

thank u but in my case contion field in component controler wd_int method how to i pass that to view wd_int method for condition checking.

Madhu2004
Active Contributor
0 Kudos

Hi,

In that case create a node and attribute in component contoleer and set the value in doinit method of the CC.

Map this node to view and bind the value to the rootuielement.

Regards,

Madhu

Former Member
0 Kudos

Hi,

Thank you .solved

Answers (0)