cancel
Showing results for 
Search instead for 
Did you mean: 

Tree rendering logic for extra column

Former Member
0 Kudos

Hello Friends,

Need your help.

I have a requirement some thing like this: I appreciate your time and thanks in advnace.

I am populating a tree structure in a table with list of employees. I added two columns in the table with Status and Planning. Now Each employee will have a Status and Planning columns. The values getting populated in Status and Planning columns based on the FLAG Values given from the backend. I have to build the logic some thing like this:


  Name                            Status       Planning     
  Employee1....                    
                     Employee2.....UnLOCK.....Submitted
                     Employee3......LOCK.........PLANNING

******Note the Tree is already rendering with employee name correctly and i added two extra columns

Currently i am trying this:


 
 for(int i = 0; i < wdContext.nodeStatus_It_Struc().size(); i++)
 {   
String StatusFlag = wdContext.nodeStatus_It_Struc().getStatus_It_StrucElementAt(i).getZstat();

 if(StatusFlag.equals(""))
 {
					 	
wdContext.nodeEcmStatus().getEcmStatusElementAt(i).setStatus("Lock");
wdContext.nodeEcmStatus().getEcmStatusElementAt(i).setPlanning("In Planning");
 } 
					 
 else
 {
wdContext.nodeEcmStatus().getEcmStatusElementAt(i).setStatus("Un Lock");
wdContext.nodeEcmStatus().getEcmStatusElementAt(i).setPlanning("Submitted");

 }	

}

Please let me know if I am not clear.

Thanks

Srini

Accepted Solutions (1)

Accepted Solutions (1)

former_member197348
Active Contributor
0 Kudos

Hi Srini,

Welcome to SDN!

I am not able to understand what problem are you facing? As in the figure, are you not able to populate status and planning for Employee1 in the tree? Can you please give more details on your problem like context structure and populating name field etc ?

Regards,

Siva

Former Member
0 Kudos

Hi Shiva,

I appreciate your time for responding to my question. Sorry i was not able demonstate this correct way. I resolved this. The problem is , i suppose to add these elements to the exisitng node but I am trying to add to new one, there i was doing wrong.

Thank you....will meet up again.

Srini

Edited by: Srinibapati on Aug 28, 2009 10:16 PM

Answers (1)

Answers (1)

Former Member
0 Kudos

solved and explained what was misteake i did.