Business rule for compare data in form

Hi all,
Let us explain my scenario,
I have 2 dynamic calc members in a dataform. I just want to compare those 2 member rows( data compare) and show some message.
is there any way i can make?
can i create one business rule to make this happend? is it possible? If its possible can you give me your thoughts on this.
Any information would be helpful.
Thanks in advance.

Sorry about that . . . . I read the first post and assumed the code was related to a business rule instead of JavaScript - should have looked closer.
I would do a couple of things:
1) Simplify your code. Why have a separate function? Why not drop all the logic into validateForm?
2) Why haven't you populated the app name and form name in validateForm? (sorry if I missed this in the rest of the post somewhere)
3) Insert alerts within the code that cycles through the cells. Something like this:
cellVal = getCellValueXY(col,row);
alert(" Column: " + col + "\n" +
" Row: " + row + "\n" +
" Cell Value: " + cellVal);
This will tell you exactly how your JavaScript is evaluating each cell. This can help when you're dealing with floating point decimal issues. (you entered 10, but it's being evaluated as 10.00000001) If this ends up being your issue (floating point issues), let me know and I'll show you how to get around this.
If you throw enough alerts at this code, your issue will finally show itself.
4) I wouldn't assign values to "startCol" and "numberGridCols". I believe these variables are set elsewhere in the code (not in YOUR code, but in EnterData.js or somewhere else).
Instead, I would use my own variables
5) I would structure the code more like this: (I haven't validated this or tested it . . . . use this for suggestion purposes only)
function validateForm()
var valid = true;
var c;
if (equalsIgnoreCase(applicationName,"PUT YOUR APP NAME HERE")) {
if (equalsIgnoreCase(formName,"PUT YOUR FORM NAME HERE")) {
for (c=3; c<numCols; c++) {
if((grid23[c] != missing) || (grid24[c] != missing)) {
var actualVal = getCellVal(23,c);
var budgetVal = getCellVal(24,c);
if(actualVal != budgetVal){
valid = false;
if (!validated) {
alert("The numbers you have submitted for SII are not equal to Actuals. Please adjust your numbers.\n");
return valid;
I hope this helps. Hopefully there aren't too many bugs in this.
- Jake

Similar Messages

  • Business rules for check current date and session user

    MDS 2012
    Hi All! How to make validation business rules:
    1.  date < GETDATE()
    2.  current session user is UserName(), where UserName() - system function like in MS Analysis Services
    from Moscow with Love

    There is no way to create this with a Business Rule, you have to write a custom workflow or SQL nightly job or something to update your fields.
    Ok people start screaming.
    "solution" if you want to call it that. USE AT YOUR OWN RISK, try in dev first :)
    1. Create an Attribute / Column in your Entity and call it Today or something.
    2. Go to Business Rules and create a dummy rule where you are setting this attribute (unconditionally with no Condition)
         Today equals 1/1/2000 or something.
    3. Go to tblBRItem find this BR and etin ItemSQL  from N'1/1/2000' to GETDATE()
    now you have Todays Date field...
    OK NEVER MIND, I've tried it and it works, the problem is that tblBRItems gets updated via a stored proc and will overwrite your entry.
    One can modify the code there as well but I don't have time to play with it unfortunately, as at that time you have to pass some token in to identify some values as your own special commands ... Either way this becomes messy and not a way to go.

  • Business rule for Essbase cube calculations in 11.1.1.3?

    Hi,
    Can we use business rules to use @XREF from data transfer from one cube to other cube.Why I went for business rule is, I can put set of business rules in a Sequence and any new user can run this Sequence on demand and even we need prompt also in that.
    So, I want to clarify whether I can use the business rules for Essbase calculations along with calc scripts??
    Appreciate the response.
    Thanks

    Right,
    Actually, Business rules are running essbase cubes in every case.
    Remember planning and BRs are adding extra layers like prompts, forms, security, processes...
    Think Business rules are extended version of calc scripts with some more functionality. They are ultimately running on essbase cubes...
    Regards,
    Ahmet

  • Business rules for Adhoc

    Hi All,
    I have created a web form and I want to do the Adhoc analysis on it , when right click the form and go to Adhoc session , I see the "Business rules for Adhoc" is coming as "calculate Currencies" and "calculate Form". But I want to add my Business rule here ?
    I saved the Adhoc form but I an not able to edit it ? is it requires any provision ?
    I want to add my business rule to the Adhoc form.
    Appriciate your help
    Thanks

    I am just worried , is it really possible to attach Business rules for an Adhoc grid?

  • What are the two different rules for organizational data determination

    What are the two different rules for organizational data determination???

    Hi
    1) Rule type Responsibilities
    want to determine organizational data for individual responsibilities
    have not created an organizational model but want to create one
    have a lot of organizational units and must only assign a few attributes
    2) Rule type Organizational Model
    You would use rule resolution using organizational model if you
    have created an organizational model or have distributed a plan to SAP CRM and also want to use this for determining organizational data
    assign a lot of attributes to the organizational units and these are to be evaluated
    Regards
    Manohar

  • Error in Installing the Business Content for 2LIS_06_INV data source

    Hi Experts,
    We are trying to install the Business content for 2lis_06_inv. When we replicate the datasource, we are not seeing it in 3.x version. It is only vailable in 7 version. There is no transformation available in Business content for this data source. Please let me know how we need to proceed with this installation. Should we install the 7.0 flow or 3.x flow? Please provide th details if you have implemented th same in your system. Thanks is advance.
    Regards,
    Kavitha Jagannath

    Hi,
    Follow bellow steps:
    1. Goto RSA1.
    2. Select the BI content.
    3. Select the Grouping as' In Dataflow before and after'
    Then,you can get the data flow which are haveing the DS/TR/Data targets.
    4. Select the Install by setting the 'Install in background'.
    Regards.

  • Error in creating RSDS using transfer rules for master data datasources

    Hi ,
    when i am creating the transfermations(RSDS) using transfer rules for master data datasources while i want to migrate datasource.it is giving the error message saying that INITIAL ERROR OCCURED DURING GENERATION OF THE TRANSFERMATION.AND in the taskbar it is giving the message LOG IS BEING LOADED.
    MY QUESTION IS HOW CAN WE SEE THE LOG? AND
    PLEASE GIVE ME THE STEPS TO MIGRATE MASTER DATASOURCES.
    THANKS IN ADVANCE .

    Hi Ankit,
                  Yoy have to load data to the cube.For that you need update rules.
    Steps to load data to the cube
    1.Replicate the datasource.
    2.Assign Infosource
    3.Create transfer rules
    4.Maintain the update rules to the cube.
    5.Right click on the datasource and schedule an infopackage for it.
    Execute the Infopackage and pull the data to the cube.
    Hope this helps
    Regards
    Karthik

  • Business scenairo for transfering data from Non Sourace system.

    Hi everyone,
    i am looking for sample business scenario for transferring data from non source system.
    If the case study is for any Financial system that will be even great.
    if any one has good Document Please Fwd it to e-mail [email protected]

    hi rk,
    what you means to say something source like flat file, not from r/3 side.
    or
    what exactly you want,plz explain?
    regards,
    San!
    if helped,assign point!

  • Business rules for leaves

    Hi All
    I know we can define calendar and holiday rules.
    Can we also define rules for 'leaves'?
    Say for example, a participant 'P' in role 'R' is on leave for 3 days, then all his due instances get postponed by these three days. Alternatively, all his instances become available to his manager to work on. The manager can be in the same Role 'R'.
    Thanks

    I am just worried , is it really possible to attach Business rules for an Adhoc grid?

  • BPC NW - Error in Business Rule for Account transformation rule table

    hi
    I have given the Account transformation Rule to move Amount from Account A to Account B and then I have given the following script logic in the default script
    **RUN_PROGRAM CALC_ACCOUNT*
    *CATEGORY = Category*
    *CURRENCY = RptCurrency*
    *TID_RA = %TIME_SET%*
    *CALC=A*
    *OTHER = ENTITY=C1000*
    **ENDRUN_PROGRAM*
    But when I try to load data through Input schedule in Account A and expect amount to transfer to Account B, I m getting an error
    Book Name:Book4
    Application : PLANNING*
    Status : Failed*
    Submitted Count : 1*
    Accepted Count : 1*
    Rejected Count : 0*
    - Error Message -*
    Error running default logic (Business rules are not available)
    - Rejected record list -*
    Error converting records: The root element is missing.
    Can someone please advice me what to do ....

    hi Marcel,
    Lot of thanks for your answer.
    But I have used your logic after removing GROUPS as I dont have GROUPS dimension in my application.
    *RUN_PROGRAM CALC_ACCOUNT
    CATEGORY = %CATEGORY_SET%
    TID_RA = %TIME_SET%
    CALC=FX
    OTHER = [ENTITY=%ENTITY_SET%]
    *ENDRUN_PROGRAM
    This is the error I m getting
    Book Name:Book3
         Application     :     PLANNING
         Status          :     Failed
         Submitted Count     :     1
         Accepted Count     :     1
         Rejected Count     :     0
              - Error Message -
    Error running default logic (Business rules are not available)
              - Rejected record list -
    Error converting records: The root element is missing.
    Can you please advice
    a) Does it mean some issue with my client installation as I dont see these LGF files. I even dont see the data folder in which lgf files are supposed to be present
    b) Where to find information for this interface CALC_ACCOUNT? How did you decide to use 'FX' and how do you know which dimensions to use. Like I dont have GROUPS.
    Please give me your comments.
    regards
    Gaurav

  • BPC10 / BPC7.5 NW: the use of US ellimination business rule for matrix elim

    In tryuing to make the US Elim business rule work:
    -     Can the US elim procedure support the elimination between an entity and intco AND a segment and partner segment in the same app ? So basically the need is to eliminate intercompany transactions between the management structure (entity and interco) and the segment structure (or LOB structure as you will) that are in two different dimensions ( in other words an entity can belong to more than one segment and therefore they cannot have the segment in the same entity dimension and need to have a second dimension for that). Now the problem is that I have one entity dim and an intco dim, and two user defined dimensions (one for segment and one for partner_segement, aka the intco belonging to the segment). I believe this cannot be done since the US Elim procedure will look for a dimension of type entity and of type intco and therefore will only work on those two dimensions. It will not work with the user defined dimensions.
    -     Meaning, that if that is the case, you have to move your segment dimension into your entity dimension as an unrelated second hierarchy. Ofcourse the downside is then that you will clutter the entity dimension with this segment information and you have to enter your data twice (as ideally you wanted to enter the data for entity XYZ and then distribute the number over the various segments, that now becomes a bit more chunkier). What is a best practice if you need to eliminate on two different axisses like legal entity and management structure or Lobu2019s etcu2026
    -     If using the US elim procedure, do you technically need a GROUPS dimension in your application ? The documentation mentions it in its example, but since it is not used anywhere in a typical application that uses US eliminations (as it is more for legal consolidation applications where you need it), I was wondering if you can leave it out.
    A quick answer is highly appreciated. Short words/clues or simple yes or no  are more than enough. No need to write prozau2026.
    Thanks,
    *edwin

    Jianbai--  when  you  see  0  submitted 0  success  0  fail..
    it  just  means  that  there is no data tht  suits  the  us-elim  criterion.
    For the  package  parameters...
    1)make  sure that  there  is  data   for the  CATEGORY
    2)The  CURRENCY  has its reporting  property set  to Y
    3)There are  INtercompany  transaction  entries between  2  ENTITIES  and  their  ELIM property(ENTITIES involved) is NOT  "Y".
    4)In 3, make  sure  the  ACCOUNT  being  used  for  the  intercompany  transactions have  their  ELIMACC property NOT BLANK.
    then  you  shld  be  all  set  !!!...if  you  configured  your DATASRC (is_consolidated property(it shld  be eith  I/M) dimension correctly ...
    you  don't  even  need  any  business  rules  to have your  ICELIM  working..
    Best luck
    Vm
    Edited by: Vishal Mahawadhi on Mar 10, 2011 11:10 AM
    Edited by: Vishal Mahawadhi on Mar 10, 2011 11:11 AM

  • Error to connecting business rules for Planning application outline

    Hi all,
    I recently migrated database schemas from uat to prod.i configured evrything successfully.when
    I loged into EAS console with user(other than admin)that user has all acces to create business rules,
    I tried to create new business rule to select planning application.
    I am getting this error" error connecting to essbase server<servername>:<appname>
    in error details "error connecting to pllanning server<servername>:<appname>"
    and "error loading objects from data source:java.sql.SQLException: [Hyperion][Oracle JDBC Driver]Object has been closed."
    Please anybody help on these
    regards
    vas

    hi john,
    we are using hyperion planning 9.3.1.1.11 version,
    we were new installatalled Production server and configured,but i did not test the business rules in production server,
    next my DBA exported Oracle Dabase Schemas from UAT server to Production sever those scema names are same in UAT and Production server,so my DBA droped The Schemas in production and replaced the UAT scemas in production server,
    After i manually configured the production server with Migrated scemas, in configuration i changed the server names with production sever and Database names while configuration ,Hyperion planning datasource names are same in UAT and Production ,i manually edited the server names and Database names, i configured to For EAS ,Shared Services,Planning
    Everything configured sucessfully,i am able to log on to application Planning url,and refreshed everything,
    But i am logon to EAS console, i tried to create the Business rule with associate Planning Application I am getting this error Connecting to essbase server<server name>:<appname>
    In error details "error connecting to pllanning server,servername>:<appname.
    and error loading objects from datasource:com.java.sqlexception;[hyperion][oracle jdbc driver]object has been close.
    please help on these
    thanking you
    srini

  • Essbase parent level aggregation business rule for end users

    Can someone provide me the basic syntax of a business rule to allow end users within Planning to run a run time prompt business to aggregate their responsibility level within a dimension like Cost Center? So for example, I want to allow a cost center manager to pick his parent level cost center and then run the aggregation script to rollup only his cost center expenses. I've tried to include AGG and CalcDim commands with various global variables to enable them to select the cost center fix point, but the aggregation doesn't seem to produce the right results. Anyone have a workable syntax for this?

    If you are just trying to agg the children up to the parent it is even simplier I'll assume you are trying to roll up the company to some intermediate level
    Say you have the outline
    company
    ---East
    ------NY
    -----NJ
    ---West
    -----Ca
    -----Az
    and you want to roll up East you could do something like
    FIX (FY10, Final, Actual)
    @IDESCENDANTS("East");
    ENDFIX
    Of course I would add more into the fix to do the least work possible
    The command Idescendants really means calculate all of the descendants of the selected member. I guess if you wanted to make it more efficient you could add the level command into it
    like @idescendants("East"",-1) that would avoid looking for anything to do on the level zero members

  • BUSINESS RULES FOR Vendor, Customer & PRODUCT

    Hi,
    Can any one help me to provide Business Rules(Validation Rules) of Vendor, Customer & Product domain to be considered in integrating with other technologies.
    Thanks & Best Regards,
    Giri

    Hi Joseph,
    First tell me how you want to maintain Inventory size wise?? If it is your A is Length, B is Width and C is your Height and you are not maintaining size wise stock then use Length,Width and Height which is in Item master here you can set fix values and activate same columns in document and you can change it in document. But in this case you cannot maintain size wise stock
    If you are maintaining stock size wise then you have to create new item code every time.
    You cannot use BP catalog number for this.
    Thanks
    Sachin

  • Function module for comparing dates and times

    Hi,
    I have a date and time stamp in one filed for example as below:
    20070125183045
    (the first 8 are date in YYYYMMDD format, the next 6 is time in HHMMSS format). Now I want to compare this value to another such value in terms of date and time. First I want to compare dates and then times. Do you know any function module that can serve this purpose?
    Thanks very much!

    You can compare these using the function module DURATION_DETERMINE.  This fuction will give you the difference, and it can be in a view different units, such as the difference in days, months, etc.
    Funciton module takes in Start date and time and end date and time.
    Regards,
    RIch HEilman

Maybe you are looking for

  • Pages '08 wont save

    Hi all, Pages '08 v3.0.3 OS X 10.6.6 I have created a Pages document which is 3 A3 pages as a poster size file of some work examples. However, when I go to save the file, it almost gets there but fails at the end. This means I can't shut down my comp

  • Does MAC OS have a "route add" command similar to a DOS command?

    Does MAC OS have a "route add" command similar to a DOS command? I know that with DOS, you can type "route add 192.168.x.x MASK 255.255.x.x 192.168.x.x" to add a route on your PC,but does MAS OS X(10.4.9) have something similar to it? I have a networ

  • No sound when i plug my HMI cable into my RCA TV

    When i first used my HDMI cable to shound worked perfectly, but just the other day I clicked something om the volume settings and it quit working. Te sound plays through my computer and not my TV. I have windows 8 i haven't updated it at all since i

  • Very urgent excise base value isnt captured to are1 and are3

    dear sir, in are1 and are3 documents base exicise value is nt being captured and higher edusess 1% too but BED and educess is captured ?can anybody help me ?is ita notes problem?

  • Mountain Lion, Perian and Quicktime 7.6.6 - no audio

    I used to play and burn .AVI files with Quicktime, Mac OSX Lion and Perian.  But with Mountain Lion, its all broken now ! I have installed Quicktime Player 7.6.6 (in the Utilties folder) and Perian - and I can now get video with an .AVI file, but no