How to stop table row from being split onto two pages

How do I stop a row of output from being split between two
pages. When the CFDocument loads, sometimes, the last row on a page
"spills" over onto the next. I'd like to figure out who to prevent
these "orphans" from happening, and force the row onto one page or
the other.
Here's my code for the doc... I have a sp that querys the sql
db. Using CFDocument - CF Version 7.02

If you know roughly how many lines of output will fit on a
page (you can test to find out), then you can count result lines
(you should be able to use RecordCount and do some math) and cfif
against your counter and force a page break beforehand if the next
table will be too much to fit on the page. Then just reset the
counter after you page break.

Similar Messages

  • How to stop the Dialog from being dragged

    I was hoping that someone could tell me when calling a Dialog from Jframe, a how to stop the Dialog from being dragged
    while a dialog is showing.
    When it is visible I can still click and drag the Dialog
    I want to set it so you can not drag it until the dialog has be closed.

    If you don't have access to the parent frame, a "hack" that usually works:
    Frame frame = Frame.getFrames()[0];
    if (null != frame && frame instanceof JFrame){
    JFrame jf = (JFrame)frame;
    JDialog jd = new JDialog(jf, "title");
    ... code here ...
    As each JFrame (or Frame) is opened, its stored in the array of Frames that you can get. Same thing with Dialog.getDialogs(). Almost always, at least so far for me I've never had this problem, the [0] index is the main window opened, or the parent/top frame. I'd put the check in there to be safe and make sure its a JFrame and usually you'll only have the one JFrame.

  • How to stop volume icon from being displayed randomly

    How to stop volume icon from being displayed randomly

    Thanks for the quick response.
    I have a number of slides which act as a training module. The quiz follows this. All the answers to the quiz are in the module slides. I'd like the user to be able to see which questions they're failing on, but not be shown the answers, as, if they are failing the quiz, the whole module needs to be reviewed and the test retaken.
    If this isn't possible, I'll probably just remove the review option, thereby meaning my retake button can stay, and the user can just go back and re-read the module slides to learn the answers.
    Thanks

  • How to stop an email from being sent after I hit send?

    How can I immediately stop an email from being sent after clicking "send"?
    I can't seem to find any info on this. I am assuming that it is impossible. Correct?

    When sending the emails with larger attachments that take a little time to actually upload and get out, you can open the activity viewer by pressing command-0 (or is it command-o?--)--it may also be under the window menu at the top--I'm not at my Mac right now to check. The activity viewer has a stop button on it. After you stop it, you should be able to either delete the email from the outgoing mail folder or drag that email to another folder, such as the drafts folder. I've done this a few times without a problem.

  • How to stop an idoc from being processed further

    Hi Experts,
    I have a requirement where i have to stop the idoc from being processed in an user exit.
    I have to stop the idoc and give a suitable status message over there.
    It would be highly helpful if anybody tells me how to stop the idoc abruptly and giv the status messsage.
    Thanks in advance.
    Praveen.

    Hi,
    Check the below link
    https://forums.sdn.sap.com/click.jspa?searchID=11810720&messageID=3032674
    You need to find aproper EXIT.
    The avaliable options for you in the exit is
    IDOC_DATA
    Now if i pick the segment having shiped qty from the data record and check the same with the delivery qty your objective is half done.
    When the condition fails you need to update the IDOC with Error 51 saying that this is not possible .
    for that you need to bring your logic as
    LOOP AT IDOC_CONTROL.
    PERFORM LOGIC...
    ENDLOOP.
    FOR LOGIC .
    All the criteria and then update the status of the IDOC then error is generated and updated to the IDOc.
    PERFORM updatestatusidoc.
    endform logic.
    like this in
    form updatestatusidoc.
    IF subrc = 0 .
    t_idoc_status-docnum = f_idoc_contrl-docnum.
    t_idoc_status-status = c_idoc_status_ok.
    t_idoc_status-msgty = 'S'. -
    >denotes success
    t_idoc_status-msgid = 'ZXXX'.
    t_idoc_status-msgno = '000'. "
    t_idoc_status-msgv1 = itab-field.
    APPEND t_idoc_status.
    ELSEIF subrc = 1.
    t_idoc_status-docnum = f_idoc_contrl-docnum.
    t_idoc_status-status = c_idoc_status_error.
    t_idoc_status-msgty = 'E'. "denotes --->error
    t_idoc_status-msgid = 'ZXXX'.
    t_idoc_status-msgno = '001'. "
    t_idoc_status-msgv1 = itab-field.
    APPEND t_idoc_status.
    endif.
    endform.
    this has to be done to make the idoc to trigger error mode.
    Regards,
    Raj.

  • How to stop control characters from being tokenized?

    In Oracle 11.2.0.3
    I have documents which has embeded Arabic and so there is a control character \u202b to indicate right-to-left string. How do I stop these kinds of control characters from being tokenized. Doing a search with CONTAINS(search_string,' \u202b')>0 finds documents. Do I just add the '\u202b' as a stopword?

    What lexer are you using, Amin?
    I assume from what you say that the characters are getting indexed as whole tokens?  If so, adding them as stopwords should work, but I'm surprised they're getting indexed at all - sounds like a fault in the "alphanumeric indentification" code to me.
    I'm going to take a guess this is the World Lexer.  Am I right?

  • How to stop email addresses from being added to contacts

    hofw do you stop email addresses from sent emails from being added automatically to contacts?

    No. They are not being created by the phone. They are being created by your mail system, whether that is Exchange, Yahoo, Google, etc. They all have settings to automatically create contacts from people you correspond with. There is no setting on the phone to control this. Check the settings for your mail account with or talk to your IT department.

  • How to stop copied files from being automatically trashed

    so this has only been happening recently, in the last 2-3 weeks.
    if i choose a file, say "example.txt" and duplicate it, adding "example copy.txt" to the desktop, within a couple seconds, it gets automatically placed in the trash.
    if i rename the copy to "example.2.txt" and move it back to the desktop, it'll stay. so it's not an issue of identical files being trashed. if i take it and name it back to "example copy.txt" it gets placed in the trash again automatically.
    how do i stop this? it's driving me mental because i have to go retrieve everything i copy from the trash bin. i'm sure i haven't downloaded any automators or anything, so any kind of input would be beneficial.
    thanks!

    whats the type n contents of this files.it is text only pipe seperated.
    have u specified the bad or log file path while creating the external file.no I do not. I use simple UTL_FILE for writing to these files but it does generate .log all the time and sometimes .bad whenever there is some problem.
    the sample script used for create external table is mentioned below.
    CREATE TABLE "XX"."E_ERROR_LOG"
    (     "SERVER_ID" VARCHAR2(24),
         "MONITOR_ID" VARCHAR2(24),
         "XXX_ID" VARCHAR2(8),
         "XXX_SUBTYPE_ID" VARCHAR2(8),
         "ERROR_CODE" VARCHAR2(6),
         "LOG_TIMESTAMP" VARCHAR2(19),
         "ERROR_MESSAGE_BODY" VARCHAR2(1024),
         "XXXX_MESSAGE" NVARCHAR2(1024)
    ORGANIZATION EXTERNAL
    ( TYPE ORACLE_LOADER
    DEFAULT DIRECTORY "XXXX"
    ACCESS PARAMETERS
    ( records delimited by newline
         fields terminated by '|'
         missing field VALUES are NULL
    LOCATION
    ( 'DF_XXXX_ERRORLOG_DATA01.dbf'
    REJECT LIMIT UNLIMITED;
    ----------------------------------------------------------------------------------------------------------

  • How to stop an iPhone from being hacked

    Can an iPhone be hacked through your iCloud account or email account (meaning your Apple ID). I have found disturbing things on the internet to monitor phones such as auto-forward.com. For about $70 you can monitor everything on a smart phone. Of course they're disclaimer is that being a parent, you want to make sure what your kids are up to and it says "not to be used for illegal purposes". But I am an adult and someone is monitoring me. My Apple ID password only works when this person wants it to work. My email and texts disappear.
    HOW DO I STOP THIS??  I have already traded my phone in changed apple IDs, the techs at the apple store found strange software diagnostics.
    Law enforcement is not very tech savvy. Can data forensics trace the person doing this? About $2000, but worth it to catch the stalker.

    Your Apple ID can be compromised. That would allow a miscreant to buy things using your account, access your iCloud information and potentially wipe the phone remotely. If your concerned about that, make sure that you use a complex password and 2 step verification. Make sure your recovery email account is also secure.
    http://support.apple.com/kb/HT5570
    You should also put a password on your phone to prevent people from gaining physical access to it.
    Don't believe everything you read on the internet. In order to use such software on an iPhone, someone would need to have access to your phone in order to jailbreak it. If you restore the phone as new and follow the advice above, no one will be monitoring your phone (except possibly the government and they are not going to be deleting your texts and emails).
    Best of luck.

  • How to stop music folder from being created when changing media folder

    When I try to change the media folder location, a new "music" folder is created - how do I stop this from happening (I already have a music folder that I want it to default to, but when I try to select it, it creates another music sub folder)
    This is a new issue - I have been using itunes for years without ever having this problem...

    That's how itunes 9 works, now. The top-level folder is considered the "Media" folder and there are music, podcast, movie, audiobook, etc subfolders.
    Which is better in a way, since before itunes 9, everything was dumped in a music folder, even audiobooks that weren't music.
    http://support.apple.com/kb/ht3847

  • How to stop mouse pointer from being included on screenshots

    Hey guys I was hoping someone could help me with this problem.
    I am creating a software simulation and have decided to use Captivate 6.  When capturing the appropriate screenshots i have noticed that the mouse pointer is being included with these. I DO NOT want the mouse pointer to be included within the screenshot.
    I know how to disable the mouse pointer when setting my preferences before creaing the simulation, however, the mouse pointer is still being included in the screenshots. Here is an example below.. Can anyone help me?
    Thanks,
    Garrett
    Example: I orginally wanted to show the user's log in menu, but once I clicked "Login" the mouse pointer stuck to the screenshot. I don't want this mouse pointer to be there

    I actually chose Demo and assessment.  The mouse is not what I want to see in the slides. The timeline does not show a mouse at all because I have that functionality disabled. What I really want is to essentially replicate an application. I want the user to be able to start this captivate project from a flash drive and actually have the applications GUI with limited functionality (for training purposes). I am starting to think there is a problem with the application I am trying to replicate. I have a software product that I must start on a virtual machine. Once the virtual machine is up and running then can I actually start the application. I have already done two of these with different applications and had no problem at all with the mouse pointer disappearing. This one, however, is being very difficult. Maybe its because im using QNX?

  • How to stop unwanted photos from being imported to Lightroom Mobile Android

    Hi, I am a subscriber to the Adobe Photo package (LR and PS).
    I have started using LR mobile recently on my Android phone. I found that if I turn on Auto Import for a collection, it import more than just pictures taken by the camera. Any pictures that is added by, eg., WhatsApp, it will also be imported. Is this the intended way it works? How can I control what folders LR mobile will "watch" for imports? !

    Thanks, Jim. Android operates a bit different from IOS. It has a camera folder, which contains all pictures taken by the Android camera app. If there are other apps that can take pictures, they will most likely appear in their respective app folders (depending on how the app behaves). And then there are other apps that does not take picture but will receive pictures, eg., the whatspp app. when someone send you pictures. The Whatsapp folder exists outside of the Camera folder (or picture roll, if you want to call it).
    To me, the best way to handle this, is for the user to have control over which folder to sync, which not to. Eg., the Google+ Photo app, which sync pictures from the phone to Google+ (sort of like iCloud) lets you select which folder to sync. It will, very cleverly prompt you whenever it detects a new folder that contains photos (eg., after installing a 3rd party camera app or apps like Instagram that have its own folders to save photos related to them) and you can decide whether you want these new folders to be sync or not.
    I hope to find out how LR mobile interact with Android because, apparently, it is not scanning the complete phone for pictures because, I found that there are temp folders that are used by email programs etc., that contains small gif/png/jpg files that do not appear in LR mobile. I wonder how LR mobile makes the decision.
    Anyone having similar issues?

  • How to stop a form from being editable

    Hi,
    we created a form for a client that their auditors are simply downloading, completing and submitting back to the client via form upload. the fowm contains dropdon fields and text areas. the client then needs to send the form to a third party. The form needs to be locked so no amendments can be made. The client has tried combining the form with an additional pdf, but the text areas then do not show overflow, the "+" appears in bottom right corner but can not be clicked to expand. Can someone help/advise the solution please...doing our heads in now....

    Hi,
    There is a LoclAllFields solution, but when the fields are readOnly you will not be able to access data below the bounds of the field (not visible).
    I have a form on our website that was developed a few years ago: http://www.assurehsc.ie/files/2007-08-31_Designer_Risk_Assessments_Example-1.pdf
    It is intended as a sample/information/instruction tool. Because it is up on the web I wanted visitors to explore the look and feel, but not to download an use at will. So the fields are set to 'open', but the initial value is read on the enter event, stored and then on exit the original value is restored.
    This is a solution from the forum (Stefan, I think). If you insert a script object called 'Utils', with the following javascript:
    var sOriginalValue = "";
    Then in the fields enter event:
    Utils.sOriginalValue = this.rawValue; // store original value into script object variable
    And in the fields exit event:
    this.rawValue = Utils.sOriginalValue; // restore original value from script object variable
    Utils.sOriginalValue = ""; // reset saved value
    This solution runs all the time. In your case you would need a flag to track if the script it to run or not, eg turning on and off the feature.
    Hope that helps,
    Niall

  • How to stop a window from being resized too small?

    Hi All,
    Just wondering whats the best way to set a window (JFrame) to be scalable but only to down to a certain minimum size.
    Regards.

    Window.setMinimumSize(Dimension minimumSize) ?

  • Stop the Frame from being able to be dragged

    Hi all
    I was hoping that someone could tell me how to stop the frame from being dragged
    while a dialog is showing.
    I am using this code to call the dialog.
    When is is visible I can still click and drag the frame behind it.
    I want to set it so you can not drag it until the dialog has be closed.
        public void runStartup() {
            Login dlg = new Login(this, "Login", true);
            Dimension dlgSize = dlg.getPreferredSize();
            Dimension frmSize = getSize();
            Point loc = getLocation();
            dlg.setLocation((frmSize.width - dlgSize.width) / 2 + loc.x,
                            (loc.y + 22));
            dlg.setModal(true);
            dlg.pack();
            dlg.show();
        }

    here is the Login Class
    package build0_0_1.dialogs;
    import java.awt.BorderLayout;
    import java.awt.Frame;
    import javax.swing.JDialog;
    import javax.swing.JPanel;
    import java.awt.*;
    import com.borland.jbcl.layout.XYLayout;
    import com.borland.jbcl.layout.*;
    import javax.swing.JLabel;
    import javax.swing.JComboBox;
    import javax.swing.JPasswordField;
    import javax.swing.JButton;
    import javax.swing.ImageIcon;
    import build0_0_1.images.image_pics;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseAdapter;
    import java.awt.event.FocusEvent;
    import java.awt.event.FocusAdapter;
    import build0_0_1.mysql.MYSQLDAO;
    import build0_0_1.Command;
    import javax.swing.*;
    import java.sql.SQLException;
    * <p>Title: </p>
    * <p>Description: </p>
    * <p>Copyright: Copyright (c) 2005</p>
    * <p>Company: </p>
    * @author not attributable
    * @version 1.0
    public class Login extends JDialog {
        ImageIcon back;
        MYSQLDAO mysqlDAO;
        Command command;
        JPanel panel1 = new JPanel();
        XYLayout xYLayout1 = new XYLayout();
        JLabel loginLabel = new JLabel();
        JLabel nameLabel = new JLabel();
        JLabel passwordLabel = new JLabel();
        JComboBox jComboBox1 = new JComboBox();
        JPasswordField passwordField = new JPasswordField();
        JButton loginButton = new JButton();
        JButton cancelButton = new JButton();
        JLabel backLabel = new JLabel();
        JLabel logoLabel = new JLabel();
        JComboBox locationComboBox = new JComboBox();
        JLabel locationLabel = new JLabel();
        public Login(Frame frame, String string, boolean _boolean) {
            super(frame, string, _boolean);
            try {
                setDefaultCloseOperation(DISPOSE_ON_CLOSE);
                jbInit();
                pack();
            } catch (Exception exception) {
                exception.printStackTrace();
        public Login() {
            this(new Frame(), "Login", false);
        private void jbInit() throws Exception {
            this.setResizable(false);
            this.setUndecorated(true);
            this.setSize(new Dimension(450, 220));
            back = new ImageIcon(image_pics.LOGIN_BACK);
            logoLabel.setIcon(new ImageIcon(image_pics.SMALL_LOGO));
            panel1.setLayout(xYLayout1);
            panel1.setMinimumSize(new Dimension(450, 220));
            panel1.setPreferredSize(new Dimension(450, 220));
            loginLabel.setText("Login");
            nameLabel.setFont(new java.awt.Font("Lucida Grande", Font.PLAIN, 11));
            nameLabel.setText("User Name");
            passwordLabel.setFont(new java.awt.Font("Lucida Grande", Font.PLAIN, 11));
            passwordLabel.setText("Password");
            backLabel.setIcon(back);
            passwordField.setFont(new java.awt.Font("Lucida Grande", Font.PLAIN, 11));
            passwordField.setText("Enter Password");
            passwordField.addFocusListener(new
                                           Login_passwordField_focusAdapter(this));
            loginButton.setBackground(new Color(231, 231, 231));
            loginButton.setFont(new java.awt.Font("Lucida Grande", Font.PLAIN, 11));
            loginButton.setText("Login");
            loginButton.addActionListener(new Login_loginButton_actionAdapter(this));
            cancelButton.setBackground(new Color(231, 231, 231));
            cancelButton.setFont(new java.awt.Font("Lucida Grande", Font.PLAIN, 11));
            cancelButton.setActionCommand("cancelButton");
            cancelButton.setSelected(true);
            cancelButton.setText("Cancel");
            cancelButton.addActionListener(new Login_cancelButton_actionAdapter(this));
            jComboBox1.setFont(new java.awt.Font("Lucida Grande", Font.PLAIN, 11));
            jComboBox1.setEditable(true);
            logoLabel.setBorder(null);
            logoLabel.setHorizontalAlignment(SwingConstants.CENTER);
            logoLabel.setHorizontalTextPosition(SwingConstants.CENTER);
            logoLabel.setText("");
            locationLabel.setFont(new java.awt.Font("Lucida Grande", Font.PLAIN, 11));
            locationLabel.setText("Location");
            locationComboBox.setFont(new java.awt.Font("Lucida Grande", Font.PLAIN,
                    11));
            panel1.add(cancelButton, new XYConstraints(337, 170, -1, -1));
            panel1.add(loginButton, new XYConstraints(245, 170, -1, -1));
            panel1.add(loginLabel, new XYConstraints(208, 21, -1, -1));
            panel1.add(logoLabel, new XYConstraints(21, 20, 57, 54));
            panel1.add(passwordLabel, new XYConstraints(99, 141, -1, -1));
            panel1.add(locationLabel, new XYConstraints(104, 72, -1, -1));
            panel1.add(nameLabel, new XYConstraints(90, 106, -1, -1));
            panel1.add(passwordField, new XYConstraints(185, 138, 219, -1));
            panel1.add(jComboBox1, new XYConstraints(183, 103, 219, -1));
            panel1.add(locationComboBox, new XYConstraints(183, 67, 219, -1));
            panel1.add(backLabel, new XYConstraints(0, 0, 451, 223));
            getContentPane().add(panel1);
            panel1.grabFocus();
         * Exit action performed.
         * @param actionEvent ActionEvent
        public void cancelButton_actionPerformed(ActionEvent actionEvent) {
            System.exit(0);
         * Login to MySQL Server. Using User ame and Password
         * This pass into MYSQLDAO user Name and Password
         * @param actionEvent ActionEvent
        //This pass into MYSQLDAO user Name and Password
        public void loginButton_actionPerformed(ActionEvent actionEvent) {
            String pass = new String(passwordField.getPassword());
            if (!pass.equals("Enter Password")) {
                System.out.println("This the username   " +
                                   (String) jComboBox1.getSelectedItem() + "\n" +
                                   "Password is     " + pass);
                try {
                    mysqlDAO = new MYSQLDAO();
                    mysqlDAO.setUserName((String) jComboBox1.getSelectedItem().
                                         toString().
                                         trim());
                    mysqlDAO.setPassword(new String(passwordField.getPassword()));
                } catch (SQLException ex) {
                    // handle the error
                    System.out.println("SQLException: " + ex.getMessage());
                    System.out.println("SQLState: " + ex.getSQLState());
                    System.out.println("VendorError: " + ex.getErrorCode());
                } catch (Exception ex) {
                    // handle the error
                    System.out.println("Erro no registro do Driver Mysql!!!!");
                hide();
         * Password field select all.
         * Feild is select. The user can just start typing
         * and overright the password feild
         * @param focusGained FocusEvent
        public void passwordField_focusGained(FocusEvent focusEvent) {
            passwordField.selectAll();
    class Login_loginButton_actionAdapter implements ActionListener {
        private Login adaptee;
        Login_loginButton_actionAdapter(Login adaptee) {
            this.adaptee = adaptee;
        public void actionPerformed(ActionEvent actionEvent) {
            adaptee.loginButton_actionPerformed(actionEvent);
    class Login_passwordField_focusAdapter extends FocusAdapter {
        private Login adaptee;
        Login_passwordField_focusAdapter(Login adaptee) {
            this.adaptee = adaptee;
        public void focusGained(FocusEvent focusEvent) {
            adaptee.passwordField_focusGained(focusEvent);
    class Login_cancelButton_actionAdapter implements ActionListener {
        private Login adaptee;
        Login_cancelButton_actionAdapter(Login adaptee) {
            this.adaptee = adaptee;
        public void actionPerformed(ActionEvent actionEvent) {
            adaptee.cancelButton_actionPerformed(actionEvent);
    }

Maybe you are looking for

  • How can I reset the xy zero point to a different spot in my PDF? Possibly via a plug-in?

    I would like to reset my zero point to aid in measuring and aligning elements in PDFs. Indesign, Illustrator and Photoshop will let you do this but not Acrobat Pro. Any ideas? I also use Pitstop Pro but can't seem to find anything in there that can h

  • Title over video degrades video quaity

    When I put a title over the video as opposed to over black, the video quality is severely degraded. It shows up to a lesser degree on the completed dvd but is still very noticeable. Is there a way to fix this or is it just the way it is?

  • Need urgent help! How to check if the generated number is a whole number

    Hi, I have a simple issue but I need some assistance. I am calculating a number and the result number sometimes a whole number but in some cases decimals are present. Decimals do not need change but whole numbers need to change. So for example if the

  • Help using pointers or what ever you would call it...

    Hello! I usally do not asks for code, but this I think someone has to show and explain for me. so if any of you have some spare time I would be grateful. ok, i want to make two arrays, one with names of a person, and one list with different beers. Th

  • Mail crashes when format panel is clicked

    I found this archived link to be very helpful in this problem: http://discussions.apple.com/message.jspa?messageID=7280888#7280888 But it did not fix my problem. What I did find is that this file, found in the FontCollections folder, seemed to be the