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


««12

Adding a custom column to a listviewExpand / Collapse
Author
Message
Posted 11/16/2006 1:51:03 PM


Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: StrataFrame Users
Last Login: Today @ 11:09:21 AM
Posts: 658, Visits: 27,050
does this work for you?

I tried to get around it but I still need to be bale to capture the value of the column.

This wont go away for me and I have tried many many things.

I have the code copied directly from the help files. It also crapped out on me in a test winform.
Post #4559
Posted 11/16/2006 2:09:12 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 10:13:07 AM
Posts: 4,799, Visits: 4,768
Keith,

I have just scanned through this post and I don't think this has anything at all to do with a ListView (or the web for that matter).  Either the business object in e.BusinessObject is not the movesBO or there is more than one visible assembly of the BO library (i.e. registered in the GAC or something).

First, if you place a break point on the line that fail (from your screen shot), before you step through that line, place the e.BusinessObject in the watch...what is the type?  Does it appear to be correct?

That is the first thing I would look at.

Post #4560
Posted 11/16/2006 2:22:55 PM


Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: StrataFrame Users
Last Login: Today @ 11:09:21 AM
Posts: 658, Visits: 27,050
I think your onto something.... here is my watch.

movesBO is the Business Object class
movesBO1 is the instance of movesBO declared in ApplicationBasePage for the site to use

I hope this helps........

I thought I had it and tried to DIM loBO as movesBO1, but it didn't like that either.

Thanks for looking.......

  Post Attachments 
watch.jpg (32 views, 44.15 KB)
Post #4562
Posted 11/16/2006 2:33:04 PM


Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: StrataFrame Users
Last Login: Today @ 11:09:21 AM
Posts: 658, Visits: 27,050
Related question.....

Is there a way to do grouping within the ListView in the webforms version of the control?
Post #4565
Posted 11/16/2006 2:38:14 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 10:13:07 AM
Posts: 4,799, Visits: 4,768
Well, it is hard for me to tell via the image.  The watch window appears to be OK.  I know that the type looks different, but technically they should both be BusinessLayer classes.  If you try to CType the e.BusinessObject in the watch window, does it give you any more information?  Also, when it throws up in on the CType line, open up the details and look at all of the inner exceptions to see if there is something else in the formula.

Is there a way to do grouping within the ListView in the webforms version of the control?

Not at the moment...other than...a second list view

Post #4566
Posted 11/21/2006 10:03:18 AM


Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: StrataFrame Users
Last Login: Today @ 11:09:21 AM
Posts: 658, Visits: 27,050
I see this is the exception detail on the CTYPE of the BO exception, mean anything to you?

In order to evaluate an indexed property, the property must be qualified and the arguments must be explicitly supplied by the user.
Post #4697
Posted 11/21/2006 10:09:21 AM


Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: StrataFrame Users
Last Login: Today @ 11:09:21 AM
Posts: 658, Visits: 27,050
I was able to get this working by not casting the e.Businessobject to my BO at all and using:

e.Values(3).DisplayValue = e.BusinessObject.CurrentRow.Item(0) to populate the row.
Post #4698
« Prev Topic | Next Topic »

««12

Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 11:36am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.125. 13 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.