Is there a way to consolidate calculations used in SQL Query Data Sets?

I am building SQL Query Data Sets against multiple DB Views which all have different date formats. I have the date parameter working well, but want to consolidate the changes that I have to do to it especially for the quarter. For example the SQL against a monthly view would use "where year_month > to_char(:ST_DATE, 'YYYY-MM')" which is not too hard, but to make that work for the quarterly view I need several concats and a decode to get a "> '2012-Q2'". I would like not to have to do this within every where clause. I had put this into a global element hoping to use that in a filter for the data set, but the filter does not have access to global elements only parameters.
Is there any way to refer to a calculated global element from the data set to do this? I am using Layout Templates, so even if I wanted to I could not do the condition within the template.
     Thanks,
     Rick

Change the following line to include the red coloured parts
<div class="MasterColumn" spry:repeat="ds4" spry:setrow="ds4" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected">
  <span>{Dsp_#}</span><span>{Dsp_WkDay}</span><span>{Dsp_Event}</span>
</div>
The add the following style rule to your document:
.MasterColumn span {
    display: inline-block;
I hope this helps.
Ben

Similar Messages

  • SQLEception using Complex SQL Query with Java Studio Creator2 Build(060120)

    I am evaluating Java Studio Creator2 for a WEB base application project that will be making SQL queries to an Oracle Database but I have stumble into a problem using complex SQL queries.
    I am getting an SQLException "org.apache.jasper.JasperException: java.lang.RuntimeException: java.sql.SQLException: [sunm][Oracle JDBC Driver][Oracle]ORA-00923: FROM keyword not found where expected". I looks like it cut my sql.
    The SQL that I am trying to execute is
    Select part_name
    from table1, table2
    where table1.part_nbr = table2.part_nbr
    and table2.row_add_dt = (select max(table3.row_add_dt)
    from table3
    where table3.ser_part_id =table2.ser_part_id)
    This is a valid query that it is using 2 different selects to get a part number.
    If posible, point me to the best solution were I will be able to make complex SQL queries like the one above and bigger.
    Is there any way that I can read an SQL query file instead of inserting the SQL query string into the setCommand()?

    I have read that document looking for some anwsers on how to make this kind of query. If I try the query that I have above in the query editor ,the query editor will cut off from the last select that is between ().
    I beleave, there is a work around using the inner joint or outter join command. I will try them to see If I get the corrent result. If not, then I have to keep on asking for possible solutions.
    Anyway, someone in the Creator Team should take a note in adding something like a special criteria in the Add Query Criteria Box for cases like the one I have. The special criteria will be like using another select/from/where to get some result that will be compare.
    Girish, Are you in the Sun Creator Team?

  • Is there a way to consolidate two different Apple ID's into one. I have an old Apple ID that I used for Itunes and a new I used to set up my iphone.

    Is there a way to consolidate two different Apple ID's into one. I have an old Apple ID that I used for Itunes and a new one I used to set up on my iphone.

    You cannot merge accounts.
    Why did you start a new account?

  • HT204053 I have one apple ID and 2 iCloud accounts...is there a way to consolidate these accounts?

    I have one apple ID , but two icloud accounts....not even sure why i have 2 now....might have happened when i got my iPad last year. Is there a way to consolidate the two icloud accounts without losing my contacts or other info?

    Each iCloud account has a separate ID.  You can't have two accounts with the same ID.
    If you want to consolidate them, choose the device with the account on it that you want to abandon, then save any photo stream photos that you want to keep to your camera roll (unless already there) by opening your my photo stream album, tapping Select, tapping the photos, tap the share icon (box with upward facing arrow), then tapping Save to Camera Roll.  If you are syncing notes with the account that you want to keep, you'll need to open each of your notes and email them to yourself so you can later copy and paste the text into new notes created in your other account.  Then go to Settings>iCloud, tap Delete Account, provide your password (if using iOS 7) and choose Keep on My iDevice when prompted.  Then sign into the account you want to merge with and choose Merge when prompted. 
    You cannot move iCloud email accounts between iCloud accounts so you will have to leave it behind.  You can set email forwarding to the new email account, or add the email account back to your devices  as a secondary account by going to Settings>Mail,Contacts,Calendars>Add Account>iCoud, signing in to the account and enabling Mail.  Email in this secondary account will only be fetched periodically as push email is only supported in your primary account.

  • Is there ant way to consolidate "Exclamation point " songs?

    Is there any way to consolidate "exclamation point" songs to update all of them at once. I have most of my songs in one place and xcan only choose one at a time. AND, unfortunately, some of the songs are "purchased". Are those lost for good???

    You can't currently merge accounts nor transfer content from one account to another account - content will remain tied to the account that originally bought/downloaded it. As long as both accounts continue to be authorised on your computer's iTunes then you should be able to continue using them. Note that if you turn on automatic downloads for an account or re-download its past purchases then you may tie that computer (or iPad, iPhone, iPod Touch if that is what you are using) to that account for 90 days, so you wouldn't be able to log into the other account until those 90 days are up : associating a computer or device.

  • Is there a way for me to use airplay on my mid 2010 MacBook Pro ?

    Is there a way for me to use airplay on my mid 2010 MacBook Pro ?

    http://support.apple.com/kb/ht5404

  • I forgot my password for my iphone 4 and it is now disabled. I am trying to restore it through itunes, but it say I have to put my passcode into my phone first. Is there a way to restore without using my passcode?

    I forgot my password for my iphone 4 and it is now disabled. I am trying to restore it through itunes, but it say I have to put my passcode into my phone first. Is there a way to restore without using my passcode?

    The instructions are in that link. Just follow them VERY CAREFULLY. Especially the part about:
    Turn off your device and leave it off.
    Plug in your device's USB cable to a computer with iTunes. [but DON'T connect it to the iPhone yet]
    Hold down the Home button on your device as you connect the USB cable. Keep holding down the Home button until you see the Connect to iTunes screen.
    When you see the iTunes screen, release the Home button. If you don't see this screen, try steps 1 through 3 again.
    When your device is connected, iTunes will open. You'll see a message saying that iTunes has detected an iPhone, iPad, or iPod touch in recovery mode.
    Hold down the Home button on your device as you connect the USB cable. Keep holding down the Home button until you see the Connect to iTunes screen.

  • I appear to have two separate Apple IDs and have purchased music under both.  Is there any way to consolidate the accounts into one?

    I appear to have two separate Apple IDs and to have purchased music under both of them (one is my husband's email account, the other is mine).  Is there a way to consolidate them, or is it possible to make the purchases made under two separte IDs downloadable on the same device(s)?

    Not at this time. There is no way to merge two Apple IDs or be signed into the iTunes Store with more than one Apple ID at a time on an iOS device. However, you can USB sync the music to more than one device at a time, no problem. As long as all the music is on the same computer.

  • HT1918 Is there a way to consolidate multiple Apple IDs into one if they are all issued to the same persons(s)?

    Is there a way to consolidate multiple Apple IDs into one if they are all issued to the same persons(s)?

    No. Unfortunately, you can't combine Apple IDs togetehr, even if you own them all.

  • HT4689 Is there a way to view and use two tabs at once?

    Is there a way to view and use two tabs using mission control?

    dandjr wrote:
    i also can touch every email and hit delete, what i wanted to do is "select all" then delete, to cut out a step of touching each email...
    I see now that you can do that.  Too bad you can't do the same with messages...one at a time.
    I'd rather have a "delete all" in messages and VVM if I had a choice.  Those tend to pile up and before you know it, you have a hundred to delete!

  • Is there a way to have what used to be called "Macros" (a small blurb that you type repeatedly over and over)?

    Is there a way to have the use of what we used to call "Macros" which would be a key you could hit where you have installed a word, phrase, etc that you type repeatedly? By this I mean if, while on line, you repeatedly type out the phrase "Thank you very much for your attention to this matter"....you could hit a key (like maybe F5 or something similar) that would automatically type this phrase out so you don't have to type it over and over and over again.

    You can also look at Clippings.
    *Clippings: https://addons.mozilla.org/firefox/addon/clippings/

  • Is there a way to download Office using my product key? Or because I bought it through my university, will it not let me?

    I bought Microsoft Office 2010 through my university.  I recently got a new computer that did not come with office or a DVD drive.  I still have the product key, but it wont let me download office from the online website when I enter the product
    key.
    Is there a way to download Office using my product key? Or because I bought it through my university, will it not let me?

    Is there a way to download Office using my product key? Or because I bought it through my university, will it not let me?
    Download it from here:
    http://office.microsoft.com/en-us/products/microsoft-office-2010-backup-FX101853122.aspx
    Thanks.
    Tony Chen
    TechNet Community Support

  • Is there a way to automatically hide used clips??

    is there a way to hide the used clips??
    iMovie 10.0.4

    You can capture the complete clip and then apply Mark > DV Start/Stop Detect over the captured clip. You could get the best of two worlds so: smooth capture and clips creation.

  • I downloaded Trial version of Photoshop CS 6 - Now it has expired , i don't have serial key . Is there any way I still can use Photoshop Cs 6 ?

    I downloaded Trial version of Photoshop CS 6 - Now it has expired , i don't have serial key . Is there any way I still can use Photoshop Cs 6 ?

    What csuebele said, or download and install it as a trial on a different computer.

  • It is said that iphone A1387 is world phone. But what i got is a cdma phone without sim slot ? Is there any way it can be used on the GSM network,it is on IOS 6.1.3

    It is said that iphone A1387 is world phone. But what i got is a cdma phone without sim slot ? Is there any way it can be used on the GSM network,it is on IOS 6.1.3

    No, if it doesn't have a sim slot. However, the model number you posted is for a Verizon iPhone 4S. That model does have a sim slot, & if Verizon unlocks the sim slot, it can be used on GSM networks outside of the US.

Maybe you are looking for

  • Context Menu Verb "Read" not "Open"

    I have an application which uses ShellExecute(hWnd,"open",pFile,NULL,NULL,SW_SHOWMAXIMIZED ); to display attachments. The pFile can be any type of document including PDF. On a Vista machine with Adobe Reader (8,9, or 10) in the User's Temporary direc

  • Not charging Ipad mini

    My Ipad mini will not charge.  It is not the cable nor is it the charger.  My daughter has a Ipad mini also and have checked all components against hers.  All work perfectly fine when connected to her Ipad but do not when connected to mine. the only

  • Connecting macbook pro to cintiq 21 ux

    is there an video adapter that'll work between the cintiq 21ux and the late 2008 macbook pro? i was wondering if there was a mini displayport to dvi-i adapter which it seems to need. thanks for your help

  • Exception while upgrading the SOA Suite with PatchSet 2

    Currently I have a working version of the 11.1.1.2.0 soa suite installed on my machine. I am trying to upgrade it with the PatchSet 2. I was successfully able to upgrade by Weblogic Server to 10.3.3 and also my Middleware Home with 11.1.1.3.0 version

  • Relocation error at run time.

    Hi All, I am getting a weird run time symbol relocation error on Solaris 2.6 with a C++ code compile by Workshop Compiler version 5. I built a shared library that statically links libCstd.a. This is my first question. Does CC Workshop compiler by def