Button based on data is not working in form/ report / region

create or replace procedure "BUT2"
is
begin
declare
cursor c1 is select plot_id,plot_status from re_plot;
tno number;
v1 varchar2(500);
c2 c1%rowtype;
begin
open c1;
loop
tno := nvl(tno,0) + 1;
fetch c1 into c2;
exit when c1%notfound;
if c2.plot_status='BLOCKED' then
v1 := v1 || ' ' ||'<input inline type =submit style="color:BLUE;background-color:RED" value='||c2.plot_id||'>';
else
v1 := v1 || ' ' ||'<input inline type =submit style="color:ORANGE;background-color:GREEN" value='||c2.plot_id||'>';
end if;
if mod(tno, 4)= 0 then
--v1 := v1 || '<br/>' || ' ';
htp.p(v1);
v1 := null;
end if;
end loop;
close c1;
htp.p(v1);
end;
end;this above procedure works fine in SQL Command browser. I am unable to make it as page form / report.
My requirement is i want to bring this images in form / report. Based on click button, the value need to be parsed to other page?
how to do it?
yours
andi_raj

is not working Insufficient information. In what way is it "not working"? The page doesn't render as required? There's an error message? The browser crashes? The server room has been trampled into dust by a herd of buffalo?
>
I am unable to make it as page form / report.
v1 := v1 || ' ' ||'<input inline type =submit style="color:BLUE;background-color:RED" value='||c2.plot_id||'>';
...It is not possible to generate form elements in an APEX page in this way. The [APEX_ITEM API|http://download.oracle.com/docs/cd/E14373_01/apirefs.32/e13369/apex_item.htm#CACEEEJE] is the only way to create APEX items in PL/SQL. However it contains no procedures to generate button items, so an alternative design is required in this case, e.g. a report with links.
(Also what is the intention of "inline" in the above code? [There is no *inline* attribute|http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html#h-17.4].)

Similar Messages

  • Input Date does not work correctly In dynamic region

    Hello everyone.
    I created a view with a dynamic region. When switch to a region with Input Date components, if I click the "Choose Date" button, this region will exit to default region without any error message.
    The component works well in default region but not in regions switched by Link.
    I tried it in a completely new application and i am sure there is no any problem except the component and the region themselves.
    SO, if someone tied doing this and know what cause it and how to fix it?
    Edited by: 1007000 on 2013-5-20 下午8:49

    Well, i find out the problem. I set the managed bean of the region backing scope, and Input Date is a server-side component. So the taskflow id will lost when i click the Choose Date button.
    change the scope to pageflow, and it works.

  • Javascript calling not working properly in report region

    Hi All,
    I know it is quite simple question but i am unable to do this. In one tabular form with one blank row i have to put client side validation (javascript) so that user cannot enter nonnumeric value and value should be of min 5 digit.
    How i proceed:
    1: Have written two javascript function:
    function numOnly3()
    if(!((event.keyCode>=48)&&(event.keyCode<=57)))
    event.keyCode=0;
    alert("Enter Only Numeric Values");
    //event.focus();
    else event.keyCode = event.keyCode;
    function validateNumber3(itemValue)
    if((itemValue.value).length<5)
    alert("Please Enter 5 digit Value for the Part List Group");
    itemValue.focus();
    return false;
    2: calling these function in report region like :
    htmldb_item.text (16, parts_list_group, 10,5,'onKeyPress=numOnly3(); onBlur=validateNumber3(this);') parts_list_group
    after union :
    htmldb_item.text (16, NULL, 10,5,'onKeyPress=numOnly3(); onBlur=validateNumber3(this);') parts_list_group
    problem:
    when i am enetring non numeric valuse first its giving alert message "Please Enter 5 digit Value for the Part List Group" after clicking ok its giving alert message "Enter Only Numeric Values";
    but what i want in case user is enetering non numeric it should delete and alert
    "Enter Only Numeric Values" but first it is alerting "Please Enter 5 digit Value for the Part List Group" then after clicking ok alerting "Enter Only Numeric Values".
    if i am enetring 3 digit only then its giving correct message that "Please Enter 5 digit Value for the Part List Group".
    so my requirement is in case any user is entering non-numeric data including dot symbol then it should delete and pop up message that "Enter Only Numeric Values".
    may be calling function in the region wroung. can any one suggest me where is wroung and what should i do?
    Thank You,
    Amit

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    This may be caused by a recent Flash 11.3 update.
    See:
    *https://support.mozilla.org/kb/keep-flash-up-to-date-and-troubleshoot-problems
    *https://support.mozilla.org/kb/flash-crashes-or-does-not-load-firefox-13
    *http://forums.adobe.com/thread/1018071?tstart=0
    *http://blogs.adobe.com/asset/2012/06/inside-flash-player-protected-mode-for-firefox.html

  • Save Button saves in data base not adding on form.In Detail form of M/D For

    Hello Everyone,
    Please help me on following.
    I ahve mater detail form and in detail form i have only one field displaying and if i add new row it adds and if i put new data in subject name and save it .It saves in database but doesn't display in form.
    I have
    Table A with
    CaseId PK (Master Table)
    Table B
    CaseID-FK &
    Subject Id PK(Detail Table)
    Edited by: user639035 on Mar 17, 2010 8:44 AM

    REPORT  YH648_1111111.
    TABLES SSCRFIELDS.
    parameter : c  AS CHECKBOX USER-COMMAND SUNIL
    AT SELECTION-SCREEN .
    SY-UCOMM = SSCRFIELDS-UCOMM.
    START-OF-SELECTION.
      CASE SY-UCOMM.
        WHEN 'SUNIL'.
          WRITE 'SUNIL KUMAR .BETHINEDI'.
        WHEN ' '.
          WRITE 'BLA BLA BLA '.
    ENDCASE.
    THIS IS THE WAY U CAN USE THE CHECK BOX.
    INSTED OF THIS  WRITE 'SUNIL KUMAR .BETHINEDI'.
    U USE THE INSERT STATEMENT.

  • Download Data is not working in Dashboard Report??

    I tried to Download Data in Report and it gives me error message.Does any one faced this issue before.I tried this forum but coudn't get the enough information.Your help is appreciated.

    hi,
    sorry for the previus post....sleepingg...
    try to think...
    1.this happenig with all the reports???
    try to download a simple one,without charts...
    2.have you tried to log in as other user,
    which is the result??
    3.check in the analytics,the security...
    Does it have the user log on,
    available priviledges???
    end,get firebug,and check the appropriate css
    http://obiee101.blogspot.com/2009/07/obiee-dashboard-default-controls.html
    hope i helped....
    http://greekoraclebi.blogspot.com/
    ///////////////////////////////////////

  • I dropped my ipad mini and the left side got dented .. so the volume buttons and the mute is not working anymore .... and when i am playing games the volume automatically goes up... i still have warranty .. so does apple replace a new one?

    i dropped my ipad mini and the left side got dented .. so the volume buttons and the mute is not working anymore .... and when i am playing games the volume automatically goes up... i still have warranty .. so does apple replace a new one?

    Steven ~ Welcome to the Support Communities. The following may be useful for next time...
    AppleCare+ for iPad extends your coverage to two years from the original purchase date of your iPad and adds up to two incidents of accidental damage coverage, each subject to a $49 service fee. Note: AppleCare+ must be purchased within 30 days of the date you bought your new iPad.
    iPad mini cases from Tech21
    iPad mini screen protector from Tech21

  • How may I get my Ipad 2 to power on? I have tried the two button approach and it did not work.

    My Ipad 2 will not power on. I have tried the two button approach but it did not work. Until last evening, the Ipad was working very well. After it entered the sleep mode, it would not come back on. What can I do?

    The first thing to suspect is a completely drained battery. When this happens the iPad shuts down and will not turn on. Even if you charge the iPad it may take more than 30 minutes before it responds. Plug the iPad into the charger that came with it and plug the charger into a known good wall outlet. Do not charge the iPad by connecting it to a computer. Wait 30 minutes. Then reset the iPad. Press and hold both the Home button and the Sleep/Wake button continuously until the Apple logo appears. Then release the button and let the device restart. You will not lose data doing this. It's like a computer reboot.
    If the iPad restarts let it continue to charge until the battery is at 100%. If the iPad does not restart consider making an appointment at an Apple Store to have your device examined by a technician. Or contact Apple Support.

  • Umm I just got this iPhone 5 and cellular data is not working, can't access apps, heck can't even download any and Safari...ummm yeah not happening.  I'm with Sprint if that makes any difference.

    Umm I just got this iPhone 5 and cellular data is not working, can't access apps, heck can't even download any and Safari...ummm yeah not happening.  I'm with Sprint if that makes any difference.

    Are you in an area where there is no coverage?
    You can try a reset, hold down the home/sleep button together until you see the apple logo and then release, then wait for the phone to boot back up.
    If that doesn't help, then yOu'll need to contact Sprint again.

  • None of the buttons on my Torch will not work - phone inoperable

    The buttons on my Torch will not work...I can receive calls but can't answer them. I cannot do anything with the phone...it is fully charged - HELP! I am traveling and this is now critical!

    I don't have a 9800 here to test, but if you keep the keyboard closed, isn't there a onscreen enter key?
    Normally the buttons not workng is indicative of moisture issues. It sounds like what I have seen multiple times on a device with moisture damage.
    Even sitting on a bathroom counter during a hot steamy shower or bath can cause keyboard and trackball problems UNTIL properly dried out. It really is more common than you think.
    1. Remove the battery immediately!! Do not attempt to turn on your BlackBerry.
    2. Let the device dry in a warm, dry place for 3 to 5 days* (see below)
    3. DO NOT "check it each day" by placing the battery in. Leave it be to dry completely. This takes time. Replacing the battery to check it can only damage it more (moisture + electrical current = disaster).
    4. If the device is warm after the drying period, allow it to cool to room temperature before placing the battery back in.
    Suggestions on drying your BlackBerry in a warm place (open, with the battery out):
    *Place the BB in a container of dry UNcooked rice, and then you might also place it in any of the locations mentioned below.
    *On top of any dry heat emitting electronic component: TV cabinet or CRT, LCD, cable TV/Satellite converter box or plasma monitor
    *On the dashboard of your car on a sunny day
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How do I reject incoming calls on Ios7 when locked? Power button on top right does not work.

    How do I reject incoming calls on Ios7 when locked? Power button on top right does not work.

    I am also facing the same issues. Sometime i get an option to reject call and sometime i won't .
    Tried all the basic troubleshooting i could from my end but nogo. Also tried complete reset by loosing data still the same results. Any suggestions and fix, Apple ???

  • My iphone 4's display is completely blackout and even its battery is not charging. I tried to restart my iPhone by pressing home and on/off button but it is also not worked. Now I'm in Nepal and here not even a single apple service center. What to do? Ple

    Its been one month, my iphone 4's display is completely blackout and even its battery is not charging. I tried to restart my iPhone by pressing home and on/off button but it is also not worked. Now I'm in Nepal and here not even a single apple service center. What to do? Please help me.

    You clearly did not notice that you have joined a USER TO USER COMMUNITY FORUM
    This is NOT Apple ,Apple do not read nor do they  therefore respond
    So if you would like to wind your neck in ........................
    try a reset of iPhone and then a restore,best, as new and if it then functions correctly try restoring with your backup

  • My app store is not working. I followed instructions to hold wake/sleep   home button....did not work, I went into settings, general, reset network settings....didn't work...now what?

    My app store is not working. I followed instructions to hold wake/sleep   home button....did not work, I went into settings, general, reset network settings....didn't work...now what?

    Did you try to go to Settings > Store, tap on Apple ID, Log out and Login again.
    What message do you get when you open the App Store?

  • Radio button and associated functionality is not working!

    Hi Pros,
    I am facing the following problem:
    1.I have an interactive PDF created in Acrobat 9 Pro.
    2.PDF have few radio buttons, each radio buttons ahave assigned valus(eg: 1,2,3 etc)
    3.I have a text box in which the value of selected radio button is displayed.
    4.PDF is working fine on my machine.
    5.Client is having Internet Explorer version 7.0.5 and Adobe reader:8.2.6
    6.The radio buttons and associated functionality is not working on client's machine.
    7.The text box shows '0' even if we a radio button with value 2 or 1 is selected.
    What will be the problem? How can I fix this issue?
    Please help.

    Thanks alot for helping me on this.
    Thanks to u also ~graffiti

  • Navigation "Back" and "Forward" buttons are inactive, they do not work at all. How do I fix this?

    I have downloaded the latest version of firefox and the navigation buttons in the browser will not work in any way. The "Back" and "Forward" buttons are completely un-usable.

    Toolbar misbehavior could be due to a problematic add-on (e.g., theme or extension), or a corrupted settings file. Next time you upgrade -- and for security reasons, it is highly recommended -- try Firefox's Safe Mode to see whether you can pin it on an add-on or custom setting. You also could clear your toolbar settings.
    More info on Safe Mode:
    First, I recommend backing up your Firefox settings in case something goes wrong. See [https://support.mozilla.org/en-US/kb/Backing+up+your+information Backing up your information]. (You can copy your entire Firefox profile folder somewhere outside of the Mozilla folder.)
    Next, restart Firefox in [http://support.mozilla.org/kb/Safe+Mode Safe Mode] using
    Help > Restart with Add-ons Disabled
    In the Safe Mode dialog, do not check any boxes, just click "Continue in Safe Mode."
    Does the toolbar work correctly?
    More info on clearing toolbar settings: [[Toolbar keeps resetting]]

  • "Photos" option button in icloud control panel not working

    Photos option button in icloud control panel not working...it is not greyed out, and it is ticked, but clicking on it has no effect. Windows 8.

    luvsack wrote:
    DOES ANYBODY RESPOND TO THESE QUESTIONS EVER? I HAVE THE SAME PROBLEM AND CAN FIND NO ANSWER ANYWHERE! ANSWER THE **** QUESTION PLEASE!!!!!!!!!!!!!!!!!!!!!!!
    Windows 7 64
    Start your own thread, and please stop shouting, it is hard to read, and who wants that.

Maybe you are looking for

  • How to detect the 'full path' of an open folder

    I often end up with open windows that display the contents of a folder but no path information. One example would be a folder opened from clicking on a 'hit' from a Spotlight search. I often don't know where those folders are in the folder hierarchy

  • Strange behaviour of polling adapter

    Hi All, I have a strange situation where the database polling is not happening. Here is my use case I have a polling db adapter which picks up a record from the table and invokes a procedure on the same database instance with the same connection fact

  • Returns docs not posting to XI - SYSFAIL error

    We have a function module called BAPI_GODSMOVT_CREATE to pass return notes to SAP xi.. This program has scheduled to run everyday midnight.. But dud to some reason files were not getting transferred from SAP R3 to XI.. We checked in SM58 and in the s

  • Visual Studio Designer's property setting window

    How do I bring up the Visual Studio Designer's property setting window? I started WPF Application but the design with XAML code is too tedious. I want to set properties of controls with property window, not code. I can't see property setting window i

  • API needed to import the customer PAN No, TAN NO in the India Localization

    Hi, We need to import the customer PAN No, TAN NO and etc.., in the India Localization (Additional Information). Please assist me, is there any API available to import the above details. If any, please provide me the API Name ASAP. Regards Suresh