Move methods and filtering


Author
Message
Tim Dol
Tim Dol
Advanced StrataFrame User (666 reputation)Advanced StrataFrame User (666 reputation)Advanced StrataFrame User (666 reputation)Advanced StrataFrame User (666 reputation)Advanced StrataFrame User (666 reputation)Advanced StrataFrame User (666 reputation)Advanced StrataFrame User (666 reputation)Advanced StrataFrame User (666 reputation)Advanced StrataFrame User (666 reputation)
Group: Forum Members
Posts: 340, Visits: 1.4K
I'm not sure if I'm doing something wrong or discovered a small bug.

I have two related business objects on a form, Tasks and TaskPredecessors.  I'm using 'MatchCurrentRow' on the ChildFilterRowMethod.

I am executing a routine to populate the 'Tasks' BO based on data from a temporary business object.   Basically iterating through the temporary BO and creating new rows in the 'Tasks' BO.   This works fine.

Once this routine has completed, I need to populate the 'TaskPredecessors' based on information in the Tasks BO. Basically I am creating dependencies between the tasks.

I am using a similar approach of iterating the Tasks BO...If MoveFirst... MoveNext..  and creating new rows in the TaskPrecedessors BO, however I am getting an error on the NewRow  (Index 0 is either negative or above rows count).

I discovered that the Tasks filter property isn't changing as I iterate through the BO. The property holds the value of the last row from the initial population. 

Should the Move methods be changing the filter property according to the parent primary key?

Thanks,

Tim

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