Hi everyone,
I have a DataService component that is working fine for the fill and
sync operations. My problem is that when I try to use createItem to
add a record, I get this error:

[RPC Fault faultString="Missing identity properties: recid"
faultCode="Local.Call.Failed" faultDetail="null"]

I am using createItem like this:

var newIssue:ProjectIssue = new ProjectIssue();
newIssue.fld1 = "xyz";
.
.
projectIssuesDS.createItem(newIssue);

I do not populate the recid field (since that is filled in on the
server after the new id value is added by the db.) I tried making it 0
for the createItem, but that makes no difference.

The ProjectIssue class' first field is recid so I don't know how the
newIssue could be missing that. All fields in ProjectIssue are public.
Here is the ProjectIssue.as (DTO):

package dto
{
        [Managed]
        [RemoteClass(alias="inteliseapm.ProjectIssue")]
        public class ProjectIssue
        {
                public var recid:int;
                public var projid:int;
                public var projstatusid:int;
                public var opened:Date;
                public var closed:Date;
                public var reportedby:String;
                public var enteredby:int;
                public var location:String;
                public var shipyardcat:Boolean;
                public var equipcat:Boolean;
                public var softwarecat:Boolean;
                public var productioncat:Boolean;
                public var upgradecat:Boolean;
                public var infocat:Boolean;
                public var severity:int;
                public var tags:String;
                public var surveysent:Boolean;
                public var surveyrcvd:Boolean;  
                public var surveyemail:String;
                public var issuesummary:String;
                public var vesselname:String;
                
                public function ProjectIssue()
                {
                }
        }
}

Any ideas? Thanks!!!

Reply via email to