﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » SeekToPrimaryKey() or NavigateToPrimaryKey()</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 06:34:00 GMT</lastBuildDate><ttl>20</ttl><item><title>SeekToPrimaryKey() or NavigateToPrimaryKey()</title><link>http://forum.strataframe.net/FindPost20479.aspx</link><description>I'm trying to use SeekToPrimaryKey() or NavigatetoPrimaryKey() for composed Key &lt;/P&gt;&lt;P&gt;&lt;BR&gt;For example....&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Code&lt;/P&gt;&lt;P&gt;boCustomer.Fill();&lt;/P&gt;&lt;P&gt;bocustomer.NavegateToPrimaryKey(idCustomers); &lt;/P&gt;&lt;P&gt;&amp;nbsp;or &lt;/P&gt;&lt;P&gt;boCustomer.seekToPrimaryKey(idCustomers);&lt;/P&gt;&lt;P&gt;I have tried to use both of the key but these method don't accept two parameters...&lt;/P&gt;&lt;P&gt;How can I do This?</description><pubDate>Fri, 31 Oct 2008 08:18:36 GMT</pubDate><dc:creator>Malcon M. Mikami</dc:creator></item><item><title>RE: SeekToPrimaryKey() or NavigateToPrimaryKey()</title><link>http://forum.strataframe.net/FindPost20480.aspx</link><description>Hi Malcon,&lt;/P&gt;&lt;P&gt;If you mean a compound primary key the overload accepts a param array so you would do&lt;/P&gt;&lt;P&gt;something like this.&amp;nbsp;fld 1 and fld2 being the 2 fields that make up your compound key.&lt;/P&gt;&lt;P&gt;[codesnippet] &lt;/P&gt;&lt;P&gt;MyBo.seektoprimarykey(&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;New&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Object&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt;() {&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"FLD1","FLD2"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt;})&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;[/codesnippet]</description><pubDate>Fri, 31 Oct 2008 08:18:36 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item></channel></rss>