Jump to content
mgm75

Text field with auto numbered lines

Recommended Posts

I'm taking on a client the has been using MS Word.Obviously with word you can auto number lines. In their reports that go to another agency they are required to have a text narrative where each line in numbered. i.e.

1. something here is writen

2. by the user and it could go

3. on for several pages.         

 

how can this be accomplished ?  

 

Share this post


Link to post
Share on other sites

In what format is this report? And by "line" do you also mean lines created by automatic wrapping of the text?

Edited by comment

Share this post


Link to post
Share on other sites

Yes, this includes wrapping text lines. IT really needs to print this way. it a police report that has to go to court. 

Share this post


Link to post
Share on other sites

I would prefer not to do this within Filemaker and look for a way to export the text to another application (e.g. Word) that can do it more elegantly.

The real problem here is not line numbering, but line breaking. Filemaker has no idea where the automatic line breaks are - so if you want to number the lines yourself, you also need to break them yourself. And your tool set for this task is severely limited, because the most you can do is count the characters. That's woefully inadequate when dealing with a proportional font.

If you do decide to go this way, I would suggest you do the line breaking and numbering only at the end, and in a separate field. Otherwise you will run into problems if the user wants to edit the original text.

If you have the Advanced version, you can utilize two existing custom functions: Abscind() by Ray Cologon and LineNumbering() by Daniele Raybaudi for this. I am attaching a simple demo showing how (with a slight modification to the latter). Otherwise you will have to rewrite them as looping scripts (or get someone to install the custom functions for you).

 

NumberedLines.fp7

Edited by comment

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Who Viewed the Topic

    2 members have viewed this topic:
    reynir  DavidTO 
×

Important Information

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