Hi,
I'm trying to get calendar info by the next code:
crm.setLastAnchor(new Timestamp(0));
crm.setNextAnchor(new Timestamp(System.currentTimeMillis()));
DataRecord tab = new DataRecord();
tab.setName("fetchUserCalendar");
tab.setAction("process");
crm.save(tab);
crm.commit();
all = (List<Call>) crm.getRecords(Call.class.getName());
My xml response is:
<?xml version="1.0" encoding="UTF-8"?>
<aspcfs>
<response id="1">
<status>0</status>
<errorText/>
<recordSet count="12" name="fetchUserCalendar">
<record action="select" name="call">
<notes></notes>
<completeDate>13/05/08 15.15.23 CEST</completeDate>
<subject>test attivita</subject>
<entered>13/05/08 15.15.23 CEST</entered>
<modified></modified>
</record>
<record action="select" name="call">
<followupNotes></followupNotes>
<alertDate>09/05/08 16.20.00 CEST</alertDate>
<alertText>Attivita Programmata</alertText>
<priorityString>Low</priorityString>
<entered>09/05/08 16.18.48 CEST</entered>
<modified></modified>
</record>
<record action="select" name="call">
<notes></notes>
<completeDate>21/05/08 12.26.35 CEST</completeDate>
<subject>gggggg</subject>
<priorityString>Low</priorityString>
<entered>21/05/08 12.26.35 CEST</entered>
<modified></modified>
</record>
<record action="select" name="call">
<contactName>Contatto Filippo</contactName>
<orgName>Cliente Maurizio</orgName>
<notes></notes>
<completeDate>21/05/08 12.33.37 CEST</completeDate>
<subject>Attivitààà</subject>
<entered>21/05/08 12.33.37 CEST</entered>
<modified></modified>
</record>
</recordSet>
</response>
</aspcfs>
The fetchUserCalendar getRecords() method uses org.aspcfs.modules.contacts.base.Call Object, is This true?
The record structures are different example this record :
<record action="select" name="call">
<notes></notes>
<completeDate>13/05/08 15.15.23 CEST</completeDate>
<subject>test attivita</subject>
<entered>13/05/08 15.15.23 CEST</entered>
<modified></modified>
</record>
This other record:
<record action="select" name="call">
<contactName>Contatto Filippo</contactName>
<orgName>Cliente Maurizio</orgName>
<notes></notes>
<completeDate>21/05/08 12.33.37 CEST</completeDate>
<subject>Attivitààà</subject>
<entered>21/05/08 12.33.37 CEST</entered>
<modified></modified>
</record>
But the attribute [name="call"] is the same, this means that all record are filled into
org.aspcfs.modules.contacts.base.Call Object?
Thanks in Advance
Alessandro