Retrieving the new primary key after executing .NewRow and .Save


Author
Message
Jeff Pagley
Jeff Pagley
StrataFrame User (467 reputation)StrataFrame User (467 reputation)StrataFrame User (467 reputation)StrataFrame User (467 reputation)StrataFrame User (467 reputation)StrataFrame User (467 reputation)StrataFrame User (467 reputation)StrataFrame User (467 reputation)StrataFrame User (467 reputation)
Group: StrataFrame Users
Posts: 223, Visits: 893
I could not find the answer on the forum or in the SF Help.  How do I retrieve the newly created primary key after executing the following code:

  Using job As New PRJTJobsBO
   With job
    .NewRow()
    .job_Customer = "jeff"
    .job_Name = "Jeff's Job"
    If .Save = MicroFour.StrataFrame.Data.SaveUndoResult.Success Then
     Return ...newly created primary key??????
    End If
   End With
  End Using


Thanks,

Jeff

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search