Have a field acting like Excel Cell

One of my clients have this request to have a field that can calculate operations for you but in only one field...
I am wondering if there's a method already made for this...
For exemple, in a field of hours, instead of inserting the number of hours directly we could insert the number of days he work with the number of hours and weeks... so the client could just insert 4 * 5 * 42 which will display the response in that same field... I can't make other fields for that cuz it's in a huge table and there is no space for more fields...
Anyone have an idea on how to achieve something like so?
Insert in a text field / decimal field / numeric field 4 * 5 * 42
will return the result 840 in the same field on exit event..
Thanks, Rob

Hi Rob,
I found the solution so if anyone else is looking for something similar,
you can set everything in the validate event of a text field preferably..
if (this.rawValue != null){
          // Validate the equation
          var regExpression = new RegExp("\\d+(\\.\\d+)*|[\\(\\)\\+\\-\\*\\/]"); // Create a new Regular Expression Object.
          // Set the regular expression to look for any equation's operators and numbers
          var result = regExpression.test(this.rawValue); // Test the string
          // If it fits regexp
          if (result == true) {
                    // all is good and execute the equation
                    this.rawValue = Math.eval(this.rawValue);
                    true;
          else{
                    // fail the validation.
                    xfa.host.messageBox("Please insert a valid equation to calculate.", "Information", 2);
                    this.rawValue = "";
                    false;

Similar Messages

  • Field link to excel cell

    I am using adobe acrobat 5.0. Is there a way to link the fields in an excel cell?

    No, but you could write a little applescript to open the spreadsheet and go to a cell, save the script as an application, and put a link to it in the url field of an event.
    AK

  • Can't type in form fields, acts like right mouse click.

    Using the mouse pad or magic mouse - anytime I single click in a fillable field it acts like a right or two finger click and will not let me type in the fields. It won't even let me type in URLs.

    I have this problem too. I've disabled all add ons except Foxtab 1.4.9 to no avail. The problem goes away when Foxtab is disabled. But I love Foxtab.
    Interesting discovery: everything is fine - I can type merrily along like I am here - until I click my mouse. Then the problem occurs. I have to go to another text box, type some stuff then come back. Both my Apple computers are experiencing the same problem. Both have wireless mac mice. Both started the same problem about 3 months ago. Not using my mouse gets round the problem but it's a pain because I am often cutting and pasting text into a text box. Any ideas?

  • I have a Yahoo search bar acting like an App tab that I can't get rid of. There is no option to unpin when I right click on it.

    I have a yahoo search bar which was installed during a download and installation of SIW.exe a system information application from http://gtopala.com/. It was the freeware version which is add based software. However I didn't expect that the search function would be such a nusance and interfere with Firefox's functions.
    The search bar is acting like a App tab that I can't move or get rid of. Ther is no option to unpin the object when I right click on the bar or to change it in any way using the 'group your tab' function to the right of the tab tool bar.

    Reply: Cor-el > Excellent!! Thank You. In Tools, Add Ons, Extensions there was a Default Tab enntry which was the culprit. Am running W7 so the XP Tools, Options, Advanced , Use Hardware acceleration when available, wasn't of much help here, however I did fix a problem on another computer running XP with that same fix. Thank You very much! HD

  • Data field shifting to right cell in excel file

    Hi,
    I have proxy to file content conversion scenario in which I have one field in which e-mail getting populated.
    for some email id coimg correct
    in excel file cell
    <EMAIL>[email protected]</EMAIL>
    but for it is getting shifting to right cell
    <EMAIL>[email protected]</EMAIL>
    Please suggest

    Hi ,
    I am doing the Proxy to file contennt conversion in that I have used only fieldSeparator ',' only.
    and it is one to one mapping .
    some data of coloum B is shifting to A for this I have used mapwithDefault with space and this also is not working?
    plz suggest
    Regards

  • In Address Book, I would like to have a field "File As". So, l can list "Joe Smith", as "The Smith Family". I will use this when I print labels for Xmas cards and such. Thanks!

    In Address Book, I would like to have a field "File As". So, l can list "Joe Smith", as "The Smith Family". I will use this when I print labels for Xmas cards and such. Thanks!

    In Address Book, I would like to have a field "File As". So, l can list "Joe Smith", as "The Smith Family". I will use this when I print labels for Xmas cards and such. Thanks!

  • Yesterday iTunes worked - today, it acts like it's newly installed (won't show any of my music or playlists) - what could have made it forget everything it knew yesterday and how can I fix it without having to redo all my previous work?

    The title says it all.  iTunes was working fine last night.  I added some more music to my playlists and synched my iPod last night, then shut down.  Today, when I start iTunes it opens up a welcome to setup screen and acts like it wants me to answer questions to configure it for the first time.  When I cancel out of that, it opens up a normal iTunes screen that's completely empty of music and has none of my custom playlists (all the playlists it does show are empty) and it's asking me if I want to have it search my PC and add media files, as if it's newly installed and that's never been done.
    Has anybody seen this behavior before, and is there some simple way I can fix it so it remembers all the stuff it knew last night, without having to start all over again and rebuild all my playlists and stuff?

    For general library squiffiness following an upgrade the easiest thing is to restore your last backup, but I guess if it were that simple you wouldn't be here.
    Empty/corrupt library after upgrade/crash
    Hopefully it's not been too long since you last upgraded iTunes, in fact if you get an empty/incomplete library immediately after upgrading then with the following steps you shouldn't lose a thing or need to do any further housekeeping. In the Previous iTunes Libraries folder should be a number of dated iTunes Library files. Take the most recent of these and copy it into the iTunes folder. Rename iTunes Library.itl as iTunes Library (Corrupt).itl and then rename the restored file as iTunes Library.itl. Start iTunes. Should all be good, bar any recent additions to or deletions from your library.
    See iTunes Folder Watch for a tool to catch up with any changes since the backup file was created.
    When you get it all working make a backup!
    tt2

  • You need to have xlsm where you can access the macro in numbers.  this is frustrating that the idea of Numbers is to make it like Excel yet you dont have this capability.  Question is, when will it happen or will it happen????

    You need to have xlsm where you can access the macro in numbers.  this is frustrating that the idea of Numbers is to make it like Excel yet you dont have this capability.  Question is, when will it happen or will it happen????

    Hi brev,
    Several points here:
    1. Although there is some compatibility between Numbers and Excel files, I doubt very much that "the idea of Numbers is to make it like Excel." The two applications share some similarities, but also have several differences.
    2. Your Question is unanswerable in this forum. Apple does not generally reveal future development plans or schedules for its applications, and anyone with knowledge of those plans will be bound by a non-disclosure agreement.
    3. "You need to" implies a feature request. If you want to request that a feature be added to a future version of Numbers, that request is better made directly to Apple, via the Feedback channel, than here, where the readers and responders are all users of the software, not developers. From the application menu (the "Numbers" menu in Numbers), choose Provide Numbers Feedback, then make your request for a feature to be added to Numbers.
    Meantime, if you absolutely need the macros capabilities of MS Excel, try one of the Office clones—OpenOffice.org, LibreOffice, or NeoOffice, which may offer macro support, or use the Mac version of Excel itself.
    Regards,
    Barry

  • Is it possible to linking cell in different file? Like Excel can do.

    Is it possible to linking cell in different file? Like Excel can do.

    No, not supported. Maybe next version...
    Jerry

  • TS1702 I have a new iPhone 5 with Pandora app installed.  When I am in my carwhich also has a Pandora APP, I cannot get either to play.  The phone on it's own acts like it is playing my music but there is no sound!  The car does not seem to recognize my p

    The Pandora APP is installed on my iPhone5 &amp; works fine except when I am in my new car that also has a Pandora APP.  The car doesn't seem to recognize the phone so doesn't connect.  My iPhone will act like it is playing Pandora as usual but there is no sound at all when I am in the car.  What do I need to do?

    Hello Mogulman46,
    So what that means is when you have Do Not Disturb turned on, you may have an alert depending on the setting and how you are using your iPhone. So if it is set to Always, then that means that no matter what, your iPhone will not be notified. If it set to Only while the iPhone is locked, then that means that you will not get notification when your iPhone is locked but you will get notifications if your iPhone is being used. Also keep in mind the settings All Calls From can be set to certain contacts like Favorites, Everyone or no one. If you are using Do Not Disturb and you do not need it, then turn it off. 
    Use Do Not Disturb on your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/ht5463
    Regards,
    -Norm G. 

  • Does the latest version of Numbers have anything like Excel's goal seek?

    Does the latest version of Numbers have anything like Excel's goal seek?  I frequently use goal seek to solve non-algebraic equasions for an unknown.  Thanks.

    I went through the installation where the bar shows the percentages downloaded and installed. Once it shows 100% it asks me to click Finish. I do. Then I go to yahoo to check and it continues to show that the plugin is missing and that I need to download Adobe Flash which I thought that I just did. Am I missing something in terms of installing??
    Kent M. Farrar

  • I have two fields and I would like the 2nd field to display the word "Error" if the number is smalle

    I have two fields and I would like the 2nd field to display the word "Error" if the number is smaller than the number in field 1.
    can any one help?

    The code for the field? Sure, it's simple.
    You can use something like this as its custom calculation code:
    var v1 = this.getField("Field 1").valueAsString;
    var v2 = this.getField("Field 2").valueAsString;
    if (v1 && v2 && Number(v2)<Number(v1)) event.value = "Error";
    else event.value = "";
    Edit: Fixed code

  • Forms 9i - Cell based formatting like Excel in canvas

    Does anyone know how to display cell-based formatting in a canvas, like how excel displays data. Example below
    |_____EVENTS_____|_____2002_____|_____2003______|
    |jlklsdjfkfsdlk__|_M Oct 13_____|__T Jan 7______|
    Etc... Pretty much I am trying to display information is a similar format to notify users of important dates, that they may register for events based on the dates, but I would like to keep it in a excel cell format.
    Any help would be appreciated.

    Hi,
    there is no spread table functionality provided within Forms. You can use an OCX (client/server only) or a JTable Java Bean (Web only). If you try to do this with Forms native methods, then you better off creating your canvas as a forms based display and set itn size and location saccordingly.
    Frank

  • Why won't OS X Mavericks start downloading when I click the download button? It thinks and acts like it starts downloading with the thinking circle moving then stops and goes away. I have tried going to the purchases in the app store and restarting it the

    Why won't OS X Mavericks start downloading when I click the download button? It thinks and acts like it starts downloading with the thinking circle moving then stops and goes away. I have tried going to the purchases in the app store and restarting it there and that is not working either.

    Repair permissions, restart your computer & try again. 

  • My photoshop CC acts like I have a trial account and asks repeatedly to sign on

    My photoshop CC acts like I have a trial account and asks repeatedly to sign on.  This happens about one third of the time I try and use CC.  This is very frustrating as each time I have to resign on, enter my email and password which takes about 5 minutes each time.  Once I sign on it acts like this is a new account although I have a clould account for a couple months now.  How do I get this to stop?

    Hi McBuck01,
    Welcome to Adobe Forum,
    Welcome to Adobe Forum,
    You can go through this thread, it can help to resolve your issue:
    http://forums.adobe.com/message/5703632#5703632
    http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html
    You may be prompted to sign in but if you are on an annual plan you have up to 99 days to sign in. If you are on month to month then you may have up to 30 days to sign in. You can find more details on this in the Creative Cloud FAQ athttp://www.adobe.com/products/creativecloud/faq.html.
    Do I need ongoing Internet access to use my Adobe® Creative Cloud™ desktop applications?
    No. Your Creative Cloud desktop applications (such as Adobe® Photoshop® and Illustrator®) are installed directly on your computer, so you won't need an ongoing Internet connection to use them on a daily basis.
    An Internet connection is required the first time you install and license your desktop apps, but you can use the apps in offline mode with a valid software license. The desktop apps will attempt to validate your software licenses every 30 days.
    For annual members, you can use the apps for up to 99 days in offline mode. Month-to-month members can use the software for up to 30 days in offline mode.
    Regards,
    Rajshree

Maybe you are looking for