SeekToPrimaryKey() or NavigateToPrimaryKey()


Author
Message
Malcon M. Mikami
Malcon M. Mikami
StrataFrame User (164 reputation)StrataFrame User (164 reputation)StrataFrame User (164 reputation)StrataFrame User (164 reputation)StrataFrame User (164 reputation)StrataFrame User (164 reputation)StrataFrame User (164 reputation)StrataFrame User (164 reputation)StrataFrame User (164 reputation)
Group: Forum Members
Posts: 60, Visits: 1.3K
I'm trying to use SeekToPrimaryKey() or NavigatetoPrimaryKey() for composed Key


For example....

There is my BO, and it has a composed primary key so, when I'm trying to navegate or set a specific rows where I report just one of them, it's not work.

Code

boCustomer.Fill();

bocustomer.NavegateToPrimaryKey(idCustomers);

 or

boCustomer.seekToPrimaryKey(idCustomers);

I have tried to use both of the key but these method don't accept two parameters...

How can I do This?

Paul Chase
Paul Chase
Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)Advanced StrataFrame User (806 reputation)
Group: Forum Members
Posts: 414, Visits: 2.8K
Hi Malcon,

If you mean a compound primary key the overload accepts a param array so you would do

something like this. fld 1 and fld2 being the 2 fields that make up your compound key.

MyBo.seektoprimarykey(New Object() {"FLD1","FLD2"})


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