Custom business Binding Source


Author
Message
Paul Chase
Paul Chase
Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)
Group: Forum Members
Posts: 414, Visits: 2.8K
Just looking at this, is it not supposed to show up as a toolboxitem? I am going to work on integrating this into my report engine today and that is the first thing I noticed.
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
By default, no.  You will want to add the ToolboxItem attribute to the classes that you create that you want to show up in the toolbox.

<ToolboxItem(True)> _
Public MyClass
    Inherits MicroFour.StrataFrame.Business.BusinessBindingSource(Of MyBOType)

End Class


Paul Chase
Paul Chase
Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)
Group: Forum Members
Posts: 414, Visits: 2.8K
Got it.. I had to add a custom attribute as well and for whatever reason VS wouldn't show it in the toolbox until i restarted VS i guess because i had just added the custom attribute class VS needed to reload I got no error or anything.  Well it works like it should now the custom BBS looks promising will let you know if i hit a wall , thanks
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Sounds good Smile
Charles R Hankey
Charles R Hankey
Advanced StrataFrame User (940 reputation)Advanced StrataFrame User (940 reputation)Advanced StrataFrame User (940 reputation)Advanced StrataFrame User (940 reputation)Advanced StrataFrame User (940 reputation)Advanced StrataFrame User (940 reputation)Advanced StrataFrame User (940 reputation)Advanced StrataFrame User (940 reputation)Advanced StrataFrame User (940 reputation)
Group: Forum Members
Posts: 524, Visits: 30K
For lurkers



- for the attribute _ to work you must either import systems.componentmodel



or set the attribute as _



The component should appear after a rebuild unless there is another instance of VS open.



Paul Chase
Paul Chase
Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)
Group: Forum Members
Posts: 414, Visits: 2.8K
Hi Charles you are right about the toolbox visible attribute it lives in component model and thus i would need to import or directly reference that assembly to get that attribute to work. But I dont think the issue with the component not appearing was from not importing or referencing component model which i did Smile, I created a custom attribute that was housed in a seperate asembly in my solution for whatever reason VS would see everything fine i..e no compiler errors etc, but the component would not show up until I restarted VS. I'm 99% positive that the issue was due the the custom attribute being just recently added to the solution during that same session VS gets silly about things like that sometimes and make you go crazy so I restarted it and everything worked as it supposed to. I guess because the custom attribute was causing some kind of a problem the toolbox attribute was never getting evaluated thus no item in my toolbox.
Charles R Hankey
Charles R Hankey
Advanced StrataFrame User (940 reputation)Advanced StrataFrame User (940 reputation)Advanced StrataFrame User (940 reputation)Advanced StrataFrame User (940 reputation)Advanced StrataFrame User (940 reputation)Advanced StrataFrame User (940 reputation)Advanced StrataFrame User (940 reputation)Advanced StrataFrame User (940 reputation)Advanced StrataFrame User (940 reputation)
Group: Forum Members
Posts: 524, Visits: 30K
I guess I should have mentioned my comment was only meant in keeping with my new policy of blurting out any blatantly obvious thing I find BigGrin hoping some lurker who hasn't run across that one yet might benefit from it. I would encourage others to do the same. ( I am also hoping it will benefit me when i forget i knew that and do a forum search for an answer - anybody read Sirens of Titan ? )



I benefited from your thread being here as the custom business binding source was shown in class last month, I thought I understood what was going on, then when I got home I couldn't find an example in the class examples, didn't see it in the toolbox and thought I might have dreamed the whole thing. (there was a lot of material to absorb)



Then while reading your question it hit me we were talking about adding a component to the solution and the wizard would set it up. I am still very new to this so I am looking for an example of where to use this outside of reporting.



I'm searching the help and forum and now for other posts on this, but if anyone has custom business binding samples, suggestions or tips feel free to throw them in here ...



Charles R Hankey
Charles R Hankey
Advanced StrataFrame User (940 reputation)Advanced StrataFrame User (940 reputation)Advanced StrataFrame User (940 reputation)Advanced StrataFrame User (940 reputation)Advanced StrataFrame User (940 reputation)Advanced StrataFrame User (940 reputation)Advanced StrataFrame User (940 reputation)Advanced StrataFrame User (940 reputation)Advanced StrataFrame User (940 reputation)
Group: Forum Members
Posts: 524, Visits: 30K
Trent, how did you format the code block with the attribute in your message above? I tried quote codesnippet and double bracket and didn't get any content ??
Dustin Taylor
Dustin Taylor
StrataFrame Team Member (660 reputation)
Group: StrataFrame Users
Posts: 364, Visits: 771
You have to use "& lt;" (without the space) and "& gt;" (without the space) to get it to put the angle brackets. Otherwise it strips them Smile
Charles R Hankey
Charles R Hankey
Advanced StrataFrame User (940 reputation)Advanced StrataFrame User (940 reputation)Advanced StrataFrame User (940 reputation)Advanced StrataFrame User (940 reputation)Advanced StrataFrame User (940 reputation)Advanced StrataFrame User (940 reputation)Advanced StrataFrame User (940 reputation)Advanced StrataFrame User (940 reputation)Advanced StrataFrame User (940 reputation)
Group: Forum Members
Posts: 524, Visits: 30K
< Cool! >




Thanks, Dustin Smile
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search