The right way to program this part?

Hi I have some questions need some advice..
i have declared private variables for the database connection named con.
if in this function A. i use con and execute an sql statement. if somewhere in the middle of function A, i call function B. and function B requires database connection with a different sql statement. Should I pass the same con to function B or close the con in A and then open another con again in B?
it does not matter which sql statement im executing even if i use the same con rite?
function A()
   ps = con.preparedstatement(sqlA);
   B(con);
   con.close();
function B(connection con)
ps = con.preparedstatement(sqlB);
}can i do something like that?
i.e. i only open con once and close one in function A.
but use the same con in many functions...

Yea, that will work as long as an exception does not get thrown i your functionA while creating your prepared statement.

Similar Messages

  • The "right" way to handle multiple devices, accounts and the cloud?

    Perhaps a bit premature, but I figure it's never too early to start planning. 
    Here's our current setup - I currently have four iDevices in the faily (three iPhones and one iPod Touch.  All are syncing to the same Mac Mini, albeit with different logins (and different iTunes store ids).  All four of these are kept in sync via Home Sharing so we have access to the music/apps/etc acquired by the others.
    Enter the iCloud - how does this fit in?  What's the *right* way to do this? 
    I can see two options:
    1)     Continue to utilize four iTunes store ids, sync them via Home Sharing and add four iClouds
         Advantages
              totally independent devices, users, etc.
         Disadvantages
              must pay for four "iTunes Match" services to access non-iTunes music on each of the four devices
              will iTunes-purchased music automaticaly sync to iCloud if it is shared via Home Sharing (or only by the original purchaser)?
    2)     Use one iTunes Store id for all iDevices
         Advantages
              single point of acquisition and distribution for all devices
         Disadvantages
              need to find a way to merge IDs (is this even possible?)
    Are there other advantages/disadvantages to these options?  Are there other options?  What's the easiest to set up and support?  Any other thoughts?
    Thanks in advance for your input.

    Well it seems like the first thing you should do is consolidate your iTunes libraries so that you don't have 4 copies of everything, one for each user logged in to your Mac Mini. How you do that is consolidate all 4 iTunes folders to one folder located in the /Users/Shared/ folder and update each of your iTunes to point to that folder accordingly. That way you have one iTunes library, only one copy of your media, but accessible from multiple users.
    One caveat is that if somebody is logged on and has iTunes open, you can't fast switch to another user and open iTunes. Apple made it so that only one user and one instance of iTunes can open a iTunes library at a time.
    For your iTunes match situation, it does sound like you would be much better off sharing a single Apple ID with one iTunes Match. For consolidating, make sure you have everything everybody has shared via Home Sharing to the main account you'd like to move over to, and then simply go to each device Settings, Store, and the sign out of the original Apple ID and logon using the shared main Apple ID. I just looked at it and the automatic downloading is already live in iOS! You can specify if you want to do music, apps, and books separately in case you may want to automatically download music but not apps or books.

  • IWork - What's the right way to install a familiy license?

    I have bought a iWork familylicense. Now I try to install the software at the iMAc from my daughter. But I don't find the right way to do this. Who can explain the right process to install it? Thanks a lot for your ideas. RN

    Adobe list of properties and methods:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/controls/dataGridCla sses/DataGridColumn.html

  • What's the "right" way to create a News list in CQ5.4?

    Hey folks,
    I'm a brand new CQ developer and, though I've done a lot of reading, I'm still in the dark on how to do a few things.
    I'm currently working on a corporate website, and I need to build a News page. Each article contains a title and rich text (possibly including embedded images, videos, etc...), and the News page itself should display a paginated list of recent article summaries (with "read full article" links). I also need to show the two or three most recent article summaries on the site's front page, under a News heading.
    I thought there'd be a pre-built component to cover this case, since most corporate sites include a News page of some sort, but I haven't found one. Am I missing it? I looked into the Blog page template, but I think that adapting that may be overkill.
    I think that the right way to do this would be to build a News component with a Title and Rich Text field in the edit dialog. New articles could be created by dropping these components into the parsys of the News page. I could then create both a .html and a .summary view for the components and use a customized List component to display the summary list on the front page. Am I on the right track here, or am I overcomplicating it?
    Thanks!
    - Michael

    Hi,
    The "right" way of building any list-like component is to extend the existing List component.
    That is referenced in this documentation page:
    http://dev.day.com/docs/en/cq/current/wcm/default_components.html#List
    You can find it under /libs/foundation/components/lists
    To create, for example, a 'News List' component, just create a new component under your /apps/myproject/components, setting 'foundation/components/list' as sling:resourceSuperType ans add your custom script to display each news item. see also [1]
    That way you canprovide more renderers to be used around your site(s)
    [1] - http://dev.day.com/docs/en/cq/current/developing/components.html#Developing%20a%20new%20co mponent%20by%20adapting%20an%20existing%20%20%20%20%20component
    Hope this helps,

  • I have two videos and I would like to use parts of both videos with one audio track what is the best way to edit this?, I have two videos and I would like to use parts of both videos with one audio track what is the best way to edit this?

    In Final Cut Express I have two videos I'd like to merge parts of each video into a final film.  What is the best way to do this in FCE?

    Hi
    I use a slightly different way than Alchroma.
    Same
    • One video on track 1 and the other on Video.track 2
    • Resize to 25% and move one to the left and the other to the right
    Diff
    • I don't use the blade tool
    • I use the Pen tool and change the transparency - then I get fast or slow transitions in same stroke and easy to fine-tune later if needed. (But this can be done with the Roll-tool if Blade is used - so it might be as easy)
    Final
    • Resize to 100% and Center
    Video is done
    Audio - very close to this by changing the level so that best audio will dominate
    • Pen tool here too
    But that's me - the Alchroma way is as good as this or may be better for some
    Yours Bengt W

  • How to approach ABAP OO programming the right way...

    Hello experts,
    I am an old school procedural ABAP programmer and I recently I have been experementing with ABAP Objects since I've read a few columns the advantages of ABAP OO and also currently learning its syntax. Now, does ABAP Objects conform to the old way of say, doing reports like at selection-screen output, at selection-screen, on value-request for..., start-of-selection, end-of-selection, top-of-page, etc. I have been doing some practice programs and I am not sure if my approach is correct. Example, I created a class named cl1 and I have a method named upload. Now, the UPLOAD method contains the function 'GUI_UPLOAD'. Is this the right way of doing it? Also, How come I cannot create structures inside a class?
    Again, thanks guys and have a nice day!

    Hi,
    I have these three progs from one of the previous posts.
    Good approach on using constructors. I am not finding the original link.
    *& Report ZABAP_OBJ_01 *
    REPORT zabap_obj_01 .
    PARAMETERS : p_vbeln LIKE vbap-vbeln OBLIGATORY,
                 p_matnr LIKE mara-matnr.
    TYPES : BEGIN OF ty_vbap,
    vbeln TYPE vbap-vbeln,
    matnr TYPE vbap-matnr,
    arktx TYPE vbap-arktx,
    END OF ty_vbap.
    * CLASS sales_order DEFINITION
    CLASS sales_order DEFINITION.
      PUBLIC SECTION.
        DATA : v_matnr TYPE mara-matnr,
        v_vbeln TYPE vbap-vbeln.
        METHODS : constructor IMPORTING vbeln TYPE vbap-vbeln
        matnr TYPE mara-matnr OPTIONAL.
        DATA : it_vbap TYPE STANDARD TABLE OF ty_vbap.
        METHODS : get_vbap_details,
        disp_vbap_details.
    ENDCLASS. "sales_order DEFINITION
    * CLASS sales_order IMPLEMENTATION
    CLASS sales_order IMPLEMENTATION.
      METHOD get_vbap_details.
        CLEAR : it_vbap.
        REFRESH : it_vbap.
        SELECT vbeln
        matnr
        arktx
        FROM vbap
        INTO TABLE it_vbap
        WHERE vbeln = p_vbeln.
      ENDMETHOD. "get_vbap_details
      METHOD constructor.
        CLEAR : v_vbeln,
        v_matnr.
        v_vbeln = vbeln.
        v_matnr = matnr.
      ENDMETHOD. "constructor
      METHOD disp_vbap_details.
        DATA : wx_vbap LIKE LINE OF it_vbap.
        LOOP AT it_vbap INTO wx_vbap.
          WRITE :/ wx_vbap-vbeln,
          wx_vbap-matnr,
          wx_vbap-arktx.
        ENDLOOP.
        CLEAR : it_vbap.
      ENDMETHOD. "disp_vbap_details
    ENDCLASS. "sales_order IMPLEMENTATION
    DATA : obj TYPE REF TO sales_order.
    START-OF-SELECTION.
      IF NOT p_matnr IS INITIAL.
        CREATE OBJECT obj EXPORTING vbeln = p_vbeln
        matnr = p_matnr.
      ELSE.
        CREATE OBJECT obj EXPORTING vbeln = p_vbeln.
      ENDIF.
      CALL METHOD obj->get_vbap_details.
      CALL METHOD obj->disp_vbap_details.
    *& report ziga_abapobjects_asgn01 *
      REPORT ziga_abapobjects_asgn01 .
      PARAMETER : p_matnr LIKE mara-matnr.
    * CLASS lcl_material DEFINITION
    CLASS lcl_material DEFINITION.
      PUBLIC SECTION.
        DATA: v_matnr TYPE mara-matnr.
        METHODS : constructor IMPORTING matnr TYPE mara-matnr,
        get_material_description.
      PRIVATE SECTION.
        DATA : v_maktx TYPE makt-maktx.
    ENDCLASS. "lcl_material DEFINITION
    * CLASS lcl_material IMPLEMENTATION
    CLASS lcl_material IMPLEMENTATION.
      METHOD get_material_description.
        CLEAR v_maktx.
        SELECT SINGLE maktx INTO v_maktx
        FROM makt
        WHERE matnr = v_matnr AND
        spras = 'E'.
      ENDMETHOD. "get_material_description
      METHOD constructor.
        CLEAR v_matnr.
        v_matnr = matnr.
      ENDMETHOD. "constructor
    ENDCLASS. "lcl_material IMPLEMENTATION
    DATA : obj TYPE REF TO lcl_material.
    START-OF-SELECTION.
      CREATE OBJECT obj EXPORTING matnr = p_matnr.
      CALL METHOD obj->get_material_description.
      prg3)
      report ziga_abapobjects_asgn01 .
      PARAMETER : p_matnr LIKE mara-matnr.
    * CLASS lcl_material DEFINITION
    CLASS lcl_material DEFINITION.
      PUBLIC SECTION.
        METHODS : constructor IMPORTING matnr TYPE mara-matnr,
        write_material_desc.
        CLASS-METHODS : class_constructor.
      PRIVATE SECTION.
        CLASS-DATA: v_matnr TYPE mara-matnr.
        DATA : v_maktx TYPE makt-maktx.
        METHODS : get_material_description.
    ENDCLASS. "lcl_material DEFINITION
    * CLASS lcl_material IMPLEMENTATION
    CLASS lcl_material IMPLEMENTATION.
      METHOD get_material_description.
        CLEAR v_maktx.
        SELECT SINGLE maktx INTO v_maktx
        FROM makt
        WHERE matnr = v_matnr AND
        spras = 'E'.
      ENDMETHOD. "get_material_description
      METHOD constructor.
        WRITE :/ 'Inside Instance Constructor'.
        CLEAR v_matnr.
        v_matnr = matnr.
        CALL METHOD get_material_description.
      ENDMETHOD. "constructor
      METHOD write_material_desc.
        WRITE :/ 'Material Description :', v_maktx.
      ENDMETHOD.                    "write_material_desc
      METHOD class_constructor.
        WRITE :/ 'Inside Static Constructor'.
      ENDMETHOD.                    "class_constructor
    ENDCLASS. "lcl_material IMPLEMENTATION
    DATA : obj TYPE REF TO lcl_material,
    obj1 TYPE REF TO lcl_material.
    START-OF-SELECTION.
      CREATE OBJECT obj EXPORTING matnr = p_matnr.
      CALL METHOD obj->write_material_desc.
      CREATE OBJECT obj1 EXPORTING matnr = '000000000000000110'.
      CALL METHOD obj1->write_material_desc.
      CALL METHOD obj->write_material_desc.
      prg4)
      report ziga_abapobjects_asgn01 .
      PARAMETER : p_matnr LIKE mara-matnr.
    * CLASS lcl_material DEFINITION
    CLASS lcl_material DEFINITION.
      PUBLIC SECTION.
        METHODS : constructor IMPORTING matnr TYPE mara-matnr,
        write_material_desc,
        get_material_description.
        CLASS-METHODS : class_constructor.
      PRIVATE SECTION.
        CLASS-DATA: v_matnr TYPE mara-matnr.
        DATA : v_maktx TYPE makt-maktx.
    ENDCLASS. "lcl_material DEFINITION
    * CLASS lcl_material IMPLEMENTATION
    CLASS lcl_material IMPLEMENTATION.
      METHOD get_material_description.
        CLEAR v_maktx.
        SELECT SINGLE maktx INTO v_maktx
        FROM makt
        WHERE matnr = v_matnr AND
        spras = 'E'.
      ENDMETHOD. "get_material_description
      METHOD constructor.
        WRITE :/ 'Inside Instance Constructor'.
        CLEAR v_matnr.
        v_matnr = matnr.
      ENDMETHOD. "constructor
      METHOD write_material_desc.
        WRITE :/ 'Material Description :', v_maktx.
      ENDMETHOD.                    "write_material_desc
      METHOD class_constructor.
        WRITE :/ 'Inside Static Constructor'.
      ENDMETHOD.                    "class_constructor
    ENDCLASS. "lcl_material IMPLEMENTATION
    DATA : obj TYPE REF TO lcl_material,
    obj1 TYPE REF TO lcl_material.
    START-OF-SELECTION.
      CREATE OBJECT obj EXPORTING matnr = p_matnr.
      CALL METHOD obj->get_material_description.
      CALL METHOD obj->write_material_desc.
      CREATE OBJECT obj1 EXPORTING matnr = '000000000000000110'.
      CALL METHOD obj1->get_material_description.
      CALL METHOD obj1->write_material_desc.
      CALL METHOD obj->get_material_description.
      CALL METHOD obj->write_material_desc.
      REPORT ziga_abapobjects_asgn01 .
      PARAMETER : p_matnr LIKE mara-matnr.
    * CLASS lcl_material DEFINITION
    CLASS lcl_material DEFINITION.
      PUBLIC SECTION.
        CLASS-METHODS : write_material_desc,
        get_material_description,
        class_constructor.
      PRIVATE SECTION.
        CLASS-DATA: v_matnr TYPE mara-matnr.
        CLASS-DATA: v_maktx TYPE makt-maktx.
    ENDCLASS. "lcl_material DEFINITION
    * CLASS lcl_material IMPLEMENTATION
    CLASS lcl_material IMPLEMENTATION.
      METHOD get_material_description.
        CLEAR v_maktx.
        SELECT SINGLE maktx INTO v_maktx
        FROM makt
        WHERE matnr = v_matnr AND
        spras = 'E'.
      ENDMETHOD. "get_material_description
      METHOD write_material_desc.
        WRITE :/ 'Material Description :', v_maktx.
      ENDMETHOD.                    "write_material_desc
      METHOD class_constructor.
        WRITE :/ 'Inside Static Constructor'.
        v_matnr = '000000000000000110'.
      ENDMETHOD.                    "class_constructor
    ENDCLASS. "lcl_material IMPLEMENTATION
    START-OF-SELECTION.
      CALL METHOD lcl_material=>get_material_description.
      CALL METHOD lcl_material=>write_material_desc.
    Arun Sambargi.

  • Hi! I´m having problems with showing video files in Qlab on my Macbook Air. A sound/video technician told me to "blow out" my Mac. Was told to use  cmd+ r  when restarting. Is this the right way?

    Hi! I´m having problems with showing video files in Qlab on my Macbook Air. It started suddenly. Consulted a sound/video technician who told me to "blow out" my Mac. Was told to use cmd+r  when restarting. Is this the right way to clean up my Mac? And is it likely that some kind of bug is causing problems for Qlab to show video files? I´ve already tried with a bunch of different video files and sometimes Qlab plays them and sometimes not. I need the Qlab playlist for a theatre show and only have a week until showtime so starting to really worry. Is there anyone out there who can help?

    Your Mac runs maintenance in the background for you.
    Command + R gives you access to restore, repair, or reformat the drive using OS X Recovery
    No idea why that was suggested.
    You may have a third party video player installed that's causing an incompatibility issue.
    Check these folders:
    /Library/Internet Plug-Ins/
    /Library/Input Methods/
    /Library/InputManagers/
    /Library/ScriptingAdditions
    ~/Library/Internet Plug-Ins/
    ~/Library/Input Methods/
    ~/Library/InputManagers/
    ~/Library/ScriptingAdditions
    The first four locations listed are in the root-level Library on your hard disk, not the user-level Library in your Home folder.The tilde (~) represents your Home folder.
    To access the Home folder in OS X Lion or Mountain Lion, open the Finder, hold the Option key, and chooseGo > Library.

  • Thread safety! Is this the right way?

    Hello,
    Lately I'm reading lot about thread-safety in Swing...
    so just wondering that is this the right way to code ...
    For ex following code executes(which makes DB connection and load some list) when user press the "connect (JButton)" ....
    private void prepareAndShowConnBox()
            //System.out.println("prep - EDT: " + javax.swing.SwingUtilities.isEventDispatchThread());
            pwd.setEchoChar('*');
            javax.swing.Box box1 = new javax.swing.Box(javax.swing.BoxLayout.Y_AXIS);
            javax.swing.Box box2 = new javax.swing.Box(javax.swing.BoxLayout.Y_AXIS);
            box1.add(new javax.swing.JLabel("DB URL :     "));
            box2.add(db_url);
            box1.add(new javax.swing.JLabel("User Name :  "));
            box2.add(uid);
            box1.add(new javax.swing.JLabel("Password :   "));
            box2.add(pwd);
            final javax.swing.Box box = new javax.swing.Box(javax.swing.BoxLayout.X_AXIS);
            box.add(box1);
            box.add(box2);
            int retval = javax.swing.JOptionPane.showOptionDialog(me, box,
                    "Database Connection:",
                    javax.swing.JOptionPane.OK_CANCEL_OPTION,
                    javax.swing.JOptionPane.QUESTION_MESSAGE,
                    null, null, null);
            if(retval == javax.swing.JOptionPane.OK_OPTION)
                status.setText("Connecting...");
                Thread t = new Thread(makeConn, "Conn Thread");
                t.setPriority(Thread.NORM_PRIORITY);
                t.start();
        }And the makeConn is....
    private Runnable makeConn = new Runnable()
            boolean success;
            Exception x;
            public void run()
                //System.out.println("Con - EDT: " + javax.swing.SwingUtilities.isEventDispatchThread());
                success = true;
                x = null;
                try
                    //load sun JDBC-ODBC bridgr driver...
                    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                    //make connection to DB...
                    con = java.sql.DriverManager.getConnection("jdbc:odbc:" + db_url.getText(),
                            uid.getText(), new String(pwd.getPassword()));
                catch(Exception e)
                    success = false;
                    x = e;
                    System.err.println(x);
                java.awt.EventQueue.invokeLater(GUItask);
            Runnable GUItask = new Runnable()
                public void run()
                    //System.out.println("Con gui - EDT: " + javax.swing.SwingUtilities.isEventDispatchThread());
                    if(success)
                        bConn.setText("Disconnect");
                        status.setText("");
                        status.setIcon(imgLink);
                        imgLink.setImageObserver(status);
                        //load the pic list...
                        Thread t = new Thread(execQuery, "List1 Thread");
                        t.setPriority(Thread.NORM_PRIORITY);
                        t.start();
                    else
                        status.setText("Connection Failed.");
                        showErr(x.toString());
        };Here uid,db_url (JTextField) , pwd (JPasswordField) , status (JLabel) are class fields.
    Thanks for any comments... :)

    Threading looks fine too me... the connection is created on a background thread, but (critically) all GUI updates are performed on the EDT, even if there's an exception. Well done.
    My only comment is... why is your GUI creating a database connection at all? Ideally the controler would get the DAO (which would connect itself) and inject it (the connected DAO) into the view... but I'm a server-side boy, so feel free to ignore me.
    Cheers. Keith.

  • Being Nice to your Layout manager - Is this the right way?

    Ive written a custom component that basically provides multi-line text wrapping and a few other nice things.
    I had a bit of trouble when I came to implementing
    getPreferredSize()  getMinimumSize() This is because ideally, I'd like the component to use as much space horizontally as possible, whilst using only as much vertical space as necessary.
    To do this, I used the parents width as the minimum horizontal size. This then allowed me to work out the height.
    Question is - is that the right way to do it? Other than that, I just cant think of a way to get the width I need when the component is first added to its container.
    Cheers for any input,
    Dave

    If you want it to use as much horizontal space as possible, that means you want its width to be equal to its container's width (perhaps minus a bit for borders or something). So in that case you would have to set its minimum width to that number, and that's exactly what you did. There could be other ways to do it, but yours seems perfectly fine to me.

  • Is this the right way - 9i

    I have schema 'A' with few large and many small non-partition tables. I created another schema 'B' identical to 'A' and the only difference was that I partitioned the large tables resulting a combination of partitioned and non partitioned tables in schema 'B'.
    I exported schema 'A' and imported it into 'B'. My question is, IS this the right way or I should done something else.
    Thx

    It would depend on the your goals, but I'd suspect that you would want to create most of the same indexes and views in the new schema. If you're partitioning the tables, though, you would have to give serious thought to how to define the indexes-- should they be global or local, should they be equipartitioned with the underlying tables, etc.-- which exporting and importing wouldn't resolve.
    If the end goal of this exercise is just to produce the same schema with partitioned tables, transition any code & applications to the partitioned schema, and then drop the unpartitioned schema, creating the new schema just adds extra work. Create partitioned tables in the same schema (with slightly different names), load the data, create appropriate indexes, and then ALTER TABLE ... RENAME everything so that the partitioned tables now have the old non-partitioned table names.
    Justin

  • Is bgRFC Out-Inbound the right way for this... ?

    Hi guys,
    my scenario is:
    n systems (SAP) send data to ONE server (AS ABAP). The data will delivered via one and the same RFC FM to be stored in exactly ONE file per day.
    I have to ensure quality of service and delivery.
    So my first question is if bgRFC is the right way of doing so...
    MY idea was: I have exactly ONE inbound queue name on server/central system to ensure, that there will be only one unit to write data into file at the same time...
    Second: when the sender system calls one function module several times, how do I have to configure the queue names...
    I'm facing problems regarding this (please see below)
    the error occurs whenever the FM is called more than once per unit and I have only ONE inbound queue name declared...
    (please see coding below)
    Any ideas on that?
    Best -
    Christoph
    coding example....
      DATA:
            my_destination TYPE REF TO if_bgrfc_destination_outbound,
            my_unit        TYPE REF TO if_qrfc_unit_outinbound,
            dest_name      TYPE bgrfc_dest_name_outbound,
            queue_name     TYPE qrfc_queue_name,
          dest_name = 'SID'.
          my_destination = cl_bgrfc_destination_outbound=>create( dest_name ).
    loop... (to split XLarge amounts of data)
    CALL FUNCTION 'MSGRECEIVER'
        IN BACKGROUND UNIT my_unit
    exporting lt_data
    endloop...
    my_unit->add_queue_name_outbound( QUEUE_NAME = '<prefix>_OUT'
    my_unit->add_queue_name_inbound( QUEUE_NAME = '<prefix>_IN'
                                            IGNORE_DUPLICATES = abap_true ).
    Problem:
    the error occurs, when more than one function module is called by the sender system... and having only ONE inbound queue name declared...
    Edited by: Christoph Aschauer on Jul 28, 2011 1:08 PM

    Start here to learn After Effects:
    http://adobe.ly/AE_basics
    This series of videos ends with exporting to H.264 (.mp4):
    https://helpx.adobe.com/creative-cloud/learn/start/aftereffects.html

  • How to create a custom panel in the right way (without having an empty panel in the file info) ?

    Hi Everyone
    My name is Daté.
    I'm working in the fashion industry as a designer and Design consultant to help fashion brands improving the design workflow by using Adobe softwares and especially Illustrator.
    I'm not a developper, but i'm very interested about the possibility to introduce xmp technology to provide more DAM workflows in the fashion industry.
    Fashion designers produce a lot of graphical objects in illustrator or Photoshop. Unfortunately they are faced to a big challenge which is about how to manage, search, classify and get this files faster. Of course PDM system or PLM system are used in the Fashion industry to manage data, but for many companies, implemanting this kind of database is very complex.
    When i look at what you can do with xmp, it seems to be an interesting way of managing design files, then i started to follow Adobe instruction to try to build a custom panel.
    The main idea is to (Theory) :
    create custom panels used by fashion designers to classify their design files.
    Use Adobe Bridge to search files, create smart collection to make basic reports in pdf and slideshows
    Find someone to make a script able to export metadata in xml files
    Use indesign and the xml file to generate automatically catalogues or technical sheets based on xmp values
    I have created a custom panel by using the generic panel provided by Adobe and i have modified the fields to feet with the terms used in the fashion industry and it works well.
    But unfortunately, when i try to create my own custom panel from scratch with Flashbuilder (4.6) and the Adobe CSExtensionBuilder_2 (Trial version), it doesn't work!
    Here is the process :
    I have installed flashbuilder 4.6
    I have download the XMP Fileinfo SDK 5.1 and placed the com.adobe.xmp.sdk.fileinfo_fb4_1.1.0.jar in C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\eclipse\plugins
    In Flashbuilder, i have created a new project and select xmp Custom panel
    The new project is created in flashbuilder with a field with A BASIC Description Field
    To generate the panel, right click the project folder and select xmp / Publish Custom Panel
    The panel is automatically generated in the following folder : C:\Users\AppData\Roaming\Adobe\XMP\custom file info panels\3.0\panels
      Go to illustrator, Open the file Info
    The panel appears empty
    The others panel are also empty
    The panel is created and automatically placed in the right folder, but when you open it in Illustrator by selecting the File Info option in the File Menu, this custom panel appears empty!!! (only the title of the tab is displayed). This panel also prevent the other panels to be displayed.
    When you delete this custom panels from the folder C:\Users\AppData\Roaming\Adobe\XMP\custom file info panels\3.0\panels and go back to the File Info, the other panels display their content properly.
    I also try to use the plugin XMP Namespace designer to create my own namespace. this plugin is also able to generate a custom panel, but this one also appears empty in AI or Photoshop.
    I try to follow the process described in Adobe xmp documentation many times, but it didn't works.
    It seems that many peaople have this issue, but i dodn't find a solution in the forum.
    I try to create a trust file (cfg), but it didn't work.
    It would be so kind if you can help me to understand why i can't create a custom panel normally and how to do it in the right way.
    Thanks a lot for your help,
    Best regards,
    Daté 

    Hi Sunil,
    After many trial, i realize the problem was not coming from the trust file, but from the way i have created the custom panel.
    There is 2 different ways, the first described below is not working whereas the second is fine :
    METHOD 1 :
    I have downloaded the XMP-Fileinfo-SDK-CS6
    In the XMP-Fileinfo-SDK-CS6 folder, i copied the com.adobe.xmp.sdk.fileinfo_fb4x_1.2.0.jar plugin from the Tools folder and i pasted it in the plugind folder of Flashbuilder 4.6
    The plugin install an XMP project
    In Flashbuilder 4.6 i have created a new project (File / New /Project /XMP/XMP Custom Panel)
    A new xmp project is created in flashbuilder.
    You can publish this project by right clicking the root folder and selecting XMP / Publish Custom Panel
    The custom file info panel is automatically published in the right location which is on Mac : /Users/UserName/Library/Application Support/Adobe/XMP/Custom File Info Panels/3.0 or /Users/UserName/Library/Application Support/Adobe/XMP/Custom File Info Panels/4.0
    Despite the publication of the custom file info panel and the creation of a trust file in the following location : "/Library/Application Support/Macromedia/FlashPlayerTrust", the panel is blank in Illustrator.
    I try this way several times, with no good results.
    METHOD 2 :
    I have installed Adobe CSExtensionBuilder 2.1 in Flash Builder
    In FlashBuilder i have created a new project (File / New /Project /Adobe Creative Suite Extension Builder/XMP Fileinfo Panel Project)
    As the system display a warning about the version of the sdk to use to create correctly a custom file info, I changed the sdk to sdk3.5A
    The warning message is : "XMP FileInfo Panel Projects must be built with Flex 3.3, 3.4 or 3.5 SDK. Building with Flex 4.6.0 SDK may result in runtime errors"
    When i publish this File info panel project (right click the root folder and select Run as / Adobe illustrator), the panel is published correctly.
    The last step is to create the trust file to display the fields in the panel and everything is working fine in Illustrator.
    The second method seems to be the right way.
    For sure something is missing in the first method, and i don't understand the difference between the XMP Custom Panel Project and the XMP Fileinfo Panel Project. Maybe you can explain it to me.
    So what is the best solution ? the right sdk to use acording to the creative suite (the system asks to use 3.3 or 3.5 sdk for custom panels, so why ?)
    I'm agree with Pedro, a step by step tutorial about this will help a lot of peaople, because it's not so easy to understand!!!
    Sunil, as you belong to the staff team, can you tell me if there is  :
    A plugin or a software capable to extract the XMP from llustrator files to generate XML workflows in Indesign to create catalogues
    A plugin to allow indesign to get custom XMP in live caption
    A plugin to allow Bridge to get custom XMP in the Outputmode to make pdf or web galeries from a smart collection
    How can you print the XMP data with the thumbnail of the file ?
    Thanks a lot for your reply.
    Best Regards
    Daté

  • What's the best way for reading this binary file?

    I've written a program that acquires data from a DAQmx card and writes it on a binary file (attached file and picture). The data that I'm acquiring comes from 8 channels, at 2.5MS/s for, at least, 5 seconds. What's the best way of reading this binary file, knowing that:
    -I'll need it also on graphics (only after acquiring)
    -I also need to see these values and use them later in Matlab.
    I've tried the "Array to Spreadsheet String", but LabView goes out of memory (even if I don't use all of the 8 channels, but only 1).
    LabView 8.6
    Solved!
    Go to Solution.
    Attachments:
    AcquireWrite02.vi ‏15 KB
    myvi.jpg ‏55 KB

    But my real problem, at least now, is how can I divide the information to get not only one graphic but eight?
    I can read the file, but I get this (with only two channels):
    So what I tried was, using a for loop, saving 250 elements in different arrays and then writing it to the .txt file. But it doesn't come right... I used 250 because that's what I got from the graphic: at each 250 points it plots the other channel.
    Am I missing something here? How should I treat the information coming from the binary file, if not the way I'm doing?
    (attached are the .vi files I'm using to save in the .txt format)
    (EDITED. I just saw that I was dividing my graph's data in 4 just before plotting it... so It isn't 250 but 1000 elements for each channel... Still, the problem has not been solved)
    Message Edited by Danigno on 11-17-2008 08:47 AM
    Attachments:
    mygraph.jpg ‏280 KB
    Read Binary File and Save as txt - 2 channels - with SetFilePosition.vi ‏14 KB
    Read Binary File and Save as txt - with SetFilePosition_b_save2files_with_array.vi ‏14 KB

  • Fonts - What's the easiest way to do this?

    Hi All,
    I'm in a situation at the moment where I would like to put the JDK 1.4 fonts into a JDK 1.3 program..
    What's the easiest way to do this?

    Hi,
    perhaps you can get no answer, because it is not clearly said, what you want to do?- From which JDK 1.4 Fonts are you talking of?- What is meant by this?- The Font class or what else?- Do you want to replace one or more .class files of JDK 1.3 by one of JDK 1.4?
    In general you are not allowed to replace parts of the packages or subpackages of "java", "javax" or "sun" or add or remove classes to resp. from them - you accepted this terms when you had downloaded the JDK - sure, it is possible, but you are not allowed to do so - it is illegal.
    greetings Marsian

  • What's the right way to delete an entire backup ?

    I've had two Macs doing wireless Time Machine backups to one Time Capsule.
    Question: I got rid of one Mac, and want to delete its backup entirely (but leave the other computer's backups untouched). What's the right way to do it?

    Bob Timmons wrote:
    Jespes, welcome to the discussions!
    Open your hard drive. Your Time Capsule icon should appear under the SHARED heading.
    Click on the Time Capsule and a folder will appear to the right.
    Double click the folder and you should see a xxxxxx.sparsebundle file for each computer that has been backing up.
    Click on the xxxxx.sparsebundle file that you want to delete to highlight it and then click the gear shaped icon just above. Select Move to Trash. (Do not drag the file to the Trash as this will not work).
    Be careful, as the file will be deleted instantly and you will not be able to retrieve it.
    many thanks!

Maybe you are looking for