Changing report layout based on criteria

Last one for the week I swear! =)

I have a report that summerizes a job with plugged information from the record.

The bottom portion of the page is mainly for invoiceing but the number of lines will change based on the selected client for the job.

So,
If client 1 is selected I would need to print 4 boxes (or blank fields with borders, whatevers easier)
but if client 2 is selected I would only need 1 displayed.

Each box would need its own label as well which varies between all 6 clients.

Thank go they just write this information out,  But they need the boxes in there to see whats being invoiced.

Make sense?
LVL 1
CruizectrlAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

lesouefCommented:
kinda sense...
I think I would use a dummy image representing a square box in a repeated container field, and show all 4 repetitions on the layout, then delete the unwanted subfields according to the amount of blank boxes you need. not really smart though.
0
ccazares67Commented:
You can create a Script that creates related records for you depending on the client you select.

Define a realtionship and do not allow to create related records through this relationship because the records will be already there.

Create a portal with the maximum number of boxes.

So, if client 1 is selected and you need 4 boxes you create 4 records in the related file or table and then you go to the layout where you have the portal. You will se only the records you need
0
CruizectrlAuthor Commented:
Am I creating 4 portals?  I'm sorry.. not used to working with them.
0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

lesouefCommented:
I think he meant only 1 portal, then 4 records in the related table
0
ccazares67Commented:
lesouef is right you only need 1 portal an the number of records needed for your current client.
0
CruizectrlAuthor Commented:
Alright.  I get the part of the portal.. But how do I change the labels per client?  Would I need a seperate form for each?
0
ccazares67Commented:
You only need one layout with a portal and the field with the client name.
You can use the same field where you store the client name and put that field in the layout, in the header or in the body. It will show the Client Name and in the portal will show the related records you need for that particular client.
0
lesouefCommented:
Let us know if you'd like an example file
0
CruizectrlAuthor Commented:
Yes.. Example file would be great.. Its Monday.  Any other day I might be able to figure this out.
0
lesouefCommented:
I have a fix for that too, witten in cshell/cmd/java/script/messed/alltogether
if ( current_day == (day_off + 1)) then
(
don't work
)
else (
ask the question to $EE_expert
endif )
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CruizectrlAuthor Commented:
That example helped a ton!  With the label thing, I created 4 fields and lined them up where the boxes would go and just ran a script to change them.  All is good!
0
lesouefCommented:
you wanted them horizontal I guess. ok then. too bad we can't rotate portals!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
FileMaker Pro

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.