StrataFrame Forum

SampleCRApplication Problem

http://forum.strataframe.net/Topic9758.aspx

By Rogerio Mauri - 6/22/2007

It uses the SampleCRMApplication example to reproduce the problem.

I intend that lstCard sorts the registers for the column to cc_CardNumber.

Then, I modified the "Private Sub EditCreditCard()" including CustomerCreditCards.Sort = "cc_CardNumber" after lstCards.Requery()

When you edit or include a register from the CreditCardEditor form the lines of lstCards you start to present given incorrect, demonstrating that, of some form, sort affected the routine. Remembering, an option luck is important.

It includes some registers and later it edits the line to understand the problem better.

It forgives me if the translation of the Alta Vista is not if making to understand.Wink

By Rogerio Mauri - 6/22/2007

Applying a filter (CustomerCreditCards.Filter = "....") the error also occurs.
By Rogerio Mauri - 6/22/2007

In the SampleListViewPopulation example I found as to classify columns in the ListView.

Tks!!! BigGrin

By Ivan George Borges - 6/23/2007

Hi Rogerio.

Guess you are fine now... Wink

By StrataFrame Team - 6/25/2007

Yeah, when you are editing data within a business object, it's recommended to turn off any filters or sorts because the business object will change it's CurrentRow as the data within the sorted column changes.  The CurrentRow property doesn't have a backing field... it's just a wrapper that returns CurrentView(CurrentRowIndex).  So, since the row index is static as the data changes, the CurrentRow will pull different rows because the rows are being reordered/filtered.