on 06-19-2006 4:58 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
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.