Transformation script and methods

Hi !
I'm writing transformation scripts and I want to know where I can find a complete list of method ?
In API documentation in \xmlmetadata folder, I can find getter and setter for each class, but some other methods seem to exist. Examples:
on Column class, a copy() method, a remove() method
on FK , an addToAllDPVs() method (see How to use transformation script to add FK to relational model
model.getAppView.log()
Typically, does a copy() method exist for Table class ?
Where can I find it ?
Thanks
Regards

You just have to define a method in the private section of the header of the coding. Just scroll up to the top when creating a routine.
Please see also the general help on private methods.
<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/c3/225b6554f411d194a60000e8353423/content.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/c3/225b6554f411d194a60000e8353423/content.htm</a>
  Cheers
    SAP NetWeaver BI Organisation

Similar Messages

  • Easiest way to write transformation scripts

    Hey,
    I need to write quite a lot of transformation scripts. As I'm not a expert in javascript and java, I was wondering what's the easiest and quickest way to start creating those scripts. I found it quite annoying in Oracle SQL Modeler to switch between the library and the execution of the scripts. For some scripts I need interaction with the database and for other ones I need to ask the user for some parameter values.
    I've already tried the following with no real success:
    - Creating a project in JDeveloper
    - In Rhino command line, but I'm missing the Oracle SQL Modeler libraries
    - Opening 2 times Oracle SQL Modeler with the libray editing window and the transformation running window, the transformation running window does not see the changes in the other one.
    I've searched the internet, but I did not found any usefulle information about this subject.
    Any help would be appreciated.
    Thanks.
    Dominique

    Hi Dominique,
    I write my scripts in "Custom transformations scripts" dialog - "Tools>Design rules>Transformations".
    Opening 2 times Oracle SQL Modeler with the libray editing window and the transformation running window, the transformation running window does not see the changes in the other one.
    In "Custom transformations scripts" dialog you can write helper functions and execution code that do something and utilize those helper functions. Well if you want to reuse those helper functions in another
    transformation you need to copy them in new transformation. Libraries are here to help to overcome that limitations. Normally you write and  test your helper functions in "Custom transformations scripts" dialog
    and then put them in library. Also you put there a function that corresponds to the code you have in single transformation script and that can be invoked as single transformation. Data Modeler doesn't parse the library, you need to define
    functions that can be executed directly - that in "Functions/Methods" list of "Custom libraries" dialog. Functions exposed in that list are available for selection in "Custom transformations scripts" dialog. So what you expose is what you can use.
    Quick example - DM comes with script called "Tables to lower case - Rhino "
    tables = model.getTableSet().toArray();
    for (var t = 0; t<tables.length;t++){
    table = tables[t];
    name = table.getName().toLowerCase();
    table.setName(name);
    columns = table.getElements();
    size = table.getElementsCollection().size();
    for (var i = 0; i < size; i++) {
        column = columns[i];
        cname = column.getName().toLowerCase();
        column.setName(cname);
    table.setDirty(true);
    keys = table.getKeys();
    for (var i = 0; i < keys.length; i++) {
      key = keys[i];
        if(!key.isFK()){
         kname = key.getName().toLowerCase();
         key.setName(kname);
       }else{
         kname = key.getFKAssociation().getName().toLowerCase();
         key.getFKAssociation().setName(kname);
         key.getFKAssociation().setDirty(true);
    here is the same script put in library:
    function lower_case(){
    tables = model.getTableSet().toArray();
    for (var t = 0; t<tables.length;t++){
    table = tables[t];
    name = table.getName().toLowerCase();
    table.setName(name);
    columns = table.getElements();
    size = table.getElementsCollection().size();
    for (var i = 0; i < size; i++) {
        column = columns[i];
        cname = column.getName().toLowerCase();
        column.setName(cname);
    table.setDirty(true);
    keys = table.getKeys();
    for (var i = 0; i < keys.length; i++) {
      key = keys[i];
        if(!key.isFK()){
         kname = key.getName().toLowerCase();
         key.setName(kname);
       }else{
         kname = key.getFKAssociation().getName().toLowerCase();
         key.getFKAssociation().setName(kname);
         key.getFKAssociation().setDirty(true);
    And lower_case is exposed as function in "Function/methods" list
    Philip

  • Calling Classes and Methods in Transformation Rules

    Hi,
    I have transformations from Level 1 to Level 2 ODS where based on the source fields Date of Sale(ZDSALE) I have to derive Period to Date and Year to Date from the class ZBI_UTILITY_METHODS and method ATTRIBUTES_GET.  How do i incorporate this in my start and transformation routines. Can someone please give me the code for this and also give some sample codes where classes and methods are called in the transformation rules.
    Thanks
    Priya.

    Hi Priya,
    I suggest you the way to call method in the class like this:
      DATA: o_model          TYPE REF TO ZBI_UTILITY_METHODS.
    " define v_return variables based on type the method give the value
      CREATE OBJECT: o_model.
      v_return = o_model->ATTRIBUTES_GET( transfer parameter ).
      free o_model.
    Hopefully it can help you a lot.
    Regards,
    Niel.

  • Using VI server from DIAdem script :: Syntax (documenta​tion) for properties and methods of VI Server objects (for non-labvie​w programmer​s)

    Hello all,
    I am using DIAdem 10.0 Advanced, LabVIEW 8.0 PDS. I would like to start a LabVIEW IHM from a VBS script. I use VI Server to call my VI from DIAdem.
    Here is the script and the VI I use (VI attached):
    Dim lvapp, vi, viPath, paramName(1), paramVal(1)
    Set lvapp = CreateObject("LabVIEW.Application")
    viPath = "C:\TEST\test.vi"
    Set vi = lvapp.GetVIReference(viPath)
    vi.FPWinOpen = True
    paramName(0) = "Input"
    paramVal(0) = 10
    paramName(1) = "Output"
    paramVal(1) = 0
    Call vi.Call(paramName, paramVal)
    Call lvapp.Quit()
    I found a similar example on your web site.
    Question 1:
    I need to know the syntax for all the other properties and methods of a VI object (method like Get or Set Control Value for example).
    Is a documentation (other than the LabVIEW help which is dedicated for LV programmers) exist in order to be able to use all the features of VI Server from another environment (CVI, VB, ...)?
    Question 2:
    Is it possible to call a VI with VI Server with the parameter "Wait until done" to FALSE? (run a VI asynchronuously from DIAdem)
    Thanks for your answer.
    MatthieuG
    Eurilogic
    Attachments:
    Test.vi ‏9 KB

    Hello,
    I finally found a way to get the documentation of VI Server. I can view the "LabVIEW.TLB" type library file with a OLE/COM Object Viewer (a utility from the Windows SDK).

  • Transform implementation goes wrong when I try transforming a image through script and save the new image using a HTML to canvas plugin.

    Transform implementation goes wrong when I try transforming a image through script and save the new image using a HTML to canvas plugin. The rotation comes up fine, but the origin of the transformation is faulty (compared to other browsers like Chrome & IE)

    A good place to ask advice about web development is at the mozillaZine "Web Development/Standards Evangelism" forum.
    *http://forums.mozillazine.org/viewforum.php?f=25
    The helpers at that forum are more knowledgeable about web development issues.
    You need to register at the mozillaZine forum site in order to post at that forum.

  • Sql Developer Data Modeler 3.0 EA1: Custom transformation script

    What is the object model used by:
    Tools -> Design Rules -> Transformations
    From looking at the examples (and guessing) I have managed to create ID attributes on all my entities, but how do I set its sequence number or set it as the primary key?
    entities = model.getEntitySet().toArray();
    for (var e = 0; e<entities.length; e++)
    entity = entities[e];
    att = entity.createAttribute();
    att.setName('ID');
    - Marc de Oliveira

    content of XML files:
    1) class described, parent class if there is one
    2)<property .../>
    describes property - set and get method, data type of property, default value
    3) <collection ... />
    describes collection of objects belonging to class - 5 collections are defined in Table.xml - columns, indexes, table check constraints, column groups and spatial definitions
    - get method - to get collection
    - create item method - method of described class used to create item for that collection; so for columns collection table.createColumn() will create column in table
    - other methods - add, move, remove if are defined
    4)other meta data
    definitions in 1) .. 4) are used by Oracle SQL Developer Data Modeler, so it'll be wrong to modify those xml files
    5)<roproperty ../>
    Data Modeler doesn't parse/process these definitions, we decided to not filter them out however you should not rely that much on them
    6)some junk left
    For each object you can set your own properties and they will be persisted (also included in compare/merge in versioning) together with other information for object - look at "template table" example in transformation scripts. Here are methods you can use:
    void setProperty(String key, String value);
         String getProperty(String key);
         boolean hasProperty(String key);
         boolean hasProperty(String key, String value);
         void removeProperty(String key);
         void clearProperties();
         Iterator getPropertyNames();
    Philip

  • Advice for custom transformation script to change table FK Associations

    Hello,
    I am attempting to write a transformation script that will cycle through tables in a large model and modify some
    FK associations to change the remote table in the FK. As an aside, the reason for this is that our logical model
    has logical entities that represent many small lookup code domains. However our relational/physical model has a
    single utility code repository physical table which contains all these code domains. So part of the transformation
    from our logical model to relational model is to swing all the FK associations for these lookup code domains
    into the common code table. Then the tables representing the lookup domains can be hard deleted.
    In any case, I'm looking at the
    oracle.dbtools.crest.model.design.relational.FKIndexAssociation
    or the
    oracle.dbtools.crest.model.design.relational.Index
    to see if one of these can be manipulated to perform the transformation I want to accomplish.
    When I perform the equivalent process manually via property sheets there are several ways of accomplishing this.
    a) The neatest method seems to be to modify the existing FK in place by clicking on the FK in the relational diagram and then changing
    the property called 'PK / UK Index'. Change that to the PK of the utility code repository table that is replacing the original
    table (representing the lookup domain). A side effect of this results in the mapping of the FK
    columns being nulled out. So they need to be remapped to the original columns (which are retained).
    So in two steps the existing FK is detached from the original table, reattached to the new table and then
    the FK columns are reused in place for the new FK mapping.
    b) The brute force method is to delete the original FK and then create an entirely new FK to the new table. There are
    multiple dialogs which allow you to retain the original FK columns and reuse them in the new FK.
    I realize this is a somewhat complex transformation but I'd appreciate some algorithmic advice on which path to take
    to try to accomplish this. In particular, is there a scripting equivalent to the first process above?
    I don't even know if the FK that is represented on the relational diagram is represented by the FKIndexAssociation or Index
    class in the scripting object model. In other words, as I loop through the tables in the relational model what would be my
    starting point:
    fks = table.getFKAssociationsList();
    or
    fkIndexes = table.getAllInds_FKeyInds();
    or something else. The names of the properties in the user interface don't always match with the scripting properties so
    it's a little tricky to figure this stuff out.
    Once I get access to the object that is equivalent to the FK in the diagram/property sheet, what
    is the best way to manipulate it via scripting. How can I change the parent/remote end of the FK to point to the new table.
    Or if I have to delete the original FK and then recreate it - is there a way to save the original FK columns and reuse them
    while creating the new FK?
    One other question. What is the best way to delete tables from a relational model. I note that there is an undocumented (?) remove()
    method that is available on Table. It is probably on a superclass so other things can be removed as well.
    When I try to use this method in a loop the script throws up dialogs similar to the dialogs that appear while performing a delete
    manually via the UI. Is there any way to intercept and respond to the dialogs programmatically?
    So for instance if I get a dialog popup like
    Do you want to delete generated FK columns 'FOO' in table 'BAR'?
    is there a way to intercept that dialog in the script and then answer Yes or No to it via the script?
    If it turns out to be too difficult to perform this type of transformation via scripting the fallback
    is to perform the transformation on the generated DDL file. But it would be cleaner to be able
    to perform the transformation in the DM Relational model if possible.
    Any advice appreciated.
    Rgds, BP

    Philip,
    This is good info. I was able to get a rough version of my transformation script to work.
    However I'd like to clean it up a bit.
    In your notes it is not clear how the FKIndexAssociation and associated Index are related.
    Is there a getter on FKIndexAssociation that references the associated Index?
    It looks like the method fk.changeKeyObject() takes an Index object as its first parameter.
    What would be the cleanest way to extract the PK Index from the Code table that I want
    to point to? I used something like:
    cdTable = model.getTableSet().getByName("CD_REPOSITORY");
    cdPkIndex = cdTable.getIndexByName("CD_REPOSITORY_PK");
    I used the latter method because it's the only one that returns an object of type Index
    which is required as input to FKIndexAssociation.changeKeyObject(). However this method
    requires the name of the index. That's fine but I'd like to just grab the PK's supporting index
    directly if possible (without knowing the name).
    I'm curious if there is a getter on Table or FKIndexAssociation that can just grab the index of the PK of
    a table directly?
    I don't see such a getter on FKIndexAssocation. On the Table class there are many getters that might be
    of some use but the only one I could get to work was getIndexByName() as shown above.
    I tried to use getIndexes() and then use isPk() on the result of that in a loop but that didn't return any result.
    It looks like getters getIndexes(), getPKs(), getUKeys() return collections of DesignObject which are just the
    superclass of FKIndexAssociation which is not what I need (i.e. which IS the actual underlying Index object).
    So I guess the general question is what is the best way to get access to the Index objects in two scenarios.
    First for the PK and UKs (typically on the 'parent-referenced' table) and secondly for FKs (typically on the 'child-referencing' table).
    If I were imagining how this would work I would imagine getters on the Table for the former and a getter
    on the FKIndexAssociation for the latter. But that's not how it works.
    Also, as an aside - this 'Index' is somewhat confusing since these seem to be 'potential indexes' and not true database indexes.
    These 'indexes' seem to be more closely related to database constraints and not actual indexes. I know that Primary Keys are
    implemented in Oracle via a unique index but I'd like to confirm that the class
    oracle.dbtools.crest.model.design.relational.Index
    is not the same thing as a DDL database Index.
    Secondary question. I notice when I run the script which loops through all the tables and redirects the FKs - the
    diagram does not refresh. I had to save the model and then reload it for the graphical representation
    of the FKs to change and redirect to the new table.
    Is there a way to force the refresh to occur right away?
    I've noticed that other transformation scripts I've written HAVE resulted in the diagram being refreshed
    right away (even while the script is running). In this case it does not.
    Rgds, BP

  • Difference jb/w text symblosin script and standard text in scripts

    hi to all
    can u pols explain about the
    difference b/w text symblos in script and standard text in scripts

    hi
    Default paragraph Paragraph set to * in <b>standard text</b> maintenance
    If no form has been assigned to a text, the system automatically assigns the form SYSTEM, which contains minimal definitions for text formatting. There are two ways of formatting texts using forms: • Use the <b>standard text</b> maintenance to enter and print the text.
    Any kind of text can be included in a form. If no object is specified, then TEXT will be used (<b>standard texts</b>).
    <b>
    Text Symbols</b>
    Text symbols acquire their values as a result of explicit assignment. To interactively assign text symbols, in the text editor choose Include &#61614; Symbols &#61614; Text. This method is available for all text symbols belonging to a text module as well as those of the associated form. Values defined in this way are lost when the transaction is left. If you want to print the text module again, then you must enter the symbol values again. The purpose of the DEFINE command is to provide a means of making this value assignment a permanent part of the text, so that the values are available again when the text module is called again. This command can also be used to re-assign a new value to a text symbol half-way through the text. Syntax: /: DEFINE &symbol_name& = 'value'
    /: DEFINE &subject& = 'Your letter of 7/3/95' The value assigned can have a maximal length of 60 characters. It may itself contain other symbols. A symbol contained within the value assigned to another symbol is not replaced with its own value at the point at which the DEFINE command is executed. Rather, this replacement is made when the symbol defined in the DEFINE command is called in the text.
    /: DEFINE &symbol1& = 'mail' /: DEFINE &symbol2& = 'SAP&symbol1&' /: DEFINE &symbol1& = 'script' &symbol2& -> SAPscript If, however, the DEFINE command is written using the ':=' character rather than the '=' character, then any symbol contained within the value being assigned is replaced immediately with its current value. The assignment to the target symbol is made only after all symbols in the value string are replaced with their values. The total length of the value string may not exceed 80 characters. The target symbol must be a text symbol, as before.
    /: DEFINE &symbol1& = 'mail' /: DEFINE &symbol2& := 'SAP&symbol1&' /: DEFINE &symbol1& = 'script' &symbol2& -> SAPmail
    Inserting <b>Text Symbols</b>
    Procedure
    Inserting a Text Symbol
    1. Choose Insert &#8594; Symbols &#8594; Text.
    2. Place the cursor on the desired text symbol.
    3. Choose Choose.
    4. The system inserts the text symbol.
    Editing the Value of a Text Symbol
    1. Choose Insert &#8594; Symbols &#8594; Text.
    2. Choose Edit value bearbeiten. The dialog window Value definition for symbol <text symbol> appears.
    3. Enter the appropriate value definition.
    4. Choose Continue. In the dialog window Text symbols the specified value appears after the name of the text symbol.
    5. Choose Continue.
    Deleting all Text Symbol Values
    1. Choose Insert &#8594; Symbols &#8594; Text.
    2. Choose Delete all values. The system deletes all defined values.
    3. Choose Continue.
    Using Formatting Options for Text Symbols
    1. Choose Insert &#8594; Symbols &#8594; Text.
    2. Choose Options. The dialog window Formatting options for <text symbol> appears.
    3. Fill in the fields.
    4. Choose Continue.
    5. Choose Continue. The system executes the selected formatting option.
    regards
    ravish
    <b>plz reward points if helpful</b>

  • Classes and methods in BW 7.0

    hI ,
    I wrote some peice of code in rule and activated in development system .
    It was activated and transproted into Test environment .
    It went with errors .
    The error is : 
    BI 7.0 is totallly OOABAP with classes and methods .
    for each and every rule BI 7.0 will create Class definetion and class implementation .
    I have declared glaobal variables in
    CLASS lcl_transform DEFINITION.
      PUBLIC SECTION.
    and i used those variables in  methods
    CLASS lcl_transform IMPLEMENTATION.
      METHOD compute_ZRELALLOC.
    when i tranasprorth this rule , the golabl declaration in Class are not going .
    Thatswhy my transport failed and it says that syntax error .
    how to transport this class ........
    Please help me

    Venkat,
        Try look for any SAP Note or create Customer Message to SAP. It's clearly Program Error. We can't collect  "lcl_transform" class into Transport Request Independently as it was local Class not Global Class.
    Try transporting Transformations again, if it still gives problem. Contact SAP.
    Let us know if you implement any SAP Notes.
    all the best.
    Regards,
    Nagesh Ganisetti.
    Assign Points if it helps.

  • How to invoke from UNIX script and pass back return code?

    Though I am an experienced developer, I am new to java. I created a class containing a single method. I have performed my testing by running the class class.method from the command line in a UNIX (Solaris) environment. Now, I would like to have the class.method invoked from a UNIX shell script, and to return a success/failure indicator from the method, to the UNIX script. I modified the method to make it return char, rather than being defined as void. Within the class and method, I declared and initialized a char variable. I added a finally clause which contains a single return statement, returning the char return code variable. Within my UNIX script, I invoke the class/method as follows:
    return_code = java myClass
    This does not seem to be invoking the method however. Can someone please tell me what I am doing wrong? Or is more information needed in order for someone to help me out.
    Please let me know.
    Thanks.
    Brad

    stdunbar,
    Using your suggestion of System.exit(retVal); seems to allow the java method to be performed successfully (Thank You). But I am still having a problem with the value being recognized by the shell script.
    In my script, I'm doing the following:
    java MyClass inputparameter > return_code
    export return_code
    echo $return_code
    But return_code does not seem to contain a value. Just before the System.exit(retVal); I added System.out.println("return code = " + retVal ); and I can see that retVal. When I run the java method outside of the UNIX shell script, I can see that retVal does indeed contain a value. So I think my problem might actually be the code in the UNIX script.
    Thanks again.
    Brad

  • Launching NAL from login script AND startup?

    We are about to upgrade from Zen 3.2 to 7. Part of the process involves ensuring the clients launch NAL with a /NOUPDATE switch. (The NOUPDATE switch must be used to ensure that Zen 7 agents are not accidentally back-rev'ed during the upgrade process.) We currently have deployed the script-based method to launch the 3.2 NAL, but still have many desktops that either launch with a batch file or through the Startup group. (Too many to visit on a timely basis)
    I want to know if subsequent launches of NAL.exe WITHOUT the /NOUPDATE switch override the settings of the original one launched in the script. If launching NAL from Startup without switches doesn't override the one in the login script, I won't need to worry about hitting each of these machines before we begin deploying the Zen 7 Agent.
    Does anyone know if NAL refuses to launch again if it already is detected in memory?

    Off the top of my head, I dont know the answers to your question, but
    when I went through this process I just moved and renamed all the NAL
    related files from the PUBLIC dirs so the ZEN7 Agent could not become
    back dated.
    The existing 3.2 agents kept running from the local PC like always and
    after the PC was upgraded to ZFD7 there were no files in PUBLIC from
    which the PC could accidentally get old files.
    Ron Granberg wrote:
    > We are about to upgrade from Zen 3.2 to 7. Part of the process involves
    > ensuring the clients launch NAL with a /NOUPDATE switch. (The
    > NOUPDATE switch must be used to ensure that Zen 7 agents are not
    > accidentally back-rev'ed during the upgrade process.) We currently have
    > deployed the script-based method to launch the 3.2 NAL, but still have
    > many desktops that either launch with a batch file or through the
    > Startup group. (Too many to visit on a timely basis)
    >
    > I want to know if subsequent launches of NAL.exe WITHOUT the /NOUPDATE
    > switch override the settings of the original one launched in the
    > script. If launching NAL from Startup without switches doesn't override
    > the one in the login script, I won't need to worry about hitting each of
    > these machines before we begin deploying the Zen 7 Agent.
    >
    > Does anyone know if NAL refuses to launch again if it already is
    > detected in memory?
    Craig Wilson
    Novell Product Support Forum Sysop
    Master CNE, MCSE 2003, CCN

  • Error TypeError: null has no such function "getAppView" logical transform script version 4.1.0.866

    Hello,
    I am using Oracle Data Modeler version 4.1.0.866 and when I created a transform script in object logical, motor Oracle Nasnhorm give the error TypeError: null has no such function "getAppView".
    The code is:
    var guipkgs = JavaImporter(java.lang, java.awt, java.awt.event, java.awt.Window, Packages.javax.swing ,java.lang, Packages.javax.swing.border);
    with (guipkgs) {
        log_rep = new Packages.oracle.dbtools.crest.swingui.LogReport(model.getAppView());
        log_rep.setName("CONTADOR");
        var cont = 0;
        var text = "";
    entities = model.getDesign().getLogicalDesign().getEntitySet().toArray();
    for (var t = 0; t<entities.length;t++){
      entity = entities[t];
        Name = entity.getName();
        cont = cont + 1;
        text = text + " " + Name + "\n";  
    text = text + cont + "\n";
                log_rep.setLog(text);
        log_rep.showModalDialog(new java.awt.Dimension(1300, 550));
    Already you can not use log_rep = new Packages.oracle.dbtools.crest.swingui.LogReport(model.getAppView());? Is there any alternative?
    This error does not come with previous versions.
    Thanks.

    Hello,
    I modified the script add following at the beginning of script:
    model = model.getDesign().getLogicalDesign();   and carry on the error TypeError: null has no such function "getAppView".
    var guipkgs = JavaImporter(java.lang, java.awt, java.awt.event, java.awt.Window, Packages.javax.swing ,java.lang, Packages.javax.swing.border);
    with (guipkgs) {
        model = model.getDesign().getLogicalDesign();
        log_rep = new Packages.oracle.dbtools.crest.swingui.LogReport(model.getAppView());
        log_rep.setName("CONTADOR");
        var cont = 0;
        var text = "";
    entities = model.getDesign().getLogicalDesign().getEntitySet().toArray();
    for (var t = 0; t<entities.length;t++){
      entity = entities[t];
        Name = entity.getName();
        cont = cont + 1;
        text = text + " " + Name + "\n"; 
    text = text + cont + "\n";
                log_rep.setLog(text);
        log_rep.showModalDialog(new java.awt.Dimension(1300, 550))
    Any idea?
    Thanks

  • Subview formatting using transformation script

    Hi,
    We have 200+ subviews with tables consisting of roughly 100 columns a piece. After the models were created, we decided that we would only show the PK and FK columns and hide the rest. I was able to write a transformation script to only show those columns, but now my tables are showing up as if they have 100 columns, but only show 2. What do i need to do in the transformation script to "Best Fit" the size of each of the tables, and then set auto layout - layout 1 for the diagrams.
    Thanks
    diag = model.getAllDiagrams();
    for(it = diag.iterator(); it.hasNext(); ){
          cur = it.next();
          log(cur.getName());
          cur.setShowAllDetails( false);
          cur.setShowKeys( true);    
          cur.setShowLegend(false);
         //TODO
         //Some loop to "BEST FIT" all components in the diagram
         //TODO
         //run auto layout to arrange the diagram    
         //maybe rearrangeNewDiagram() or setLayout(LayoutManager mgr)?
          cur.setDirty( true);
    def log(String str){
    oracle.dbtools.crest.swingui.ApplicationView.log(str);

    Perfect, that's what I needed. Thanks
    diag = model.getAllDiagrams();
    for(it = diag.iterator(); it.hasNext(); ){
            cur = it.next();
            log(cur.getName());
            cur.getPlaceHolder().setVisible(true); 
            cur.setShowAllDetails( false);
            cur.setShowKeys( true);   
            cur.setShowLegend(false);
            cur.resizeTables(); 
            cur.resizeViews(); 
            cur.rearrangeDiagram2(1, true, 'Layout 1'); 
            cur.setDirty( true);
    def log(String str){
        oracle.dbtools.crest.swingui.ApplicationView.log(str);

  • Adobe CC scripting and JS reference

    Anybody knows, is there already documentation available for CC, particularly "Scripting Reference" and "JavaScript Tools Guide".

    No worries, to each their own. Not everyone has the same workflows. I enjoy SublimeText too as well as TextWrangler, but have found this setup better for my needs and decided to make it available to users.
    I mean that the one who's deep enough to use undocumented features already knows about .reftect and uses it a lot as well as pdf files with all the info, I personally have a recursive function to show all properties and subproperties and methods of an object.
    Very true, but not everyone is a pro yet.
    And coding inside of a program is just a bad taste
    Again, to each their own.
    Anyway, good luck with your script.
    Thanks.

  • WICDs postconnect script and Openntpd strange problem.

    I am using Openntpd to set system's clock. I am using the postconnetc script WICD offers (/etc/wicd/scripts/postconnect/). The script I am running is
    #!/bin/bash
    /etc/rc.d/openntpd start
    Everything was working just fine.
    The day before yesterday I booted my pc and saw that WICD couldn't connect with the wireless network. I pressed connect but it was disconnect immediately after acquiring an i.p. address. I restarted wicd daemon and it connected. Next time I rebooted the pc the same thing happened. After that I completely removed wicd (including /etc/wicd folder) and reinstalled it. Everything was ok until I placed my openntpd script to the postconnect folder. The same problem occurred. I thought it was a general script issue. I tried several "random" scripts and every time I had a reference to openntpd (e.g. /etc/rc.d/openntpd start or /usr/sbin/ntpd -s) wicd needs to be restarted in order to maintain the connection.
    WICD's log entries.
    2011/11/02 13:01:47 :: wpa_cli -i wlan0 terminate
    2011/11/02 13:01:47 :: Flushing the routing table...
    2011/11/02 13:01:47 :: /usr/sbin/ip route flush dev wlan0
    2011/11/02 13:01:47 :: iwconfig wlan0 mode managed
    2011/11/02 13:01:47 :: Putting interface up...
    2011/11/02 13:01:47 :: ifconfig wlan0 up
    2011/11/02 13:01:49 :: enctype is wpa
    2011/11/02 13:01:49 :: Generating psk...
    2011/11/02 13:01:49 :: ['/usr/sbin/wpa_passphrase', 'Thomson', 'xxxxxxx']
    2011/11/02 13:01:49 :: Attempting to authenticate...
    2011/11/02 13:01:49 :: ['wpa_supplicant', '-B', '-i', 'wlan0', '-c', '/var/lib/wicd/configurations/001d68ec7f27', '-D', 'wext']
    2011/11/02 13:01:49 :: ['iwconfig', 'wlan0', 'essid', 'Thomson']
    2011/11/02 13:01:49 :: iwconfig wlan0 channel 1
    2011/11/02 13:01:49 :: iwconfig wlan0 ap FF:FF:FF:FF:FF:FF
    2011/11/02 13:01:49 :: WPA_CLI RESULT IS DISCONNECTED
    2011/11/02 13:01:50 :: WPA_CLI RESULT IS COMPLETED
    2011/11/02 13:01:50 :: Running DHCP with hostname sapiokouti
    2011/11/02 13:01:50 :: /usr/sbin/dhcpcd wlan0 -h myhost
    2011/11/02 13:01:50 :: dhcpcd[3021]: version 5.2.12 starting
    2011/11/02 13:01:50 ::
    2011/11/02 13:01:50 :: dhcpcd[3021]: wlan0: broadcasting for a lease
    2011/11/02 13:01:50 ::
    2011/11/02 13:01:50 :: dhcpcd[3021]: wlan0: offered 192.168.1.64 from 192.168.1.254
    2011/11/02 13:01:50 ::
    2011/11/02 13:01:50 :: dhcpcd[3021]: wlan0: acknowledged 192.168.1.64 from 192.168.1.254
    2011/11/02 13:01:50 ::
    2011/11/02 13:01:50 :: dhcpcd[3021]: wlan0: checking for 192.168.1.64
    2011/11/02 13:01:50 ::
    2011/11/02 13:01:55 :: dhcpcd[3021]: wlan0: leased 192.168.1.64 for 86400 seconds
    2011/11/02 13:01:55 ::
    2011/11/02 13:01:55 :: dhcpcd[3021]: forked to background, child pid 3044
    2011/11/02 13:01:55 ::
    2011/11/02 13:01:55 ::
    2011/11/02 13:01:55 :: DHCP connection successful
    2011/11/02 13:01:55 :: not verifying
    2011/11/02 13:01:55 :: Executing /etc/wicd/scripts/postconnect/openntpd-start.sh with params wireless Thomson FF:FF:FF:FF:FF:FF
    2011/11/02 13:01:55 :: /etc/wicd/scripts/postconnect/openntpd-start.sh returned 0
    2011/11/02 13:01:55 :: Connecting thread exiting.
    2011/11/02 13:01:55 :: IP Address is: None
    2011/11/02 13:01:58 :: Sending connection attempt result Success
    2011/11/02 13:01:58 :: Forced disconnect on
    2011/11/02 13:01:58 :: /usr/sbin/dhcpcd -k wlan0
    2011/11/02 13:01:59 :: ifconfig wlan0 0.0.0.0
    2011/11/02 13:01:59 :: /usr/sbin/ip route flush dev wlan0
    2011/11/02 13:01:59 :: ifconfig wlan0 down
    2011/11/02 13:01:59 :: ifconfig wlan0 up
    2011/11/02 13:01:59 :: wpa_cli -i wlan0 terminate
    2011/11/02 13:01:59 :: /usr/sbin/dhcpcd -k eth0
    2011/11/02 13:01:59 :: ifconfig eth0 0.0.0.0
    2011/11/02 13:01:59 :: /usr/sbin/ip route flush dev eth0
    2011/11/02 13:01:59 :: ifconfig eth0 down
    2011/11/02 13:01:59 :: ifconfig eth0 up
    dmesg:
    [   77.376439] ADDRCONF(NETDEV_UP): eth0: link is not ready
    [   78.817054] wlan0: authenticate with FF:FF:FF:FF:FF:FF (try 1)
    [   78.818808] wlan0: authenticated
    [   78.819262] wlan0: associate with FF:FF:FF:FF:FF:FF (try 1)
    [   78.821410] wlan0: RX AssocResp from FF:FF:FF:FF:FF:FF (capab=0x431 status=0 aid=1)
    [   78.821416] wlan0: associated
    [   78.822031] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
    [   88.572455] wlan0: deauthenticating from FF:FF:FF:FF:FF:FF by local choice (reason=3)
    [   88.606804] cfg80211: Calling CRDA to update world regulatory domain
    I have tried two wireless cards (b43 based and rt73usb one). Removed and reinstalled everything associated with wicd,dhcpcd,openntpd. I used dhclient instead of dhcpcd. The problem remains.
    The same method I am using to my laptop and everything works fine.
    Any thoughts?

    Hi,
      First make sure your debugging client and development client is same or not. I not try to copy the same using below options:
    1) Just use SCC1 in destination client & give source client name in the space provided..........
    check the check box for include sub task ..& click on transpost immediately.......
    2) If the destination client is on the same server of original client, you can copy the script directly by trx SE71.
    In transaction SE71 goto
    Utilities -> Copy from client -> Give source form
    name, source client (000 default), Target form name
    Regards,
    Sudheer

Maybe you are looking for