Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

not displaying first row in the table

Hi

I created web dynpro application. In that table,,

Cardinality -


0 to n

Selection -


0 to n

public void wdDoInit()

{

//@@begin wdDoInit()

wdContext.currentLeaveElement().setLocation("1");

for (int i = 0; i < EMP.length; i++)

{

IPrivateEtrecLeaveEligView.ILeaveElement element = wdContext. createLeaveElement();

element.setDepartment(EMP<i>[0]);

element.setLeaveType(EMP<i>[1]);

element.setYear(EMP<i>[2]);

element.setTimeSpan(EMP<i>[3]);

element.setNumofdays(EMP<i>[4]);

element.setLevel(EMP<i>[5]);

wdContext.nodeLeave().addElement(element);

}

//@@end

}

In tha last declaration,,,,,,

private static final String EMP[][] =

{

{ "Supply Chain", "Annual Leave", "2008", "Yearly", "20", "JC-16 Manager grade"},

{ "Finance", "Sick Leave", "2008", "Yearly", "23", "WL-2A"},

{ "Brands & Development", "Monthly Leave", "2008", "Monthly", "23", "WL-4A"},

{ "Supply Chain", "Annual Leave", "2008", "Yearly", "23", "WL-5A"},

{ "Finance", "Sick Leave", "2008", "Yearly", "23", "WL-6A"}

};

But its not taking first row data in the table....

will any one please help me where i did mistake.

Regards

Sushma

Former Member
Not what you were looking for? View more on this topic or Ask a question