StrataFrame Forum

SeekToPrimaryKey() or NavigateToPrimaryKey()

http://forum.strataframe.net/Topic20479.aspx

By Malcon M. Mikami - 10/31/2008

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?

By Paul Chase - 10/31/2008

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"})