Evaluating a text field as a formula

Hello World!!
I've been racking my head here lately wondering if this is possible and I'm hoping that someone can tell me it is and how to do it.
Ok here's what I'm trying to do:
I'm trying to create a form that will
1) create new inputs that I call estimates in a table called Estimates
     Definition of table:
     Estimate_ID
     Estimate_Name
     Estimate_Description
     Estimate_formula -- (user defined formula to calucate the estimate)
2) Create multiple inputs per estimate and have these inputs will be stored in a Estimate_Inputs table..(estimate_id will be the key between the two tables)
    Definition of table:
     Estimate_ID
     Input_ID
     Input_name
     Input_type -- (constant, %, etc)
     Input_value -- (user defined)
My end goal is to create a way to store values for a formula in a table and extract them when needed to execute a given formula as defined in Estimates:Estimate_Formula field of another table.
ex. 
     Estimate table:
     Estimate_formula - "= Level_of_Effort - SUNK"
     Estimate_Inputs:
     Input_Name - "Level_of_Effort" |  Input_value - 25000
     Input_Name - "SUNK" |  Input_value - 1000
     Answer: 24000 =        25000        -   1000
                              "Level_of_Effort" - "SUNK"

Something like this might work.
Query number 1 - select your formula.  It's now a ColdFusion variable.  Let's call it yourFormula.
Query number 2
select field1, field2, #yourFormula#
from etc

