Is there a way to automatically build measure object with SUM(col_name) from INT DB column?

Hello,
I have a workflow that needs to be repeated every month and I'd like to optimize it.
1. DB table in SQL Server 2008 looks something like this:
TABLE [CONTRACTS_GCO_LVL2](
  [CONTRACTS_BP_ID] [varchar](50),
  [Flag 1] [int] ,
  [Flag 2] [int] ,
  [Flag 3] [int] ,
2. I bring this table into my BOE IDT 4.0.3 and drag it into object folder. All INT columns become dimensions. This is not what I want. These are 1/0 flags for me and I need them to be measures with SUM aggregation.
3. I select all these INT sourced dimensios and right click on them with "Turn into measure with aggregation function - SUM"
The problem is that step #3 is unbelievably slow. I need to spend hours doing this as I have thousands of these flags. I end up selecting all dimensions from one screen and converting them at the same time. This takes 4-5 minutes. IDT runs on a Win 2008 R2 Enterprise server with 32 GB RAM and 4 CPUs.
In Universe Designer there used to be external strategies that allowed some customization of how the objects get automatically created from DB tables. I know there are no strategies in r4 (External strategy for tables)  but is there anything else to make this process faster?
Thank you all!
Natasa

Hrm, I'm suspecting that perhaps it has to do something with setting CHAR fields. Some of the fields in this table are CHAR but I don't see a call in my PreparedStatement that can set a char, only a String, so that's what I've been using, but it may be that that's not the right thing to do. I'm running Java 1.5.10, and looking through the API there doesn't seem to be anything specifically for char.

Similar Messages

  • Is there a way to populate an InDesign document with Pantone colors from a .csv document?

    I have a CSV document that inputs copy information into various labels we have set up in InDesign, but we also have Pantone colors that we put into this document.  Currently, it just imports the color number and we manually change the color ourselves, but is there a way to automatically populate the colors into the document?

    Hi,
    Here is some code you may want to play with
    Array.prototype.contains =  function ( object )
      var i = 0, n = this.length;
      for ( i = 0 ; i < n ; i++ )
      if ( this[i] === object )
      return true;
      return false;
    function createLabels() {
      var filterFunction = function(file)
      return /\.csv$/.test ( file.name );
      var f = File.openDialog("Please select CSV Files…", filterFunction);
      var sep = "\t";
      var n = 0;
      var headers = [];
      var rows = [], row = [];
      var doc, m, pw,pb,ph, np, tf, tfo;
      var p;
      if ( !f) { return; }
      f.open("r");
      headers = f.readln().split(sep);
      while ( !f.eof ){
      row = f.readln().split(sep);
      row.length>1 && rows [ rows.length ]  = {contents:row[0], colorName:row[1]};
      n = rows.length;
      if ( !n ) {
      alert("No data");
      return;
      doc = app.documents.add();
      doc.documentPreferences.facingPages = false;
      m = doc.pages[0].marginPreferences;
      pb = doc.pages[0].bounds;
      while (n--) {
      row = rows[n];
      np = doc.pages.add();
      doc.importAdobeSwatchbookSpotColor ( row.colorName );
      tfo = {
      geometricBounds:[pb[0]+m.top, pb[1]+m.right, pb[2]-m.bottom, pb[3]-m.left],
      contents:row.contents,
      fillColor:doc.colors.itemByName ( row.colorName ),
      tf = np.textFrames.add(tfo);
      doc.pages[0].remove();
    createLabels();
    Sorry for not using the highlighting code option but it wasn't displaying the whole stuff :\
    Loic
    http://www.ozalto.com

  • How to automatically build a table with 2 alternated font colors for the lines ?

    Hi,
    I'm looking for a way to automatically build a table with alternate background color and alternate font color for the lines.
    I have this particular project (a list of companies of an industrial area) and it is updated twice a year :
    I managed to set an automated alternate background color of the lines so this works well (white/blue/white/blue...)
    But the font color does not automatically alternates... and I do not know how to set this up...
    All the companies are ordered alphabetically so when I have to insert or delete one, the whole text of the table under the modified line is messed up. Then I have unreadable white text on white background and blue text on blue background...
    Does anyone have an idea on how to automatically alternate the font color ?
    Thank you.
    Best regards,
    G.

    Hi,
    I know this [JS] code is awful but it works. If  someone wants to correct it …! 
    At the beginning, you have an Excel file. You play a little with it [doing concatenations] to get, after importing it in ID:
    Then, just run the .jsx:
    Done! 

  • Is there a way to automatically refresh a webpage in Firefox 3.6.10?

    hi there,
    I am hoping the Firefox team can help with a small problem, is there a way of automatically refreshing webpages within Firefox 3.6.10 and 4.06 beta? We are building an interesting website at the moment and the client is using Firefox 3.6.10to view the site. Each time they go onto the new website to see the changes we have done, they are shown old pages. We need to rectify this problem as quickly as possible, for our client without requesting that they refresh the page each time they go onto the site.

    You can do that by changing a hidden preference.
    # Type '''about:config''' into the location bar and press enter
    # Accept the warning message that appears, you will be taken to a list of preferences
    # In the filter box type '''browser.cache''' to bring up a small number of preferences
    # Double-click on the preference '''browser.cache.check_doc_frequency''' and change its value to '''1'''
    For more details on that preference see http://kb.mozillazine.org/Browser.cache.check_doc_frequency

  • Is there a way to automatically add another of the same page while a form is being filled?

    Is there a way to automatically add another of the same page while a form is being filled?
    I have a two-page form of which the second page is essentially a spreadsheet analog.  Often, there is need for for more lines than are available on the page.  Is there a way in which to add another or even multiple copies of the second page? 
    Thanks ahead...
    TG

    You can do that with a dynamic XFA form created in LiveCycle Designer, which comes with Acrobat Pro for Windows. For more information, you can ask over at the LiveCycle Designer forum.

  • Is there a way to automatically insert the filename in the footer of a spreadsheet using iWork's numbers 3.2?

    Is there a way to automatically insert the filename of a spreadsheet into the footer when using iworks numbers 3.2?  iworks 09 had this feature and I can't find this feature in the new version of numbers.

    Hi rhyolite,
    In Numbers 3.x, The Print View and Layout View have gone (for now at least). Page Headers and Footers can only be reached under Menu > File > Print... to open Print Preview. Hover the cursor to reveal the Page Header and Footer fields.
    The only inserts that I can get to work in Print Preview are Page Number, Page Count and Date & Time. Filename is no longer in the Insert menu.
    Regards,
    Ian.

  • Is there a way to create 'Book Color's with CS Extension Builder?

    Dear all
    Is there a way to add a spot color with color mode "Book Color" as those from the swatch libary, the PANTONE color book for example.
    I see those Book Colors have fixed Lab Values and cannot be changed. So they would be fixed for the user.
    Is there a way to do this?
    thanks
    regards

    Zwired1 wrote:
    One thought is to do a pre- or post-build action VI that exports all of the revs (like you see in VI props>>revision) for the discrete VI's in the project .  You can set it to increment the rev every time the VI is saved. If the revs are the same you know nothing has changed but if they're different you won't know if the thing that's changed is significant. 
    Another thought is maybe TortoiseSVN or similar could keep track of what's-changed-and-why for you but I've never use it.  
    While that would serve the purpose of showing that the source hasn't changed (although I'm not so sure that relying onrev numbers is the best way to go about it - CRC check per file is probably better), it still doesn't gurantee that the build works.
    I just think that the whole process probably burns up several thousand dollars worth of unnecessary testing, V&V and paperwork.
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • Is there a way to automate the CFX tags installation?

    Hello,
    I'm currently in the process of re-installing a web farm of ColdFusion 8 servers (W2K8, IIS 7.5).
    I have to install a number of CFX tags (C++) on each server to get the code running.
    Is there a way to automate the installation of the CFX tags (regedit imports, VBS, PowerShell...)?
    I found some link indicating that keys should be imported in the registry at: HKLM\Software\Allaire, but Allaire does not even exist in this branch (I believe that the instructions were true of older versions of CF).
    I installed one of the tags manually and noticed that the file neo-runtime.xml was updated with:
    <?xml version="1.0"?>
    <wddxPacket version="1.0">
      <header/>
      <data>
        <array length="18">
          <boolean value="true"/>
          <struct type="coldfusion.server.ConfigMap">
            <var name="session_variables">
              <boolean value="false"/>
            </var>
            <var name="application_variables">
              <boolean value="false"/>
            </var>
            <var name="server_variables">
              <boolean value="false"/>
            </var>
          </struct>
          <struct type="coldfusion.server.ConfigMap">
            <var name="cfx_http5">
              <struct type="coldfusion.server.ConfigMap">
                <var name="NAME">
                  <string>cfx_http5</string>
                </var>
                <var name="CACHE">
                  <string>true</string>
                </var>
                <var name="PROCEDURE">
                  <string>ProcessTagRequest</string>
                </var>
                <var name="DESCRIPTION">
                  <string/>
                </var>
                <var name="TYPE">
                  <string>cpp</string>
                </var>
                <var name="LIBRARY">
                  <string>D:\ColdFusion8\cfx\cfx_http5\cfxhttp5.dll</string>
                </var>
              </struct>
            </var>
          </struct>
    Can I simply add the XML node to get it running?
    Thanks in advance for any lead to the solution.

    This is great! but I'm not there yet. I figured how to assign little midi triggered melodies to a touch track. I used to do stuff like this on an old Buchla years ago. How do I get the automation on the midi track to control the filter on an audio track? I created regions with the automation I want on a midi track, then I assigned those regions to keys with touch tracks. How do I get that to control the filter on the audio track?
    thanks,
    Lee

  • HT202299 Is there a way to automatically upload videos that last more than 5 minutes on icloud ?

    I saw that icloud has a limitation of 5 minutes on the videos :
    Is there a way to automatically upload videos that last more than 5 minutes from iphoto/photos ?
    I'm trying to find a way to store my photo library on the cloud, AND keep to acces to each photos/videos from the net (not just storing the .iphotolibrary on the icloud folder) but i cant do it for the videos of more than 5min ...

    I believe you are probably referring to iCloud photo sharing. If you wait a while, the next version of Yosemite will include the new Photos application which will sync video through the iCloud photo library feature.

  • Is there a way to automatically detect and delete duplicate photos in a library

    I just imported a load of photos into my main iPhoto '11 Library from several older MAC's Photo Libraries. Despite repeatedly using the "Don't Import Duplicate Photos" dialogue box, I have many duplicate photos. Is there a way to automatically detect and delete Duplicate Photos?
    I also have iPhoto Library Manager installed on my MAC, but cannot seem to locate on it anything that would do this.
    I have over 4,000 photos, so would really appreciate some help here! Thanks in advance...

    duplicate annihilator - http://www.brattoo.com/propaganda/
    And NEVER import an iPhoto library into another iPhoto library - doing so des not work and creates massive duplication
    if you still have all of the original iPhoto libraries I recommend you drag the bad one you created to the desktop (delete it later when everythin has successfully been completed) and start over usin iPhoto Library Manager - http://www.fatcatsoftware.com/iplm/ -  to merge the libraries
    LN

  • Is there a way to automatically backup the Airport Extreme Configuration file (.baseconfig)?

    Is there a way to automatically backup the Airport Extreme Configuration file (.baseconfig).
    I know (in hindsight) that I can manually export it from the Airport Utility, but ideally I would like to include it in my Time Machine backup. I had a situation where my Airport Extreme (3rd generation) just stopped working (no lights, no power). I had not exported the config file. I bought a new Airport Extreme (5th generation) and had to manually configure the new router.
    Thanks

    One option would be to use Automator and record the actions to run the AirPort Utility; save the configuration file to the desktop (or any other location you want), and then, close the utility. You can then either make this a part of your login startup programs. Time Machine then should be able to make backups.

  • Is there a way to automatically import artwork for music already in librar?

    Is there a way to automatically import artwork for music already in library?
    I just transferred all my music from a PC into my new mac.
    I saw a widget that fetches the album artwork from the web. great fun!!!
    Now is there a way to fetch all these artworks automatically.
    I did not use istore to buy the music - but imported from my cd collection.
    Thanks.
    What a great system - simple and no hassles. Thanks Apple. Goodbye PC.

    If you are using AlbumArt widget you can do this with the widget interface.

  • Is there a way to automatically add text to video; the text gleaned from order data?

    is there a way to automatically add text to video; the text gleaned from order data?

    What is "order data"?

  • I also have a .csv file with the name of a jpeg in one column and a text description of each jpeg in a second column. Is there a way to automatically insert one jpeg (photo) and its corresponding text, each pair on one page, into a Indesign document?

    I also have a .csv file with the name of a jpeg in one column and a text description of each jpeg in a second column. Is there a way to automatically insert one jpeg (photo) and its corresponding text, each pair on one page, into a Indesign document?

    I would also recommend to write the description into the meta data. This would allow to place a text frame above the image and it is possible to add meta information and file name automatically together with the image, when you place it or even in a prepared template.
    Meta data information can be written easily in Bridge in the Meta File Workspace.

  • When downloading iTunes onto a new computer, is there any way to automatically import old music files? Last time I got a new computer I didn't have to use an external drive to update my music library.

    When downloading iTunes onto a new computer, is there any way to automatically important songs from your previous computer? I recently cracked the screen on my computer and cannot access any files. Last time I got a new computer my iTunes media files automatically appeared in my iTunes when I downloaded it, and I did not have to use my external drive. Is this still possible?

    If your backup copy of the old computer was not stolen, then use it to put everything back.

Maybe you are looking for

  • Embedding a screen in a docking container - Is it possible at all??

    I am working on a screen design similar to SE80, where I will be required to display a tree structure in screen say '0100' to the left of the screen and upon node_double_click event, I should be able to bring up another screen '0200' on to the right

  • How to show muliti language data correctly using webi reports

    Hi , Can you please suggest me how to show multi language data correctly in webi reports . Do we need to install any lang pack in both server and client machine ? Thanks & Regards Venkat

  • PCK Sender agreement

    Hi mates, At <a href="http://help.sap.com/saphelp_nw04/helpdata/en/db/73e03fc2269615e10000000a155106/content.htm">help.sap.com</a> I see that Sender agreements are not required in cases of proxies, SOAP & Mail adapter. Since there is no Receiver Dete

  • Canon G7x and unsupported image format icon with RAW files.

    When RAW files downloaded from Canon G7x get "Unsupported Image Format" message. Using iMac with 10.9.5  and Aperture 3.5.1.  This is a new camera and is not on the supported list.  Is there a way around this?  Now that Aperture is static will new ca

  • Query on Labor Confirmation

    Hi Seniors - I am having a query on labor confirmation in maintenance order. When we enter the operation, the system calculate the value in DURATION FIELD based on time you enter in WORK FIELD and the no. of people we schedule for the said operation