Changing prompt colour in oracle forms 6i to canvas background (solution)

One of the really infuriating things about Oracle Forms 6i (and possibly other versions) is that when you set a visual attribute for a item the prompt, as well ad field, takes that background colour. Seing it is common to have the field background white and the canvas background gray this is a paid. The following procedure sets the background colour for all prompts to the background colour of the canvas the prompts field sites on - i.e. it automaticaly sorts out the problem.
PROCEDURE lp_setup_prompt_colour IS
-- This procedure sets the background colour of all prompts to the
-- items canvas background colour
this_block varchar2(70) :=
get_form_property (name_in ('SYSTEM.CURRENT_FORM'), first_block);
last_blockname constant varchar2 (70) := -- Initialise current block to first block
get_form_property (name_in ('SYSTEM.CURRENT_FORM'), last_block); -- Define the last block
field_name varchar2(70); -- the name of the current item
this_item varchar2(70) := -- Initialise current item to the first item in the form
get_block_property (this_block, first_item);
last_field varchar2 (70) := -- Initialise last item to the last item in the first block
get_block_property (this_block, last_item);
canvas varchar2(70);
begin
loop -- Go through every item in the form
field_name := this_block || '.' || this_item; -- set the current item
canvas := get_item_property( field_name, ITEM_CANVAS );
if canvas is not null then -- don't bother if null canvas item
SET_ITEM_PROPERTY(field_name, PROMPT_BACKGROUND_COLOR,
GET_CANVAS_PROPERTY(canvas ,BACKGROUND_COLOR));
end if;
-- Stop looping once the last item in the form has been added to the list
exit when this_block = last_blockname and this_item = last_field;
if this_item = last_field then -- weve looped round and are back at first field
-- Step into the next block
this_block := get_block_property (this_block, nextblock);
this_item := get_block_property (this_block, first_item);
last_field := get_block_property (this_block, last_item);
else
-- Step to the next item in the block
this_item := get_item_property (field_name, nextitem);
end if;
end loop;
end;
also posted at http://www.gurtlush.org.uk/article.php?story=20040422141050964

Actually, this is a known bug - you should apply the latest patch.
Regards
Grant

