NetTalk Central

Author Topic: Child Browse to the right of Parent Form  (Read 2949 times)

springguy

  • Full Member
  • ***
  • Posts: 195
    • View Profile
    • Email
Child Browse to the right of Parent Form
« on: May 20, 2014, 03:32:40 AM »
NT 7.35
I have a form with data from a parent file, and would like to display a browse of the child records filtered for that specific parent in the form, but I need the child browse to appear to the right of the form fields.  So, the effect is the parent data fields on the left of the screen, and the child browse with the relevant entries to the right of the form.

If I add the browse to the form's list of "fields" the browse appears below the form fields.  How do I get the browse to the right of the form fields instead of below the fields?

Thanks,
Mike Springer

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Child Browse to the right of Parent Form
« Reply #1 on: May 20, 2014, 05:41:07 AM »
this is a bit cunning. It goes something like this;

a) set the first field on the form to be "Not last in line".
b) set the browse to be the second procedure on the form. (ie it's going to appear to the _right_ of the first field.)
c) For the browse form field, set the "span Rows" to be a number - where that number if the total number of form fields on the left.

So, for example;
Name <-- Last on Line set to no, Last in Cell set to Yes.
Browse <--Span Rows set to 3
Age
ID

Cheers
Bruce

springguy

  • Full Member
  • ***
  • Posts: 195
    • View Profile
    • Email
Re: Child Browse to the right of Parent Form
« Reply #2 on: May 21, 2014, 01:51:32 AM »
Bruce,
More than Cunning, that is AWESOME!
It works perfectly for my needs.

One additional "flavor" to this - since the browse is a "field" on a tab, in a multi-tab form, is there a way to get this same effect, but so the browse is visible regardless of what tab is selected on the form?  I assume that I could just add the browse to each tab, and that would probably work fine.  Is that what you would recommend for this in a multi-tab form environment?

Again- AWESOME!

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Child Browse to the right of Parent Form
« Reply #3 on: May 21, 2014, 08:12:08 AM »
if I wanted it so the tabs were on the left and the browse on the right, then I'd likely move up one level,
create a "memory form" which contains the Form (on the left) and the Browse (on the right).
Quite a different approach, but do-able I think.

cheers
Bruce