Business Rule form coding issue

I have two cubes, one for salaries and one for the P&L, called finance. All members are identical between cubes, EXCEPT the department members, in the finance cube there are numbers,
such as "662", in the Salary cube, all department members begin with "Sal_" which is "Sal_662"
I want a salary form on save to execute calculations and then get pulled to the finance cube.
I have a script that works from a finance cube form, but I want the salary cube form to execute the finance cube business rule. The issue is the different names.
To do a transfer from the finance cube form, the code looks like :
"DIRXOT" = @XREF("_Salarycube_" ,"DIRSAL","Total_Employee",(@CONCATENATE("SAL_",@NAME(@CURRMBR("Finance Department")))))
The finance BR XREF adds the "SAL_ to the current member to reference the Salary cube department.
Trying to reverse this, code it from the salary form point of view
IF(@CONCATENATE("SAL_",@NAME(@CURRMBR("Finance Department"))) == [gv_Salary_SalDepartment])
"DIRXOT" = @XREF("_Salarycube_" ,"PRDSAL","Total_Employee", [gv_Salary_SalDepartment]);
But no validation. . . any suggestions as to what I am missing?
thanks

Thanks, i didn't pose the question quite correctly. . . The IF statement won't validate:
IF(@CONCATENATE("SAL_",@NAME(@CURRMBR("Finance Department"))) == @NAME([gv_Salary_SalDepartment]))
or
IF(@CONCATENATE("SAL_",@NAME(@CURRMBR("Finance Department"))) == [gv_Salary_SalDepartment])
I have to do a NAME comparison, and I don't know how to do that, with the mathematical operators. . .
because there is no matching member between cubes for a numerical match. . .
So I need to return TRUE when finance cube Member "662" equals salary cube Member "Sal_662" by adding "Sal_" to the finance member and then doing the comparison.
I think it can be done, but not sure how. . . [gv_Salary_SalDepartment] is the global variable from the salary cube form passing the salary cube member to the business rule.
thanks in advance. . . . .