Similar Messages

  • How to change image resolution in oracle forms.

    Hi Experts,
    I am working on oracle forms 10g (Windows7 OS). Can we get the image resolution of an image item in oracle forms? Can we resize the image in terms of resolution?
    I have a requirement where user can upload only 1280x720 size images. Either i have to validate the image resolution and give them a message saying 'Only 1280x720 size images are allowed' or simply i have to convert the image to be upload to 1280x720 size and save in the database. If someone could give the solution for the above problem that would be very much appreciated.
    Thanks,
    Pramod SR

    1. You need to resample.
    2. You can automate the process.
    1.
    Open one of the images.
    Go to Image > Image Size
    Set the units to Percent (100)
    Change the resolution to 300 ppi (not cm!)
    Make sure Resample is checked
    2. automation
    Test the above steps to make sure it works.
    Record the steps as an action.
    Make a droplet from the action.
    Drag the folder with the images to the droplet.

  • Set backgroud colour in oracle form

    hi all,
    can we set multiple back ground colour a single item in oracle forms in diffrent records?
    if possible then how please help me.
    Thanks

    Yes, its possible either using DISPLAY_ITEM or SET_ITEM_INSTANCE_PROPERTY using Visual attributes.

  • Oracle Forms 10G(tabbed canvasses not working the same as in Forms 6i)

    Hi everyone,
    I have a form which gets called from another form through a list of value. The called form(second form) has a group of tabbed canvases which get displayed depending on the parameters passed from the first form.
    The Form is working prefectly fine in Forms 6i but when I converted the same form in to forms 10G it does not seem to work the same way. The tabbed canvasses are not getting displayed. I am manually having to press the execute query to get data displayed in the tabbed canvasses. I checked the parameters that are being passed and they are the same as that in Forms 6i.
    Please let me know where my 10G Form is going wrong. Appreciate your help, please send me an email on [email protected]
    Thanks

    duplicate
    Re: Oracle Forms 10G not working as Oracle Forms 6i

  • Viewing Icons in Oracle Forms on the Web - any solutions?

    Has anyone had problems viewing icons when deploying forms on the web? In client server mode it used to be .ico files. I recently converted our files to .gif and added a register UI_ICON to recognize the icon images when running the forms. I still cannot get the images to appear (icons on buttons). Am I missing something? I am using Oracle Forms 6i Release 2 on Oracle9iAS (1.0.2.2.2a) platform.
    T.J.

    Read about registry.dat in this document:
    http://otn.oracle.com/products/forms/pdf/forms9icstowebmigration.pdf
    page 18.

  • How do I change style/colours on Oracle search?

    Does anyone know if it is possible to change the style of the Oracle search engine? I read on an earlier posted message by Paul Subacchi that in version 3.0.9 you will be able to customise the results page. Does this include the style and colour scheme>
    Thanks
    Kate

    Thanks Paul
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Paul Subacchi ([email protected]):
    Kate,
    Oracle have mentioned that an API is available to allow you to customize the search form but NOT the results page. Sorry.
    Paul <HR></BLOCKQUOTE>
    null

  • Can we changer record orientation on Oracle forms?

    Hi,
    I have a form that displays many records and it refreshes using a timer
    I need to display as many records as I can on the form, without the user having to scroll down, the maximum I can have at some point is 120 records. Now the records are displayed on the usual vertical behavior.
    I thought if we can reverse the orientation of the records and display them horizontally, we can have more room if we turn(flip) the display (the user will have a 46" monitor)
    my other question is, in case I could not fit all records in one screen, can the data scroll on the block without any user intervention, till it gets to the last record, and then it restart at the beginning?
    I hope my explanation is clear
    Thanks for the help

    Bloody hell, that is bigger than my flatscreen TV!
    You can scroll with next_record and when you get to the last record go back to the top with go_record(1).
    begin
      go_record(1);
      loop
         dbms_lock.sleep(1);
         if :system.last_record = 'TRUE' then
                go_record(1);
                exit;
         else      
            next_record;
            synchronize;
         end if;  
      end loop;
    end;To add: this works best if you have a current record visual attribute.
    Edited by: InoL on Jun 21, 2011 2:19 PM

  • How to manually change the colour of Windows 7's "MY COMPUTER" background.????

    My operating System is Windows 7
    When I click "My Computer" on my PC, It shows Windows default white colour. I want to change this default colour.
    Please HELP.
    [email protected]

    Hi,
    You should do it like this picture:
    Future is mine!

  • Oracle Forms crashes opening Canvas

    Hi
    I have a 10.1.0.2 database installed and Oracle BPEL 10.1.2.0.2 installed. I recently installed Developer Suite 10.1.2.0.2. I open Forms Builder, add a canvas to a new form, double click the canvas and Form Builder crashes. This happens everytime I do this. Has somebody experienced the same problem?
    Regards,
    Néstor Boscán

    It happened to me also some days back. If I press short-cut key to show the canvas, it will work fine. If you double click that, form will close.
    If there are many applications opened, this problem is occuring...[for us, this was the problem.After closing other applications, form works fine]
    Regards
    Priya

  • Master/Detail/Lookup functionality - ApEx and AJAX vs Oracle Forms

    I'd like to build a master detail form with some lookup functionality and have some of the fields automatically populated. I come from an Oracle Forms and PL/SQL background so I was hoping for some guidance in ApEx and Javascript for how to achieve the same effect.
    If you look at the default Sample Application (DEMO_APP), page 29 has the master record and the corresponding details on the same page.
    The functionality I'd like is:
    1) when a new product is chosen from the Product Name select list, I'd like the Unit Price to be populated.
    2) when the Quantity is updated, I'd like
    a) the Extended Price to be recalculated and
    b) the Order Total to be recalculated
    all before submitting the page. This is pretty trivial in Oracle Forms but I've had limited success with ApEx.
    I've been able to achieve 1) in a single record form but not a tabular form using the techniques from Scott's AJAX generator http://htmldb.oracle.com/pls/otn/f?p=33867:2.
    I've been able to achieve 2a) in a tabular form using the techniques from Vikas in this thread Tabular form with Ajax
    I haven't had any luck getting 2b) to work.
    So, is my wish list possible?
    If it is, I'd appreciate some pointers and/or code. I don't speak Javascript but I can copy and paste ;)
    Cheers,
    Bryan.

    Hi Carl,
    Ok, thanks for the tip - take a look at http://htmldb.oracle.com/pls/otn/f?p=24745 login as demo/demo and edit one of the top orders. This will take you to page 29.
    I've changed the 2.0 Sample Application to allow both the unit_price and the quantity to be overtyped. Each column has the 'Element Attributes' property set to onChange="calcTotal(this)" to call the javascript code.
    This recalculates the extended_price (feature 2a above) but the order total (or the report total) is not affected (feature 2b) - how can I change the code to achieve this?
    If I change an existing line item and choose another product from the select list, I'd like the unit_price and the extended_price to change appropriately (feature 1 above) - having to wait until after the form is submitted is not acceptable to my users.
    Thanks for taking the time to look at this - I really appreciate it.
    Cheers,
    Bryan.

  • Change the colour of the prompt and the value

    Hi,
    I have an Item MessageStyledText with some value on an OAF Page.
    By default the colour of the Prompt and the value of this Item are black.
    But i need to change the Colour to Blue.
    Fast response highly appreciated.
    Thanks,
    Palepu.

    Approach 1:
    Custom Look and Feel - Create your CLAF and change CSS Style.
    Limitation - The main limitation of the Custom Look and Feel functionality is that you can only extend Simple LAF or Base LAF, which do not include all the functionality of the Browser LAF (BLAF) or SWAN.
    Approach 2:
    You can do it programmetically as follows:
    import oracle.cabo.style.CSSStyle;
    CSSStyle customUnCss = new CSSStyle();
    customUnCss.setProperty("text-transform","uppercase");
    customUnCss.setProperty("color", "#FF0000");
    OAMessageStyledTextBean sampleBean = (OAMessageStyledTextBean) webBean.findChildRecursive("<Id of your messageStyleText will come here>");
    if(sampleBean != null)
    sampleBean.setInlineStyle(customCss); //set custom css style
    You need to provide more details to get more appropriate solution/workaround.

  • Oracle Forms 9.04 and Form Colours

    Hi i am fairly new to building forms, i having a problem where when i specify a frame colour to say red or blue, when the form is run in the browser it does not change colours, it stays the same green colour all the way through. I was wondering if anyone else has experienced this and found a work around. Many Thanks in Advance.

    The colors used by Oracle Forms are controlled by the pallet. Forms allows you to use a Default Pallet (no action necessary by the user) or you can specify your own pallet in the Forms Preferences (Edit => Preferences=> General Tab, Color Palette). More than likely you are dealing with a configuration issue. The Forms OC4J (running from your local machine) or Forms Server (deployed to an Apps Server) can't find the default.pal file in the your Delevoper Home. ( <ORACLE_HOME>\tools\common90 ).
    Hope this helps.
    Craig...

  • Oracle form 6.0, how to do 3D chart, calender,mouser over changing....

    oracle form 6.0, how to do 3D chart, calender,mouser over changing....in we form, like microsoft style.
    Or it's better use 9i or 10g jdeveloper? or other tchnology?

    The cpu resources are only limited once the cpu's are 100% utilized. It is highly unlikely that dom0 will try to use 100% of a cpu, let alone all cpus. Only when there are no idle physical cpus would you run into issues.
    You may want to try reducing the number of vcpus in the windows guest. I have seen reports from users claiming that having more vcpus in a windows guest causes it to run slower.

  • Is it possible to change the colour of the highlighted fields in a form? And if so how?

    Hi there,
    I would like to know how to change the highlighted fields that show up on a form once it has been designed and PDF'd. I know i can turn it on or off but i would like to just change the colour so it matches our styling of the company.
    Is there a way to do this and if so how??? If not thats fine i just need to know if there is a way.
    Thanks
    Jennah

    Hi,
    What do you mean by travel? Is that when it wont change all settings across the board? e.g another staff member with adobe acrobat wont have the same settings as i do?
    I am the only one creating the forms and using any adobe settings anyway so i guess it wont really matter that they dont have the same settings as i do but its not hard to change them on all pc's anyway.
    Thanks though.

  • On text change trigger in oracle forms 9

    I want to simulate on-text-change trigger similar to the one present in java and other programming languages.
    I need this trigger to be invoked when ever we change some text in the textfield.
    Is there any way to do this?
    I used two text fields to compare the last entered and newly typed based on a timer interval of 3secs
    But my problem is Oracle trims the spaces present in the textfield and also highlights the text present in textfield when ever I enter a space....
    Scenario : I want to use this trigger and refresh the search results based on the text present in the textfield.
    Thanks in advance

    To do the kind of thing you are talking about you will need to implment a Java Bean in your form listen for the changes. Take a look at KeyEvent Java Bean or the Oracle Forms PJCs-Java Beans web site for more information and examples.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

Maybe you are looking for

  • Tagging certain text in a textbox

    Hello, I am using Indesign with some scripting to build catalogue pages on the fly.  I've got it working really well, but another question has arisen and I'm not sure how to answer it. Each product has a single image and a single text frame describin

  • I ve lost my iphone last night, how do i get it back?

         while traveling by bus some body stolen my iphone 4S, when after 15 mins i realized i went back to the place where i had took the bus then i didnt find any clue, then i rushed to the police station and lodge a complaint then i blocked my mobile

  • Video Input choices

    I'm playing DVDs created on DVDSP from a laptop to a flatscreen HDTV. Which is the best option quality-wise (there's no VGA input on the TV): S-Video Component (Can you even do component from a laptop?) Thanks, Jonathan

  • Excise Values not appearing in MIGO

    Dear All, We are using tax procedure TAXINN. When I tried to create a GR doc with ref to a PO the excise values are not getting flown from my PO. I tried both in MIGO as J1IEX, but the excise values are not getting flown. Also please note that for th

  • How many types of transactions in ABAP

    How many types of transactions in ABAP