cancel
Showing results for 
Search instead for 
Did you mean: 

How to hide table column based on country molga value

Former Member
0 Kudos

Hi Experts,

I am doing some enhancement in ess application. I want to hide table column based on country code i.e. Molga value.

I want to hide coulm for only Japan country reset of them i need to be show those coulmn.

Could you please provide me a sample code.

Regards

Chakri

Accepted Solutions (0)

Answers (1)

Answers (1)

vdurgarao09
Contributor
0 Kudos

Hi Chakri,

Your setting the table value that time you will get the Country Code.

1.Create the attribute like Country_Column_Visible Data Type bind the com.sap.ide.webdynpro.uielementdefinitions.Visibility this value  you need to bind the table country column.

2.In Table You need to check the country code Japan is available you need follow this below sample code.

for(int i=0;i<tablesize;i++)

{

     tablesithValue=wdContext.nodeTable().getTablenode(i);

    

     if(null != tablesithValue.getcountrycode)

     if(tablesithValue.getcountrycode.equalsIgnoreCase("Japan"))

     {

          wdContext.currentxxxxElement.setCountry_Column_Visible(WDVisibility.NONE);

     }else

     {

          wdContext.currentxxxxElement.setCountry_Column_Visible(WDVisibility.VISIBLE);

     }

}

Use the above code you condition it will work.I hope it will help you.

BR,

Durga

Former Member
0 Kudos

Hi Durga,

I have implemented same but getting some error..

Can u please give me ur mail id

Regards

Kalyan

vdurgarao09
Contributor
0 Kudos

Hi Kalyan,

Can You post that error..?

BR,

Durga