Can sth like this be done?

Hi All,
I am converting from forms 4.5 to 6i.
Somewhere in the block i found a for loop that has been written like this:
for i in :control_block.first_item..:control_block.last_item loop
end loop;
(The error message reads like "bad bind variable 'Control_block.first_item'")
I checked those items and they are inside the control_block.
Any idea on why the error is showing up will be highly appreciated.....
Cheers,

Try putting the value of the control_block.first_item in som evariable
v1 := :control_block.first_item;
v2 := :control_block.last_item;
for i in v1..v2 loop
end loop;

Similar Messages

  • How can I do sth like this ${requestScope.list.size} ?

    Hi, I have 2 attributes which I pass like this
    requsest.setAttribute("startPoint", 3);
    request.setAttribute("myList", myList);
    where myList is a ArrayList filld with objects. On jsp page I want to count 2 values first and last number:
    <c:set var="firstNumber" value="${requestScope.startPoint+1}"/> - this works fine.
    <c:set var="lastNumber" value="${requestScope.startPoint+requestScope.myList.size}"/> - this is impropper.
    How can I use as integer size of list which is passed as request attribute. Is this possible?
    I would appreciate any hepl.

    Hang on. For such things you can build your own EL functions - it is very easy and involves only 4 steps.
    1. Write a class containing a method (must be static) to calculate size of any list.
    [Put the class in /WEB-INF/classes, so your file will reside as /WEB-INF/classes/myfunctions/MyFunctions.class]
    package myfunctions;
    import java.util.List;
    public class MyFunctions{
         public static int getListSize(List list){
              return list==null?0:list.size();
    }2. In your taglib add an entry (in case you don't have already create one) for the EL function:
    [Say our taglib is mytags.tld in /WEB-INF]
    <taglib xmlns="http://java.sun.com/xml/ns/j2ee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
      http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
         version="2.0">
         <tlib-version>1.0</tlib-version>
         <short-name>MyTagLib</short-name>
         <function>
              <description>List Size</description>
              <name>size</name>
              <function-class>myfunctions.MyFunctions</function-class>
              <function-signature>int getListSize(java.util.List)</function-signature>
         </function>
    </taglib>3. Now in your JSP add following line to use your new EL function:
    <%@taglib uri="/WEB-INF/mytags.tld" prefix="mt"%>4. And use as:
    <input type=text value="${mt:size(requestScope.myList)}" />Note that there no issues using JSTL EL functions. My intention is to resolve your problem and at the same time to give you a glance how to write and use your own EL functions (might be useful in future).
    Thanks,
    Mrityunjoy

  • Search option not working after updating Firefox. How can I correct this? Don't want to use Explorer, but will have to if we can't fix this.

    An automatic update ran this morning. Noticed when I started up the computer, a message came up saying that Firefox was running, even tho' it wasn't. Update finished, and now I cannot get the search tool to work. Help!!!

    Is this the search bar on the about:home page/
    Try to reset some preferences to the default with the SearchReset extension:
    *https://addons.mozilla.org/firefox/addon/searchreset/
    Note that the SearchReset extension only runs once and then uninstalls automatically, so it won't show on the "Firefox > Add-ons" page (about:addons).
    If there is a problem with searching via the default about:home page then try to reset the search engine used on the about:home page.
    Reset the <b>browser.startup.homepage_override.mstone</b> pref via the right-click context menu to the default on the <b>about:config</b> page and close and restart Firefox to restore the about:home page to its default.
    *http://kb.mozillazine.org/about:config
    #Open the <b>about:config</b> page via the location bar
    #Type in the Filter bar: mstone
    #Right-click the browser.startup.homepage_override.mstone line and select: Reset
    #Close and restart Firefox
    If this didn't help then delete the delete the chromeappsstore.sqlite file in the Firefox Profile Folder and repeat the above.
    You can also check for problems with preferences and try to rename or delete the prefs.js file and possible numbered prefs-##.js files and a possible user.js file to reset all prefs to the default values.
    *http://kb.mozillazine.org/Preferences_not_saved
    *http://kb.mozillazine.org/Resetting_preferences
    Also check that you do not have a mozilla.cfg file in the Firefox program folder.

  • Hello, I don't know if the thread like this exists. I just bought myself shiny iPad mini( just for Baldurs gate). But it's not ok. Playlists aren't syncing- they're on iPad but non-playable

    It is seen only on iTunes in tab 'on this iPad' but playlists are shaded, grey. When i unplug device, there is nothing on music. Also no 'Other' data or sth like this. I'm checking playlists, they're adding themselves to the bar on the bottom( where You can see how much space is left. But when i try to sync- voilá. Audio disappear And no playlists on iPad. I'm using newest iTunes. I wanted to the iPhone archives to restore iPad. Aaah btw- they don't see each other when i'm trying to pair them with BT. I want to send photos from iPhone, because iPad didn't downloaded all my photos from iCloud and instead of having 230 i have 7. What is wrong??

    An owner has a variety of means to assist someone who finds his lost iPad, and is motivated to return it. Writing a phone number on the back, for example, preferably prior to losing it.
    From what you describe, your motivation to return it greatly exceeds the owner's motivation for having it returned.
    You can avoid this sort of trouble by not taking other people's stuff. Having done that, now it's your problem.

  • Getting an error like this The import javax.servlet cannot be resolved

    HI
    i am getting an error like this "The import javax.servlet cannot be resolved".wht i ahve done in eclipse right click->open->servlet->packge name->servlet name->next->nexyt>finish.hereinterfaces is javax.servlet.Servlet.
    do i need add jar for it.can any one tell me why i got error like this.
    vijay

    Please don't doublepost. Answer is given here: http://forum.java.sun.com/thread.jspa?threadID=5220686

  • Any idea how this was done?

    Hi everyone,
    Just seen this site http://www.web4half.com/
    I really love the way the gray background has moment to it and would love to do something similar.
    Does anyone know either; how this is done? or can things like this be bought and used in Flash?
    Many thanks, P

    Any tutorials on this you could suggest?
    Thank you.

  • HT2534 I  don't have a credit card and would like to update facilities on my iPAD. How can I do this without a credit card?

    I don't have a credit card and would like to make updates on my iPAD. How can one manage this without a credit card?

    You use a debit card just like you use a credit card in iTunes. You have to enter the card number, security code and billing address as you would with a credit card when you set up the ID. You can make changes to your payment method in your account at any time.
    If you want to create an Apple ID without using a credit card you must first sign out of the Apple ID that you already created in Settings>Store>Your Apple ID.
    But ...you will also need another email address now if you already created an Apple ID, because that first email address is now associated with that first ID that you created.
    If you do have a debit card, you may just be better off entering that card information into your account and use that now. You don't need to even use the debit card if you can purchase iTunes gift cards and redeem those. I use iTunes gift cards exclusively now instead of using my credit card.

  • Itunes asking me my billing verification again and again on the same computer. I don't know why it behave like this. Anyone can solve my problem?

    Itunes asking me my billing verification again and again on the same computer. I don't know why it behave like this. Anyone can solve my problem?
    I already provided my 3 digit CVV number but Itunes again need to confirm the code whereas on my Office Computer I am purchasing Apps on Itunes without verifying my billing information again and again except once at the time of creation of account.
    Please help me as I am charging by my Credit Card bank by US$ 1 each time when I give verification code.
    Thanks
    Talat Khatri

    Try the following steps,
    Sign into your computer and removal of credit card information. Here are the steps:
    1) Open iTunes and sign in to the iTunes Store.
    2) Select "View My Account" from the Store menu.
    3) Enter your password and click the View Account button.
    4) Click the Edit Payment Information button.
    5) Select "None" as the payment type.
    6) Click the Done button at the bottom of the page.
    Reset your account password from the following link:
    http://iforgot.apple.com
    Phase 3:
    Download a free content on to get recognized in iTunes.
    To ensure your account is functioning, try downloading a free item from the iTunes Store. To do this, navigate to the iTunes Store main page by clicking the Home icon near the upper-left corner of the window. Scroll down and click the "FREE ON iTunes" link near the bottom of the main page, then select an item to download.
    After you are able to download the free App try updating the billing information as usual.

  • Have just migrated from the world of PC's. and I had my set up so that when I typed a new sentence it started with a capital with out me pressing shift. also, i could set up words to self fill like ur would auto correct to your. can this be done with mac

    Have just migrated from the world of PC's. and I had my mail text typing set up so that when I started  a new sentence after a full stop  it started with a capital with out me pressing shift. also, i could set up words to self fill like ur would auto correct to your. can this be done with mac

    I don't know about the first letter cap but the spelling is simple. Edit - Spelling and Grammar - Select While Typing and Correct Spelling Automatically.
    I'd also STRONGLY recommend that you bookmark and use:
    Mac 101
    Switch 101
    Find Out How Video tutorials
    List of Useful URLs for switchers
    Welcome to the Light side.

  • I would like to add content that changes on a calendar basis, such as 'thought for the day". It can then display a different text or image on a nominated day. Can this be done? Robert.

    I would like to add content that changes on a calendar basis, such as 'thought for the day". It can then display a different text or image on a nominated day. Can this be done? Robert.

    OK Thanks Brad.
    I could use Tockify of course, but wanted to create the same things on an existing site.
    I do not know how to copy the code and get it onto Muse, but that’s OK for now. I will work something else out.
    Robert

  • I have an iPod touch 4g that is jail broken and I would like to have it back to normal how can this be done?

    Can some one help me with my issue I have an iPod touch 4g that is jail broken and I would like to have it back to normal how can this be done?

    No one here can help you with that, check Google.
    If the baseband has been changed and you are trying to put the phone back to a condition to unlock it be aware you may not be able to accomplish this.

  • HT1423 I would like to increase my hardrive from 2tb to 4tb can this be done and how much

    I would like to increase my hardrive from 2tb to 4tb can this be done and how much

    Hi.
    Have you tried the Brazilian Apple Store online? store.apple.com/br
    Or you might try other online retailers like:
    www.americanas.com.br
    www.submarino.com.br
    www.extra.com.br
    But, just as a piece of advice, take a deep breath before you access those websites. Prices of Apple products here in Brazil are absurdly higher than those in the US.
    Cheers.
    JP

  • HT1438 I would like to use my Ipad mini to connect to a project can this be done?

    I would like to use my ipad mini to connect to a projector can this be done?

    Depends on the projector.
    You can connect via a cable or wireless using an Apple TV.
    http://ipad.about.com/od/iPad_Guide/a/How-To-Connect-Your-Ipad-To-Your-Tv.htmhttp://ipad.about.com/od/iPad_Guide/a/How-To-Connect-Your-Ipad-To-Your-Tv.htm
    Connect an iPad to a Television or Projector
    http://www.everymac.com/systems/apple/ipad/ipad-faq/how-to-connect-ipad-to-tv-te levision-projector.htmlhttp://www.everymac.com/systems/apple/ipad/ipad-faq/how-to-connect-ipad-to-tv-te levision-projector.html
    Connecting iPad iPhone or iPod to TV or Projector
    http://www.disabled-world.com/assistivedevices/computer/ipad-tv.phphttp://www.disabled-world.com/assistivedevices/computer/ipad-tv.php
    iPad Accessories: Connections for a TV or Projector
    http://www.dummies.com/how-to/content/ipad-accessories-connections-for-a-tv-or-p rojector.htmlhttp://www.dummies.com/how-to/content/ipad-accessories-connections-for-a-tv-or-p rojector.html
    You may be interested in AirPlay on the Apple TV:
    http://www.apple.com/airplay/http://www.apple.com/airplay/
    http://www.apple.com/airplay/http://www.apple.com/airplay/
    Alternately, there are Apple Digital AV Adapters for hardwired connections:
    http://support.apple.com/kb/ht4108http://support.apple.com/kb/ht4108
    http://support.apple.com/kb/ht4108http://support.apple.com/kb/ht4108
     Cheers, Tom

  • HT4689 When in Mission Control I'd like to label my various Desktops to give the different work spaces names.  Can this be done?

    When in Mission Control I'd like to label my various Desktops to give the different work spaces names.  Can this be done?

    No, it can't. Send feedback to Apple about this

  • HT5957 My iphone showed to the settings that there is an update available, so there was a software update  and i did it , but i don;t like this version ,and I want to go back .How can i do it

    My iphone showed to the settings that there is an update available, so there was a software update  and i did it , but i don;t like this version ,and I want to go back .How can i do it

    You cannot go back.

Maybe you are looking for