December 1, 200619 yr So I downloaded fmDotNet and started a new ASP.net web site. In my page_load sub, I have the following Code KI_FMDB.SetDB("KI") 'Set the layout we want to query when we load our value lists 'KI_FMDB.SetLayout("web_assets") lblError.Text = KI_FMDB.TotalRecords.ToString 'For testing Dim ValueLists As ArrayList = KI_FMDB.AvailableVLs Dim ListNames As String For Each ListNames In ValueLists lstProductLine.Items.Add(ListNames) Next I know that this code works, because if I substitute AvailableDBs for AvailableVLs, I get my listbox populated with all my DBs. Edit: I get the error: Object reference not set to an instance of an object Anybody have any ideas? Edited December 1, 200619 yr by Guest
December 17, 200619 yr it seems you have your layout selection commented out. If you leave that in, it should work. Available DBs works on the whole FMS level, but available VLs works on any given layout (IIRC). Try that and post back if it doesn't work.
December 27, 200619 yr Author I tried it with the set layout step uncommented, but I still get the same error.
December 29, 200619 yr It's an obvious question but: is there any field on that layout that has a value list set up?
Create an account or sign in to comment