Linked Containers- ability to avoid orphaned text lines

Once again visiting the Pagination example.... Is there any
elegant way to avoid having orphaned lines from spilling over to
the next container. I would love to be able to indicate that a
paragraph should always have at least two lines in a single
container, or some other solution that is similar... maybe an
attribute on a paragraph or span that indicates,
"keepLinesTogehter".
I realize that I could do some sort of calculation on the
number of textlines after a container is updated, and then
essentially modify the paragraphs to have line breaks to force an
adjustment, but this seems like a real hack.
Any info is greatly appreaciated, and a solution would simply
make my day.
Thanks,
Tim
Anything?

I'm afraid that for now you are left with the real hack. I
think this would be a good feature, but its not trivial, especially
in an environment that supports editing.

Similar Messages

  • Text selection problem in linked containers

    Hi,
    I get a strange behavior on the selection of text in a textFlow with several linked containers (from the latest SVN version it seems).
    The problem occurs on the following case: http://lafabrick.com/labz/tlfTest/ (source code enabled)
    If I select some text in container D to A (or vice versa): display of text selection is correct.
    The problems are:
    - If I select some text in the containers B or C, and that I move the selection to the right or left: the container is moving ...
    - If I select some text in the containers B or C, and that I move the selection to the up or down: the display of the selection is not normal (I have a "blinking selection")
    TLF version : 502 (715519)
    Regards
    fabien

    Hi Richard,
    Would you like to said that this fixe is not present on the SVN (/trunk) ?
    In this case it's of course a bad news for me: my app can't takes all benefits of TLF for now (and for MAX...).
    But a good news for all ! It means that TLF is perhaps soon to release !
    Thanks a lot.
    Fabien

  • Does any iPhone have the ability to talk to text off-line?

    Would like to know if any iPhones have the ability to talk to text off-line?

    Speech to text as it currently works takes a powerful computer and a large database. It will awhile before phones are that powerful and have that much storage. Based on the trends toward cloud storage and constant connectivity, I don't see it as something companies will be interested in developing.

  • PLD - SO needs to display Text line

    Dear All,
    Our customer's marking documents has text type lines. When I tried to print it on A/R invoice and A/R down payment invoice, it works good. When I tried to print it on Sales Order, text lines have always been printed first. Then items and subtotals. I use exactly the same way to print it.
    Field_1: Sys Var 157 (line type)
    Field_2: Field_1 == 'T'
    Field_3: Field_2 != 'T'
    Field_4: Sales Order - Rows.Text, link to Field_2
    Other item fields link to Field_3
    One more question for PLD is, I found in system PLD almost all the fields link to itself. It there any specfic reason we have to do that?
    Thanks a lot.
    Regards,
    Yuka

    Dear Yuka,
    You may check these threads first to see if there are any helps:
    Re: Row Type: "Text" >> in A/P invoice, not being displayed in PLD
    PO PLD Add line text....
    Line type text not printing
    Thanks,
    Gordon

  • Wrapping multiple text lines

    This may be difficult to explain, but I am not seeming to find the exact wording in my searches so I am going to ask here...
    I have several lines of text boxes at the end of a form, and rather than making it all one big block of text and wrapping text within the box, there are several individual lines of text, and I would like to limit the length of each line to the display, and then wrap it to the next text line if it is too long.
    Thanks for the help.

    Yes, it is a form. the end of the form looks similar to:
    Describe this thing: ________________________________________________
    so in order to follow the lines (rather than a text block that wrapped and could be offset from the lines on the original application), each one became a new field. I am trying to figure a way, like in illustrator, to have two or more boxes linked together so when the user finishes the first line it automatically goes to the next, and so on till the end line where it just wont let them go on unless they tab to the next field.

  • [svn] 4694: Don't remove text lines from the container if it isn' t the container the lines were added to.

    Revision: 4694
    Author: [email protected]
    Date: 2009-01-27 14:35:21 -0800 (Tue, 27 Jan 2009)
    Log Message:
    Don't remove text lines from the container if it isn't the container the lines were added to. When there is a state change the displayObject can be switched out from under the TextGraphic and TextBox.
    QE Notes: need to add tests - will attach my test program to bug
    Doc Notes:
    Bugs: SDK-18923
    Reviewers: Gordon
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-18923
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextBlockCompose r.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextFlowComposer .as

    Yup, you guys pointed me in the right direction.
    I changed my adjustmentListener to the following:
    JScrollBar scrollBar = (JScrollBar) e.getSource();
    int endLoc = document.getLength();
    try {
        Rectangle end = outputArea.modelToView(endLoc);
        if (end != null) {
            int n = scrollBar.getValue() + scrollBar.getVisibleAmount();
            boolean locked = (end.y >= n && n <= (end.y + end.height));
    } catch (BadLocationException ex) {
    }By comparing scrollbar position with the visible rectangle of the end of the document, I can now easily tell if the user has moved the tracker back or not.
    To go to the next step of automatically pausing scrolling whenever the user is moving the slider back, I also had to disable the automatic scrolling performed by DefaultCaret. Because there was no way to tell if the user was scrolling or if the output was adjusting from the adjustmentListener, I also had to flag whenever I was autoscrolling.
    The end result is a JTextPane that can be appended to at all, and locked by the user by using the slider. If new data arrives, the window is not scrolled, and any text selection the user has is not cleared. Perfect!

  • Text lines in the BW query variables screen

    Hi gurus.
    The bw users ask me to display some text lines in the BW query variables prompt.
    The text lines are saved in a custom table.
    The only idea that I've got is to use customer exit text variables and fill them in CMOD when I_step = 1.
    I don't like this solution (I should have more the 10 text lines and so I have to mantain more than 10 Text variables) but I can't find any other solution.
    Any new idea or solution?
    Is there in Bex enviroment a functionality (that I don't know) for doing somenthing like this ?
    Thanks fo any help.
    S.

    Hi,
    to resolve it you should create all the prompts in the BW query. You are using a query with 2 parameters and then a dynamic list of values. the dynamic list of values can only work after you entered the other values.
    Ingo

  • Sales Order Text Lines in SAP Query

    I have a requirement to output several text lines into a SAP query based around sales orders.
    I have included some code to read the details into my query and get no syntax errors, however the report gives a blank output for each of the text fields included, despite there definitely being some text with the specified attribute ID and text object in the table STXL.
    Where am I going wrong?
    Please find the coding below for one of the text field I'm trying to extract:
    TABLES:STXL.
    DATA:
        VBELN LIKE VBAP-VBELN,
        POSNR LIKE VBAP-POSNR,
        TDNAME LIKE STXL-TDNAME,
        MYLINE LIKE TLINE-TDLINE,
        ZE18_LINE(1200) TYPE C.
    DATA:BEGIN OF LINES OCCURS 0.
            INCLUDE STRUCTURE TLINE.
    DATA:END OF LINES.
    DATA:BEGIN OF MYHEADER.
            INCLUDE STRUCTURE THEAD.
    DATA:END OF MYHEADER.
    CLEAR TDNAME.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
      INPUT = VBAP-VBELN
    IMPORTING
      OUTPUT = VBELN.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
      INPUT = VBAP-POSNR
    IMPORTING
      OUTPUT = POSNR.
      CONCATENATE VBELN POSNR INTO TDNAME.
    CALL FUNCTION 'READ_TEXT'
        EXPORTING
            ID = 'ZAT2'
            LANGUAGE = SY-LANGU
            NAME = TDNAME
            OBJECT = 'VBBP'
         IMPORTING
            HEADER = MYHEADER
         TABLES
            LINES  = LINES
    EXCEPTIONS
            ID = 1
            LANGUAGE = 2
            NAME = 3
            NOT FOUND = 4
            OBJECT= 5
            REFERENCE_CHECK = 6
            WRONG_ACCESS_TO_ARCHIVE = 7
            OTHERS = 8.
    IF SY-SUBRC = 0.
      LOOP AT LINES.
        MOVE LINES-TDLINE TO TEXT.
        ENDLOOP.
    ENDIF.

    Hi -
    Please check in debuging.
    check the value of TDNAME correctly populated with sales order no and sales order item.
    You can cross check with the table STXH with TDNAME and see if any entries is available for TDID 'ZAT2' as your case.
    Here are sample code.
    DATA :    lv_tdname TYPE tdobname,
                     lw_line TYPE tline,
                    li_line TYPE STANDARD TABLE OF tline.
    CLEAR : lv_tdname , li_line[],
    cocatenate w_vbak-vbeln w_vbap-posnr into lv_tdname.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        id                      = 'ZAT2'
        language                = 'E'
        name                    = lv_tdname
        object                  = 'VBBP'
      TABLES
        lines                   = li_line
      EXCEPTIONS
        id                      = 1
        language                = 2
        name                    = 3
        not_found               = 4
        object                  = 5
        reference_check         = 6
        wrong_access_to_archive = 7
        OTHERS                  = 8.
    IF sy-subrc = 0.
      CLEAR lw_line.
      loop at li_line INTO lw_line .
    * Put your logic
      endloop.
    ENDIF.

  • How to put text line just for a moment ?

    Hi,
    Do you know how to put a text line  just  for one photo? I mean I have more photos  in one portfolio but i need the text line to be seen just for one photo for the others no.
    Thank you in advance.

    You can use composition for this , where you can insert text frame for that specific photo where you want to add some description and for rest dont use text frame.
    Thanks,
    Sanjit

  • How can I print a Safari page without the links being printed and cover other text?

    How can I print a Safari page without the links being printed and covering other text?

    Try printing the page as PDF.
    From your Safari menu bar click File > Print > Save As PDF then print the PDF file.
    If you don't want to do it that way, reset the print system.
    Mac OS X: How to reset the printing system

  • How to create a subtotal or text line in a service sales order ?

    Hi ,
    is there a way to add text line in sales order for service ? when we switch from item sales order to service sales order , the "type" column disappear , and we can not create line other than service line . we use B12007A SP01 PL07
    i've not seen this limitation in the B1 help . is it a setup problem ? or is it impossible to add those lines to service sales order ?
    thanks for help
    regards

    Hi,
    This is not setup problem this is limitation you cannot add line as text or subtotal using type option in service order like item type order. If you want to add text for your service line you can do this through linewise  udf.
    Thanks
    Sachin

  • My group box is causing problems when searching for a text line in a text file.

    I am developing a booking system, so for this I need to ensure that no two clients can book the same appointment slot. So, on testing my code which prevents double booking, the system doesn't seem to find the text line being searched for in the text file
    when it (purposefully) should.
    I have tried isolating the problem using breakpoints, and I've found that when the 'SearchLine' (referring to my code below) does not include the 'TimeComboBox.text' piece and instead this value is written into the code, the system is able to find the SearchLine
    without any problems. But, when assigning the group box's value to a variable and using this in the SearchLine instead, or without even using a loop and just doing a simple line by line search, the program can't find this line of text in the file.
    I'm lost for ideas. I have tried everything I can think of. Could anyone make any suggestions as for what is the problem with my group box? (I'll explain the code beneath it).
    'Setting the value of the SearchLine (which is a String)
    SearchLine = String.Concat(DateTimePicker1.Value.Date & " " & TimeComboBox.text)
    Dim FoundApp As Boolean
    Dim objReader As New System.IO.StreamReader(basicfilepath & "Text Files\Client Booked Appointment DatesTimes.txt")
    FoundApp = False
    'Reading the file's contents and checking for the SearchLine
    Do While (objReader.Peek() <> -1) or (FoundApp = True)
    If (TextLine = SearchLine) Then
    'Line contains SearchLine. Appointment already exists.
    FoundApp = True
    Else
    'Line doesn't contain SearchLine. Carry on searching.
    Msgbox("Line not found.")
    End if
    Loop
    Explanation
    When the line is searched for, the 'FoundApp' value must be set to 'True' when it is found. If it is not found, it remains false.
    To isolate the problem, I've displayed the SearchLine in a message box in the past to make sure that the correct line of text is being searched for.
    In basic terms, my program is searching for the exact line of text which exists in the text file, but for some reason it is not coming up as 'Found'. The error occurs when the group box's value is used. The text file which is being read is
    definitely correct. Please help, any suggestions would be appreciated.
    Thank you

    Hi
    It would appear that your snippet doesn't actually read the file at all.
    Here is my test which works fine.
    Option Strict On
    Option Infer Off
    Option Explicit On
    Public Class Form1
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load
    Dim SearchLine As String = "18:09:38 : XTaskSettings.Load PARAMS: begin"
    Dim FoundApp As Boolean = False
    Dim TextLine As String = Nothing
    Dim objReader As New IO.StreamReader(Application.StartupPath & "\Data\Report Q1.txt")
    FoundApp = False
    Do While (objReader.Peek() <> -1) Or (FoundApp = True)
    ' this was missing
    TextLine = objReader.ReadLine
    If (TextLine = SearchLine) Then
    'Line contains SearchLine. Appointment already exists.
    FoundApp = True
    MsgBox("Line found.")
    Else
    'Line doesn't contain SearchLine. Carry on searching.
    MsgBox("Line not found.")
    End If
    Loop
    End Sub
    End Class
    Regards Les, Livingston, Scotland

  • Dropping characters in text lines (FM8)

    I'm experiencing problems with dropped characters in text lines. Also, I've noticed the history doesn't seem to log all changes made to text lines. The problem can be duplicated as follows:
    1. Open a new portrait blank document and add an anchored frame. (recorded in history)
    2. Add a text line inside the anchored frame from the Tools Palette. In the text line, type "1234" (recorded in history).
    3. Save the file. (history cleared)
    4. Click the cursor after the "4" in the text line and hit a carriage return to create a new text line. (not recorded in history)
    5. In the new text line, type "1234567890"(not recorded in history)
    6. Save the file.
    7. Refresh the screen (cntl l) and the second text line now reads "12346890" (dropped the 5 and 7). Printing the file in steps 5 and 6 also show the 5 and 7 are missing.
    8. Add a new text line inside the anchored frame from the Tools Palette. In the text line, type "12345" (recorded in history).
    9. Save the file. (history cleared)
    10. Click the cursor after the "5" in the text line from step 8 and hit a carriage return to create a new text line. (not recorded in history)
    11. In the new text line, type "1234567890"(not recorded in history)
    12. Save the file.
    13. Refresh the screen and the second text line now reads "12345790" (dropped the 6 and 8).
    Has anyone else seen this problem (or can duplicate it)?
    Also, can someone explain why some of the steps above are not recorded in the history.
    FYI, while trying to find a repeatable sequence to demonstrate this problem, Frame crashed on me.
    I'm running a trial version of Frame 8, version 8.0p273, with XP Pro, on a fairly new Dell Optiplex 740.
    Thanks,
    Jeff Schweiner

    Hi Jeff,
    I have now tried what you're doing and get the same result!
    I have also added a text line with characters a to z. After saving ad doing a ctrl-l, the character after the last one, and the character second after that, in the previous line, was removed. (I first typed "abcd", saved, made a new line, typed "abcdefghi", saved, made ctrl-l, the characters "e" and "g" were removed).
    I have the same version of FrameMaker + SGML, but this is a licensed version, running on Win 2000.
    Regards
    Mikael Sten

  • Dynamic Text line spacing issue

    Hi, in my Flash movie (CS3) I want all text to be selectable.
    When I select 'static' and 'selectable', I have the following issues:
    - Some of the text does not fit into the available (scrolling required to see the end of text)
    - This is larger than when in Flash.
    When I use 'dynamic' text, I have the following issues:
    - The line spacing displays different in the exported swf than it does in Flash (line spacing is much greater in the swf)
    - I am a designer so the appearance / positioning of the text is crucial
    Is this common?
    Is there any way to make the text in Flash and swf appear consistent?
    Many thanks

    First of all, maybe you don't know it, but static text can't be made selectable even in theory. Therefore what you're seeing when you click "Selectable" option, is a dynamic text. As for line spacing, I don't see any difference between Flash CS4 and resulting SWF. The only strange thing I've found is the necessarity to enlarge the bounding rectangle when I change the text type from static to dynamic. Otherwise bottom line of text just disappears. It looks like a bug. Also I don't see "Autosize" option being working here in CS4. I doubleclick on bottom right corner of the text block, small square is transformed into a diamond, and bounding rect is "autosized" around the text block. But the bottom text line disappears just as I deselect the text object. All it looks some stange...

  • Problem in formatting of long text -- line break not recognized.

    Hi ,
    We have a PO smartform in our SRM system and we are facing problem with formatting of long text on the smartform for long texts maintained for the PO.
    for ex, we maintain the long text as --
    "this is long text for item 1.
    1. this is line 1.
    2. this is line 2."
    On the smartform it is displayed as --
    this is long text for item 1. 1. this is line 1. 2. this is line 2.
    So basically, the line breaks in the text are not considered in the smartform .
    Any suggestions on how to fix this issue ??
    Thanks.

    Hello Harmeet,
    Which Std. FM are you using to fetch the PO texts? If the PO doesn't exist in your system, i'm afraid you cannot use Include Texts as mentioned by Harsh.
    As an alternative you'll have to create a table & pass the text lines to it! I don't think SmartForms are not smart enough to identify new-line character.
    BR,
    Suhas

Maybe you are looking for

  • How to call specific view of used component

    Hi All, I have the following problem: I have component 1 which have two views: 1A and 1B. They are included in one window. Default view is 1A.   Navigation between view 1A and 1B it made with buttons and plugs ("go to 1A", "go to 1B"). I have main co

  • Unable to boot Mac OS after 10.6.5 update

    Just a question. Dont know whether its due to the 10.6.5 update. After reboot to windows. I can't log in To my Mac os anymore. It just get stuck at the grey apple logo and bar comes out and loads and it shuts down soon after. In windows when I log on

  • Problem in Service Registry

    Hi All, I am facing problem with Service Registry. ( CAF ---> Administrative tools --> External Service Configuration -->Service Registry) Few days back it was working fine, but now i am getting the following exception when i click on the Srevice Reg

  • Control Excise invoice cancellation

    Hi All Our Business process is Proforma invoice - Excise invoice - Commercial invoice (Pass to accounting ) Problem - After generating Commercial invoice system is allowing to cancel Excise invoice through J1IH or J1IIN with out checking commercial i

  • Panic-can't move FCE project to DVD

    Help. I have completed a FCE sequence, saved it, but when I attempt to export it to a quicktime self-contained movie I get an "General error #34" Message. The original video is from a Flip camera in the AVI format. I used Streamclip to convert the fo