How to apply a custom rule just for a relational model?

Hello

My drawing has several relationship models, but I want to check custom rules or apply custom transformations just to a specific relational model.

So, I created a 'personal library' called 'Custom design rules' with the following function:

function checkColComments() {}

result = true;

ruleMessage ="";

If (! column.getCommentInRDBMS ()) {}

ruleMessage = 'no comment in RDBMS defined ";

errType = "error";

result = false;

}

return the result;

}

In the 'custom design rules", I created a rule"Comments column Check", referring to the library and the method created previously.

But, even if I chose the "relational model" which I intend to apply this validation rule, run the script for all open models.

This seems a bug (I use v3.3.0.747 DDM,) because it is asked to select the template to apply the script, but subsequently, this selection is ignored.

I have not yet tried the v4.0EA to see if it has been resolved or not and the release notes does not refer to the list of the bugs fixed (or I have not found) as it was in version 3.3.0.747.

No idea if I'm doing something wrong or if the bug still exists?

Thank you!

Hello

design (including custom) rules are still applied on a relational model. I wasn't able to reproduce a case when this rule is broken.

However, there is a bug in the 'Custom Design Rules' functionality and the rule is applied on what is called "current" model and model selected is ignored.

Which works very well in the "Design rules" feature, where the selected model is used.

As workaround for 'Custom Design Rules' - you can generate DDL by using "Generate the DDL" icon and this model will become as "current"relational model. "

Philippe

Tags: Database

