StrataFrame Forum

Childformdialog and BOTranslations

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

By Geoff Hirst - 4/1/2008

Evening Chaps,

If I have a CFD, with a WIDGET business object that is then translated from ParentX to ChildY, when the WIDGET is used on ChildY, should I expect to have the currentrowindex in the same place on the child as it was on the parent?

If it should, It's not and I could do with any ideas as to what I might be doing wrong. If it shouldn't then great, it's working like it should and my workarounds can stay where they are.

thanks

Geoff.

By Ivan George Borges - 4/1/2008

Afternoon Geoff.

Are you going to the Child from choosing a row in a ListView in the Parent? have you made sure you are in the row you would like to? Something like:

Me.WIDGETBO.SeekToPrimaryKey(Me.MyListView.SelectedItems(0).Tag)

And then, calling your ChildForm?

 

By Trent L. Taylor - 4/1/2008

I am a little confused as to what you are trying to do.  But Ivan's example will always work.  The only time that you can expect the row to be automatically navigated or on the correct record is if you are using the ChildFormDialog control to translate BO1 to BO2, are using the AutoChildFilterOption (which would just navigate to the first item), or are using a MaintenanceFormToolstrip and using the IncludeInForm options to navigate the BO.  One other option would be if you are using a grid and have selected the row.  Past that, you will have to navigate or move the row index yourself.