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

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/

  • 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

  • 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

  • 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/

  • 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/

  • 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,

  • ValidateData in DataForms

    We validate data of a Hyperion Planning DataForm via the java script "ValidateData.js". The validation works if the Data Form is opened in the workspace.
    How can I validate the data if the Data Form is opened in Excel with the SmartView for Office?
    How can I validate the data if the Data Form is taken offline?

    Hi,
    I think the validatedata.js can only be used if you are accessing a form through the web, if you want to do the equivalent in excel then you would probably need to start looking at incorporating VBA into the workbook.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Using customOnLoad() in ValidateData.js

    hi guru,
    I have the following problem:
    Should I put an alert message when you open a form. I am currently using the customOnLoad() function which is located within the file ValidateData.js.
    The problem is that this message is carried out both on the event's opening form and to refresh the form after saving data. I would only open the form.
    Does anyone have any idea how to solve this problem?
    thanks in advance.
    Flavio

    hi guru,
    I have the following problem:
    Should I put an alert message when you open a form. I am currently using the customOnLoad() function which is located within the file ValidateData.js.
    The problem is that this message is carried out both on the event's opening form and to refresh the form after saving data. I would only open the form.
    Does anyone have any idea how to solve this problem?
    thanks in advance.
    Flavio

  • ValidateData.js - Need to Force Supporting Detail

    I am working on some custom JavaScript for a Hyperion Planning web input form where I need to force users to enter supporting detail. I understand how it's done in the SampleValidateData.js file, however that method will still allow a user to save non-supporting-detail values in a cell.
    I would like to cycle through all editable cells and check a property on the cell to see if it contains supporting detail. (ex. by checking the tooltip value)
    Does anyone know a specific property I can check on the cell (along with its corresponding value for supporting detail)?
    Thanks,
    - Jake

    Found it. currentDataGrid.isSupporting[r][c]

Maybe you are looking for