Similar Questions

  • How to use GREP to apply the character style just for the first and the second line of the paragraph?

    as the title, I just want to ask how to apply the style of character just for the 1st and 2nd line of the paragraph. Help me pls, tks!

    Can you show the screen shot with the invisible market, looks like you feedback after each line.

    So, something like this would work where I have a return forced for the linebreak (shift + return). The example on the right does not work because the line break is a return:

  • How to improve the custom rule by checking the existence of the role with INSERT permission?

    Hello

    following a custom rule to check the existence of some columns of audit - how can I improve this rule only to run for tables where there is a role with privileges to INSERT?

    Günter cordially

    function checkAudit (table) {}

    inserted_by = false;

    inserted_at = false;

    ruleMessage ="";

    tNom = table.getName ();

    If (tname.indexOf ('_DWH_') == - 1).

    {

    columns = table.getElements ();

    l = columns.length;

    for (var c = 0; c < l; c ++)

    {

    CNAME = columns [c] .getName ();

    If (cname == "INSERTED_AT") {inserted_at = true}

    If (cname == "INSERTED_BY") {inserted_by = true}

    }

    If (! inserted_at) ruleMessage = ruleMessage + not 'INSERTED_AT ';

    If (! inserted_by) ruleMessage = ruleMessage + not 'INSERTED_BY ';

    }

    If (ruleMessage! = "")

    Returns false;

    on the other

    Returns true;

    }

    checkAudit (table);

    Hi Gunter,

    the function to check if the column of table a insert privilege for role is less.

    It is possible insert are defined in table instead of the column - that does not check the function below.

    Philippe

    function hasColumnWithInsertForRole(table){
        sd = table.getRelationalModel().getStorageDesign();
        tp = sd.getStorageObject(table.getObjectID());
        if(tp!=null){
            roles = sd.getRoleSet().toArray();
            for(var i=0;i-1){
                    return true;
                }
            }
        }
        return false;
    }
    hasColumnWithInsertForRole(table);
    
  • APPLY the stream abandoned just for one mistake?

    Hello

    When there is an error, the posting appears ABORT in the EM console, and I have to restart after you have cleaned the errors.

    So, it means posting more run...

    My idea was that errors would fill a queue of the error, while other events to success would continue...

    If it fails in production just for one mistake, it is not acceptable...

    You must use something like:

    Start
    dbms_apply_adm.set_parameter ('APPLY_NAME', 'disable_on_error', 'n');
    end;
    /

    The default value is 'Y', that is why it stops.

    See:
    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14258/d_apply.htm#i997629

    Kind regards

  • can we create specific diagrams of logic model for the relational model?

    Hi-

    I created several diagrams of relational model. I want to create the logical data model diagram for each of the relational model.
    Is it possible to do?

    Currently, it is always associated with a logical data model diagram. When I create LD for the 2nd, it is always update the same diagram.
    Please let me know.

    Hello

    Yes you can have the diagram in the logic model. Check there titled "Subview as" at the top right of dialogue engineering - select it and subview will be created in the logic model corresponding to the main schema to your relational model.

    Philippe

  • How to apply an effect to just the subject After Effects CS6

    Hello

    I want to add an effect to just one person in front of a green screen.  I created an adjustment layer that produces the effect and placed him above the layer of film. How can I get the effect applies only to the actor and not wrapped and fill the rest of the screen?

    Thank you

    Robert

    After Effects CS6

    First Pro CS6

    Don't be afraid to use multiple layers and duplicates of your images.

    Another thing to do is apply the grid to a solid effect, before dialing the solid, then use Set Matte to extract the alpha of your layer to key. There are 1 million ways to do what you want to do, but most of them cannot be done without the help of several layers.

  • How to apply gift cards ITunes accounts for children

    MY child (under 13 years) has an Itunes gift card & he has added to his account.  Whenever he adds new songs on ITunes, it debits the costs of our credit card, not the balance in the balance assigned to his Apple ID.  How to debit balance?

    If it is connected to his account on the device and the computer he buys songs from it should automatically use the balance for purchases, card of the Organizer must only be loaded if it doesn't have a balance (balance still shows on their account?) or if it does not cover the price of the item (whereby only the amount added should be charged to the card). If it does not that (he tried logging out and on their account?) you can try contacting iTunes Support and see if they can see why it does not work: http://reportaproblem.apple.com or http://www.apple.com/support/itunes/ww.

  • How can I get customer support agent for hotmail live?

    a secondary hotmail account locked out.

    answering the questions provided to restore the account have been difficult because this isn't my account main hotmail.

    is it possible to get a live support rather than a form agent?

    Hi MARKCHRISTIAN,

    This forum is for comments on the Microsoft Answers forums - we will see for technical questions here.

    I found some resources of Hotmail. http://support.Microsoft.com/select/default.aspx?target=assistance&SD=GN and http://windowslivehelp.com/product.aspx?productid=1

    It seems that Hotmail support is online only, based on this http://support.microsoft.com/contactus/cu_sc_selector_chat

    Whatever it is, you're better served with the Windows Live community.

    Best,

    EmilyF

  • How metrics apply to the new target when no surveillance model is defined.

    Hi all

    I got a new OEM environment with the 12.1.0.4 version and DB repository on 11.2.0.3.

    When I checked there is no oversight model set, none of the groups, administrative groups are created. It is still sending alerts. I checked the settings for each target as host, DB, listener. They all contains defined parameters.

    My question is how metrics are assigned to the target when there is no oversight model available, not groups, administrative groups are created. Only targets are promoted only.

    The followed bydefault OEM models does not contain the settings for the target.

    My belief is that the objectives are assigned with parameters by default when they are added. Is it true?.  I searched the oracle documents, but did not find the SNA.

    Kind regards

    Ashutosh.

    Each target has a set of parameters by default as their definition of base in EM, when they are discovered, they are applied.  If a template is applied, they are replaced.   You can see what this definition is by creating a new template, select a target type and select the target.   A model can also be marked as 'default' to replace these default values when the discovery of the target.

  • How can I change the background color for the entire model

    I'm trying to change the color of gray background for the blue container. I tried to find the location of this gray background in the CSS, but failed.

    Could someone help me understand what line in the CSS file is responsible for the color of the container?

    Thank you

    Anna

    No worries.

    It seems that the background color is controlled by this tag in your style.css file:

    body #header body #footer {}

    background-color: #343434;

    }

    This can be consulted on line 1523 of this file. Change only the blue that you want and you should be good.

    I hope this helps.

  • How to apply animation preset to a certain or all the layers through a script?

    Hi all

    I have several layers, and I want to apply a random animation preset in each layer via a script.

    I know how to apply an effect, for example. .property("effects").AddProperty [somelayer] ('block of dissolution"),

    But how to apply an entire animation preset (for example. Block the dissolution - digital or Wipe - pixelstorm 3D card).

    Thank you!

    Once you have the path to the screening, you can do it like this:

    myLayer.applyPreset (File (myPresetPath));

    Dan

  • How to apply for a code?

    How to apply for a code?

    PS cs6

    Joselin, it seems you are trying to do the activation offline for your product.

    You must reach out to support this process.

    Contact the customer service

    * Be sure to stay connected with your Adobe ID before accessing the link above *.

    Reference: offline Activation

    Kind regards

    Sheena

  • How to access a custom property for the attribute and command in .vm file?

    Hello

    I have created custom in OPM for attribute properties and also apply only to assign properties.

    But if this value in the .vm file access?

    I've accessed the help

    $attribute.getProperty ("ScreenProp", "default")

    but it is not functional but is even worked for the custom property screen

    It already is the answer in my first answer in the thread How to access custom in the .vm file properties :

    $control.getProperties () .get ("PropertyName")

  • Absent voice memo to the homescreen on IPhone SE there is no 'utility' or 'extras' anywhere; folder Siri is voice memo, but can not get to the home screen? How to apply for voice memo on the homescreen?

    Absent voice memo to the homescreen on IPhone SE there is no 'utility' or 'extras' anywhere; folder Siri is voice memo, but can not get to the home screen? How to apply for voice memo on the homescreen?

    Try going into settings > general > reset > reset home screen presentation.

  • I just installed an SSD on my imac 24 inch 2007 but at the start of the computer does not see the drive. How to use the terminal to look for? Thank you

    I just installed an SSD on my imac 24 inch 2007 but at the start of the computer does not see the drive. How to use the terminal to look for? Thank you

    Can she be seen by disk utility (and which version of Mac OS X is)

Maybe you are looking for