Similar Messages

  • Calculated formula for replacing a comma with a Semicolon in a text field

    I need help replacing a comma with a Semicolon in a text field.
    I have a field that has names separated by commas.  
    Ex: Dog, Cat, Bird, Horse, Eagle, Worm, Snake
    I would like a calculated column that converts the field into: Dog; Cat; Bird; Horse; Eagle; Worm; Snake
    I figured out the first three positions (Dog, Cat, Bird,) but I can't figure out the rest.
    Using the formula below.
    =REPLACE((REPLACE((REPLACE([Title],SEARCH(",",[Title]),"1"," ; ")),SEARCH(",",(REPLACE([Title],SEARCH(",",[Title]),"1"," ; "))),"1"," ; ")),SEARCH(",",(REPLACE((REPLACE([Title],SEARCH(",",[Title]),"1","
    ; ")),SEARCH(",",(REPLACE([Title],SEARCH(",",[Title]),"1"," ; "))),"1"," ; "))),"1"," ; ")
    Please help

    check the similar post
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/66e2ae2a-4da9-4c58-a8bb-cf46b1bf448f/calculated-column-to-replace-commas?forum=sharepointgenerallegacy

  • Example of a formula in a text field

    Is it possible to input an example of a formula in a text field?
    For example:
              (To get abc - EFG)
    HIJ=           KLM
    thanks

    Okay,
    If you want static instructions to support a textfield, you could use a text object. You can type in the formula at design time. The advantage is that the user cannot interact/change this the formula.
    Another option is to use the caption of the textfield object to show the formula.
    You can also set up a null pattern in the textfield object, so that the formula appears if the user has not put in a value into the field.
    Lastly, you can also use the textfield object to contain the formula, by going to the Object > Value palette and inputting the formula as the default value.
    If you have a problem with any of these come back,
    Niall
    Assure Dynamics

  • Setting different text colors within 1 formula field

    Post Author: hassan.annous
    CA Forum: Formula
    Suppose I am interested in coloring each part of a text returned by a formula field with a different color.
    For example I have the following string:
    Local StringVar Diagnosis := "I am trying to color my text.";
    And I would like to color "I am" in red, "trying to color" in blue, and "my text" in green.
    Is that possible (using Crystal Syntax)?

    Post Author: tyanksar
    CA Forum: Formula
    Yes, but suppose I have field that outputs this text: "I have 1000 Cars"
    The "1000" is dynamic (embeded field), which means it could go to 1000000 (increasing the number of digits) and then shif the word "Cars" to the right. What I need is to color this "1000" .
    I do not want to seperate the "1000" to another text box. this will not shift the "Cars" to the right when the digit increases. Also it is not convenient to expand the text box as well, it will look like this: "I have 1000          Cars".
    Any solutions?

  • Change the font color of a text field in a table by key-combination

    I want to change the font color of a text field in a table (single cell only) on pressing a key combination. Does anybody know how to do this.
    I have a lot of data in a table. During an evaluation of the data in a meeting I want to change the color of the text depending on the result of the meeting. (for example: High risk = CTRL+R makes the text red).
    I know how to change the color using a button, but I do not want to add a button after each cell. For this reason I would like to do it on a key combination that alway refers to the active cell.
    Many thanks for your help in advance.
    Marcel

    Hi,
    I don't think you can use the ctrl key like that as those shortcuts will be intercepted by Reader (ctrl-R toggles the ruler display on / off).  You also might have trouble updating the color while you still have focus on it.  You can use the shift key in a similar way, so if you only have lower case characters in the text fields then you can do something like;
    if (xfa.event.shift)
        switch (xfa.event.change)
            case "R":
                this.fontColor = "255,0,0";
                break;
            case "O":
                this.fontColor = "255,102,0";
                break;
            case "G":
                this.fontColor = "0,255,0";
                break;
        xfa.event.change = ""; // ignore character
    If you need uppercase characters maybe you can have one button to set "review mode" and test that on the if (xfa.event.shift) line.  But again it wont take effect until you have tabbed out of the field.
    Regards
    Bruce

  • Unable to create a report based on a text field which returns , separat val

    hi,
    i have created a sql report which fetches the values depending on values in text field,
    select * from emp where empno in :P2_xwhere P2_x is a text field,
    if i enter only one value then report is generated and if i enter two values separated by ","
    says no data found
    thanks,
    Little Foot

    >
    i have created a sql report which fetches the values depending on values in text field,
    select * from emp where empno in :P2_x
    where P2_x is a text field,
    if i enter only one value then report is generated and if i enter two values separated by ","
    says no data found
    >
    In
    select * from emp where empno in (7788, 7839, 7876)<tt>(7788, 7839, 7876)</tt> is an expression list and the predicate is evaluated as a membership condition.
    In
    select * from emp where empno in :P2_x<tt>:P2_X</tt> is a scalar string, incapable of containing multiple values.
    See +varying elements in IN list+ on Ask Tom, and +emulating string-to-table functionality using sql+ for potential solutions.
    In an APEX standard report, use a PL/SQL function body returning an SQL query report source with lexical substitution to produce a "varying IN-list":
    return 'select * from emp where empno in (' || :P2_X || ')';where <tt>P2_X</tt> has been sanitized for SQL injection and string values are properly quoted.

  • How to create a pdf/a-1b with a text field

    hello, I'm trying to execute a very simple task: create a pdf/a-1b containig a text field.
    using Acrobat XI pro, I created a simple pdf form with 1 form field of type text , then tried to save as pdf/A-1b. The pdf is saved but the form field is removed from resulting pdf.
    Here in detail the steps I made:
    0) configure adobe pdf printer to save as pdf/A-1b
    1) creat a test.txt with notepad
    2) print using acrobat pdf printer
    3) open the generated pdf with Acrobat XI
    4) in 'Standards' panel I see that pdf conform
    5) now go to 'Tools\Modules' and 'Modify'
    6) add a textbox field
    7) exit from 'Modify' mode and save
    8) in 'Standards' panel I see that pdf doesn't conform.
    9) I opened the preflight tool and see two errors
         a) "XMP property for a page object not predefined and no extension schema present".
         page reports the following Trigger values:
         - Extension schema is present in XMP: is not true
         - Property exists in PDF/A Standard: is not true
         b) Form field does not have an appearance dictionary
         page reports the following Trigger values:
         - Form field has an appearance dictionary: is not true
    I'm quite new to Acrobat: simply downloaded the Actobat XI evaluation version, created the file and added the text field. No special settings nor other configurations was applied,
    I'm wondering if someone else was able to reproduce this behavior.
    thank you for any comment

    First, about invalidating the PDF/A. I was told, but never had this confirmed nor tested, that editing a PDF/A will automatically cause the PDF/A status to be deleted from the file. This is because Acrobat does not know about the compatibility of every edit with every current (and future) PDF subset standard, so it is safest just to remove the indicator - if you turn off Adobe's PDF/A view mode which will prevent editing anyway.
    Now, you have a problem with the signatures. Possibly a very big one. Your description "2) fill the text field with some annotations and then sign the signature field 3) save the pdf" is a little too separated. At the time a file is signed it is saved, the hash calculated, and written to the file. So signing and saving are just one action. Yet an unsigned digital signature needs, it seems to me, no appearance.
    I think the solution is a simple one. Sign it, but not with a signature field. If it is PDF/A when you start it is probably PDF/A when you finish. Signature fields seem a distraction and obstacle to the important thing, signing.

  • How to allow input text field to accept more than one "specific" answer.

    Hi,
    I am working for something and trying to create a type-box-based quiz for one of my classes, where an input text field can change it's border color if 2 or more words from an accepted word list is inputed.
    For example, Say a list has possible answers: R,G, B, Y for the question "Name 2 colors".
    I want to create an input text box where the border of the box will change color if any 2 letters (in the above list) are entered into it.
    I've tried setting up a variable NumberSuccesses and setting it so that the number increases by 1 for each letter entered e.g.
    if (Ex.text == "R");
    NumSuc = NumSuc +1; // the var NumSuc has already been defined earlier in the code
    If (Ex.text ''G")
    NumSuc = NumSuc + 1
    if (NumSuc == 2)
    Ex.borderColor = 0x0000FF
    but that didn't work.. and I tried doing it with another function which I use for multiple input boxes like if there were boxes A, B, C. I could set up a general function where if the correct answers were entered into A, B, an C respectively, only then will say, a checkmark show up using a
    EnableCheckmark (); type function. Not sure how to do it if it's the same text input box though. Also just tried adding it into the same function re.
    If (Ex.text == "R" + "G")
    Ex.borderColor = 0x0000FF
    .. Does anyone know what else I can do?

    The solution of Nishu with Evaluation Logic:
    //These Are the Possible Answers
    var solutions:Array = new Array("A","B","C","D");
    function testInput(_inputText:String):Boolean
        //the delimiter could also be a comma, here it is a space
        var inputStringArray:Array = _inputText.split(" ");
        var counter:Number = 0;
        for (var i:int=0; i<inputStringArray.length; i++)
            for (var j:int=0; j<solutions.length; j++)
                if (inputStringArray[i]== solutions[j])
                    counter++;
        if (counter >=2)
            trace("true");
            return true;
        else
            trace("false");
            return false;
    //Textfield with name input_txt on stage
    input_txt.addEventListener(TextEvent.TEXT_INPUT, answerTxtInp);
    // The function that will be called by the event listener
    function answerTxtInp(txtEvent:TextEvent):void
         // depending on the possible answers of characters, change the border  color
         if(testInput(input_txt.text)){
             input_txt.borderColor = 0xFF0000;
         else{
             input_txt.borderColor = 0x000000;

  • Using variables in a text field

    I am very rusty using lingo, and I cannot find how to do this
    in any of my old projects (using director 7 if that helps you date
    this)
    I am trying to generate a random number, which becomes
    visible in a text field on the stage after the user presses a
    button.
    The text field is called "hotseat"
    on the button, I have a script which so far reads
    on mouseUp
    set grandom = random (50)
    end
    As you can see, I did not make it far. 8-)
    In an earlier part of the project, I got around this issue by
    evaluating the variable in an enormous if..then...else if
    statement. I am trying to find a less tedious way to do it
    Any help would be appreciated.
    BobR
    ps I am still using Director 7

    on mouseUp me
    set gRandom = random 50
    member("fieldMemberName").text=string(gRandom)
    end

  • How do you change the lenght of the text field in fb50?

    Hi,
    In the transaction FB50  , the long text field In the item line  is not showing the whole description written in the text field (word pad).when viewing the item  details it is showing ony half description.How do we increase the field size?

    Are you Talking about G/L account short text in the Item Level ? If yes
    Standard Text Field  20 character Length" The G/L account short text is used for online displays and evaluations which do not have sufficient space for the long text."
    Kanagaraja L
    Edited by: Kanagaraja  Lokanathan on Jul 15, 2009 1:05 PM

  • How do I make a text field expand in depth so I can see it in print?

    I am totally new to making forms in Designer. So please bear with me.
    I created a simple form for teachers to use as an evaluation tool. A question is asked on the form, and the teachers have space to reply in the text field just below.
    The trouble is, I want the expanding field to actually "push" the content below it as the field increases in depth. That way, when users print the form for the record, their responses can be viewed in their entirety on the page.
    At the moment, the text fields expand with *scrollbars,* which allow multiple lines of text -- but when you print, you only see a few lines.
    How can I accomplish this?
    Thanks to everyone for your help. -- Barbara

    Hi Barbara,
    Basically, you do it by creating a dynamic form.
    WARNING: When you do this, other parts of your form may go wonkers if they're not set up carefully, so be sure and save a copy of the original first.
    --Be sure your form is saved as a dynamic PDF. Check to make sure the preview type is set for Interactive (File menu > Form Properties > Defaults > Preview Type)
    --Set the text field itself to "Expand to fit" (Layout palette, Height)
    --Wrap it in a subform set to "Flow Content" (Object palette, Type. Also check "Allow Page Breaks within Content" on the Object palette)
    --Set the main subform for the page it's on to "Flow Content" as well.
    You'll still see the scroll bars, but after you exit the field it will expand the way you want it to.
    You can read up on the two types of subforms in Designer Help.
    Let me know if that works for you.
    Ann

  • Looking for a tool to search text fields in about 1000 reports installed on Business Objects Xi R3

    Hi,
    i am looking for a tool, program that can search all our reports installed on Business Objects Xi R3 for specific content in text fields and formulas.
    We used a couple of years ago .rpt inspector, that worked pretty well for our purpose.
    Unfortunately  this is Win XP & Win Server 2003 only, so we can't reuse it anymore.
    (I know there are way of getting WinXP that in a VMware, but that is not an option in our company.)
    So i am interested , if there is another tool out there, which can help us?
    regards Alex
    btw we are using Business Objects XI R3 (SP7) with reports deisgned on crystal reports designer 2008

    Hi,
    i am looking for a tool, program that can search all our reports installed on Business Objects Xi R3 for specific content in text fields and formulas.
    We used a couple of years ago .rpt inspector, that worked pretty well for our purpose.
    Unfortunately  this is Win XP & Win Server 2003 only, so we can't reuse it anymore.
    (I know there are way of getting WinXP that in a VMware, but that is not an option in our company.)
    So i am interested , if there is another tool out there, which can help us?
    regards Alex
    btw we are using Business Objects XI R3 (SP7) with reports deisgned on crystal reports designer 2008

  • Need to add superscript for text field--HELP NEEDED.

    Hi Friends,
    Is there any way to implement superscript and subscript text in Crystal?  For example, I would like to superscript the portion (1) of the following string:
    "Buy(1) or Sell(1)"
    The only way I have found to do this is to put the "235" in a separate text field that uses a smaller font size, and overlay it into the gap that I intentionally left in the larger text field.  For display and printing purposes, this works OK, but if a report containing these strings is exported to Excel, the text fields are exported as separate cells, which makes the exported report look funny.
    I can create this string in Word, then cut and paste it into a text field in Crystal (which initially seems to work), but as soon as I click off the field, all the characters in it are converted to the same font size.
    If this can't be done in the current version of Crystal, are there any plans for it to be implemented in future versions?

    hello all,
    the text interpretation for html or rtf in fields will not render superscript or subscript. the basic rule is that whatever you can format directly in a crystal reports text object, that's what you can have interpreted.
    look up "text interpretation html" in kbase for a full list.
    one option is to turn html passthrough on the server in question if this is a huge deal for you...if you want instructions on how to turn html passthrough on, they are located in the webelements user guide at
    http://diamond.businessobjects.com/node/255
    after doing so, you'd drop the database field into a formula and any html in the database field would be interpreted.

  • Creating & Moving Text Fields Causes Delays/Slowness

    Maybe it's my computer, but I'm trying to create a simple PDF form using only text fields and it's very slow going. I'm adding the text fields to a 4MB PDF created in Illustrator that includes hi-res JPEG-compressed images. I need the file to be hi-res for end-user printing. The problem arrises right off the bat when I go to insert my first text field. I get the text field placed and then my curser goes to the watch, then the twirling beach ball. This lasts for about 30 seconds before I can even edit the formatting/properties. Once the program is done thinking, I go to create another text field. Sometimes this too requires 30 seconds of spinning beach ball and sometimes not. Either way, it's painfully slow as I have a couple dozen of these to add and tweak. I don't want to wait 30 seconds every time I try to tweak something. I'm running with 8 GB of RAM and while my Mac Pro is 4 years old, it has a 2 x 3 GHz Quad-Core. I'm running CS5 with Acrobat Pro.
    Is there a setting I could be using that could help speed things up? It just seems strange that the computer/program has to do so much thinking after each placed text box... especially since there are no formulas/calculations being used. Unfortunately, I don't usually use Acrobat or create forms, so I'm somewhat of a novice user despite being a 20-year Adobe user.
    And I suppose if the problem is the size of my original PDF created in Illustrator, can I create the form on top of a much lower res PDF and then transpose the form to the higher res version for distribution?
    Thanks everyone!
    Abby

    I suppose a possible solution is if there's a way to add the text form fields in Illustrator... or if there's a way to add an invisible marker (besides adding a rule line) that Acrobat will automatically read as a text field location?

  • Using radio buttons to set the value of a text field

    I have a set of three radio buttons on a form (a performance evaluation). If I select the "1" button, I want 1 to populate in the text field. The same goes for "2" and "3"
    I have not been able to code the buttons correctly for this scenario, and can't figure out how to do it.
    From a previous post, I was able to get check boxes to do what I want, but they won't really work because I can't set them so that only one back may be selected.
    Can this be done?
    Thanks!

    The information for this specific case isn't anywhere. The best that you can do is understand what triggers each of the events, then ask yourself which of those triggers are pertinent to your current issue.
    http://help.adobe.com/en_US/livecycle/es/LiveCycle_Designer_Scripting_Basics.pdf ...
    The above link contains a great deal of information regarding how to use scripts within Livecycle Designer. The section that you would be most interested in in order to learn about the available events can be found under "Events >> List of Events".
    You needed to use the initialize event so that the text field would be updated when the document was opened. This ensure that the text field has the value of the default radio button when it is opened for the first time.
    You needed to use the change event so that, when the use selects a different radio button, the text field is updated with the new value.
    That's about it. That PDF file that I link to above is a bit long, but it's a great place to get a good grasp of the basics of scripts.
    If you have any further questions, feel free to ask. =) Have a good one.
    - Scott

Maybe you are looking for

  • FPE2 doc changes are not saved when C4EYE is reset via workflow

    Hello All,     I'm utilizing event # 5504 in FQEvents (in FICA) to start a workflow. When a user sets a payment method in FPE2, I set the C4EYE and then explicitly create a custom event which starts my approval workflow. On saving the document change

  • Custom total rows in crosstab

    Hi, I would like some feedback as to whether the following is possible (or not) using BI Beans. Requirement Summary: To insert a number of custom calculation rows in a crosstab that are based on calculations of values in dimension-member rows. Requir

  • One Plug-in Points with multiple status instances

    Hi, I deployed the following plug-in point that works as expected: <oimplugins> <plugins pluginpoint="oracle.iam.request.plugins.StatusChangeEvent"> <plugin pluginclass="com.zeropiu.custom.oim.pluginpoint.EmailNotificationOnRequestStatusChange" versi

  • How to upload photos from ipad air1 to iCloud

    i have sufficient space for all my photos in iCloud.  Photos take up approx 8gb - 9gb in total, 5gb on iCloud 3gb - 4gb on iPad air.  I want to store all pics in iCloud as there is no disc space available on iPad air.  It now seems that iPad is downl

  • Oracle: Expanded non LONG bind data supplied after actual LONG or LOB colum

    I am getting this error message when I try to insert clob into oracle table. ORA-24816: Expanded non LONG bind data supplied after actual LONG or LOB column. This error message is kind of misleading. For this error message, I should reorder the list