StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



BrowseDialog and Foriegn KeysExpand / Collapse
Author
Message
Posted 09/27/2006 2:39:57 PM
StrataFrame Novice

StrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame Novice

Group: StrataFrame Users
Last Login: 08/23/2007 2:01:12 AM
Posts: 77, Visits: 804
I wanted to explore other options to my previous post about custom fields being searched in the BrowseDialog.

I am using custom fields to display foreign key values from a table. I'd like to be able to search on the textual representation of the foriegn key. For example, say I have a table:

OrderID
OrderDate
SalesPersonID

I created a custom field which grabs the sales person's name (based on the SalesPersonID).  As per my previous post, I was having problems with my logic.

What would be the best way to accomplish this? I've tried setting up a view (this is in Access, BTW) and used the DDK to create the structure.

In the resulting BO, I use a FillAll method which simply fills the datatable using select * from MyView.

The problem I'm having with it, is that I am getting a required parameter is missing error when I try to save a record. I'm assuming it's because of the view.

Any ideas?

Post #3136
Posted 09/27/2006 2:54:29 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 6:26:12 PM
Posts: 4,901, Visits: 4,887
Yeah, the problem you are having has to do with your view on the save.  Just so you know, we are already going to add the ability in the BrowseDialog to be able to load up a combo box which ties to the foreign key field which would then be a valid search and you would not have to create a view or flat file in order to execute the search.  As for the reason your save is faililng on your view, you can always turn debug mode on your data source to see what is being created and what the values are the parameters are.

In your AppMain.vb or program.cs file, in the SetDataSources() method, add this line of code after the SetConnections() method has been called or after your connections have been added:

MicroFour.StrataFrame.Data.DataBasics.DataSources(0).SetDebugOn("c:\temp\MyDebug.html",True)

Post #3137
Posted 01/05/2007 4:08:59 PM
StrataFrame Novice

StrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame Novice

Group: StrataFrame Users
Last Login: 07/09/2007 2:48:58 PM
Posts: 57, Visits: 107
Just curious if the combo box population of the BrowseDialog feature had been implemented yet (and if so, where can I find it...).

Thanks!

Post #5612
Posted 01/05/2007 5:05:46 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 6:26:12 PM
Posts: 4,901, Visits: 4,887
It is available as we speak and has been since the last update. In fact, the documentation was also updated to reflect all of the changes as well. If you look in the docs under the BrowseDialog control you will see that this functionality exists and it will show you how to use it.
Post #5614
Posted 01/05/2007 5:11:14 PM
StrataFrame Novice

StrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame Novice

Group: StrataFrame Users
Last Login: 07/09/2007 2:48:58 PM
Posts: 57, Visits: 107
I must be dense...1.5.1 has this? I'm reading through the help topic: Using the Browse Dialog and I'm not seeing this discussion...
Post #5615
Posted 01/05/2007 5:49:47 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 6:26:12 PM
Posts: 4,901, Visits: 4,887
Yeah, we actually added this before the last training class.  You can see the help in the StrataFrame Help file under the following location:

UI Layer -> Controls -> BrowseDialog -> Working with the Browse Dialog -> Setting the Search Fields

You will be interested in the section talking about the Combo - Business Object.  There are a bunch of other topics in there as well relating to the BrowseDialog.  The Events may come in handy for you as well since you may need to use the ComboListPopulating event.

Post #5616
Posted 01/05/2007 8:10:08 PM
StrataFrame Novice

StrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame Novice

Group: StrataFrame Users
Last Login: 07/09/2007 2:48:58 PM
Posts: 57, Visits: 107
Interesting. How do I tell what version of the docs I have? I have the What's New in Version 1.5.1 topic. And I have the UI Layer-->Controls-->Browse Dialog hierarchy of topics. But that's where it stops. No subtopics of Browse Dialog in mine.

Or maybe I just have an older version entirely since my Search Field Criteria dialog has no tabs whatever...will check more deeply after the four-year-old goes to bed tonight.

Post #5619
Posted 01/05/2007 8:39:30 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 6:26:12 PM
Posts: 4,901, Visits: 4,887
You may just want to download the latest build from the website.  I am confident that that will get you up to date.  If not let me know and I will see what is going on...but I think it will resolve your problem.
Post #5621
Posted 01/05/2007 10:59:32 PM
StrataFrame Novice

StrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame Novice

Group: StrataFrame Users
Last Login: 07/09/2007 2:48:58 PM
Posts: 57, Visits: 107
Worked as advertised. Thanks!
Post #5624
Posted 01/07/2007 3:23:05 PM