mcyrulik Posted December 1, 2006 Share Posted December 1, 2006 (edited) 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, 2006 by Guest Link to comment Share on other sites More sharing options...
Wim Decorte Posted December 17, 2006 Share Posted December 17, 2006 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. Link to comment Share on other sites More sharing options...
mcyrulik Posted December 27, 2006 Author Share Posted December 27, 2006 I tried it with the set layout step uncommented, but I still get the same error. Link to comment Share on other sites More sharing options...
Wim Decorte Posted December 29, 2006 Share Posted December 29, 2006 It's an obvious question but: is there any field on that layout that has a value list set up? Link to comment Share on other sites More sharing options...
mcyrulik Posted January 25, 2007 Author Share Posted January 25, 2007 Yeah there are a couple. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6295 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now