cancel
Showing results for 
Search instead for 
Did you mean: 

items not appearing..

Former Member
0 Kudos

Hi! I have created a syncBO of type t01..It uses two

bapi wrappers GetList and GetDetails..I have created them.They are RFC enabled and are working fine.

I am developing it for learning purpose.Here the GetList

bapi wrapper will display the differnt course names and

course IDs..(Course ID is the primary key).the GetDetail

Bapi wrapper should display the student details who opted

for the course. When I generated the application,

Overview of SyncbO is woking correctly.I mean the

GetList Bapi wrapper is working.But when I select a

particular Course ID it is not displaying all the

records.It is showing the same record as many times as

the number of records exist for that course ID.

I have checked the work list monitor there it is showing

different records. But the application displays only one

record many times. Is the code generated by the frame work needs to be changed.

Thank you

Accepted Solutions (1)

Accepted Solutions (1)

kishorg
Advisor
Advisor
0 Kudos

Hi Veerabhadran,

This is only because of the one bug in the generated project using Developer Studio and no error with replication..

In the generated code ,,

we can see the Class TableContentProvider

In this , we can see some standard methods for fetching the data from the persistence through SmartSyncDBAccess..

In this ,,

just refer these methods ,,

public Vector getTableWithSyncBoInstanceHeader(

String syncBoName,

String syncKey)

{

.....

tableVector.addElement(lineVector);

}

public Vector getTableWithSyncBoInstanceItems(

String syncBoName,

String syncKey,

String itemName)

{

.....

retVector.addElement(itemVector);}

In the generated code , we can see one statement like i mentioned above.

<b>Just replace these statements like this..

tableVector.addElement(lineVector); --- >

tableVector.addElement(lineVector.clone());

retVector.addElement(itemVector); --- > retVector.addElement(itemVector.clone());</b>

Refer the API help of Vector for getting the difference between the two statements...

Check this and let me know the output..

Regards

Kishor Gopinathan

Former Member
0 Kudos

Hi! Kishore

I have changed as u told and it is displaying all the

items now.

Thanks a lot.

Answers (0)