on 11-07-2008 5:59 AM
Hi Experts,
I am using a table that has one column.
Column contains TreeByNestingTableColumn.
In master column I am using check box.
My structure of master column is as follows
check box (parent)
checkbox(child)
-
-
I have following questionss.
1)I want to select all child check box when i click on parent check box without selecting row of table.
2)I want to traverse through table when I click a button like save
that is present in view where table is.
Kind regards
Sarsij
Hi Tatayya ,
I am always getting element object as null in onActionChecked method.
Kind Regards
Sarsij
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
May be u missed the below code in wdModify() method
public static void wdDoModifyView(IPrivateAdminMenuAppView wdThis, IPrivateAdminMenuAppView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
{
//@@begin wdDoModifyView
if (firstTime) {
IWDTreeByNestingTableColumn masterColumn =
(IWDTreeByNestingTableColumn) view.getElement("MasterColumn1");
masterColumn.mappingOfOnLoadChildren().addSourceMapping("path", "element");
}
}
I hope it solve your problem. Let me know if you have any problem
Thanks
Hi,
Thank you very much.
Error was coming because I had forgotten to add following code.
IWDCheckBox checkBox=(IWDCheckBox)view.getElement("CheckBox");
checkBox.mappingOfOnToggle().addSourceMapping("ckecked", "ckecked");
checkBox.mappingOfOnToggle().addSourceMapping("nodeElement", "nodeElement");
Kind Regards
Sarsij
Hi,
Go through this link
http://help.sap.com/saphelp_nw04/helpdata/en/24/4e70c63574ec4284d0f47324ab2d0e/frameset.htm
go to the tutorial part and check the tutorial
for Integration of a Tree Structure in a Web Dynpro Table
Thanks & Regards
Padma N
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1. write an Action event handler and pass the extra parameter Table node elementy type
2. write a method to get the child check boxes to select/deselect
3. Find the below code
public void onActionChecked(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, com.info.wdp.IPrivateAdminMenuAppView.IMenuElement element )
{
getChildId(element,element.getChecked());
}
public void getChildId(com.info.wdp.IPrivateAdminMenuAppView.IMenuElement element,boolean checked)
{
int size=element.nodeSubMenu().size();
if(size!=0)
{
for(int i=0;i<size;i++)
{
element.nodeSubMenu().getMenuElementAt(i).setChecked(checked);
getChildId(element.nodeSubMenu().getMenuElementAt(i),checked);
}
}
}
I hope it will help you
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.