Jump to content

AvailableVLs does not work?


This topic is 6295 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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 by Guest
Link to comment
Share on other sites

  • 3 weeks later...

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

  • 2 weeks later...
  • 4 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.