﻿<?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?)  » Wizard Form</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 07 Apr 2026 18:45:59 GMT</lastBuildDate><ttl>20</ttl><item><title>Wizard Form</title><link>http://forum.strataframe.net/FindPost8520.aspx</link><description>I want 2 create a wizard in witch the user can update information in 3 tables ! (University, Faculty, Specialty) all are one to many&lt;br&gt;
&lt;br&gt;
Here is what I ask.&lt;br&gt;
How can can I add records in Specialty for a record selected in faculty. (faculty and specialty bo-s are on 2 different pages !)&lt;br&gt;</description><pubDate>Thu, 26 Apr 2007 06:03:52 GMT</pubDate><dc:creator>justalex</dc:creator></item><item><title>RE: Wizard Form</title><link>http://forum.strataframe.net/FindPost8524.aspx</link><description>There are two items here that you are addressing.&amp;nbsp; First, adding a record for a specialty in this case doesn't really matter which page you are on.&amp;nbsp; It is more important that you have setup the relationship between the Faculty and Specialty since there is more than likely a foreign key between the two.&amp;nbsp; StrataFrame will manage this relationship and foreign key value for you if you have this relationship established.&amp;nbsp; I recommend looking at the Advanced ListView Population sample as this sample shows how to setup a simple relationship between two business objects.&amp;nbsp; You can also look at the CRM Sample Application as well.&amp;nbsp; But once you have the relationship setup you can add a specialty from any page and you only need to have the Faculty BO positioned on the record for which you wish to create the child specialty record.&amp;nbsp; Again, this is all assuming that Specialty is a child of Faculty.&amp;nbsp; Otherwise is is just a matter of creating a Specialty record.&lt;P&gt;As for determining which page you are on, you can reference the CurrentPage property.&amp;nbsp; This is a good way to determine which way to go:&lt;/P&gt;&lt;P&gt;[codesnippet]If Me.WizardControl1.CurrentPage Is MyWizardPage Then&lt;BR&gt;&lt;BR&gt;'-- Set the next page&lt;BR&gt;Me.WizardControl1.SetActivePage(MyWizardPage)&lt;BR&gt;&lt;BR&gt;End If[/codesnippet]&lt;/P&gt;&lt;P&gt;Also, I recommend handling the NextClicked event and using the NextPageToLoad event argument and/or CancelNavigation method.&amp;nbsp; Below is a sample usage.&lt;/P&gt;&lt;P&gt;[codesnippet]Private Sub WizardControl1_NextClicked(ByVal e As MicroFour.StrataFrame.UI.Windows.Forms.NextBackEventArgs) Handles WizardControl1.NextClicked&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Me.WizardControl1.CurrentPage Is MyWizardPage1 Then&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.NextPageToLoad = MyWizardPage2&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Else&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.CancelNavigation = True&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub[/codesnippet]&lt;/P&gt;&lt;FONT color=#0000ff&gt;&lt;/FONT&gt;</description><pubDate>Thu, 26 Apr 2007 06:03:52 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Wizard Form</title><link>http://forum.strataframe.net/FindPost8521.aspx</link><description>Also how do I know that I'm on a specific page when I navigate in a wizard form.&lt;br&gt;
Ex. When I'm on page 2 I want something 2 happen how do I do that ?</description><pubDate>Thu, 26 Apr 2007 02:08:43 GMT</pubDate><dc:creator>justalex</dc:creator></item></channel></rss>