Planning 11.1.2.1 validatedata.js

I'd like to customize all data forms to prevent users from entering numbers with decimal.
I want to do that with ValidateData.js.
var PRECISION_LIMIT = 0;
function limitPrecisionForForm(Form1) {
     for (row=firstDataRow; row<numRows; row++) {
          for (col=firstDataCol; col<numCols; col++) {
               grid[row][col] = limitPrecision(grid[row][col], PRECISION_LIMIT);
     return true;
function limitPrecision(value, limit) {
     if ((value == null) || (value.length == 0) || (value == missing)) {
          return(value);
     } else {
          return((Math.round(value * Math.pow(10,limit)))/Math.pow(10,limit));
in sample, but don't know whhat I need to do to implement it.
Can anybody has step-by-step tutorial? Where I need to insert it? I have som tmp directiries.
I use weblogic.
Jurek

Does this help - Re: if user enter mismatched or wrong data data form should not to be saved ?
There is also a temporary location you can update but there is no guarentee the tmp directory will stay valid and it may be best to go down the route in the post I put the link to...
<MIDDLEWARE_HOME>\user_projects\domains\EPMSystem\servers\Planning0\tmp\servers\Planning0\tmp\_WL_user\PLANNING_11.1.2.0\<randomchars>\war\custom
Restart the web application service after making any changes.
Cheers
John
http://john-goodwin.blogspot.com/

Similar Messages

  • 11.1.2.1 Planning JavaScript steps after updating ValidateData.js

    I am working with Planning 11.1.2.1 this is a multiple server deployment (1 web server, 2 planning servers with load balancing).
    My question is I have updated the ValidateData.js in the HyperionPlanning.ear.
    Aside from deleting the Planning0\tmp directory when services are off. What is the process of getting it deployed.
    I have tried to skim through several forums on OTN and there are so many questions left open that I am confused and just need some guidance.
    Do i need to update the HyperionPlanning.ear in all 3 servers? Or just the 2 planning servers.
    After doing placing the moified HyperionPlanning in the Oracle\Middleware\EPMSystem11R1\products\Planning\AppServer\InstallableApps\Common.
    What all services need to be started and stopped for this to take affect
    Finally Is there a specific log that tells me if the syntax will correctly validate against my application or that the syntax was accepted?
    I was able to perform this on an 11.1.2.3 enviornment with the ADF turned off. the syntax of my ValidateData.js worked seamlessly and there were no flaws. So I can easily post that. Although I don't think it's a syntax issue. I think it's something else although I am not completely positive.
    Thanks,
    DjSmeadly

    Even if it is clustered you should be able to go directly to each planning server and test, also make sure browser caches are cleared, if you are using firefox and something like firebug you can easily see whether the custom JavaScript has loaded, you should also be able to see if it has deployed the JavaScript file by looking in the tmp directory.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Planning picks up default validateData.js when started as Win services

    Hi,
    I have customized ValidateData.js which is working fine when EPM 11.1.2.0 Planning service is started from Web logic.
    If I go http://<Planning_Server>/HyperionPlanning/custom/ValidateData.js, it gives the customized ValidateData.js file which is in "E:\Oracle\Middleware\user_projects\domains\EPMSystemDEV\servers\Planning1\tmp\_WL_user\HyperionPlanning\73a6ac\war\custom\" directory
    However if I start Planning service from Windows services console, Planning service picks up default ValidateData.js file which has no validation in it.
    I have searched entire directory including Planning Temp directory (C:\TEMP\servers\Planning1\tmp\_WL_user\HyperionPlanning\73a6ac\war\custom) and replaced ValidateData.js with the customized one. I even replaced ValidateData.js in HyperionPlanning.war but Planning still picks up default ValidateData.js when started from Windows Services or startPlanning.bat
    Does anyone know where Planning service picks up ValidateData.js when it is started as Windows Services? or why Planning behaves different when it is started from web logic / win services?
    Any help would be much appreciated.
    Regards,
    Edited by: 801617 on 11/10/2010 15:33

    Thanks for your reply Alp.
    EPM 11 Planning admin guide says that but ValidateData.js and SampleValidateData.js is not in \WEB-INF folder.
    I have customized ValidateData.js in Hyperion 9.3.1 before and changing ValidateData.js in \custom directory did it.
    I copied the customized ValidateData.js file into \WEB-INF folder and restarted planning (as windows services) but Planning still picks up default ValidateData.js.
    I still can't find where in the planning server this default ValidateData.js is sitting.
    Regards,

  • Modify ValidateData.js on Planning 11.1.1.3

    All,
    Some of you know whether to implement the changes on ValidateData.js must restart the services of the web server?
    When making changes to this file for controls on forms, these changes are not implemented. In particular on the function validateForms().
    I use a Hyperion Planning 11.1.1.3 with WebLogic Server.
    Any help is welcome
    Thanks
    Flavio

    If you are using weblogic then you will need to restart the planning application web application to take account of the changes.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • ValidateData.js files Error

    hi
    after uploading the updated validateData.js file and after that opening the Hyperion Planning web form im getting the error **"Problems with this web page might prevent it from being displayed or functioning properly "*
    Line : 54
    Char: 4
    Error: Object doesn`t support this property or method
    Code : 0
    and after this if i upload the default ValidateData.js file then it is also showing the error/
    im on project...so please i need solution soon
    Thanks in advance

    I meant the server log files. To clarify, the issue you are seeing is that, when minification is enabled, a request to
    http://localhost:5555/etc/designs/healthgskEMAP/clientlibs.js returns a blank response. As I said, that *can* be caused by a syntax error which prevents minification from working. This syntax error will be logged in the server log.
    If you are getting errors in the browser from other client libraries, that's a different problem. To troubleshoot that, you'd want to look at the content being delivered to the browser and any entries in the server log when those files are requested.

  • Validatedata.js

    Anyone have a work around for validatedata.js not working in 11.1.2.2?

    Do you have a working validation? Then you can perform the testing by turning off ADF.
    Go to Administration -> Application -> Properties. Add the application property ORACLE_ADF_UI with the property value false. Then restart planning web application. (This will turn off all the new ADF features)
    Regards
    Celvin
    http://www.orahyplabs.com

  • ValidateData.js - apply changes to data form

    Hi,
    I've modified the ValidateData.js file to add a button to a form. My question is how do I actually see the changes I've made in the file appear in the data form? In layman's terms, how do I execute the code inside ValidateData.js?
    Thank you!

    user12169513 wrote:
    I refreshed the browser and restarted Planning. What do you mean by event?If the app server is weblogic then any changes will require a restart of the planning app service, if it is tomcat you can just log out/in of planning.
    The event = which function did you put it in, maybe sharing your code will help further
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Validatedata.js Errors

    Has anyone implemented validatedata.js with system 11. I am having issues with it, its sometime giving me errors and sometime the web page for the forms doesn't even refresh. I tried opening planning with IE7, IE6 and even Mozella. I did clear up the cache on each one of the environment every time I change a code on the validatedata.js file. Even a simple alert statement is not working, any help? Anyone facing the same issue?

    I Might have posted it in the wrong section its related to Hyperion Planning Forms.

  • SampleValidateData.js OR ValidateData.js script files for Hyperion forms

    Hi All.
    We're running Hyperion EPM 11.1.1.2 and I want to create some custom javascript functions for a Planning data form. I want to work within SampleValidateData.js or ValidateData.js but I can't find either of these files.
    We're running Tomcat and 11.1.1.2 EPM Planning.
    Thanks!

    It's possible the Planning webapp is deployed remotely. Check the tomcat server.xml file for a context tag that references HyperionPlaning. There you can find out where the HyperionPlanning directory that has custom under it is located.
    It's also possible that planning is running directly from an unpacked war. In which case you will need to change the unpackWARs setting to true in server.xml in order to readily work with the validation javascript.
    Regards,
    Robb Salzmann

  • How to Enable Custom Java Scripts for forms in Planning 11.1.2.2

    I am working on Planning 11.1.2.2 right now.
    Planning admin guide says, there is no explicit requirement to enable java Script for planning forms.
    I set simple alert to see text "Hello World" in function validateForm() function in custom/validateData.js file - to see and test that alert when I save data for my selected application/form.
    Closed javascript file and workspace, and planning application web page. Since I have not to do anything new to enable this java script alert, I opened that form and saved data to see if I can see my alert.. I got no alert, except "data are saved".
    Has anything changed since last version? Am I missing something? Or, do I need to recycle services to get this alert?
    thanks in advance.

    Thanks guys, for your quick replies..!
    Not sure what I missed, but I still have a hard time finding my "Hello World" alert.
    What I did, is here.
    a. Cleared all cookies and temp files from IE.
    b. Updated validateData.js file from ear / war files using 7-zip program at given path from your link.
    c. Stopped EPM services
    d. Dropped tmp folder.
    e. Started EPM services and let system deploy ear file (with my java script code).
    All services are up. I can see EAR file deployed and java script file ValidateData.js has all my changes in new tmp folder now.
    I am able to open my application and form.
    But, my "Hello World" alert is still not appearing. Form is saved and saw message as usual.
    One exception I noticed in my path. I have ....user_projects\domains\EPMSystem\servers\EPMServer0\.... in place of ....user_projects\domains\EPMSystem\servers\Planning_0\.... in my path. Planning_0 is replaced by EPMServer0 in this version. Rest is all same.
    Any clue? thanks in advance,

  • Re: Custom Javascript Implementation in 11.1.2.1 Hyperion Planning

    Hi all;
    I have made changes to the validatedata.js custom script (11.1.2.2) and followed all the actions suggested by john and removed the tmp present (C:\Oracle\Middleware\user_projects\domains\EPMSystem\servers\EPMServer0\tmp\servers\EPMServer0\tmp\_WL_user\PLANNING_11.1.2.0) and recycled the services but still i am not seeing any changes
    I have just included a alert("hello")
    function validateForm()
         // Insert custom code here
         alert("I am working");
         return;
    Nothing seems to be working.
    Kindly advice where i am going wrong.
    Thanks

    Hi Celvin;
    Thanks for the reply. Kindly let me know which js i need to look into , there are so many that are present in the Internet explorer temp folder
    AdfRichPivotTable-11.1.1.6.0-1318.js
    accordion-11.1.1.6.0-1318.js
    ADFCommon.js
    ADFHelpHandling.js
    AdfTranslations-11.1.1.6.0-1318en.js
    boot-11.1.1.6.0-1318.js
    box-11.1.1.6.0-1318.js
    BpmCopyDom.js
    collection-11.1.1.6.0-1318.js
    core-11.1.1.6.0-1318.js
    DateFormat1_2_12_3_3.js
    declarativeComponent-11.1.1.6.0-1318.js
    detail-11.1.1.6.0-1318.js
    detailitem-11.1.1.6.0-1318.js
    dnd-11.1.1.6.0-1318.js
    EnterDataADF.js
    frame-11.1.1.6.0-1318.js
    header-11.1.1.6.0-1318.js
    HorzNav.js
    HspCommon.js
    HspJS_web_en.js
    iedit-11.1.1.6.0-1318.js
    LaunchPlanningCentral.js
    Locale1_2_12_3_3.js
    Locale1_2_12_3_3.js
    2) while troubleshooting the issue i came across this info
    http://docs.oracle.com/cd/E17236_01/epm.1112/readme/hp_1112200_readme.html
    Planning forms that were customized using ValidateData.js and its helper JavaScripts will not work with the Planning Release 11.1.2.2’s new ADF-based user interface. Customized forms will continue to work, however, with the classic user interface in Planning releases prior to Release 11.1.2.2.
    KIndly let me know whether it is still possible to do customization in the release 11.1.2.2.
    Thanks

  • ValidateData.js file location in version 11.1.2

    Does anybody know where the physical location is for the ValidateData.js file in version 11.1.2?
    The hp_admin.pdf refers to the /default web application directory/Planning/web/WEB-INF. However, I have not been able to locate the directory. I am using WebLogic App server.
    Thanks,
    Al Gutierrez

    Weblogic deploys the planning web application components when you start up the app server, tmp directories are what they say temporary.
    If you go to :- Oracle\Middleware\EPMSystem11R1\products\Planning\AppServer\InstallableApps\Common
    You will see HyperionPlanning.ear
    If you open this with a compression utility such as 7zip, winrar etc you will see it has HyperionPlanning.war
    Once again this file can be open with a utility.
    Within there is a custom directory and the ValidateData.js
    You will need to update the file and restart the planning app for it to deploy.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • ValidateData.js not working in 11.1.2

    Hi,
    After a new installation of Planning 11.1.2 I have transferred the ValidateData.js file from the old 11.1.1.3 environment. It seems that in 11.1.2 the script is not working like before anymore. I am getting an error for script below:
    The error is: currentDataGrid.fullPrecision is undefined
    Are there any changes in 11.1.2 for using javascript which are causing this issue?
    Kind regards,
    Erik van der Plas
    function validateCell() {
         var validated = true;
         currentDataGrid = dataGridArray[0];
         for (r=currentDataGrid.startRow; r<currentDataGrid.numberGridRows; r++) {
    if ((currentDataGrid.fullPrecision[r][1] != missing) ||(currentDataGrid.fullPrecision[r][2] != missing)) {
         if ((currentDataGrid.fullPrecision[r][1] == missing) ||(currentDataGrid.fullPrecision[r][2] == missing)) {
                   validated = false;
         if (!validated) {
              alert("All fields should be filled");
              return(validated);
    }

    After some trial and error I discovered a different way which is working in 11.1.2.
    Replace the currentDataGrid.fullPrecision[r][c] with currentDataGrid.grid[r][c].cellValue
    Kind regards,
    Erik van der Plas

  • Validatedata.js in 11.1.2

    Hi All
    I'm having an issue with ValidateData.js file in 11.1.2
    I created a code given below
    function validateForm(){
    if (equalsIgnoreCase(applicationName,"Visa")) {
    if (equalsIgnoreCase(formName,"02. New Asset Requests with Threshold")) {
    var variable_name_1 = "Test"
    var variable_name_2 = "Form validation"
    /* Example #1 */
    /* This will display the value of a variable in a message box. */
    alert(variable_name_1);
    /* Example #2 */
    /* This will display some text and the value of a variable in a message box. */
    alert("This is variable name 1: " + variable_name_1);
    /* Example #3 */
    /* This will display some text and the value of a variable in a message box with two lines. */
    alert("This is variable name 1: " + variable_name_1 + "\n" +
    "This is variable name 2: " + variable_name_2);
    return true;
    I exploded the Planning.ear file and added the above given code in ValidateData.js file repacked and restarted Hyperion Planning service. When i clicked on save nothing happend.. i even tried re-deploying, but no luck.
    Also i tried to use the same code in 11.1.1.3 changed ValidateData.js under
    E:\IBM\WebSphere\AppServer\profiles\AppSrv01\installedApps\CERA-WIN2K3-WASCell01\planning.ear\HyperionPlanning.war\custom
    Restarted Planning....still when i click on save nothing happens....
    Can someone tell me whether i'm missing any steps?

    Hi All
    this is my original ValidateData.js file
    function customOnLoad()
    if (equalsIgnoreCase(applicationName, "Visa"))
    // It is possible to limit your custom JavaScript to specific Applications,
              if (equalsIgnoreCase(formName,"02A. New Asset Threshold")||
    equalsIgnoreCase(formName, "02. New Asset Requests with Threshold"))
         // Provides an alert when user opens up the form 02. New Asset Requests or 02A. New Asset Threshold
              alert("There are thresholds defined for Asset Classes.");
    //          + ".\n" + "Please select the required Asset Class cell in the right corner form." + ".\n" + "Threshold values for the selected class will be displayed");
    function customCellEnterPre(row, col, cell)
         // This function will be called when focus enters any data cell but before any built in logic
         // Return values:
         //          true: Continue with remaining logic
         //          false: Skip remaining logic
         var valid = true;
         if (equalsIgnoreCase(applicationName,"Visa"))
              if (equalsIgnoreCase(formName,"02A. New Asset Threshold")||
    equalsIgnoreCase(formName, "02. New Asset Requests with Threshold"))
                   // You can access row or column indices into the grid by providing arrays of member names
                   var correctTimeCol = findColByMemberNames(new Array("Threshold"));
                   var correctAccountRow = findRowByMemberNames(new Array("Windows"));
                   // You can trigger specific logic if the cell matches some pre-defined collection of member names
                   // The following code verifies that the row and column correspond to the intersection defined by the
                   // members
                   if ((row == correctAccountRow) && (col == correctTimeCol)) {
                        alert("Values for this Asset Class should be greater than 1200" + ".\n" + "If wrong values are entered system will not consider the Asset Class.");
         return(valid);
    Now when i launch the form...i'm not getting any messages. but if i click on Windows cell, it is giving me the message.
    Can someone please let me know what could be the possible issue for customOnLoad function

  • Planning 11.1.2 Javascript file locations

    Hi guys. We are running Planning EPM 11.1.2 with WebLogic.
    I am trying to make some changes to the ValidateData.js javascript files. Where would these files be located in 11.1.2? I previously developed jscript changes for EPM 11.1.1.3 and those files are located somewhere else.
    Thanks

    Kapil Bankeraika wrote:
    Hi,
    I presume you are trying to locate ValidateData.js for data validation here.
    Planning 11.1.2 comes with inbuilt data validation functionality for webforms.
    Is there something for which you need to still make changes in ValidateData.js?11.1.2 comes with basic form validation, it doesn't come close to what can be achieved with custom javascript.
    I am not promoting custom javascript just stating the facts.
    Cheers
    John
    http://john-goodwin.blogspot.com/

Maybe you are looking for

  • TS1367 How to I back up my imac

    My imac will not start

  • Mac mini rejects all DVDs

    My Mac mini running OS 10.6.8 refuses to accept any DVDs.  It whirrs and makes a number of noises, but finally always rejects and ejects them.  Even a cleaner DVD was ejected. Any suggestions?

  • Link PI data to SAP

    Hi everybody, how to link automaticly data from PI system (OSIsoft) to SAP MM module   thanks

  • Absence of Delta records

    Experts, We are using few CRM data sources. Recently we have enabled delta in Generic Data source. Delta option : TIMESTAMP Upper limit : 1800 sec. Now When we create records(transactions) in Portals. These records are normally visible in 0CRM_OPPT_H

  • My Hp Media Center PC M 7000 will automatic shut down

    My Hp Media Center PC M 7000 will automatic shut down when not in use reset the time & date. To start up, un plug the power supply over and over until it start up. Both fans work when it do start up. Changed the battery on the mother board, did not h