Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Another Print from Muliple Tables Question...

Featured Replies

Hey, guys. I apologize in advance for this. I know its been covered before, I just can't seem to find a solution that works.

Here's a quick rundown. My company books video production jobs. For these jobs, we provide equipment and crew. Some of the equipment is owned, some is rented. One job can have multiple rental items from multiple vendors. Equipment has a category (ie: camera, lighting, audio, etc.) Crew members have a job title assigned (eg: director, cinematographer, Sound) I'm having trouble figuring out how to print all of this information.

My table structure goes like this:

JOBS > LINES_GEAR (what we own) > GEAR

JOBS > LINES_RENTALS > RENTAL_GEAR ; also from LINES_RENTALS > VENDORS

JOBS > LINES_CREW > CREW

I need to print an Equipment Sheet for each job that sorts in the following order:

Job Number

Gear

-Our Gear

-Gear Category

-Rental Gear

-Vendor

-Rental Gear Category

Crew

-Job Title

For the life of me, I cannot figure out how this would work. Any suggestions would be most welcome.

Why don't you combine the two tables LINES_GEAR and LINES_RENTALS into one?

I have a feeling I already said something along that line...

... ah, so I did:

you should make an effort to keep both types in the same table - even at the expense of having more fields than are required by any one type.

http://fmforums.com/forum/topic/82461-multiple-line-item-tables/page__view__findpost__p__382310

  • Author

*sigh* So you did indeed. That's what I get for not listening.

In the earlier thread, my question had been about the gear only, rentals vs owned...Would you recommend merging the LINES_CREW table as well? So, I'd only have one Line Item table that covers all gear and crew?

Probably not. But that's instinct speaking; properly, one should look at the functionality of the two tables.

  • Author

Ok. So, with the two equipment lines tables merged, how would I go about getting the crew data to the print layout?

Oops, I completely forgot why you posted in the first place...

One option is to print a portal to one of the tables - preferably the one that normally has less records (I am guessing that would be LINES_CREW). Or use a calculation field in the JOBS table to list the related crew.

  • Author

Sorry. Having trouble wrapping my head around this. How would a calculation like that work?

What fields do you have in the LINES_CREW table?

  • Author

In LINES_CREW I have the following:

kf_crewID

kf_jobsID

jobTitle

If you add an unstored calculation field cLabel (result is Text) =

jobTitle & Char ( 9 ) & CREW::FullName




then another calculation field in the JOBS table =




List ( LINES_CREW::cLabel )

will produce a nice little table for you.

  • Author

Cool trick. I can now add List() to my arsenal.

A couple of quick follow up questions. It looks like Char (9) is the unicode equivalent of the tab key?

Because the job titles all have different character lengths, nothing was aligning in a readable way. So, I made one set of calc fields for the job title, and one set for the full name. That helped me to quickly sort out the alignment problem. Just out of sheer curiosity, is there a more elegant solution to that problem?

Thanks for all your help. I bow to the master. :ninja:

Yes, Char ( 9 ) returns a tab. If you format the field (using Inspector > Appearance > Tabs > Tab Position) to have a single tab at a position large enough to accommodate the longest job title, it will all fall in place.

  • Author

Thanks. That worked perfectly.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.