Customizing dynamic rules.

Hello partners,
I am new to BI Beans, and I have followed some samples in BI Beans documentation regarding to how create and define rules fto format crosstab cells.
Now, I think that I need to use code to create a customized format criteria as follow:
We have a goal column with a value, now we want to change the colors of other cells following the next criteria:
-Put green color if the value for the other three columns is above to "goal" column.
-Put red color if the value for the other three columns is less than the 20% of "goal" column.
-Put yellow color if the value for the other three columns is until 20% less than "goal" column.
Any advice or example of how to accomplish with that, will be really appreciated.
Thanks in advance.
Best regards!!!!
Frank Mtz.

Hi,
I am trying to do something similar as was stated in this post such as
-Set the background color of a cell to green if the value of another cell is >= 75.
-Set the background color of the cell to red if the value of the other cell is <= 45.
-Set the background color of the cell to yellow if the value of the other cell is > 45 or < 75.
Does anyone have any helpful suggestions?
Thanks,
Barbara

Similar Messages

  • Dynamic, rules based security

    My organization has an application that needs a very fine grained scurity model, that changes very often and is based upon a rules machnisem (written in PL/SQL). Is there a way to combine a rule based mechanism with the internal ACL mechanism of the iFS ?
    null

    Hi Harvey_SO,
    According to your description, you get the security ignored when using custom dynamic role-based security. Right?
    In Analysis Services, it has some role overlapping scenarios, if two roles used to secure attributes in two different dimensions, which might both apply to some users simultaneously, it can cause the user has no security applied from either role. Please
    refer to workarounds in the link below:
    The Additive Design of SSAS Role Security
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou
    TechNet Community Support

  • Creating custom dynamic stamps in Acrobat 9

    I have Acrobat 9 Pro and I'm trying to create my own custom dynamic stamp.  I have the image in a PDF format and I can create  custom stamp out of it but I can't figure out how to add the dynamic fields.  It's pretty easy in Acrobat 8 but there's just no info on how to do it in 9.  I've gone through the web, lynda.com, and nothing.  Some from Adobe, please help wtih this!  Thanks.

    Something that may be of some help:
    http://acrobatusers.com/search/google/custom%20dynamic%20stamps?query=custom%20dynamic%20s tamps&cx=010702214422959725198%3Amrw4k197ftq&cof=FORID%3A11&sitesearch=#433
    Be well...

  • Dynamic Rule based implementation in PL/SQL

    Hi,
    We are trying to implement a dynamic rule based application in Oracle 9i. Its simple logic where we store expressions as case statments and actions seperated by commas as follows.
    Rule: 'Age > 18 and Age <65'
    True Action: 'Status = ''Valid'' , description = ''age in range'''
    False Action: 'Status =''Invalid'', Description=''Age not in range'''
    Where Age,Status, description are all part of one table.
    One way of implementing this is fire rule for each record in the table and then based on true or false call action as update.
    i.e
    select (case when 'Age > 18 and Age <65' then 1 else 0 end) age_rule from tableX
    (above query will in in a cursor xcur)
    Then we search for
    if age_rule = 1 then
    update tablex set Status = ''Valid'' , description = ''age in range'' where id=xcur.id;
    else
    update tablex set Status =''Invalid'', Description=''Age not in range'' where id=xcur.id;
    end if;
    This method will result in very slow performance due to high i/o. We want to implement this in collection based method.
    Any ideas on how to dynamically check rules and apply actions to collection without impact on performance. (we have nearly 3million rows and 80 rules to be applied)
    Thanks in advance

    Returning to your original question, first of all, there is a small flaw in the requirements, because if you apply all the rules to the same table/cols, than the table will have results of only last rule that was processed.
    Suppose rule#1:
    Rule: 'Age > 18 and Age <65'
    True Action: 'Status = ''Valid'' , description = ''age in range'''
    False Action: 'Status =''Invalid'', Description=''Age not in range'''
    and Rule#2:
    Rule: 'Name like ''A%'''
    True Action: 'Status = 'Invalid'' , description = ''name begins with A'''
    False Action: 'Status =''Invalid'', Description=''name not begins with A'''
    Then after applying of rule#1 and rule#2, results of the rule#1 will be lost, because second rule will modify the results of the first rule.
    Regarding to using collections instead of row by row processing, I think that a better approach would be to move that evaluating cursor inside an update statement, in my tests this considerably reduced processed block count and response time.
    Regarding to the expression filter, even so, that you are not going to move to 10g, you still can test this feature and see how it is implemented, to get some ideas of how to better implement your solution. There is a nice paper http://www-db.cs.wisc.edu/cidr2003/program/p27.pdf that describes expression filter implementation.
    Here is my example of two different methods for expression evaluation that I've benchmarked, first is similar to your original example and second is with expression evaluation moved inside an update clause.
    -- fist create two tables rules and data.
    drop table rules;
    drop table data;
    create table rules( id number not null primary key, rule varchar(255), true_action varchar(255), false_action varchar(255) );
    create table data( id integer not null primary key, name varchar(255), age number, status varchar(255), description varchar(255) );
    -- populate this tables with information.
    insert into rules
    select rownum id
    , 'Age > '||least(a,b)||' and Age < '||greatest(a,b) rule
    , 'Status = ''Valid'', description = ''Age in Range''' true_action
    , 'Status = ''Invalid'', description = ''Age not in Range''' false_action
    from (
    select mod(abs(dbms_random.random),60)+10 a, mod(abs(dbms_random.random),60)+10 b
    from all_objects
    where rownum <= 2
    insert into data
    select rownum, object_name, mod(abs(dbms_random.random),60)+10 age, null, null
    from all_objects
    commit;
    -- this is method #1, evaluate rule against every record in the data and do the action
    declare
    eval number;
    id number;
    data_cursor sys_refcursor;
    begin
    execute immediate 'alter session set cursor_sharing=force';
    for rules in ( select * from rules ) loop
    open data_cursor for 'select case when '||rules.rule||' then 1 else 0 end eval, id from data';
    loop
    fetch data_cursor into eval, id;
    exit when data_cursor%notfound;
    if eval = 1 then
    execute immediate 'update data set '||rules.true_action|| ' where id = :id' using id;
    else
    execute immediate 'update data set '||rules.false_action|| ' where id = :id' using id;
    end if;
    end loop;
    end loop;
    end;
    -- this is method #2, evaluate rule against every record in the data and do the action in update, not in select
    begin
    execute immediate 'alter session set cursor_sharing=force';
    for rules in ( select * from rules ) loop
    execute immediate 'update data set '||rules.true_action|| ' where id in (
    select id
    from (
    select case when '||rules.rule||' then 1 else 0 end eval, id
    from data
    where eval = 1 )';
    execute immediate 'update data set '||rules.false_action|| ' where id in (
    select id
    from (
    select case when '||rules.rule||' then 1 else 0 end eval, id
    from data
    where eval = 0 )';
    end loop;
    end;
    Here are SQL_TRACE results for method#1:
    call count cpu elapsed disk query current rows
    Parse 37 0.01 0.04 0 0 0 0
    Execute 78862 16.60 17.50 0 187512 230896 78810
    Fetch 78884 3.84 3.94 2 82887 1 78913
    total 157783 20.46 21.49 2 270399 230897 157723
    and this is results for method#2:
    call count cpu elapsed disk query current rows
    Parse 6 0.00 0.00 0 0 0 0
    Execute 6 1.93 12.77 0 3488 170204 78806
    Fetch 1 0.00 0.00 0 7 0 2
    total 13 1.93 12.77 0 3495 170204 78808
    You can compare this two methods using SQL_TRACE.

  • How do you create custom validation rule in WS 9.2?!?!?!

    Hello,
    I am using Workshop 9.2. I created a page flow, and want to do some form validations.
    I saw the simple 9.2 example, but it is only good for very basic validation, what if you have to validate the form field against a database, must you write a custom validation rule? HOW would you do this in 9.2 so that will still stay with the workshop/netui paradigm?
    http://beehive.apache.org/docs/1.0.1/netui/validation.html
    Keith

    Hi Keith,
    Staying within the declarative validation framework the answer is probably that you do need to write a custom validation rule and refer to it using the @Jpf.ValidateCustomRule annotation.
    The NetUI Annotation Reference shows how the Struts validations are supported via the framework.
    http://beehive.apache.org/docs/1.0.1/netui/annotations/pageflow_annotations.html
    Specifically, if you look through the @Jpf.Validate* annotations, while most of these are "canned" common validations, there are a few that are more open-ended, such as @Jpf.ValidateMask and @Jpf.ValidateValidWhen.
    Those two let you write the validation logic in the annotation while @Jpf.ValidateCustomeRule only refers to a custom rule in the struts validator file.
    In any case, there is a validation rule editor which should help in authoring and managing the annotations. In the Page Flow Explorer or Page Flow Editor just right click on the action or form bean bean of interest and choose Validation Rules and the appropriate scope.
    I hope that's of some use,
    Troy

  • [bug locked] Creating custom dynamic stamp Acrobat 9

    I am new to Acrobat and I am trying to create a custom dynamic stamp. In searching I found instructions using Acrobat 8 but these instructions don't work for version 9. Can someone help me with creating a dynamic stamp in version 9?
    Thank you.

    Did you try searching the Acrobat 9 help ? I did there is info there and if
    you want more (this one for livecycle);
    <http://www.adobe.com/devnet/livecycle/articles/lc_custom_stamp_tip.pdf>
    Please note: I read this Forums through e-mail. If you respond to me; please
    quote, otherwise I have no idea whom your response is addressed to or the
    context. This is all thanks to how this forum doesn't work properly, yet.
    Regards,
    S.D.A. (Stephen)

  • Custom dynamic action not firing

    Using Apex 4.2.2 on 11g
    I have a standard report A1
    There is a column link on report A1 which refreshes chart C1 using a custom dynamic action.
    The column link on report A1  has the URL set to  javascript:$.event.trigger('RefreshTrend_2', [{key_2:'#COL01#' }]);
    and there is a dynamic action D1 RefreshTrend_2 which sets the value of the chart filter P17_KEY_2 to the value of the javascript variable key_2 and then refreshes chart C1
    The dynamic action is custom with a type DOMObject of document and no condition
    This works fine but when I add another report/chart (report A2, chart C2)  combination with a similar dynamic action (D2), D2 is a copy of D1 with the values for the variables and chart region changed.
    The A2/C2 functionality works fine on its own, D2 gets fired when I click the column link, but not when there are 2 dynamic actions of custom/document on the page.
    This column link on A2 only fires the dynamic action D2 if dynamic action D2 has a higher sequence than D1 (if i move it above D1 in the list it will fire, but then D1 does not fire for the column link on A1
    Am I missing something?
    Thanks
    Kathryn

    Here is my page source from the browser (i put in some blank lines here to separate the 3 dynamic actions)
    <script type="text/javascript">
    apex.da.initDaEventList = function(){
    apex.da.gEventList = [
    {"triggeringElement":"P17_IS_OK","triggeringElementType":"ITEM","triggeringConditionType":"NOT_NULL","bindType":"bind","bindEventType":"change",actionList:[{"eventResult":true,"executeOnPageInit":true,"stopExecutionOnError":true,"affectedElementsType":"BUTTON",javascriptFunction:apex.da.enable,"action":"NATIVE_ENABLE"},{"eventResult":false,"executeOnPageInit":true,"stopExecutionOnError":true,"affectedElementsType":"BUTTON",javascriptFunction:apex.da.disable,"action":"NATIVE_DISABLE"}]},
    {"triggeringElement":"document","triggeringElementType":"DOM_OBJECT","bindType":"live","bindDelegateTo":document,"bindEventType":"RefreshTrend_2",actionList:[{"eventResult":true,"executeOnPageInit":true,"stopExecutionOnError":true,"waitForResult":true,"affectedElementsType":"ITEM","affectedElements":"P17_KEY_2",javascriptFunction:apex.da.setValue,"ajaxIdentifier":"3BB4667C9E25BFB8DCF63639507A062A88F713A193C0D30DDF1CEA8D6875A7F9","attribute01":"JAVASCRIPT_EXPRESSION","attribute05":"this.data.key_2","attribute09":"N","action":"NATIVE_SET_VALUE"},{"eventResult":true,"executeOnPageInit":true,"stopExecutionOnError":true,"affectedElementsType":"REGION","affectedRegionId":"R2959102626294614",javascriptFunction:apex.da.refresh,"action":"NATIVE_REFRESH"}]},
    {"triggeringElement":"document","triggeringElementType":"DOM_OBJECT","bindType":"live","bindDelegateTo":document,"bindEventType":"RefreshTrend_1",actionList:[{"eventResult":true,"executeOnPageInit":true,"stopExecutionOnError":true,"waitForResult":true,"affectedElementsType":"ITEM","affectedElements":"P17_KEY_1",javascriptFunction:apex.da.setValue,"ajaxIdentifier":"51D6B9673F7096076392A95D9D00B417D49DEB96D878B419FC6D1E482D0AB2F0","attribute01":"JAVASCRIPT_EXPRESSION","attribute05":"this.data.key_1","attribute09":"N","action":"NATIVE_SET_VALUE"},{"eventResult":true,"executeOnPageInit":false,"stopExecutionOnError":true,"affectedElementsType":"REGION","affectedRegionId":"R2925517394066336",javascriptFunction:apex.da.refresh,"action":"NATIVE_REFRESH"}]}];
    </script>
    Only the first "document" dynamic action will fire, even though I fire them by name using
    javascript:$.event.trigger('RefreshTrend_1', [{key_1:'#COL01#' }]); from the column link.
    Kathryn

  • Custom Dynamic Attributes

    Hello Experts:
    Does anyone knows if it is possible to create a Custom Dynamic Attribute for Bid Comparison where this custom Attribute can be automatically filled through a function module or program with some calculated value?
    My requirement is to provide an automatic supplier qualification which can be used as a comparison attribute, the qualification could be calculated using supplier information from previous POs, Confirmations, etc.
    Hope you can help me out
    Hugo

    Hi,
      Dynamic Attributes for Bid Invitation can be created using customization.
    SPRO-> SRM Server->Bid Invidation - > Dynamic Attributes.
    Generally the response to  the dynamic attributes are given by Bidder when submitting the Bid.
    For automaic population of response to the bidder do you want to do through report ?
    you can implement "BBP_DOC_CHANGE" BADI metod "BBP_QUOT_CHANGE" for pupulating the response of dynamic attribute while submitting BId.
    Regards
    Kalandi
    PS : Reward points if it helps you.

  • Custom Dynamic Stamp Java not working in WIN7

    I currently was upgraded from WinXP to WIN7. Running Acrobat Prof 8 with all the updates. I created a dozen customized dynamic stamps that grab info and date/time from the system. Using the following java, the stamps worked perfectly.
    event.value = (new Date()).toString();
    AFDate_FormatEx(",m/d/yy");
    event.value = " " + (identity.name || identity.loginName) + " - " + event.value;
    In WIN 7, I am getting a long date and time with no identity.
    HELP
    Ken Panthen
    Albany, NY

    GK,
    I tried a completely new file from scratch, used your script and it did not pick up the user,  it used a long date format, etc. Here is a sample of what I got. I only want the short date and name. No time zone. No name appears. It should be KPanthen.

  • Adding custom navigation rules results in strange behavior

    Hello,
    We'd like to add navigation rules to our application. To avoid post-JHeadstart-generation-steps we created an extra faces-config-custom.xml file which contains the navigation rules. When adding this file to the web.xml and run the aplication we encounter strange behavior
    - Errors are shown in duplicate
    - 'Transaction completed' messages are not shown
    Try adding the underneath faces-config-custom.xml to a standard HR demo project and you will get the same behavior.
    (1) What is the reason of this strange behavior?
    (2) How can we add custom navigation rules, without having to do post creation steps?
    Regards Leon
    [faces-config-custom.xml]
    <?xml version="1.0" encoding="windows-1252" ?>
    <!DOCTYPE faces-config PUBLIC
    "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config xmlns="http://java.sun.com/JSF/Configuration">
    <navigation-rule>
    <from-view-id>*</from-view-id>
    <navigation-case>
    <from-outcome>BezwaarVerzoeken</from-outcome>
    <to-view-id>/pages/inboeken/BezwaarVerzoeken.jspx</to-view-id>
    </navigation-case>
    <navigation-case>
    <from-outcome>LosseOpdrachten</from-outcome>
    <to-view-id>/pages/inboeken/LosseOpdrachten.jspx</to-view-id>
    </navigation-case>
    </navigation-rule>
    </faces-config>
    [Add faces-config-custom.xml to web.xml]
    <context-param>
    <param-name>javax.faces.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/faces-config-custom.xml,...

    Leon,
    When you perform a drag and drop operation, JDeveloper adds the following lines to the faces-config.xml:
    <lifecycle>
    <phase-listener>
    Oracle.adf.controller.faces.lifecycle.ADFPhaselistener
    </phase-listener>
    </lifecycle>
    However, JHeadstart uses its own subclass of ADFPhaselistener, and defines the lifecycle element in JhsCommon-beans.xml. Due to a bug in ADF, ADF does not look for the lifecycle element in other files than faces-config, and adds its own element in faces-config.xml If you remove these lines, everything works fine again.
    To prevent this from happening again, you can move the following entry from JhsCommon-beans.xml to faces-config.xml:
    <lifecycle> <phase-listener>oracle.jheadstart.controller.jsf.lifecycle.JhsADFPhaseListener</phase-listener>
    </lifecycle>
    And then make a custom template for JhsCommon-beans.vm where you remove this entry.
    Steven Davelaar,
    JHeadstart team.

  • Custom dynamic names for outbound payment files in R12

    I have asked this on a couple of forums, but somehow missed this one.
    We are upgrading from 11i to R12 and require custom dynamic file names for the Payments output files (cheques, advices, efts). I see that you can create a custom prefix and extension through payment profiles, but the functionality is very limited (i.e. no date stamp). I am thinking that others must have come across this before, and am wondering how you have handled such a requirement. Is it possible to add custom steps to the seeded payment process? Can the payment process be run as part of a request set and then a custom step added which grabs the output file and renames it based on information obtained from the batch and the process profile. Our goal is a fully automated payment process where batches are scheduled, processed and files renamed and sent out to banks and a 3rd party printer with no user interventation.
    Any advice/tips would be appreciated.
    Thanks.
    Tam.

    Hi Tam,
    Could you please let me know if you got the solution as we have a similar requirement of renaming the output file as perthe business needs fro which we need custom program.
    Thanks,
    Manas

  • Dynamic rules

    (1) Dynamic rule accepts only Accountand view in the left hand side. What is the intersection that it writes to?
    (2) Given the syntax and other limitations ( e.g it can refer only to the same subcube) are there any benefits of using dynamic over HS.Exp exp for financial ratio computation?

    Hi,
    I am trying to do something similar as was stated in this post such as
    -Set the background color of a cell to green if the value of another cell is >= 75.
    -Set the background color of the cell to red if the value of the other cell is <= 45.
    -Set the background color of the cell to yellow if the value of the other cell is > 45 or < 75.
    Does anyone have any helpful suggestions?
    Thanks,
    Barbara

  • Custom Design Rules Error: importClass is not defined

    Hi everybody
    i have a problem with the Data Modeler 4.1 (Beta) custom design rules.
    in the version 4.0.3 i have some custom design rules with the option: importClass(javax.swing.JOptionPane);
    for the error exception and messageboxes.
    - in the version 4.0.3, this option works just fine
    - in version 4.1, this option raises an error
    If this option is changed in Version 4.1? or where is the error?
    Thanx for any idea, suggestion...
    Martin

    I have found the solution!
    in the version 4.0.3 the Data Modeler used Mozilla Rhino as engine and in the version 4.1 Oracle Nashorn.
    So in version 4.1 you must load compatibility script for use the ImportClass functionality.
    Example:
    // Load compatibility script
    load("nashorn:mozilla_compat.js");
    //Import der Java Class
    importClass(javax.swing.JOptionPane);

  • Custom Design rules on table partitions

    Hi
    I need to create several custom design rule at the table partition level.
    for example one of the rule is that
    for all table partitions
      if a table partition name begins with M
        then it should not be compressed
        and also should not be in tablespace called xyzHow do i go about enforcing this rule using the design rules

    Hi,
    here is simple example, you can improve it easily. In fact you have two rules and it's better to create two rules.
    var ruleMessage;
    var errType;
    var table;
    //define the function
    function checkPartitions(){
    ruleMessage = "";
    model = table.getDesignPart();
    tp = model.getStorageDesign().getStorageObject(table.getObjectID());
    result = true;
    if(tp!=null){
      partitions = tp.getPartitions().toArray();
      for(var i=0;i<partitions.length;i++){
       partition = partitions;
    if(partition.getName().startsWith("M") && "YES".equals(partition.getDataSegmentCompression())){
    result = false;
    ruleMessage = "Partition " + partition.getName()+" for table "+tp.getLongName()+ " cannot be compressed";
    break;
    tablespace = partition.getTableSpace();
    if(tablespace!=null && "xyz".equals(tablespace.getName()) && partition.getName().startsWith("M")){
    result = false;
    ruleMessage = "Partition " + partition.getName()+" for table "+tp.getLongName()+ " cannot be in tablespace xyz";
    break;
    return result;
    //call the function
    checkPartitions();
    you should define it for "Table" object. And your physical model should be open.
    Philip
    Edited by: Philip Stoyanov on Jan 10, 2012 4:53 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Implementing a custom matching rule for AR lockbox

    I need to Implement a custom matching rule for AR lockbox.
    Client has a requirement like to match with pack slip.
    Any one have the coding for this?
    Kindly help me to solve this.

    I need to Implement a custom matching rule for AR lockbox.
    Client has a requirement like to match with pack slip.
    Any one have the coding for this?
    Kindly help me to solve this.

Maybe you are looking for

  • XI3.0 Sender RFC Adapter fails

    Hello, I get the following error message with RFC Sender Adapter (R/3 4.6C to XI): "lookup of binding via CPA-cache failed for AdapterType RFC, AdapterNS". Has anybody seen this before ? Regards,

  • Trying to understand syntax hilighting (please run code provided)

    Can someone enlighten me here - I've searched the API, but cannot get this to work - I have also seen and used camrickr's superb code - the point is here I'm trying to get a handle on how that works by simplifying the processes. The following code is

  • Keep namespace tags throughout the message mapping in XI

    Hi! I am facing the following problem: A backend application sends out XML messages that all have a namespace tag in the element names: <ns1:StandardBusinessDocument xmlns:ns1="http://www.unece.org/cefact/namespaces/SBDH" xmlns:xsi="http://www.w3.org

  • FM to Upload/Download Word files

    Hi Experts, My requirement is i want to upload Ms-Word file in SAP through RFC, and after uploading the file i want to reterive that file through RFC. Is there any standard FM to upload and download the file. Regards, Rajneesh Gupta

  • IPad2 not displaying some sites correctly

    In Safari, two sites are not displayed correctly on my iPad 2.  On dpreview the messages (threads) are not shown as they usually are. And in Apple Fourms the list of categories such as iPad, iPod, Safari, Mac OS etc. How can I return these sirptes to