Browse Dialog Question


Author
Message
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
I am using the following code to populate a browse dialog of possible zip code for a city. The problem I am having is that the record pointer does not seem to move to the selected city/zip combination after the browse intead it is sitting on the first record of the browse resultd for that city. I would think the record pointer of the BO would be set on the record selected from the browse results dialog instead of the first record of the result set. any ideas on whats going on

''' <summary>

''' Populates a Browse Dialog of Possible ZipCodes For a City

''' </summary>

''' <param name="sender"></param>

''' <param name="e"></param>

''' <remarks></remarks>

Private Sub ShowZipCodes(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtjscity.KeyDown

If e.KeyCode = Keys.Enter Then

Me.ZipCodeDialog.SearchFields.Item(0).InitialValue = Me.txtjscity.Text.Trim

If Me.ZipCodeDialog.ShowDialog(True) = Windows.Forms.DialogResult.OK Then

Me.txtjscity.Text = Me.ZipCodesBO1.CITY

Me.txtjsstate.Text = Me.ZipCodesBO1.STATE

Me.txtjszip.Text = Me.ZipCodesBO1.ZIP

Else

'Nothing was Selected-- ///*TODO-- Do we want to do anything here?

End If

End If

End Sub

 

Replies
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Configuring the browse dialog generates quite a bit of code within the designer file.  Sometimes, if you rename a business object, or rename the business object class, you have to go back to the browse dialog and reset a few properties to get them to work properly... you never know.
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
That may be what happened. I did some renaming awile back and just may not have noticed that this was not behaving properly.

I am trying to get ready for a demo this friday and am flushing out all the little problems that I probably didn't notice before. So it makes sense that some things that may have worked before could be broken because I renamed something and did not get a compiler error so never thought to look at it.

Well I have the rest of the week to find any more of these BigGrin 

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