1st iOS App starting to work - but mechanics question

Ok, I’ve got a very basic app almost working.

My opening screen is a “Split” on an iPad Pro. The left part opens vCustomerTable and the right part opens vCustomerDetail.

Using Eddies Electronics as a guide, the Table side pushes to the detail view when an item is clicked - and it works fine in my app. However, I want to display the related customer detail to display in the right side of the screen instead of Pushing to a detail view in the left.

How do I load the display fields of the detail and then display it in the right side split?

thanks

To display things in the right side of the split, use iOSView.ParentSplitView.Detail. Something like this:

Dim detailView As MyDetailView Self.ParentSplitView.Detail = detailView

The XojoNotes example might be a good example to look at to see how it is done.

Also see iOS Split Screen in the User Guide.

If your app is intended for both iPad and iPhone, then something like this (with some examples of modifying the view):

[code] If Self.ParentSplitView <> Nil Then 'iPad
Dim armordetails As New ArmorDetailView
Self.ParentSplitView.Detail = armordetails

// Use Model as Title
ArmorDetailView(Self.ParentSplitView.Detail).Title = CompletedArmor(row).Model
// Populate view data
ArmorDetailView(Self.ParentSplitView.Detail).LongNameLabel.Text = CompletedArmor(row).LongName
ArmorDetailView(Self.ParentSplitView.Detail).AxLabel.Text = CompletedArmor(row).Ax

Else 'iPhone
Dim armordetails As New ArmorDetailView

// Use Model as Title
armordetails.Title = CompletedArmor(row).Model
// Populate view data
armordetails.LongNameLabel.Text = CompletedArmor(row).LongName
armordetails.AxLabel.Text = CompletedArmor(row).Ax

Self.PushTo(armordetails)
[/code]