How do i dynamically reference the contents of an item in a where clause

I have a select statement that references an item i.e. 'where sysdate=:diary.day1' at the moment, however i want to use this select to loop through every day of the week, so on the fist record it will change depending on where you are in the loop either 'where sysdate=:diary.day1' or 'where sysdate=:diary.day2' etc. I tried using a variable for this but it just uses the characters ':diary.day1' and not the contents of this item.

Not sure what you want but dynamic reference the content of an item may be done with NAME_IN builtin.
WHERE sysdate = TO_DATE( NAME_IN(var), 'fmt')
where var is a variable which contain item name, for example 'DAIRY.DAY1'
P.S. SYSDATE function contain not only date but time portion too.
So very little chances that this equation will be true

Similar Messages

  • Dynamically change the contents of one combo box based on the other

    Hi Forum,
    I have a question which might have a possibly simple answer. Well anyway help me out since i could not find the simple answer.
    I am building an application using Swing and binding with BC4J using JClient. My GUI has combo boxes, grids, editboxes. My requirement is that i should be able to dynamically change the contents of one combo box based on the selected item in trhe previous combo box. For example, when i choose a country in the "country combo box", the "states combo box" should show the list of the states of the selected country.
    Now how do i do this using binding. If not, how do i write custom querirs in BC4J layer and return a resultset to the remote application so theat i can populate the dependent combo boxes.
    I will appreciate if anyone can help me out in this regard.
    Thank You
    Sumit

    there could be quite a few number of ways of solving this problem.
    One way is through event handlers.
    taking your example as a model when user selects a country you could fire an action with a flag set to ture. A method will return the states from the DB or your temporary files or what ever and then the true flag will be used in the states combo box rendering.
    other way: javascript
    this might be a bit clumsy as you will need the states information in a property file and you can get the info as the user selects a country.
    regards,
    raj

  • How do I programmatically reference the current page in 902?

    Hello,
    How do I programmatically reference the current page in 902?
    The Portal Smart Text option for Current Page is not flexible enough, and I wish to create my own custom greeting using PL/SQL.
    Cheers,
    John

    hi,
    If you are developing a PLSQL Portlet, then you do have a way for getting the page URL.
    The page URL can be obtained from the record, portlet_runtime_record. There is a filed page_urlavailable with portlet_runtime_record.
    The portlet_runtime_record is passed as a argument to the show_portlet procedure.
    --Sriram                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to proceed on transferring the content of an external hard drive into the time capsule.

    I just bought a new MBP and a 2T time capsule but i don’t know how to proceed on transferring the content of an old external hard drive into the brand new time capsule.
    The old external hard drive is a carbon copy of another external HD which was my time machine backup but unfortunately someone stole it from me…  so I was thinking about transferring the content from the old external hard drive to the time capsule and then set time capsule as the new time machine backup.
    Is there anybody whose can give me a hand and tell what is the best to do?
    Thanks
    sb

    Configure Time Machine preferences. Be sure to remove the external drive from the Exclude list.
    Mac Apps - Apple Support
    Mac Basics
    Welcome to Mac Support

  • HT1386 How do I back up the content of the iPad on the new computer or the cloud?

    The computer I have been using for backing up my iPad died! 
    My iPad is fine. 
    All the music on the iPad came from CD's. 
    How do I back up the content of the iPad on the new computer or the cloud?

    Do this:
    - iTunes: Back up your iTunes library by copying to an external hard drive
    and restore/copy the iTunes library to you new computer.
    - Connect the iPod to the computer and make a backup by right clicking on the iPod under Devices in iTunes and select Back Up
    - Restore the iPod from that backup.
    Note that the iPod backup that iTunes makes does not included synced media like apps and music.

  • How do I make sure the content fits the browser?

    I'm having a little trouble making content on a website fit in different browsers. It seems to be making extra space on the right side in safari and a LOT of extra space on the right side in firefox. How do I make sure the content will fit and be centered?
    Thanks in advance!

    That question is a little like asking "how do I build an airplane?"  It's just too vague and open ended for us to give you a meaningful answer. 
    Answers to layout questions are contained in your HTML and CSS code.  For quickest help, please post a link to your online page.
    Nancy O.

  • How do I tag all the contents of a folder?

    How do I tag all the contents of a folder?
    I'm trying to add an archive tag to a lot of files and folders, and is it possible to just tag the parent folder and all files and folders within it to adopt this tag, so that when I come to search for a document later on, and it has an archive tag, I know to dismi

    Ideally, the program you want to delete has an 'uninstaller' application and that should delete all the files. If that isn't available you could download and run this free app: http://www.freemacsoft.net/appcleaner/
    Probably not as thorough but it will do the job of ridding you mac of most of the files associated with the app you no longer want.

  • How do I partially delete the contents of the "trash"

    How do you partially delete the contents of the "trash"?

    By dragging the items you wish to keep out of the trash first.
    Apple has a trash bin for trash.:)
    MS has a recycle bin that seems to be used as a spare folder.

  • How do you specifically let the Itemlistener know which Item was selected..

    How do you specifically let the Itemlistener know which Item was selected in a JComboBox? Anyone has any idea? What should the coding look like?

    getSelectedItem()

  • How can I print out the contents of my hardrive

    I have a hardrive with about 200 video clips and need to print the titles for cross refrerencing. I was just going to "grab" screenshots but this will take about ten sheets of paper. How can I print out a list of all the files on the drive?

    I tried this Finder drag method & discovered that it is very important to set the blank TextEdit document to plain text before the drag (from the format menu or with Cmd-shift-t). If you don't, TextEdit attempts to load the content of the files!
    Once I discovered this, I tried the method with Find (Cmd-F) results & it works for that, too. This means that by choosing the right combination of search location(s) & search criteria, you can extend the method to filter the list to just about any files you want, which could be very handy.
    For instance, set the "Kind" criteria to "QuickTime Movie" & location to "Computer" & you get a list of every QT movie. Or set the search location to the folder containing the movies of interest & you get all of them, including ones in subfolders. You could also use the 'date created' or other search criteria to filter the list to a specific subset of movies (or whatever).
    If you need to do this often, you could create one or more 'Smart Folders' with the criteria preloaded for each search.
    The only drawback I see for either Finder based method is the full path one. If you are getting results from just one or a few folders, Find & Replace can delete any of the path name fairly easily, but it becomes a chore if there are a lot of different ones. Some other text editor, like TexEdit Pro, that supports grep searches would be handy here, but since I'm not up to speed on grep, someone else will have to explain how to use it for this, if they want.

  • How to import and make the content of the original PDF document editable and preserves the pdf appearance and retains existing fields and formatting in LiveCycle

    Can someone tell me how I can see my content (artwork and text) after I import  it into LiveCycle Designer ES4?  I like to import and make the content of the original PDF document editable; preserves the pdf appearance and retains existing fields and formatting, then allow me to do the modifications and save it back into the original PDF document with changes. I have tried everything but still cannot see my content(artwork and Text) of my original PDF after importing it into LiveCycle. All I see are is a blank page with the formatting and layout of where my artwork and text should be. I like to see everything if possible so after I make my change I will know how it will look when I save it back into the PDF and open it in Acrobat Reader.

    Can someone tell me how I can see my content (artwork and text) after I import  it into LiveCycle Designer ES4?  I like to import and make the content of the original PDF document editable; preserves the pdf appearance and retains existing fields and formatting, then allow me to do the modifications and save it back into the original PDF document with changes. I have tried everything but still cannot see my content(artwork and Text) of my original PDF after importing it into LiveCycle. All I see are is a blank page with the formatting and layout of where my artwork and text should be. I like to see everything if possible so after I make my change I will know how it will look when I save it back into the PDF and open it in Acrobat Reader.

  • How PLM documents saved in the Content Server or in the database.

    Hi All,
    Please tell me the concept about given below scenario:
    Normally PLM documents are either saved in the Content Server or in the database.
    What if we have neither configured a database nor a content server. Where are they being stored then.
    what exactly Document serever , how the PLM document save on Content Server or in data base server.
    Thanks
    Narendra Vikram Vishwakarma

    Hi All,
    Please tell me the concept about given below scenario:
    Normally PLM documents are either saved in the Content Server or in the database.
    What if we have neither configured a database nor a content server. Where are they being stored then.
    what exactly Document serever , how the PLM document save on Content Server or in data base server.
    Thanks
    Narendra Vikram Vishwakarma

  • How to design and modify the content area in Dsktop Inerpage?

    hello:
         I have created my New Portal Desktop,but I don't know how to modify the content area in Dsktop Inerpage?
       Anyone can help me ?
       Thanks
        lexian

    Hi Le,
    What exactly do you want to modify. The Desktop inner page consists of your detailed navigation and the <b>Content Area</b> iview. The content area iview renders all the iviews, pages and whatever you add to your roles.
    So do you want to change the layout of this section or something else?

  • I need to restrict printing but keep the Content Type and Page Extraction allowed. How do I keep both the content type and page extraction displaying allowed?

    When I change the settings to allow for the content type and page extraction and save it, it shows allowed.  When I close the pdf, reopen it, review the security properties, it shows the content type as allowed and the page extraction as disallowed. I need both to stay at allowed, how do make this happen?

    The moment that you select not to allow any kind of change done to the file then pages extraction is automatically not allowed as well. There's no way around that.

  • Dynamically load the content without re-starting the server

    Let me explain the scenario.........
    I have a JSP in which I call a method written in a different class( java file).
    Now, when I change the content of the method in the class and compile it, how can I get the updated stuff in the JSP without re-starting the server.
    Even though I have to re-deploy the changed class, I need to re-start the server to get the updates effective.
    The env set up is on Tomcat
    fun_one

    FUN_ONE, I am using Tomcat 5.0 (though not 5.5), and have a Test application that I do not use WARs to deply. The Context is set with reloadable="true".
    I have this simple bean:
    package jsp.beans;
    public class ItemBean implements java.io.Serializable
         public String getjunk() { return "Hello"; }
    } And this JSP
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <html>
      <head>
      </head>
      <body>
        <!-- Display the session ID for this user -->
        <p><c:out value="${pageContext.session.id}"/></p>
        <!-- Get the junk string from the ItemBean -->
        <p><jsp:useBean id="it" class="jsp.beans.ItemBean"/>
        <c:out value="${it.junk}"/></p>
      </body>
    </html> I run the JSP, then change the text returned by the bean, recompile it, then reload the JSP (force reload). The session id remains the same, and the text changes. Does this work on your system? (note, you do have to restart your server once after you set the Context to be reloadable="true")

Maybe you are looking for