I am using an image album to store photos and bio information for some of the professionals in my company. My goal is to write a user control to display these and offer some advanced functionality that I can't get out of just displaying them in a modified image library in SF. I am binding to a repeater right now as I get familiar with utilizing Fluent. Everything works perfect until I try to access the data values in custom fields I have set up. Below is the code I am using...
Me.rptrTest.DataSource = App.WorkWith().Images().Get().ToList().Where(Function(w) w.Status =
ContentLifecycleStatus.Live And w.Album.Title.Value = "Investment Management Professionals" And
The above code is supposed to filter images, based on what will ultimately be a string parameter fed from another control on the page, against a custom field I have added and stored data in called "ProfessionalName". In this case, I have statically plugged in the letter "K". When trying to run this, the error I receive is:
"Object Reference Not Set To An Instance of an Object."
I know for certain that the custom field I am trying to access exists. If I substitute my custom field name with a built-in fieldname like "Title", I can get it to filter and work correctly. Can someone please help me out here? I'm very new to Fluent and I'm not versed well in C#, so please excuse my use of VB.
Thanks much in advance!