Text flow into one or two column text boxes depending on the number of text lines

Question InDesignCS3
Is it possible to let text flow into one or two column textboxes depending on the number of text lines?
Example 1)
--Default text box--|
| Text line 1 |
| Text line 2 |
| Text line 3 |
| Text line 4 |
------------------- |
If there are more than 4 text lines in the in the text box, this box has to become a two column box. like example 2
example 2)
|Text line 1 | Text line 4 |
|Text line 2 | Text line 5 |
|Text line 3 | Text line 6 |

if (myTextFrame.lines > 4) {
myTextFrame.textFramePreferences.textColumnCount = 2;
} else {
myTextFrame.textFramePreferences.textColumnCount = 1;

Similar Messages

  • Learning to use lookup transformation - match value in one of two columns

    Im a little new to using lookup transforms.  Been reading a bit, but using two columns is throwing me off.
    Have a dataflow with the source having a column I want to use to lookup in a table in another DB.  The match could be in one of two columns in that table.  
    If a match is found, I need a different value from the lookup table added to the source flow that is going into the destination.
    How can I match on one of two columns in the lookup table, and use a totally different column added to the final input going into the destination ?  
    In the Lookup configuration, I can set the lookup operation to replacing the value in the source, but I want EITHER value match from the two columns from the lookup table to go into the value that will go into the destination.
    With TSQL - I would use a case statement and compare the source column to BOTH of the lookup table columns.

    You can handle this within single lookup using below query
    SELECT CASE WHEN <condn1> THEN Field1 ELSE Field2 END AS lookupField,
    CASE WHEN <condn1> THEN Field3 ELSE Field4 END AS MatchField
    FROM Table2
    Then just do single relationship with LookupField and select MatchField to be aded to output
    the condition will specify your fields value condition based on which you determine which column to be matched against
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • I apparently have more than one Apple ID.  So, 1) how do I find out how many different ones exist, and 2) how can I consolidate them into one or two?

    I have inadvertenly created two or more different Apple IDs.  How can I learn all the different IDs associated with my email accounts or my name?  How can I consolidate the different IDs into one or two?

    Go to https://iforgot.apple.com/ and click the blue link "Forgot your Apple ID?"
    It will result a page in which you can provide some contact information that may possibly find an existing Apple ID.
    How can I consolidate the different IDs into one or two?
    This cannot be accomplished.

  • How to count the number of text boxes that are data entered

    How to count the number of text boxes that are data entered in visual basic form.

    Here is an Iterator that expands on my previous response:
    ''' <summary>
    ''' Iterator for form controls
    ''' </summary>
    ''' <param name="onlyControlsOfType">specify type if a certain type of controls needed</param>
    ''' <param name="onlyTopLevel">if true don't search containers within the form</param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Private Iterator Function AllControls(Optional onlyControlsOfType As Type = Nothing, _
    Optional onlyTopLevel As Boolean = False) As IEnumerable(Of Control)
    Dim ctrl As Control = Me.GetNextControl(Me, True)
    Do Until ctrl Is Nothing
    If onlyControlsOfType Is Nothing OrElse ctrl.GetType = onlyControlsOfType Then
    If TypeOf ctrl.Parent Is Form OrElse Not onlyTopLevel Then
    Yield ctrl
    End If
    End If
    ctrl = Me.GetNextControl(ctrl, True)
    Loop
    End Function
    Some sample uses:
    For Each
    For Each c As Control In AllControls()
    Debug.WriteLine(c.Name)
    Next
    List of all controls, including controls in containers i.e. Groupbox
    Dim l As List(Of Control) = AllControls().ToList
    List of all Textbox controls, including Textboxes in containers i.e. Groupbox
    l = AllControls(GetType(TextBox)).ToList
    List of all Textbox controls, don't include Textboxes in containers i.e. Groupbox
    l = AllControls(GetType(TextBox), True).ToList
    'Those who use Application.DoEvents() have no idea what it does and those who know what it does never use it.'  JohnWein
    Multics
    My Serial Port Answer

  • Place Cursor not showing the (#) number of text files loaded

    Hi all,
    I´m using Indesign CS3, updated to the latest patch availabe, this is 5.0.4. I´m using Windows 7 32b.
    When trying to import text files via File > Place and I select 2 o more text files and click OK, the Place Cursor should show in parenthesis the number of files loaded right?. Well the bizarre issue I´m dealing with is that this (#) doesn´t show up. I can see the little preview of the text to be imported but not the (#) number of text files loaded. If I press the down arrow key on the keyboard the mini text updates and cicles through all the loaded texts. That's fine.
    I wanted to screen capture this issue so I installed Techsmith Snagit 9 on my computer. When I was ready to capture the Place Cursor on Indesign, Snag it captured it showing (2) documents loaded. ???? What´s going on?
    Anyone could explain this issue?
    I´ve already rebuild my Preferences with no luck.
    What I see in Indesign http://img214.imageshack.us/img214/1774/whatiseeinindesign.jpg
    What I see after the screen capture with Snag it 9 http://img299.imageshack.us/img299/6001/screencaptureinsnagit.jpg
    Thanks for your help.
    Francesc.

    I use jdk1.5 on Xp. Ok, I'll check it again

  • My head phone jack isn't working. Only works with the new headphones that have three rings at the bottom. My regular ones with two rings don't work with the computer anymore. Anyone know a fix?

    My head phone jack isn't working. Only works with the new headphones that have three rings at the bottom. My regular ones with two rings don't work with the computer anymore. Anyone know a fix? Ive tried reseting my computer and that didnt work

    Get the new keyboard at eBay and replace by yourself may be cheaper way, though you're required higher skill and well know about MacBook Air.
    http://www.ebay.com/sch/i.html?_from=R40&_trksid=p2050601.m570.l1313.TR0.TRC0.H0 .Xmacbook+air+2011+keyboard&_nkw=macbook+air+2011+keyboard&_sacat=0
    https://www.youtube.com/watch?v=gLbasVD69xo

  • When you try to log into icoud message goes on this iphone activated limit the number of free accounts. What to do? How to register in icloud???

    When you try to log into icoud message goes on this iphone activated limit the number of free accounts. What to do?
    How to register in icloud???

    Thanks for the help!
    Unfortunately, the proposed option does not help you, as before when trying to check in icloud you see the same. Just not when you try to turn on Face Time the message "Waiting for activation" and all, Face Time icon on the desktop is not ...
    Please help!
    Thank you in advance!!

  • How to link two text boxes so that text flows from one to the other.

    In Adobe Acrobat XI Pro,  I have managed to link two text boxes with JavaScript.
    I have deselected the "scroll long text" and selected auto text size.
    I have entered the script into the "custom keystroke script"
    if ( event.fieldFull || event.willCommit ) this.getField("Details2").setFocus();
    Now my problem is this works for IE but I can't get it to work with adobe reader or pdf expert on iPad.
    I need my forms to work with both, windows & ios.
    Any suggestions?

    See the following article:
    JavaScript - setFocus Method for tabbing to next form field
    And see if iOS can even handle the sample form.
    iOS and android devices are not a powerful as your desktop of laptop computer and have limited support for JavaScript within PDF forms. This limitation for specific apps ranges from none to quite a bit but not all JavaScript.

  • How can I make a form where text flows from one line to another?

    I have created a fillable multi page form in Adobe Acrobat Pro XI. The form was originally created in InDesign, using lines for text. I saved as an interactive pdf, opened in Acrobat Pro, and created a form using the "Create Form" function. This worked great, but some parts of the form have multiple lines that need to be filled out, so the customer would continue typing and the type would flow from one line to the next. Right now the lines are individual fields. Can I easily convert these fields so that the text goes from one line to the next as the person filling out the form types?
    Thank you for the help.

    The easiest way is to do a slight redesign to get rid of the lines and then use a multiline field instead of multiple single line fields. If you really need to have the lines, you can use an approach that's demonstrated in the following sample: https://workspaces.acrobat.com/?d=AG6oZ3bi3DYHokxDPeWN7A
    You may come across attempts to use JavaScript to automatically move to the next field when the previous one is filled-up, but I've never seen this work very well.

  • Text rolls down one or two lines

    Text will roll down one or two lines after changing screens for a brief period.

    try to [https://support.mozilla.org/en-US/kb/troubleshoot-extensions-themes-to-fix-problems#w_turn-off-hardware-acceleration Turn off hardware acceleration] (it is in the same session, Browsing session)
    thanks again

  • Text is selected one or two lines away from where cursor is located

    I'm viewing a PDF in Adobe Digital Editions 4.0, and when I try to select text, it actually selects text 1-2 lines off from where the cursor (I-bar) is located.  This makes highlighting text extremely difficult.  The PDF was created in Acrobat from a .docx file.  I've also tried creating the PDF from MS Word for Mac 2011.  Same problem.
    If I try opening the very same PDF file in Adobe Reader, the cursor highlights text just fine.  If I open it in Preview, it works fine too.  Just won't work in Adobe Digital Editions.
    System:  Mac OS 10.10 Yosemite

    You say your Powerbook but your profile indicates a MacBook Pro. Sounds more like a hardware issue than anything else. Post over in the hardware forum area of the Mac you have.

  • TS2755 How come I cannot send or receive text messages from one of my contacts yet I can call the person from teh same number?

    I have tried to send a text message to one of my contacts but it is never received and I am told they have sent me texts that I have never received.  We both have the correct tel numbers in the contact info. The message shows as sent in green.  Any ideas why or how to fix this.  I already have the most up to date iOS in the phone (iPhone 5).

    Contact your carrier. SMS messaging is completely reliant on the carrier.

  • Need to change color of one column's value depending on the other column

    Hi,
    i have a search form which displays two column values
    First column value's colour should be based on second column's value
    For example, if second column has values 'Active', 'Inactive' and 'Pending'
    If 'Active' , the first column value's color sholud be 'red'
    If 'inacitve, another color ....
    Thanks in advance,

    Hi!
    What we did was we added a column on the VO that returns kind of a css part (for example if a column value is 'Active' the value of this column should be "background-color:rgb(255,0,0);")
    Than you use something like this on your column:
    inlineStyle="#{row.StatusStyle}"where StatusStyle is the name of the column with "background-color:rgb(255,0,0);" value.
    The problem here can be that the background color doesn't cover the whole column but only the text in it (so if it is null, the color is default).
    If you want the whole column to be of this color you use something like this:
                                        <af:column ...>
                                          <afh:tableLayout ...>
                                            <afh:rowLayout ...>
                                              <afh:cellFormat inlineStyle="#{row.StatusStyle}" ...>
                                                <af:outputText ...>
                                                </af:outputText>
                                              </afh:cellFormat>
                                            </afh:rowLayout>
                                          </afh:tableLayout>
                                        </af:column>Basically you put another table layout inside a column instead just a outputText (or whatever control you use)
    Hope this is understandable and it helps :)
    It works for us.
    BB

  • How to concanete two text fields into One in Report?

    Hii,
    I have used two charactersitics - ZLTEXT1 and ZLTEXT2 which is an attribute of Master - Zobject.The character length of ZLtext1 and ZLtext2 are 60.Both these objects carry long text description entered in R/3 which is off 100 characters and i have extracted in BW using two infoobjects.How do i concatenate both these objects in report so that the text description gives a meaning.
    Regards
    Nethaji

    Hi Nethaji,
    Did you have a look at these blogs by Eugene Khusainov.
    Long texts in SAP BW: Modeling
    /people/sap.user72/blog/2006/05/27/long-texts-in-sap-bw-modeling
    /people/sap.user72/blog/2006/06/03/long-texts-in-sap-bw-modeling-150-follow-up
    Long Texts in SAP BW: Displaying in BEx Analyzer. Introduction to Excel Workbooks Formatting
    /people/sap.user72/blog/2006/06/05/long-texts-in-sap-bw-displaying-in-bex-analyzer-introduction-to-excel-workbooks-formatting-part-i
    /people/sap.user72/blog/2006/06/05/long-texts-in-sap-bw-displaying-in-bex-analyzer-introduction-to-excel-workbooks-formatting-part-ii
    Hope this helps.
    Regards,
    Hari

  • E-mail typed lines appear full when sent but upon reply they are broken into one or two words per line.

    Why do my e-mail messages to people appear to have full lines when I send them but when they reply, the "full lines" are broken up with one word on a
    single line?

    Dear Friends,
    E-mail messages sent, are received not in the paragraph-form as sent, but are broken-up into small segments, one line finely printed, the next line may appear with two or three words printed on it, then the next line will show a few words at the end of it, while the next line appears as the start of another paragraph, and so on and on and on. So that the original message, although sent in the one paragraph-form, winds up being received as several paragraphs, each broken up into several segments. My contacting Apple has produced no solution thus far. I am new at this computer
    business and would greatly appreciate any help you can give me on this score. Thanking you in advance for your interest and kind help.
    Yours Truly,
    Broduff.

Maybe you are looking for

  • Error in calling a package (What I'm I'm doing wrong)

    Error starting at line 1 in command: declare RETCODE NUMBER; ERRBUF VARCHAR2(200); P_BUSINESS_GROUP_ID NUMBER; BEGIN P_BUSINESS_GROUP_ID := NULL; execute xxghx_sucess_factors.load_sf_data(retcode,errbuf,p_business_group_id); END; Error report: ORA-06

  • Why doesn't "show service-policy url-summary" work?

    Does any one know -- At Cisco Live this year -- this command was shown as an Option to see the number of hits on L7 class maps urls. It's not an option for me:  Running A3 (2.5) Thanks, From A2 documentation  (maybe this command was dropped from A3 -

  • Massive copy of BW transformation between different source system

    Hi all, in my BW I have different source systems. I have mapped several objects to one source system. Now I need to copy all the transformation to other source systems. These source system are different instance of ECCs, there are the same extractor

  • Did I misunderstand the CS5 upgrade path.

    I have CS3 Design Premium. Trying to install the CS5 upgrade ,( just Photoshop). But "a qualifying product cannot be found". 10.6.4

  • Cold Backup on windows Server

    Hi All; OS: Windows DB: 10.2.0.3 I am trying to schedule a cold backup, I was wondering if I can just down the oracle database service and then directly copy the files using copy command and post the completion of copy of the files I will up the orac