Similar Messages

  • Business Rule calc manager issue while executing through Planning Smartview

    Hi,
    I am working on Hyperion Planning 11.1.2 and I have created few business rule in Calc manager. When user is opening it through Hyperion Planning webforms its working fine.
    I have attached the rules on webform and they run on Save and use member on data form and Hide prompts.
    All these properties are checked. So user enter the number on Planning webform and hit on save rule will cruch on the POV members.
    Please help me on below 2 issues:
    1.When user is using the Smartview Planning and opening webform in Smartview while exceuting the rule its throwing error. Can't run the rule.
    What is the exact provsiong I need to give so that they can execute it from the Hyperion Smartview Planning also.
    Currently HBRAPP is Interactive user
    and Application level is Interactive user and Essbase write access
    If I am giving Administrator access they are bale to run the rule, I can't give Administartor acess.
    2.While running rule even with admin access its not taking the POV, its taking the default mebers which I have given while creating the variables.
    However from Planning web it takes the POV selection of webform,
    Please suggest why the same thing is not happening from Hyperion Smartview.
    Thanks in advance
    Pankaj

    Please advise on this issue. Any help would be highly appreciated.

  • FormMail Contact Form Coding Issue

    Hi folks - this maybe quite a lengthly issue - however i
    think it is a simple mistake somewhere
    Basically I am having problem getting my submit contact form
    to work.
    I used the FormMail.pl script.
    www.kme-steelworks.co.uk is the website I am trying to apply
    the form.
    I am using 123 reg server to host the site.
    If you look at my homepage above . you will see the fields of
    the form at the bottom of the index/home page.
    I am seeing problems when I fill in the form.I have opted for
    cgi/FormMail format.
    Error arising when i click submit - 500 Internal Server Error
    This error tends to be a permission error on the root folder
    - I have adjusted the right however to 755 but internal server
    error still occurring.
    The submit form results should be going to
    [email protected] - but it isnt
    the FormMail.pl is stored on my local files in
    myweb/FormMail/FormMail.pl so I created a folder on your host
    server called FormMail and put my FormMail.pl file in here so it
    matched.
    Ok so here is my form code on my homepage
    <form id="form1" method="post"
    action="FormMail/FormMail.pl">
    <form action="/FormMail/FormMail.pl" method="post">
    <input type='hidden' name="recipient"
    value="[email protected]"/>
    <input type='hidden' name="subject" value="KME WEB
    CUSTOMER"/>
    <input type='hidden' name="required" value=""/>
    <input type='hidden' name="redirect"
    value="www.kme-steelworks.co.uk/thankyou.html">
    <label>Name:
    <input name="Name" type="text" id="Name" size="35" />
    </label>
    <label>Phone Number:
    <input name="Phone" type="text" id="Phone" maxlength="28"
    />
    </label>
    <p> </p>
    <p>
    <label>Comments (Optional):
    <textarea name="comments" id="comments" cols="45"
    rows="7"></textarea>
    </label>
    </p>
    <p>
    <label>
    <input type="submit" name="submit" id="submit"
    value="Submit" />
    </label>
    </p>
    <p> </p>
    </form>
    What should my pl code look like if my server domain is
    123reg.co.uk - my website form address is
    www.kme-steelworks.co.uk my thank you page (when submit form
    submits successfully is
    www.kme-steelworks.co.uk/thankyou.html and the email address
    I want the results forwarded to is '[email protected]'
    I realise this may look like a tough post but I just dont get
    why it is not posting?
    Should the script be named with a cgi extension as the server
    is not compatible with perl, and be placed in the cgi-bin folder?
    Any help is hugely appreciated
    Brian
    Come on the Irish

    clann26 posted in macromedia.dreamweaver:
    > Hi folks - this maybe quite a lengthly issue - however i
    think it
    > is a simple mistake somewhere
    >
    > Basically I am having problem getting my submit contact
    form to
    > work. I used the FormMail.pl script.
    [snip]
    > What should my pl code look like if my server domain is
    > 123reg.co.uk
    I can't get to the support pages for that host without
    logging in, but
    you'll likely find your answers there.
    If they're set up like 123reg.com, then the odd thing to me
    is that
    they allow cgi within your public_html folder.
    Their path to Perl is shown as /usr/bin/perl, so if
    123reg.co.uk uses
    the same setup, you would set the first line shebang in your
    .pl file
    to look like this:
    #!/usr/bin/perl
    And, of course, set the cgi perl file permissions to 755.
    BUT...the answers will depend on how 123.co.uk has things set
    up. Log
    in to their site and check the support pages.
    > Should the script be named with a cgi extension as the
    server is
    > not compatible with perl, and be placed in the cgi-bin
    folder?
    If the server does not support Perl, no amount of file naming
    will make
    it work. However, looking at their hosting plans, it seems
    they all
    support Perl-CGI. The typical extension for Perl scripts is
    .pl
    Mark A. Boyd
    Keep-On-Learnin' :)

  • Network Error []: Cannot Get Host Name when running business rules

    Guru's
    We are getting the following error intermittently when we are running business rules (Planning Application >>Tools>>Business Rules) or running SmartView refreshes:
    Network error []: Cannot Get Host Name
    The following is then logged in the Essbase Application logs:
    Local/Application/Database/admin@Native Directory/Error(1042022)
    Network error []: Cannot Get Host Name.
    A quick look at the Essbase Error Messages Doc says it is a network error and we have to consult the network documentation. Unfortunately this is not very descriptive so we logged an SR with Oracle but we don't seem to be getting a resolution.
    The environment is 11.1.2.0 and the architecture is as follows:
    Server 1 - MS Server 2008 x64:
    Planning, Calc Manager, Foundation Services, Framework Web Services, EAS, APS, Web Analysis, FR Web Services
    Server 2 - MS Server 2008 x64:
    Essbase Server
    Server 3 - MS Server 2008 x64:
    Framework Services, FR Print Services
    We have tried doing the following:
    1. Put in the server host names into the hosts file on the Hyperion Servers
    2.  Applied the following TCP/IP settings on all the Hyperion Servers and one of the user machines as a test:
          - Added a new DWORD Value named TcpTimedWaitDelay and set it to 30.
         - Added a new DWORD Value named MaxUserPort and set it to 65534.
         - Added a new DWORD Value named MaxFreeTcbs and set it to 6250
    3. Confirmed that there are no packet drops by monitoring the server NICs so no packet loss could be the cause of this issue
    4. The Essbase Config file has the following settings:
    NETDELAY 2000
    NETRETRYCOUNT 2500
    Has anyone come across this issue and if you managed to resolve it, how did you go about it.
    Thanx

    Hi Rahul
    The issue is happening to a number of calcs so it it not one calc specifically. I will ask the functional consultants to enhance the logging in the business rules so that we can see if the issue happens on a specific member\block etc and yes we do use Xrefs
    We can run this as a calc in EAS without any issues and it's intermittent because this business rule runs 95% of the time in Planning Application >> Tools >>Business Rules without any issues.
    Thanks

  • Dynamic validation of Business Rules

    Who has a good thought/example about a principle of dynamically validating Business Rules without coding every time each BR?
    I am thinking about a table where I can enter the expressions like:
    - <p1> is not Null
    - <p1> not in (select 'x' from <table>)
    - <p1> < 2000
    This logically, simple expressions should return a boolean expression (true or false).

    First, in a well designed data model, I'm not sure I see the need for data validation logic to change regularly. If a particular column cannot be NULL today, it would be rather unlikely that it would somehow need to be NULL tomorrow.
    Second, I'm not sure I see what this approach buys you over the much simpler approach of adding and removing check constraints if the data model changes. Adding and removing a constraint is pretty trivial-- orders of magnitude less difficult than doing the analysis to determine what constraint needs to change and what impact that has downstream.
    Third, I would suspect that if you need to encode these sorts of constrains in a table, your system will kill downstream systems with regularity. If p1 is NOT NULL today, but tomorrow it suddenly allows NULL values, a consumer application might well break (or worse, silently return incorrect results). Data changes should not be able to screw up downstream systems.
    Fourth, if you did build such a system, you would have to build your own constraint validator, rather than being able to rely on Oracle's (unless you wrote code to create and drop Oracle constraints based on values in a table, but that seems rather convoluted). Given that Oracle's constraint validation engine is highly optimmized and highly accurate, a home grown engine isn't going to look particularly good in comparison.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Issue in business rules attahed with forms (11.1.2.2.300)

    We have attached Business rules with relavent forms but when we run business rule from form some other rule is run instead.

    Hi Bilal,
    So the Sales_Value rule runs regardless of what rule you attach to the form?
    How are you running the rule? Run on Save, or through a right click menu? Just by clicking the rule on the left?
    Can you confirm that:
    In the Administer Forms and Ad Hoc Grids screen, the "Production_Quantity" rule id definitely attached and that in the Properties tab, you have the correct box ticked for that rule (e.g. Run on Save etc).
    Can you also make sure that the "Sales_Value" rule is NOT present in the form in the same screen?
    Do you get the same results when you run via Smart View?
    Have you deployed the application since you changed the form/Added the rule to the Form?

  • Oracle EPM 11.1.1: Business Rules issue

    Hi All,
    I have installed Oracle EPM 11.1.1 and I have created a planning application. However when I logon to Analytical Administration console and try to create a business rule I am facing the following issue:
    1. When I try to select Planning Application out I get the following errors:
    Error connecting to Essbase server <Server name>/<Application Name>.
    Detail:Could not log in to Planning Server
    2. As a work around I have set the Essbase outline and the rule is getting validated from AAS. This rule has been attached to a form and should be executed when I do a submit. However the rule is not running from the form. I tried running the rule from Planning web and again I am getting an error.
    I checked the access rights for the Business Rule from shared services and the admin user (which I am using) has Provision and Administrator rights. Is it a configuration issue or is there something that I am missing here.
    Thanks in advance,
    Amol

    NewUser2 wrote:
    Try to add a description to the Business Rule. There is a bug associated with it and you can find out in the Planning Readme. We had the same issue and got resolved by adding a description to the BR. Hope this will work for you.But the problem is he can't even create a business rule so how can he add a description to something he can't create?
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • 11.1.1.3 Business rules not appearing in form

    Hi
    I am working in 11.1.1.3, and creating HBRs in calc manager, with variables, for use on planning forms (i.e. to "Run on Save")
    Problem I have is that even after the rule is deployed, it is not visible in the "Business Rules" tab while editing the data form.
    Anyone know of any bugs that might be causing this issue ?
    Thanks

    There are a few bugs that will cause this -- have you patched up to the latest EPMA, Calc Manager, and Planning patches that are available from support.oracle.com?
    Regards,
    John A. Booth
    http://www.metavero.com

  • 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

  • Business Rule Issue in Planning

    Hi All,
    I am working on a business rule and I ve tried doing it many ways but still unable to achieve the desired results. Please find the BR below:-
    FIX(@CHILDREN("Vendor Expenses")
    ,{Scenario},@Relative("Year",0),"No VendorCategory")
    {UPKVendor}
    IF (@ISUDA({UPKVendor},Master))
    {UPKMasterVendor}= @MEMBER(@CONCATENATE("V",@NAME({UPKVendor})));
    {ToVersion}->@IDescendants({UPKMasterVendor}) = {FromVersion}->@IDescendants({UPKMasterVendor})
    ELSE
    {ToVersion}->{UPKVendor}={FromVersion}->{UPKVendor};
    ENDIF
    ENDFIX
    Assumptions :-
    {UPKVendor} is a runtime prompt of type "Member" who's value is initiated from the web form (Vendor Dimension which is tagged with UDA's to identify the type of project)
    {UPKMasterVendor} is a runtime prompt of type "Member" who's value is constructed by concatenating "V" to the {UPKVendor}
    {ToVersion} & {FromVersion} are runtime prompt's as well and the user can select the values for these prompts as part of the business rule.
    Desired Results:-
    IF A VENDOR IS A "MASTER" Vendor, WHICH IS IDENTIFIED USING THE UDA
    THEN COPY THE UPKMASTERVENDOR AND IT's DESCENDANTS FROM THE ONE VERSION (FROMVersion) to ANOTHER VERSION (TOVersion)
    For some reason, the calc manager is not formulating @IDescandants({UPKMasterVendor})
    {ToVersion}->@IDescendants({UPKMasterVendor}) = {FromVersion}->@IDescendants({UPKMasterVendor})
    Any help is greatly appreciated.
    Thanks,
    Cz

    Hi,
    The issue here is that you are trying to assign a member string in a variable on runtime which is not quite possible in Calc Script language. As discussed here number of times and once more quite recently, Calc Script does not support object type (including string) assignment. You can only assign numeric values to members and variables alike. You should try something like @Match function or If condition to achieve what you are doing. Another issue in your script is that you use @Descendants in an equation. You should use @Descendants to restrict the boundaries of your calculation (IF(@ISMBR..., FIX etc) but not in equations.
    Just to give an idea, have a look at below sample:
    IF (@ISUDA({UPKVendor},Master))
    IF(@ISMBR(@Descendants((@MEMBER(@CONCATENATE("V",@NAME({UPKVendor})))))
    {ToVersion}= {FromVersion};
    ENDIF
    ENDIF
    Cheers,
    Alp

  • Business Rules Do Not Execute When Saving a Form

    When saving a form the attached business rules are not executing. Sometimes we are unable to validate business rules via AAS. When this happens we do a security refresh from Planning to Essbase and Essbase to Shared Services. At other times, we bounce planning and even Essbase and this seems to fix the problem. Today we have tried every combination (bounce planning, Essbase, AAS) and we are able to at least validate biz rules in AAS but we (i.e., users) are uanble to execute the biz rule when they save via the planning form. There are no issues running the biz rules when saving the form using an administration account. Can someone explain what's going on or provide direction as to why this problem happens and how to fix this issue?

    Hi,
    Well is your version 9.3.0.1? If yes then you have my sympathies :). We too have this version and face similar problems with Business Rules. Usually things come back to normal after following the steps mentioned above. However what I would want to know is the following:
    1) From where are you running the Business rules? I am asking this because if you are trying to run from Smartview then I would suggest you look at the time it takes for the Business Rules to execute. If it excedes the timeout settings then it will exit out. However the BR might still be running in the back ground. This you can confirm by looking at the data.
    2) Have you checked if you have installed all the patches?
    Hope it helps.
    Regards,
    Amol

  • Business rules do not show up in forms

    We are using EPM 11.1.2.0. Recently, we have noticed that any new business rules we have created and associated with certain forms-do not show up in the forms.
    We have verified security, location etc for the rules. Somehow they don't show up at all.(even admin cannot see it in workspace).
    But they still exist if we look at rules in eas console.
    Anybody had similar issues?
    Edited by: 784749 on Nov 22, 2011 7:24 AM

    We recently had a somewhat similar issue. We opened our Workforce planning app to the users. Even though we turned on business rules on EAS and admin was able to see the rules on forms, the users did not. Restarting Planning services solved the issue.
    Cheers,
    Mehmet

  • Business Rule Audit Issue

    We turn on audit for business rule in both classic and EPMA planning apps. EPMA version is the same class app migrated. I checked the audit record after launching a business rule in both classic and EPMA version. In classic, the rule has type of Business Rule and New_val as the name of the rule. However in EPMA version, the rule has a type of Calc Script and New_val as the first several SET commands in the script. Why the EPMA version behave this way?
    Thanks

    Hi,
    I did'nt faced any issues wile exporting using the LCM. This is actualy the best methods of exporting and importing the BRs form different environments.
    You can also try exporting na dimporting the BRs from EAS console.
    I dont you how you are doing it, it is hjust about selecting the artifacts take an export and import from the file system.
    It is ok to copy paste if you have a few rules to export, but if you have many, then try to use one of the approach that the product provides.
    Thanks,
    Sourabh

  • Business rule export issue

    Hi all,
    I created a business rule in calculation manager. Now I want to have this one in my EAS console.
    I try to export my business rule from calculation manager, but when I click export some window appears and immediately disappears. So I can't do export.
    What it could be? Is there any else way to export business rule to EAS Console?
    Thanks in advance

    Hi,
    I did'nt faced any issues wile exporting using the LCM. This is actualy the best methods of exporting and importing the BRs form different environments.
    You can also try exporting na dimporting the BRs from EAS console.
    I dont you how you are doing it, it is hjust about selecting the artifacts take an export and import from the file system.
    It is ok to copy paste if you have a few rules to export, but if you have many, then try to use one of the approach that the product provides.
    Thanks,
    Sourabh

  • Business rule LCM issue

    while importing business rule from QA to PROD using LCM we are facing issues..It doesn't import Business rule . we had to do it manually copy and paste the code and variables. then stop and start the services to make this rule effective..we are on 11.1.2.0 version
    please advice and anyone else is also facing same issue
    thanks

    Hi,
    I did'nt faced any issues wile exporting using the LCM. This is actualy the best methods of exporting and importing the BRs form different environments.
    You can also try exporting na dimporting the BRs from EAS console.
    I dont you how you are doing it, it is hjust about selecting the artifacts take an export and import from the file system.
    It is ok to copy paste if you have a few rules to export, but if you have many, then try to use one of the approach that the product provides.
    Thanks,
    Sourabh

Maybe you are looking for

  • Saving a PDF form with Adobe Professional

    I have Adobe professional with LiveCycle. I want to create a simple form that I sent to people. They fill it out and send it back. But the forms I create don't allow me to save changes when I open them in a Reader. This is so basic! I have no idea wh

  • IPad to tv or home theater

    I can't seem to see anyway to connect my ipad to my tv or to my yamaha sound bar. My tv has various input capabilities on the side and so does my sound bar. Playing movies from netflix is nice, but not when you want the family to watch too. Any ideas

  • Website dont load correctly?

    I have the both the latest version of flash and Java. Images are set to load automatically. I even reinstalled codec pack and websites like IMDB (trailers don't load), pc gamer and ign (and many more websites) do not load correctly . I even tried tak

  • Fileaccess.HttpUploadBean not uploading file in DataBase Table

    Hi, I am using fileaccess.HttpUploadBean to upload the txt file in the specified database table.i have followed all the guidelines given in Oracle JSP Tag Libraries and Utilities Reference Guide. But i am not be able to upload the file into Database

  • Xml and xslfo

    i have created a class whcih converts a xml file to a xslfo using a xslt this works within the IDE but when i call it from a jsp i get a error within tomcat which says stylesheet requires attribute version this is not required when i run it in the id