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);

Similar Messages

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Transaction launcher, get error Starttransaction is not defined

    Hi, I am trying to create a new link in the navigation bar that should call ITS and a customer created transaction in CRM. We have been doing it before and these links are working, but now trying to create another link in the navigation bar, I gets an error
    "Starttransaction is not defined". In the Handleclass created with the transaction launcher I gave it the name ZCL_filarkiv. When I did that I got an syntax error "There is a syntax error in class zcl_filarkiv". When I goes to SE80 in order to check the class, I can see several errors, I correct them and add a call in the method IF_CRM_IC_ACTION_HANDLER~PREPARE_DATA_FLOW in order to call the ITS and our customerdefined class. The code added is:
            ICWEBCLIENTBORKEYPARAMETER =
      'ZARKIV'. "#EC NOTEXT
      me->set_container_object(
        iv_name        = '<MAINOBJ>'
        iv_object_key  = ICWEBCLIENTBORKEYPARAMETER
        iv_object_type = gv_bortype
    The transaction ZARKIV is working calling it directly in CRM.
    The syntax errors disappears and I can activate the class without problems. But when trying to use the link, I get the error "Starttransaction is not defined". Also other links that have been working before now gets an error "Error in the starttransaction ZCL_filarkiv.
    I do not have a clue what the problem could be. Is there a step that I have missed to do? Thank you for your help, regards Lena

    Found out that xpath.js wasn't uploaded correctly. Now that
    it is, it works!

  • Net bridge design rule errors

    Multisim 10.1.197 and Ultiboard 10.1.197
    I could not get a net bridge to work in a Ultiboard layout, so I tried in a simplified circuit:  
    In Multisim, place a connector with several pins, for example HDR1X10.
    Place a DGND and GROUND. Connect the first to pin 1. Connect the second to pin 5.
    Transfer to Ultiboard
    Rotate HDR1X10 so the pins numbers increment left to right  
    Place traces on the top layer so the pads of a net bridge connects one trace to another 
    Place a net bridge, picking GND and 0 (also tried 0 and GND)
    This gives Design Rule Errors:
       Unused pin is connected to NET = GND
       Unused pin is connected to NET = 0  
    Is there a work around?  
     Ray

    I am having the  same problems.  This is a very important feature that needs to work since there is no proper work around.  This is always the case when there are ananlog and digital grounds that need to be kept separate, but also need to be connected somwhere in a very controlled fashion.  I've followed the instructions exactly but what I get is a net bridge with no nets assigned to it's terminals.  You can connect it up but you get the DRC errors as stated earlier.
    This can be manually fixed by going into the  netlist editor and selection each of the nets to be connected and adding on pin from the net bridge to each (NB1, pin _).  This removes the DRC error and everything is happy.
    The only problem is when you forward annotate again you lose the NB pin assignments and you have to edit the netlist again.
    I tried a part in MS with the net bridge as the footprint, but UB will not impor the net bridge when you do that.  To get around that I have a 'netconnect' part with just two dots and a silkscreen box around it.  This can be placed where you want the bridge and will import each time.  This is just a marker wheer you want the bridge to be.  You still have to place the bridge manually and edit the netlist to fix the DRC error.
    This is a bug.  I should be able to assign the netbridge as the footprint of an MS symbol and have it come in with the right netlist connections when I forward annotate.   Alternatively, the netbridge assignments should be made to stick when the netlist is imported again.
    David B

  • I get a "JavaScript Application - Reference Error: XPCSafeJSObjectWrapper is not defined" error every time I try to open a new tab.

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [/questions/777191]</blockquote><br>
    Just like the title says, starting with Firefox 4 Beta 6 or 7, I forgot. Any time I try to open a new blank tab (sometimes even when I start up Firefox and the app tabs load) I get an error that says "JavaScript Application - Reference Error: XPCSafeJSObjectWrapper is not defined" If I close it everything works as normal again (until I open a new tab) but it is very annoying to have to do this. Is there any fix for this or is the bug just still there?

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]

  • Error: JAVA_HOME is not defined correctly - While running ant.

    I have upgraded the JDK 1.5 Update 10 to Update 14. After upgrading the ant is failing when using with cygwin.
    It's giving the below error message:
    Error: JAVA_HOME is not defined correctly.
    We cannot execute /cygdrive/c/Java/jdk14/bin/java
    The JAVA_HOME is set properly & even I am able to check java -version.
    I am using apache-ant-1.6.5 and cygwin.
    Have any one faced the same problem?
    Please let me know if you have any solutions

    Grrrr. Been having a similar problem, but with Maven2. Allow me to (hopefully) save someone the gnawing of teeth and several bald patches.
    For starters, the Maven documentation gives you a pretty clear example of how to set your PATH. This is as follows:
    export PATH=/usr/whatever/whateveragain/apache-maven-2.0.10/bin:$PATH
    Simple, eh? Note the colon before $PATH. Then, it states quite presumptuously "4) Make sure JAVA_HOME is set to the location of your JDK". However, you don't set it in exactly the same way. You set it in virtually the same way, except without the colon, like this:
    export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0$JAVA_HOME
    Note that if you get the paths wrong a couple of times, you may reset them with the unset command. So to unset JAVA_HOME you'd use:
    unset JAVA_HOME
    After which you may set it again. As is advised, you may try to set the user privileges, but they didn't seem to affect my luck at all. Hope this helps!

  • Error "Item is not defined as an Inventory Item" using oInventoryGenEntry

    I am trying to create a Receipt from Production with this code:
                    receive = (Documents)_Company.GetBusinessObject(BoObjectTypes.oInventoryGenEntry);
                    receiveLine = receive.Lines;
                            receiveLine.BaseType = 202;
                            receiveLine.BaseEntry = oli.ProductionOrderNumber;
                            receiveLine.BaseLine = 0;
                            receiveLine.Quantity = oli.Quantity;
                            receiveLine.WarehouseCode = "01";
                    int errorCode = receive.Add();
    where the production order will contain several component items that make up a finished good.  Two of the component items are Labor and Royalties and are not marked as Inventory Items.
    The Add method returns this error:
    "Item is not defined as an Inventory Item" and references one the non-inventory items (ie 'Labor').
    I can received the same Production Order through SBO without an error.
    Suggestions?
    Thanks

    Because I am concerned about eliminating Labor from the Bill Of Material and its effect on the 'Acutal Product Cost' when I create a Production Order I set up a test.
    I created two Finished Goods Inventory Items with similar Bills of Material.  Both included a Labor component (non-inventory item).  The difference though, is one Labor component has an Item Type of Labor and the other Labor component has an Item Type of  'Items'
    Next, I create a Work order for each of the finished items.  Then I did a receipt from Production and closed the Work Orders.
    Looking at the Production Order summary, the Finished Good had an 'Actual Additional Cost' that was non-zero for the Finished Good that had a Labor component of the 'Items'; the other Finshed Good had a zero 'Actual Additional Cost'.  These seems in conflict with the eLearning segment on Production.
    At this point is this a different Forum?

  • Data Collection task error (Item  is not defined in Cons Chart of Accts 01)

    Dear Experts,
    While executing Data collection task, I am getting error "Item  is not defined in Cons Chart of Accts 01", What could be the reason?
    (Many Items are getting collected in target, but at the topline this error is been shown)
    Regards
    Ritesh M

    Thans Dan,
    I have gone in the program UGMDSYNC, and getting few Gls which have not assigned Cons Chart  of account.
    Kindly tell me how to assign chart of account to these GL account?

  • FBVB error msg "Transaction not defined for direct call-up"

    Dear Gurus,
    Pls help me on issues below:-
    1.)What is the diff between FBV0 and FBVB?
    2.)When i try to initialize FBVB. I received an error "Transaction FBVB not defined for direct call-up. Can u teach me how to fix it up coz one of my end-user requested this T-code.
    Thanks.

    Nothing needs to be fixed - the transaction is called behind the scenes when the user uses FBV0 to post a parked document.  Users should never call FBVB directly.
    Andrew

  • Error: $x_ShowChildren is not defined

    The page definition page is not displaying any of the usual page objects. I'm getting an Error: $x_ShowChildren is not defined in the error console.
    Source File: http://apex.oracle.com/pls/otn/f?p=4000:4150:1692562586117686::NO:::
    Line: 39 error on the page definition page.

    Hi all, we are experiencing this "$x_ShowChildren is not defined" error on our new
    APEX 3.0 installation.
    I've already checked the notes at
    http://www.oracle.com/technology/products/database/application_express/html/3.0_fsps.html#01
    and our page really looks as depicted at point one but the refresh doesn't seem to
    do anything. We have tried to flush the cache and even change browser (IE and FF)
    but the problem is still there.
    I've checked the page source and the missing function is defined in
    /i/javascript/htmldb_html_elements.js
    The js file is visible if loaded directly but somehow the page fails with
    Error: $x_ShowChildren is not defined
    Source File: [...]/f?p=4000:4150:4106999370516652::::FB_FLOW_PAGE_ID,FB_FLOW_ID:1,101
    Line: 39
    (I've removed our address there ...)
    The strange thing is that this happens only from certain PCs but all the
    configurations (browser, network, ...) seem to be identical.
    Any idea of what might be going on?
    Thanks in advance for your kind help

  • I am getting a message Internal Error Instacast keys not defined when I open one of the local tv news apps on my iPad. What do I need to do to fix it?

    I am getting an error message "Internal error Instacast Keys not defined" when I open a news app from one of my local tv stations. What is causing this?

    Hello, MommaLloyd24. 
    Thank you for visiting Apple Support Communities.
    Here are the steps I would recommend going through as they should resolve the issue.
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Cheers,
    Jason H.

  • TO confirmation error - item category not defined

    Hi experts,
    We have a HU/WM setup in our warehouse. While i try to confirm the TO i am getting an error 'item category not defined'?
    I am able to confirm the TO's for other orders, this is happenning for a specific group of orders which have a different item category in delivery.
    Any hints when this error will appear?
    Is there any config where we assign the delivery item category with the warehose or any other setting?
    Thanks,
    Harish
    Edited by: Harish RJ on Jan 24, 2011 7:02 AM

    I suggest have a look at OSS note 1464539 - your settings in table T184L might be wrong.
    Is it possible that the batch is determined via WM, during picking? If different batches have been determined for one item, it will cause batch split in your delivery - if settings in T184L are wrong, system cannot cope with it and may throw error message VL324.
    (sorry for duplicate, I was slow a little bit and "Sap: IN" said the same in the meanwhile)
    Edited by: Csaba Szommer on Jan 24, 2011 8:29 AM

  • I keep getting a "reference error:m_caFxTBobj is not defined. pleas help

    I keep getting a "reference error:m_caFxTBobj is not defined. This happens every time I go to a new tab.Please help

    Usually caused by an add-on that is either incompatible with Firefox or one that wasn't updated completely by its' developer. The former can happen when the Addon Compatibility Reporter extension is used "across the board", instead for each extension along with testing each extension.
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • Error Document type "" not defined

    Hi All,
    I am getting below error message when i am trying to see the output of a query build on Infoset in SAP R3 system.
    The Infoset is build on top of BKPF,BSEG and EKPO Tables.
    Document type  not defined
    Message no. F5814
    Diagnosis
    Financial Accounting service: document type "" was not found in the document type table. There are two possible causes:
    document type "" has not been set up in FI customizing
    document type is supplied incorrectly from the calling application
    System Response
    System error.
    Procedure
    There are two possible measures:
    set up document type "" in FI customizing
    system error within the calling application - get in contact with the SAP Hotline Service.
    Any input on above issue will be of great help.
    Regards,
    Anjali Singh

    Hi Anjali,
    In which system you are getting this error? Development or Production?
    I think you have doc. type just in BKPF (Accounting documents headers). Check if you have any record with document type blank.
    You can use t code SE16N for this issue. When you are setting filter on field "document type" (BLART) you can see the list of values. Check if there is any blank item
    Regards,
    Omid

  • While click on document shows error"document type not defined"

    HI
    we have folder structure in  DMS like:
    public folder->engineering folder->design folder->document(any)
    while i am clicking on document it shows error msg document type not defined
    please let me know why this error occur

    Hi,
    Since you are using document structure functionality, You are require to create an public folder initially and private folder for each user which is specific to user ID.
    If you dont want to create private folder you can select "Select document Via in CV03N screen and select only" Selection screen " and not browser.
    If the above changes is done then system will not through an error from CV03N screen"document type not defined"
    reward points if useful.
    Rgds,
    Nayeem.

Maybe you are looking for

  • Mid 2010 macbook pro freezes and restarts when moved.

    My macbook pro crashes daily and sometimes I have to keep turning it on for about 5 minutes because it doesn't start up it just beeps. once it starts up it tends to crash when moved even slightly. I have the crash reports and I'm hoping someone can h

  • SUPER strange problem with an old account - passow...

    Ok so here's the story - I created a Skype account years ago - when it all started - must have been 2005-2006 even and I have used it since. I have installed the windows on my PC and Laptop about 2 years ago and the Skype was set to autologin. Now I

  • Master password dialog inconsistent after update

    After the latest update (v12.0), the master password dialog box is no longer come up immediately on visiting a password enabled site (like gmail). It now seems to pop up randomly -- sometimes appearing AFTER visiting one or two PW enabled sites, some

  • How to attach a smartform on a notification

    dear sdn, i am trying to add a smartform on a notification and when i am defining shop papers, i am getting a message "choose the key from the allowed name space"

  • Parser Error Message: Could not load file or assembly 'DreamweaverCtrls

    Hi, After attempting to view my first asp.net page I was greeted with the following error: Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error