Comparison with a float field

Hi,
I have to compare two float fields, one fetched from database and one passed as importing parameter.
Now, i get "0.1" as a value in importing parameter for comparison. and the same is stored in the database, i.e. "0.1".
But when I put a select query on the table and read the value, the value i get is 9.9999999999999995E-02.
as a result, my comparison fails and the rest of logic crumbles.
I am aware of the usual standard - not to compare two float variables, but in this case, it is a equipment reading - it has to be in float, which i am comparing against a threshold, which again has to be float.
Is there any way to fix this through ABAP program?

There are no conversion exits for floating type of data fields.
The fields used for comparison are MRMIN, and MRMAX from the table IMPTT.

Similar Messages

  • Generic data source with float field possible?

    Hello,
    when creating an generic data source using a view with a float field I get error R8359 (extract structure: You tried to generate an extract structure with the template structure .... This operation failed, because the template structure quantity fields or currency fields, for example, field ... refer to a different table.).
    I changed the data element from ATFLV to e.g. FLOAT but it did not help.
    SAP hint 335342 deals with this issue, but I just want to use the float number without the unit.
    Is this possible or do I need to write a function module?
    Best regards
    Thomas

    Hi,
    you could try to add the unit table and field to your view. When saving the datasource in RSO2, you can choose to hide these fields if you don't want them extracted into BW.
    Regards,
    Øystein

  • Floating Fields with .replace()

    Hi All,
    I'm having a problem with my floating fields.
    I have a variable declared in my function (floatingFunction), lets call the variable sPara.
    to sPara I assign a long Paragragh for example; sPara = "I, the undersigned FN in my capacity as a CP..." 
    In my hierarchy structure I have foating fields: fullName and capacity and an empty text call it displayfield, these three are in a subform hdDisplayText
    I also have  textfields called fullName & capacity.
    On exit event of the fullName textfield I have these two lines :
    header.hdDisplayText.fullName.rawValue= this.rawValue; floatingFunction.sPara
    = floatingFunction.sPara.replace('FN', this.rawValue);
    and on prePrint event of hdDisplayTest subform I have this:
    this.presence= 'visible';displayfield.rawValue
    = floatingFunction.sPara;
    When u click the print button for the first time it works fine, now the second time you enter a different Full Name and click print, it still prints what you entered the first time, now that is my problem, I've tried xfa.host.resetData(); after printing but that didnt help. Please assist, please.

    Ok I got it, I 'nm using xfa.form.remerge() just after printing.

  • Hide floating field

    Hi everyone,
    I know this is pretty comon question. But somehow its not working for me so pls help.
    I have a text element with 4 floating fields in it one below the other. I want to hide the 3rd floating
    Field if it has null value and the 4th floating field should move up to the 3rd floating field position. I tried java script on the 3rd floating field, also tried wrapping all the elements in a subform and had a java script at subform level. Still did not work. Please suggest.
    Appreciate your help.

    Hi,
    Is there any reason for its being a floating field...?
    If i were you I do the below.
    Lets say you have 4 fields to be displayed one below the other in the text object.
    So for these fields I create hiddenfields rathar floating.
    On the text object I have on floating field.
    On the form ready event of this floating field, I concatenate the 4 hidden fields value excluding the null ones and separated by "\n". "\n" is for javascripting new line.
    There might be otherway which I am not aware of.
    But this is simple....what do you say ...?
    Cheers,
    Sai.

  • Floating Fields with Designer ES2

    I just did an upgrade to Designer ES2.
    I created a new form with static textfields and floating textfields
    then i created a button that filles the floating field with a text using javascript.
    xfa.resolveNode("form1.#subform[0].Textfield1").rawValue
    = "it doen't work";
    But it doesn't work
    When i make the floating field visible, so i see the normally hidden field, the i see that the script works, but that te tekst doesn't show in my static textfield
    Anyone else with this problem?
    Can anyone tell me what i'm doing wrong?
    In the previous Designer ES it worked fine and opening those forms in ES2 still work
    But creating a new form with a floating text doesn't work

    I reinstalled Both Designer 8.x and ES2 several times, but i have the same problem with both versions.
    Now i only have Designer 8.x installed on my WinXP.
    i created a new empty form and add a static text field and a button.
    within that static textfield i insert a floating field.
    i add a Formcalc script to the click function of the button: Field.rawValue = "hello"
    i save it as a dynamic form.
    preview the form and when i click the button nothing happens
    Then i change the presence of the floating field to visible, so a normally hidden field is visible
    Now without changing anything i preview the document en click on the button
    Now i see the text in the field i just made visible, but still not in the static textfield where i inserted that floating field.

  • Designer Crashing with floating fields

    I am using Designer 8.0. I have not figured out exactly what the cause is but Designer is crashing pretty regularly whenever I try to use a floating field. It seems like it is related to putting something in the calculate event of the field.

    This was in 2008 so i cannot remember ...if you send the form and a description of the issue I will have a look. Send it to [email protected]
    Paul

  • Issue with setting float point in Textfield

    hi
    i have an issue with float input in a textfield.
    what i want to do is.
    when the user start typing numerics it should accept from right hand side and keep appending value from right hand side.
    for ex
    if i want to enter 123.45
    user starts entering
    1 then it should display as 0.01
    2 then it should display as 0.12
    3 then it should display as 1.23
    4 then it should display as 12.34
    5 then it should display as 123.45
    to achive this i have written the code as below
    public class Test{
         public static void main(String[] a){
         try {
    UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
    } catch (Exception evt) {}
    DecimalFormat format = new DecimalFormat();
    format.setGroupingUsed(true);
    format.setGroupingSize(3);
    format.setParseIntegerOnly(false);
    JFrame f = new JFrame("Numeric Text Field Example");
    final DecimalFormateGen tf = new DecimalFormateGen(10, format);
    // tf.setValue((double) 123456.789);
    tf.setHorizontalAlignment(SwingConstants.RIGHT);
    JLabel lbl = new JLabel("Type a number: ");
    f.getContentPane().add(tf, "East");
    f.getContentPane().add(lbl, "West");
    tf.addKeyListener(new KeyAdapter(){
         public void keyReleased(KeyEvent ke){
              char ch = ke.getKeyChar();
              char key;
              int finalres =0;
              String str,str1 = null,str2 =null,str3 = null,str4= null;
              if(ke.getKeyChar() == KeyEvent.VK_0 || ke.getKeyChar() == KeyEvent.VK_0 ||
                        ke.getKeyChar() == KeyEvent.VK_0 || ke.getKeyChar() == KeyEvent.VK_1 || ke.getKeyChar() == KeyEvent.VK_2 ||
                             ke.getKeyChar() == KeyEvent.VK_3 || ke.getKeyChar() == KeyEvent.VK_4 || ke.getKeyChar() == KeyEvent.VK_5 ||
                             ke.getKeyChar() == KeyEvent.VK_6 || ke.getKeyChar() == KeyEvent.VK_7 || ke.getKeyChar() == KeyEvent.VK_8 ||
                             ke.getKeyChar() == KeyEvent.VK_9 ){
                   double value1 = Double.parseDouble(tf.getText());
                   int position = tf.getCaretPosition();
                   if(tf.getText().length() == 1){
                        if(tf.getText() != null || tf.getText() != ""){
                        value1 = value1 / 100;
                        tf.setText(String.valueOf(value1));
                   /*else if(tf.getText().length() == 3){
                        str = tf.getText();
                        for(int i=0;i<str.length();i++){
                             if(str.charAt(i) == '.'){
                                  str1 = str.substring(0,i);
                                  str2 = str.substring(i+1,str.length()-1);
                                  break;
                        key = ke.getKeyChar();
                        finalres = calculate.calculate1(str2,key);
                        str3 = merge.merge1(str1,finalres);
                        tf.setText(str3);
                        System.out.println(key);
                        System.out.println(str1);
                        System.out.println(str2);
                   else{
                        value1 = Float.parseFloat(tf.getText());
                        value1 = value1*10;
                        tf.setText(String.valueOf(value1));
    tf.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent evt) {
    try {
    tf.normalize();
    Long l = tf.getLongValue();
    System.out.println("Value is (Long)" + l);
    } catch (ParseException e1) {
    try {
    Double d = tf.getDoubleValue();
    System.out.println("Value is (Double)" + d);
    } catch (ParseException e2) {
    System.out.println(e2);
    f.pack();
    f.setVisible(true);
    import javax.swing.JTextField;
    * Created on May 25, 2005
    * TODO To change the template for this generated file go to
    * Window - Preferences - Java - Code Style - Code Templates
    * @author jagjeevanreddyg
    * TODO To change the template for this generated type comment go to
    * Window - Preferences - Java - Code Style - Code Templates
    import java.awt.Toolkit;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.text.DecimalFormat;
    import java.text.ParseException;
    import java.text.ParsePosition;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JTextField;
    import javax.swing.UIManager;
    import javax.swing.text.AbstractDocument;
    import javax.swing.text.AttributeSet;
    import javax.swing.text.BadLocationException;
    import javax.swing.text.Document;
    import javax.swing.text.PlainDocument;
    import javax.swing.text.AbstractDocument.Content;
    public class DecimalFormateGen extends JTextField implements
    NumericPlainDocument.InsertErrorListener {
         public DecimalFormateGen() {
         this(null, 0, null);
         public DecimalFormateGen(String text, int columns, DecimalFormat format) {
         super(null, text, columns);
         NumericPlainDocument numericDoc = (NumericPlainDocument) getDocument();
         if (format != null) {
         numericDoc.setFormat(format);
         numericDoc.addInsertErrorListener(this);
         public DecimalFormateGen(int columns, DecimalFormat format) {
         this(null, columns, format);
         public DecimalFormateGen(String text) {
         this(text, 0, null);
         public DecimalFormateGen(String text, int columns) {
         this(text, columns, null);
         public void setFormat(DecimalFormat format) {
         ((NumericPlainDocument) getDocument()).setFormat(format);
         public DecimalFormat getFormat() {
         return ((NumericPlainDocument) getDocument()).getFormat();
         public void formatChanged() {
         // Notify change of format attributes.
         setFormat(getFormat());
         // Methods to get the field value
         public Long getLongValue() throws ParseException {
         return ((NumericPlainDocument) getDocument()).getLongValue();
         public Double getDoubleValue() throws ParseException {
         return ((NumericPlainDocument) getDocument()).getDoubleValue();
         public Number getNumberValue() throws ParseException {
         return ((NumericPlainDocument) getDocument()).getNumberValue();
         // Methods to install numeric values
         public void setValue(Number number) {
         setText(getFormat().format(number));
         public void setValue(long l) {
         setText(getFormat().format(l));
         public void setValue(double d) {
         setText(getFormat().format(d));
         public void normalize() throws ParseException {
         // format the value according to the format string
         setText(getFormat().format(getNumberValue()));
         // Override to handle insertion error
         public void insertFailed(NumericPlainDocument doc, int offset, String str,
         AttributeSet a) {
         // By default, just beep
         Toolkit.getDefaultToolkit().beep();
         // Method to create default model
         protected Document createDefaultModel() {
         return new NumericPlainDocument();
         // Test code
         public static void main(String[] args) {
         try {
         UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
         } catch (Exception evt) {}
         DecimalFormat format = new DecimalFormat("#,###.###");
         format.setGroupingUsed(true);
         format.setGroupingSize(3);
         format.setParseIntegerOnly(false);
         JFrame f = new JFrame("Numeric Text Field Example");
         final DecimalFormateGen tf = new DecimalFormateGen(10, format);
         tf.setValue((double) 123456.789);
         JLabel lbl = new JLabel("Type a number: ");
         f.getContentPane().add(tf, "East");
         f.getContentPane().add(lbl, "West");
         tf.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent evt) {
         try {
         tf.normalize();
         Long l = tf.getLongValue();
         System.out.println("Value is (Long)" + l);
         } catch (ParseException e1) {
         try {
         Double d = tf.getDoubleValue();
         System.out.println("Value is (Double)" + d);
         } catch (ParseException e2) {
         System.out.println(e2);
         f.pack();
         f.setVisible(true);
         class NumericPlainDocument extends PlainDocument {
         public NumericPlainDocument() {
         setFormat(null);
         public NumericPlainDocument(DecimalFormat format) {
         setFormat(format);
         public NumericPlainDocument(AbstractDocument.Content content,
         DecimalFormat format) {
         super(content);
         setFormat(format);
         try {
         format
         .parseObject(content.getString(0, content.length()), parsePos);
         } catch (Exception e) {
         throw new IllegalArgumentException(
         "Initial content not a valid number");
         if (parsePos.getIndex() != content.length() - 1) {
         throw new IllegalArgumentException(
         "Initial content not a valid number");
         public void setFormat(DecimalFormat fmt) {
         this.format = fmt != null ? fmt : (DecimalFormat) defaultFormat.clone();
         decimalSeparator = format.getDecimalFormatSymbols()
         .getDecimalSeparator();
         groupingSeparator = format.getDecimalFormatSymbols()
         .getGroupingSeparator();
         positivePrefix = format.getPositivePrefix();
         positivePrefixLen = positivePrefix.length();
         negativePrefix = format.getNegativePrefix();
         negativePrefixLen = negativePrefix.length();
         positiveSuffix = format.getPositiveSuffix();
         positiveSuffixLen = positiveSuffix.length();
         negativeSuffix = format.getNegativeSuffix();
         negativeSuffixLen = negativeSuffix.length();
         public DecimalFormat getFormat() {
         return format;
         public Number getNumberValue() throws ParseException {
         try {
         String content = getText(0, getLength());
         parsePos.setIndex(0);
         Number result = format.parse(content, parsePos);
         if (parsePos.getIndex() != getLength()) {
         throw new ParseException("Not a valid number: " + content, 0);
         return result;
         } catch (BadLocationException e) {
         throw new ParseException("Not a valid number", 0);
         public Long getLongValue() throws ParseException {
         Number result = getNumberValue();
         if ((result instanceof Long) == false) {
         throw new ParseException("Not a valid long", 0);
         return (Long) result;
         public Double getDoubleValue() throws ParseException {
         Number result = getNumberValue();
         if ((result instanceof Long) == false
         && (result instanceof Double) == false) {
         throw new ParseException("Not a valid double", 0);
         if (result instanceof Long) {
         result = new Double(result.doubleValue());
         return (Double) result;
         public void insertString(int offset, String str, AttributeSet a)
         throws BadLocationException {
         if (str == null || str.length() == 0) {
         return;
         Content content = getContent();
         int length = content.length();
         int originalLength = length;
         parsePos.setIndex(0);
         // Create the result of inserting the new data,
         // but ignore the trailing newline
         String targetString = content.getString(0, offset) + str
         + content.getString(offset, length - offset - 1);
         // Parse the input string and check for errors
         do {
         boolean gotPositive = targetString.startsWith(positivePrefix);
         boolean gotNegative = targetString.startsWith(negativePrefix);
         length = targetString.length();
         // If we have a valid prefix, the parse fails if the
         // suffix is not present and the error is reported
         // at index 0. So, we need to add the appropriate
         // suffix if it is not present at this point.
         if (gotPositive == true || gotNegative == true) {
         String suffix;
         int suffixLength;
         int prefixLength;
         if (gotPositive == true && gotNegative == true) {
         // This happens if one is the leading part of
         // the other - e.g. if one is "(" and the other "(("
         if (positivePrefixLen > negativePrefixLen) {
         gotNegative = false;
         } else {
         gotPositive = false;
         if (gotPositive == true) {
         suffix = positiveSuffix;
         suffixLength = positiveSuffixLen;
         prefixLength = positivePrefixLen;
         } else {
         // Must have the negative prefix
         suffix = negativeSuffix;
         suffixLength = negativeSuffixLen;
         prefixLength = negativePrefixLen;
         // If the string consists of the prefix alone,
         // do nothing, or the result won't parse.
         if (length == prefixLength) {
         break;
         // We can't just add the suffix, because part of it
         // may already be there. For example, suppose the
         // negative prefix is "(" and the negative suffix is
         // "$)". If the user has typed "(345$", then it is not
         // correct to add "$)". Instead, only the missing part
         // should be added, in this case ")".
         if (targetString.endsWith(suffix) == false) {
         int i;
         for (i = suffixLength - 1; i > 0; i--) {
         if (targetString
         .regionMatches(length - i, suffix, 0, i)) {
         targetString += suffix.substring(i);
         break;
         if (i == 0) {
         // None of the suffix was present
         targetString += suffix;
         length = targetString.length();
         format.parse(targetString, parsePos);
         int endIndex = parsePos.getIndex();
         if (endIndex == length) {
         break; // Number is acceptable
         // Parse ended early
         // Since incomplete numbers don't always parse, try
         // to work out what went wrong.
         // First check for an incomplete positive prefix
         if (positivePrefixLen > 0 && endIndex < positivePrefixLen
         && length <= positivePrefixLen
         && targetString.regionMatches(0, positivePrefix, 0, length)) {
         break; // Accept for now
         // Next check for an incomplete negative prefix
         if (negativePrefixLen > 0 && endIndex < negativePrefixLen
         && length <= negativePrefixLen
         && targetString.regionMatches(0, negativePrefix, 0, length)) {
         break; // Accept for now
         // Allow a number that ends with the group
         // or decimal separator, if these are in use
         char lastChar = targetString.charAt(originalLength - 1);
         int decimalIndex = targetString.indexOf(decimalSeparator);
         if (format.isGroupingUsed() && lastChar == groupingSeparator
         && decimalIndex == -1) {
         // Allow a "," but only in integer part
         break;
         if (format.isParseIntegerOnly() == false
         && lastChar == decimalSeparator
         && decimalIndex == originalLength - 1) {
         // Allow a ".", but only one
         break;
         // No more corrections to make: must be an error
         if (errorListener != null) {
         errorListener.insertFailed(this, offset, str, a);
         return;
         } while (true == false);
         // Finally, add to the model
         super.insertString(offset, str, a);
         public void addInsertErrorListener(InsertErrorListener l) {
         if (errorListener == null) {
         errorListener = l;
         return;
         throw new IllegalArgumentException(
         "InsertErrorListener already registered");
         public void removeInsertErrorListener(InsertErrorListener l) {
         if (errorListener == l) {
         errorListener = null;
         public interface InsertErrorListener {
         public abstract void insertFailed(NumericPlainDocument doc, int offset,
         String str, AttributeSet a);
         protected InsertErrorListener errorListener;
         protected DecimalFormat format;
         protected char decimalSeparator;
         protected char groupingSeparator;
         protected String positivePrefix;
         protected String negativePrefix;
         protected int positivePrefixLen;
         protected int negativePrefixLen;
         protected String positiveSuffix;
         protected String negativeSuffix;
         protected int positiveSuffixLen;
         protected int negativeSuffixLen;
         protected ParsePosition parsePos = new ParsePosition(0);
         protected static DecimalFormat defaultFormat = new DecimalFormat();
    this is not working as desired pls help me.
    can we use this code and get the desired result or is there any other way to do this.
    it is very urgent for me pls help immediately
    thanks in advance

    Hi camickr
    i learned how to format the code now, and u also responded for my testarea problem , iam very much thankful to u, and now i repeat the same problem what i have with a text field.
    actually i have window with a textfield on it and while end user starts entering data in it , it should be have as follows
    when the user start typing numerics it should accept from right hand side and keep appending value from right hand side.
    first the default value should be as 0.00 and as the user starts entering
    then it is as follows
    for ex
    if i want to enter 123.45
    user starts entering
    1 then it should display as 0.01
    2 then it should display as 0.12
    3 then it should display as 1.23
    4 then it should display as 12.34
    5 then it should display as 123.45
    i hope u will give me quick reply because this is very hard time for me.

  • Background fill floating fields?

    Is there a way to background specific text within a text object? I'm trying to shade my floating fields. It looks like the background fill
    only applies like borders, so it only applies to the entire text object.
    I know you can change the color of words within a text object. Seems like the ability to background fill particular words should be a basic feature.
    Thanks

    I figured this out. When you create the static text object at design time, make sure that it has a word with a different colour or font or something. That will ensure that its value property contains an exData object with contentType="text/html". Now you can change the contents at run time with (I've replaced the angle brackets with {}):
    var theXML = "{body xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:xfa=\"http://www.xfa.org/schema/xfa-data/1.0/\" xfa:APIVersion=\"2.5.6290.0\"}{p style=\"text-decoration:none\"}The{span style=\"xfa-spacerun:yes\"} {/span}{span style=\"color:#ff0000\"}quick{/span} brown fox.{/p}{/body}";
    StaticText1.value.exData.loadXML(theXML,true);
    Jared Langdon
    www.jlangdon.ca

  • Determine the number of lines of textfield or floating field

    Hi,
    Is there a way to determine the number of lines of text in a textfield or in a floatingfield.
    My problem is that I'm creating a form with three tables(made of subforms) underneed each other that needs to be set to hidden when the total of rows is greater than 25.
    Now it would be easy to just count the rows but these rows can exist of multiple lines of text.
    The fields of my row are floating fields so when the text is bigger than the displayable width the text continous on a new line in the same row. So I need to know when this happens because now I can show only 24 rows.
    I tried counting the characters but this doesn't work, when there are a lot of 'i,j,l' or other small characters I can place 40 characters in my textfield, but when there are a lot of 'm,w' characters I can place only 22 characters in my field.
    I also tried to use xfa.layout.h(TextField1,"cm") to determine the height of the field, but it always retuns the value -1. I get the same -1 with the y or x - position.
    Does anybody have an idea how to solve this problem?
    Thanks in advance,
    RonnyR

    oops ... i got it thanks.
    code below -----
    for(var i=0; i <= s.length-1; i++)
    sCurrentLetter = s.substring(i,i+1);
    if (s.charCodeAt(i) == 13)
    // this is a line break

  • Newbie and floating fields

    Hi, I'm a newbie to LCD and I'm currently working with LCD as apart of my job... I'm currently working on and XDP that has floating fields defined within the document, i.e. {floatingfield} however within my XDP there is a piece of text defined as %signature% does anybody know what the %'s indicate/mean?
    Is there any useful guides for a newbie to LCD.
    Thanks

    Sorry,
    Here is the good one !
    https://workspaces.acrobat.com/?d=QOygMhCwFneyv8Tr1VskTA
    Many thanks

  • Printing 2 copies of a document where a floating field change

    hi experts,
    Context:
    I have an interactive form compiled by a user.
    when compiling is finished, I'd need to print 2 copies of that document; the 2 copies are exactly the same but a floating field that has to change, i.e. 'Copy for ME' and 'Copy for the CUSTOMER'.
    Placing  2 print buttons it's not a problem, in the first button I set the Floating field to 'Copy for ME' and send a print command, in the second I do exactly the same with the 'Copy for the CUSTOMER'.
    Which is the best strategy to print those 2 copies clicking the print button only once and showing the printing window only once with the whole printing spool (2 copies)?
    Best regards,
    Dariush.

    Try this in a click event of a "Print Form" object:
    form1.#subform[0].PrintButton1::click - (JavaScript, client)
    // First copy (with printer dialog):
    xfa.host.messageBox("Company copy (send this copy for blah blah blah)","Printer:");
    TextField1.rawValue="COMPANY COPY";
    xfa.event.re
    xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);
    // Second copy (without printer dialog):
    TextField1.rawValue="CUSTOMER COPY";
    xfa.host.messageBox("Customer copy (save this copy for blah blah blah)","Pritner:");
    xfa.host.print(0, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);
    The problem is messagebox. if second messagembox line is omited, no changes shown in texfield1 fields .
    First messagebox can be ommited but second messagebox sentence is mandatory.
    Other idea is using "post print" event for "reprint" entire form but untested for me.

  • Question on "text flow" with two text fields:

    Hi Folks,
    I was hoping you could help me to see if this is possible with Livecycle Designer, any assistance would be much appreciated:
    I'm populating a dynamic pdf and have the need to have multiple lines of text composed of two text fields (name and description) where name is bold text followed by description in regular text for example:
    Item 1 Name Sample: This is the item one description, adding some lorem ipsum text to show how it would flow across multiple lines here Lorem ipsum dolor sit amet, defunctam.Lorem ipsum dolor sit amet, ingens ad te ad nomine Hesterna. Pentapoli naves non ait Cumque ego dum. Scelus patrem in rei.
    Item 2 Name Sample: This is the item two description, adding  some lorem ipsum text to show how it would flow across multiple lines  here Lorem ipsum dolor sit amet, defunctam.Lorem ipsum dolor sit amet,  ingens ad te ad nomine Hesterna. Pentapoli naves non ait Cumque ego dum.  Scelus patrem in rei exultant deo apprehendit in fuerat construeret in  rei sensibilium acciperem qui enim est se vero diam ille. Agimus nolo me  testatur sed. Descendi eam ad.
    Item 3 Name Sample: This is the item three description, adding  some lorem ipsum text to show how it would flow across multiple lines  here Lorem ipsum dolor sit amet, defunctam.Lorem ipsum dolor sit amet,  ingens ad te ad nomine Hesterna. Pentapoli naves non ait Cumque ego dum.  Scelus patrem in rei.
    I have a subform for each item that contains two fields [itemName] [itemDescription], is there any way to do this without combining them into one textfield with rich text on?
    Thanks,

    Hi Phill,
    You could use floating fields, where the inputs are hidden and bound to your incoming XML. In the visible {} fields, you can set one of these to bold. The advantage would be that the two displayed floating fields will flow depending on the content.
    Have a look at the second example in this form: http://assure.ly/iuYifq
    Hope that helps,
    Niall

  • Line breaks within contents of floating fields

    Hello everyone,
    I have the following question regarding the usage of floating fields and line breaks:
    I have a text that incorporates a companies name using a floating field.
    If the name of the company is too large, a line break is forced automatically. In some cases the companies name is like "Company 123 N.V.". When the line break is forced on this company, its shows "Company 123 N." on the first line and "V." on the second line.
    How can i prevent the line break at "N."? I suppose the break is because of the "." in the text. But I want it only to be a line break if the "." is followed by a space, not if there is more text to it.
    The same sort of issue we face with floating fields containing for example telephone numbers ( format: "+31 (0) 20 - 123 456 1", line break at the "+", "(" or the spaces) and e-mail addresses ( [email protected], line break at the "@" or the ".") .
    Thanks for any reply on this.
    Regards,
    Joris

    I have the same problem. Does anyone have an answer for this one, please?
    Thanks,
    Vanessa

  • Suppressing Footer by Sum Summary Problem - MSSQL float field?

    I'm evaluating CR2008 and came to a problem I can't find an answer to.
    I'm summarizing quantity of shares in a transaction log and if the sum is zero should suppress the Footer as there is no quantity to report.  This works for 95%+ of cases but there are instances where the zero is not being supressed.  I'm not sure this is a problem with MSSQL's float field or if it is a problem with CrystalReports.
    I have a suppression formula as follows:
    If Sum({Transactions.Quanity, {Securities.Description}) = 0 Then
        True
    Else
        False
    This works as I stated for most instances.  But some it will display a 0.0000000000 (testing with the largest rounding and decimals to see if there is a rounding problem).
    The values are stored in a MSSQL database and the quantity field is of type 'float'.  As a test I queried the database for one of the failing instances with query "select quantity from transactions where portfolioid=XXXX and symbolid=YYYY".  This returns 52.732 and -52.732.  If I where to change the suppression formula to
    If Sum({Transactions.Quanity, {Securities.Description}) <= 0.0000000001 And
    Sum({Transactions.Quanity, {Securities.Description}) >= -0.0000000001 Then
        True
    Else
        False
    the suppression works correctly.  Could someone shed some light on this issue?

    Debi is the one that is correct but it still is something weird about it.  When I do the multiplication by 10000000000, I get some trailing fractions converted into a zero value as expected like 527320000001.  But if I do the same multiplication in an query on MSSQL, ie. "select quantity * 10000000000 from transactions where portfolioid=XXXX and symbolid=YYYY" I do not get the trailing fractions but the numbers I would hope to get 527320000000.  Somewhere along the way the float is converted into a number on CrystalReports and the fractions are not kept as is on database.  Null values are not allowed on database schema so those would not be an issue.

  • How do I refresh floating fields?

    I read through some of the other topics, but could not solve my problem.
    I have set floating fields to "prefill" from a database a client's name. The fields work great - once.
    The floating fields use the same binding schema as the name fields within the form and prefill with the same information (during form load). However, I need the floating fields to change if the other field(s) change (while the user is filling in the form).
    For example: If FirstNm (textobject) prefills with "Jim" during the form load, the floating text does too. If I change the text object to "John" (after the form has loaded), the floating field does not change.
    I have tried with Global and binding schemas, and seem to get the values to update while the user is using the forms.
    Is there a way to fix this?
    Thanks for the help.

    I was hoping it was that simple, but - it's not working.
    In my text objext (exit) event I tried:
    xfa.form.remerge();
    and
    xfa.layout.relayout();
    Neither one is working to refresh the floating fields.
    I am probably missing something easy.
    A little more detail of what I am looking at:
    My text object (form1.P1.grpPart1.FirstNm1[0]::exit) needs to refresh my floating field (form1.P1.grpPart3.FirstNm1[2]).
    I have about 10 of these groupings, but I am hoping that once I exercise this demon, the rest will fall in line.
    Any more ideas??

Maybe you are looking for

  • Adobe Photoshop CS5 has stopped working [Issue]

    Hello everyone! I recently just purchased Adobe CS5 as being very excited as I've been a customer before the CS series! Anyways, the install and registration with Adobe was no problem what so ever, I got to uninstall CS4 quite easily, it all worked.

  • Delete purchase requisition with item category Subcontracting

    Hi all, I need to delete a purchase requisition with item category = L (subcontracting). I am using already BAPI_REQUISITION_DELETE to delete other purchase requisitions but for the subcontracting it doest not work. In fact in the BAPI code you can s

  • Do's, Don'ts and Never for first time users

    I work within a global organisation - with many people turning to Captivate for the first time. We all share the same LMS. I want to create a short "check-list" of the most important Captivate Preference / Settings or ways of working  to help new use

  • Query selection screen not poping

    Hi BWers, I have a query, which is running correctly when I run it though RSRT. Also it run fine when I open the query in query designer and execute (it picks up the same standard web template). But when I run the same in BEx, it never pops up select

  • Table name for the Qualification Catalog

    Can pls someone share, what is the table name, I can look up for all Q and QK?