Jump to content
Salesforce and other SMB Solutions are coming soon. ×

Sorted by page and calculated text


Russian_Laszy

Recommended Posts

Hey guys I have a report layout that sorts my records by company and a search layout with global fields for users to enter a date range for the report.

 

I was wondering if anyone had any ideas about how I could make a pop-up menu with each company and depending on which company the user selects, only that company is shown in the report (I also want it to be possible for the user to shift click multiple companies).

 

Also I want each company in the report to start on a new page and to have the company's name and date range in the header so it would read something like:

 

Sasazat Contracting [1/10/07 to 30/10/07]

 

for example.

 

Thanks.

Link to comment
Share on other sites

how I could make a pop-up menu with each company and depending on which company the user selects, only that company is shown in the report (I also want it to be possible for the user to shift click multiple companies).

 

Add a global field, called gCompany to your search layout. Display it as a pop-up. Assign it to a value list with the CompanyName field as the source. In Find mode, in addition to setting the date range, do something like this:

 

Loop

Exit Loop If gCompany is empty

Set Field CompanyName to RightValues ( gCompany ; 1 )

Set Field gCompany to LeftValues ( gCompany ; ValueCount ( gCompany) -1)

New Record/Request

End Loop

Perform Find

 

I hope that helps. It's much easier to show you in a demo file, but since you're not yet a member you would not be able to download the demo.

Link to comment
Share on other sites

Hey thanks I'll try it now. Don't go anywhere because sometimes I try and it doesn't work and the thread has been forgotten. Anyway sorry for talking, if I don't say anything after this it means it worked.

Link to comment
Share on other sites

Hey when I'm in ScriptMaker and I select CompanySearch (or gCompany as you call it) from the fields on the left of the calculation window, I get a funny message saying "The specified field cannot be found".

 

Also instead of putting it in as simply CompanySearch Filemaker puts it in as Reedy Creek::CompanySearch.

 

Why would it do this? I believe I am in the right table and it happens when I use the other table as well.

 

Please help!

Link to comment
Share on other sites

instead of putting it in as simply CompanySearch Filemaker puts it in as Reedy Creek::CompanySearch.

 

Why would it do this? I believe I am in the right table and it happens when I use the other table as well.

 

That's normal and correct. To the left of "::" is the table occurrence, to the right is the field name.

Link to comment
Share on other sites

Yes... thanks I guess. I think I should explain the problem that I am having now because I didn't explain it properly last time.

 

Reedy Creek::Company Search is empty

 

is what I have entered into the Calculation Field for the Exit Loop If statement. The error I get when I try and click Ok is:

 

The specified field cannot be found.

 

Why would it say this? Can you help?

 

Thanks

Link to comment
Share on other sites

I've tried changing the code to

 

Exit Loop If [isEmpty(Reedy Creek::Company Search)]

 

It allows me to actually put it in but it still doesn't work though. Cheers.

Link to comment
Share on other sites

This thread is quite old. Please start a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

Terms of Use