on 08-27-2009 4:53 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
solved and explained what was misteake i did.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.