cancel
Showing results for 
Search instead for 
Did you mean: 

Make some columns invisible on leadselect

aayush_dubey3
Explorer
0 Kudos
178

Hello All,

I need to make some columns of a table invisible on

LeadSelect

event.

view

handle is not available. So how can this be done?

Regards,

Aayush

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Aayush,

You can get the attribute of type visibility in the dictionary simple type-> local dictionary->com.sap.ide.webdynpro.uielementdefinitions->visibility

Map it with visibility property of column which you want to make invisible and in the leadSelect() of the table. Write the code.

wdContext.currentContextElement.setVisibility(WDVisibility.NONE);

Hope this helps.

Regards,

Jaydeep

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

You are supposed to write dynamic UI modification codes inside wdDoModifyView.

It will have the handle for the view object.

Regards

Bharathwaj

aayush_dubey3
Explorer
0 Kudos

Hello All,

It worked.:-) Thanks.

Regards,

Aayush

shyam_ravindranathan
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

You can create a context attributes of type "WDVISIBILITY" for the columns and on lead selection use the following

wdContext.currentContextElement().set<ContextAttribute>(WDVISIBILITY.NONE)

Regards,

Shyam

Former Member
0 Kudos

Hi Aayush,

You have bound table to a node.

Bind the visibility property of the columns you want to change visibility to context attribute of type visibility

Bind onLeadSelect to an event

When the event is fired

write the code

wdcontext.currentcontextelement.set<attribute name>(wdvisibility.none);

In init write

wdcontext.currentcontextelement.set<attribute name>(wdvisibility.visible);

Hope this helps you

Regards

Rohit

Message was edited by: Rohit Radhakrishnan

Message was edited by: Rohit Radhakrishnan

Former Member
0 Kudos

Hi Aayush,

If i am not wrong you can do this through context programming.

Create context attrib of type WDVisibility and assign to column Visible property .

On leadSelection of table change the property.

Regards, Anilkumar