on 06-05-2007 10:32 AM
could any can tell me how to delete a column
means a attibute of a perticular node
thru atable
Hi
You want to delete the row or column
If row means , type the follwing code in the method onActionDeleteEntry()
public void onActionDeleteEntry(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent)
{
int lead = wdContext.nodePeople().getLeadSelection();
if(lead>=0)
{
wdContext.nodePeople().currentPeopleElement());
}
}
Regards
Chandran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
if u want to delete particular row or column,
u want to delete row use this code,
people is a node having all attributes
1)create an button and write this code in onActionbutton as
int lead= wdContext.nodePeople().getLeadSelection();
if(lead>=0)
{
wdContext.nodePeople().removeElement(wdContext.nodePeople().currentPeopleElement());
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Actually when u want to delete the col, If u want to delete it at creation time that means you are deleting the particular attribute from the node. so u can go to layout tabpage then outLine and delete the col.
If u want to delete at runtime then u can do as bellow. Create an attribute called colVisible and set the type com.sap.ide.webdynpro.uielementdefinitions.Visibility
Now go to the property of that attribute ( which u want to delete) and at visible property set colVisible. now within WDinit() method write the following code.
wdContext.currentContextElement().setColVisible(WDVisibility.NONE);
Through this code u can make it visible and Invisible as per your requirement. Just Change the "NONE" time to time. If u want to permanently make it invisible then go to the visibility property and set it none.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You mean you want to delete the node attribute dynamically, so that it is not shown in the table.
or you dont want to show a column of a table at runtime.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
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.