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



Unable to populate strataframe listviewExpand / Collapse
Author
Message
Posted 08/30/2008 2:50:29 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 12/20/2008 1:55:52 PM
Posts: 149, Visits: 206
Hello All.

I created a business object to retrieve all the lookup categories in my lookup_hdr table called BOLookupCategories. It has a method called GetAllCategories with this code:

public void GetAllCategories()

{

SqlCommand loCommand = new SqlCommand();

loCommand.CommandType = CommandType.StoredProcedure;

loCommand.CommandText = "prcGetLupHdr";

this.FillDataTable(loCommand);

}

I then dropped a strataframe listview on to my windows form and set its properties as follows:

BusinessObjectType: BOLookupCategories

Method to Execute: GetAllCategories()

Tag Field: luphdr_pk

When I run the form, my listview shows up empty. No errors. When I step through the code, it shows me that my business object is getting populated. This should be dead simple. So what stupid thing am I doing wrong?

TIA.

Marcia

Post #18855
Posted 08/30/2008 4:32:25 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 12/20/2008 1:55:52 PM
Posts: 149, Visits: 206
Never mind - I gave up and decided to use a combo box instead and I have that working.

Thanks anyway

Post #18857
Posted 08/30/2008 9:13:44 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 @ 7:53:31 PM
Posts: 760, Visits: 3,283
Hi Marcia,

Even though you will not be using a ListView, I think what you may have missed is the PopulateOnFormLoad value of the listview and you will need at some point to requery the listview to show the data.

Take a look at the StrataFlix sample application in the sample forums to see a couple of sample of how to use the ListView properly.  Also make sure you are running the latest beta 1.6.5.3 posted in the Released forum, it is pretty stable and have many enhancements for the ListView.

 
Post #18860
Posted 09/01/2008 7:30:12 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 @ 6:28:13 PM
Posts: 842, Visits: 11,854
Hey Edhy!

Just clarifying... isn't it 1.6.6 the latest beta released?

Post #18869
Posted 09/01/2008 10:43:13 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 @ 7:53:31 PM
Posts: 760, Visits: 3,283
Hi Ivan,

Yes, suppose to be, but when installed, what I get as a version is  1.6.5.3, what version does the SF shows for you?



 
Post #18876
Posted 09/02/2008 9:56:47 AM
StrataFrame Team Member

StrataFrame Team Member

Group: StrataFrame Users
Last Login: 12/23/2008 11:10:40 AM
Posts: 232, Visits: 511
The .dlls will show that since we haven't moved to "Production" in the build yet. But it is the 1.6.6 release .
Post #18898
« Prev Topic | Next Topic »


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 8:00pm

Powered by InstantForum.NET v4.1.4 © 2009
Execution: 0.125. 10 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.