Backgroung color of displayed item

Hi,
I want to set the backround of an item accordig to its canvas background.
I was trying:
canvas_color .= := get_canvas_property('CANVAS_NAME, background_color);
set_item_property('BLOCK.ITEM_NAME', background_color, canvas_color);
This does'nt work successfuly as canvas background property is set to <default>, and get_canvas_property returns is null
Do you have any suggestions of how to overcome this problem?
I don't want to solve this problem by assigning a real rgb value (as mentioned eg in background color of display item )

Hi
I do not know perhaps following code will help to
solve your problem.
1.You have to create a VISUAL_ATTRIBUTE and define the
background color
2.Use this little example.
DECLARE
cn_id CANVAS;
BEGIN
cn_id := FIND_CANVAS('canvas2');
SET_CANVAS_PROPERTY(cn_id,VISUAL_ATTRIBUTE,'MY_VISUAL_ATTRIBUTE');
END;

Similar Messages

  • Change the color of the text in Display item

    Hi friends,
    Can I change the color of the text of text item or display item
    Regards,
    Fateh

    on the html form element attributes add for example
    style="color:red;"Edited by: DanielB on Feb 20, 2012 12:33 PM

  • Displaying items in different colors in a List component

    Hi.
    How can I make each label of an item in a List component
    appear in a different color? I can change the color of the items in
    the list, but I want the items to appear in different colors...
    Thanks,
    - Yuval

    Hi.
    How can I make each label of an item in a List component
    appear in a different color? I can change the color of the items in
    the list, but I want the items to appear in different colors...
    Thanks,
    - Yuval

  • Display item visual attribute

    Hello.
    Is there a way to use set_item_instance_property on display item?
    Or change font color of disabled text item?
    Thanks.

    Set_item_instance_property is the new built-in. Don't use the old display_item. Help says: "Maintained for backward compatibility only."
    Use the new one. There are all properties in the built-in you need for changing the visual attributes.
    try it
    Gerd

  • Transparent Background for a Label/Display item

    I'm using Forms 10g.
    I'd like to make the background of my labels (display items) transparent. i.e. it should be the same colour as the canvas (eg teal) instead of the ugly white default background.
    Can anyone help?
    Thanks,
    Abigail
    Edited by: Abigail Parmar on Mar 11, 2009 9:47 AM

    Wait a minute! Abigail is not really asking for "transparent" background. All you need is for the background to have the SAME background color as the canvas.
    All of our forms have that feature. Display-only fields have same background color as the canvas, update items have a white background, and the item where the cursor is located gets set yellow.
    We do it with property classes and visual attributes. The canvas is assigned a Visual Attribute = "WINDOWBACKGROUND", and display-only fields are assigned a Visual Attribute of "DISPLAYITEM". Both visual attributes are assigned the same background color, with the foreground (text) color black and navy respectively.
    We have mouse-click processes that allow the user to change the screen background color from the default to something they might like better. That process just changes the background color of the two visual attributes, and both the canvas and all the items' background colors change together.

  • Disappearing text in display item

    Facing a silly problem whereby text in a display item, which is populated automatically through the new form trigger disappears mysteriously when run on the web. The text appears fine in client-server mode. I have tried changing background colors for the display item and text color too.... in vain. But I can see that the display item is present, it is the text in it which is missing.
    Any ideas?

    Hi,
    A couple of options. Create a timer and write a pl/sql procedure which will do all those things for you, like changing background/foreground colors of your text/display item and replacing text imitating its movement. Or use image item instead with animated gif or something.
    Regards,
    Andrew Velitchko
    BrainBench MVP for Oracle Developer
    http://www.brainbench.com

  • Movement of message text in Display item

    Hello Dears,
    How i can blink message text in Display item and movement of message text from right to left and left to right in the Display item please share with me your valuable knowledge it is urgent.
    advance thanks.

    Hi,
    A couple of options. Create a timer and write a pl/sql procedure which will do all those things for you, like changing background/foreground colors of your text/display item and replacing text imitating its movement. Or use image item instead with animated gif or something.
    Regards,
    Andrew Velitchko
    BrainBench MVP for Oracle Developer
    http://www.brainbench.com

  • Display Items not gray?

    I'm trying to run some older forms on 9i via JInitiator. I've found that the un-editable Display Items show up with a white background, identical to the editbable Text Items. The readOnlyBackground parameter has no effect.
    I've tried to reproduce this in a simple form, but ran into a problem. The fields in the older forms have a bacground color of <Unspecified>; yet I can't create a field with an unspecified color in either Forms Builder 9i or 6i.
    Any ideas, besides manually setting the bg to gray in every form?

    Two options as that I see,
    1. create new items
    2. use visual attributes
    Frank

  • Javabean for colorpicker to select color for form item

    1- copy the colorpicker.jar in your /forms/java directory
    2 - update the archive and archive_jini tags of your /forms/server/formsweb.cfg file:
    archive_jini=frmall_jinit.jar,colorpicker.jar
    archive=frmall.jar,colorpicker.jar
    3 - in your form, add a Bean Area in a block - bean name = 'bean'
    4 - initialize the bean in a When-New-Form-Instance trigger:
    FBean.Register_Bean('block.bean',1,'oracle.forms.demos.beans.ColorPicker');
    5 - pick the color anywhere you want:
    PROCEDURE PickColor(pvcTarget in VARCHAR2) IS
    vcColor VARCHAR2(11 char);
    BEGIN
    -- now display the picker with that color as an initial value
    vcColor := FBean.Invoke_char('block.bean',1,'showColorPicker','Select color','');
    END;
    I will follow these steps and colorpicker is shown but i want to select the color for form item such as text item , canvas etc.
    I want when i select the color from colorpicker that color is assign to that item. such as changing the background color and foreground color of text item.
    I need help about this.
    How i solve this problem.
    need code.

    Hello,
    Once you get the color, you can apply it to the item with the Set_Item_Property() built-in (see the online doc).
    Francois

  • Display a database item on display item

    please i have a varchar database item and i want to display the last item in this field on a display item what should i do and i used the row id to get the last value but it didn't work

    Still not clear what you are trying to achieve...
    it is just a non database item that i want to view the data in the database item in itIf it a "non database item", how can it have a relationship with a database value?

  • ALV report i want to display in each P.O , i want to display item details

    Hi all,
    in alv report i want to display in each P.O , i want to display item details. is it possible without hierarchical display.

    hi,
    once you retrive po number from ekko then retrive data from ekpo and loop at ekpo and append all the item details to your internal table.

  • Portlet Item Attr: "Link That Displays Item in New Browser Window"

    I have been searching the forums for a similar experience, but haven't found anything quite like this:
    I have a couple of portlets. One is a Discoverer Portlet, the other is something more basic: The "Developer News" portlet from the 9iAS Community portlet provider.
    After defining the portlets and looking at them, I edit the page and click the Edit button (little pencil) to edit the attributes.
    There are radio buttons for Display Options.
    One option is: "Link that Displays Item in New Browser Window."
    When I select this, OK, and then go back to the page, **the portlet doesn't show at all any more! There is no link, no nothing. Note that I have defined a Display Name, which should be the text for the link.
    It would seem that this feature flat out doesn't work.
    This technique for a popup works fine for an "Item" defined in an item region.
    Anyone?

    Yes -- I did do that after reading an article on metalink about such issues.
    This actually changes the problem.
    When I add the "Display name and image link" attribute to the region, I now do get a link.
    However, clicking it brings up an undefined Discoverer portlet.
    It works great for non-Disco portlets. For instance, I was able to pop up the "Developer News" portlet from the Oracle 9iAS Community portlet provider.
    I think the problem is that the link that Disco produces does not provide enough information to bring up the particular portlet. For instance, the URL does not have the workbook name, the worksheet name, the parameter values, etc.
    If anyone uses Disco w/ the portal, I would be curious to hear if anyone can reproduce this apparent bug / limitation.

  • Displaying items in a single line in ALV grid using  ALV_TOP_OF_PAGE.

    Hello Guys,
    I am having a problem in displaying items in a single line in the ALV Grid using event ALV_TOP_OF_PAGE.
    My requirement is to group items on a single line i.e. in the example below, Vendor code and posting date are on the same line. The next line the prints Vendor Name and Document no.
    Vendor Code: 123123                               Posting Date : 01.01.2011
    Vendor Name: ABCD                                 Document No: 152246598.
    Here is my code in subroutine 'ALV_TOP_OF_PAGE', 
      wa_list_comments-typ = 'S'. 
      wa_list_comments-key = ''.
      wa_list_comments-info = 'Vendor Code'.
      APPEND wa_list_comments TO it_list_comments.
      wa_list_comments-typ = 'S'. 
      wa_list_comments-key = ''.
      wa_list_comments-info = 'Posting Date'.
      APPEND wa_list_comments TO it_list_comments.
    The above code prints in the following format i.e one below the other,
    Vendor Code: 123123                              
    Posting Date : 01.01.2011.
    I also tried using HTML_TOP_OF_PAGE, but it didn't work.
    Can anybody please help me out with this.
    Regards,
    Danish.

    Hi Danish,
    Your problem is with the alignment and you need some fix positions .
    The solution i feel is u can use as below :
    In CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    use 
    i_callback_html_top_of_page       = 'HTML_TOP_OF_PAGE'.
    Now on calling routine call use cl_dd_document class :
    FORM html_top_of_page USING document TYPE REF TO cl_dd_document .
    data : doctable TYPE REF TO cl_dd_table_element,
              col1_t1 TYPE REF TO cl_dd_area,
              col2_t1 TYPE REF TO cl_dd_area,
              col1_t2 TYPE REF TO cl_dd_area,
              col2_t2 TYPE REF TO cl_dd_area.
    add quick table with five columns
        CALL METHOD lw_document->add_table
          EXPORTING
            no_of_columns               = 2
            border                      = '0'
         cell_background_transparent = ' '
            width                       = '100%'
          IMPORTING
            table                       = doctable.
    Filling columns in row
        CALL METHOD doctable->add_column
          EXPORTING
            width  = '40%'
          IMPORTING
            column = col1_t1.
    Filling columns in row
        CALL METHOD doctable->add_column
          EXPORTING
            width  = '60%'
          IMPORTING
            column = col2_t1.* Filling columns in row
    Call method doctable->new_row.
        CALL METHOD doctable->add_column
          EXPORTING
            width  = '40%'
          IMPORTING
            column = col1_t2.
    Filling columns in row
        CALL METHOD doctable->add_column
          EXPORTING
            width  = '60%'
          IMPORTING
            column = col2_t2.
    *Now adding the texts
    lw_text1 = 'your first text'
    CALL METHOD col1_t1->add_text
          EXPORTING
            text = lw_text.
    *Similarly add text for other columns
    *Adujust % in width to adjust the column as required
    Endform.
    Hope this will solve your problem .

  • HOw to change the color of an item

    Say i want to change the background color of an item when it is selected. How to do it?

    And use a Post-text-item trigger to set the color back to its original:
    DISPLAY_ITEM(:SYSTEM.TRIGGER_ITEM,NULL);
    Unfortunately the PTI trigger does not run on List Items , so you might need special code to set those fields back to their original color.

  • How to add a display item like the one in 'Invoices screen' please ?

    The label operating unit is in a folder like feature . Is this a display item/ a folder ? I need to add the same thing as label . Thanks .

    twinklin_girl wrote:
    I figured out it's a folder. How to add folder functionality to a customized form please ?Please see the following docs/links -- Search for "APPFLDR"
    Customization in Oracle Applications [ID 743490.1]
    http://docs.oracle.com/cd/E18727_01/doc.121/e12897/T302934T302936.htm#d0e750
    http://docs.oracle.com/cd/E18727_01/doc.121/e12900/T458979T458984.htm#I_bx2Dlib
    Folder Functionality in custom form
    https://forums.oracle.com/forums/search.jspa?threadID=&q=APPFLDR&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

Maybe you are looking for

  • Error message when trying to view/print Crystal reports in B1

    I get the following Error message when trying to view/print crystal reports in SAP B1/Crystal Reports Integration Tool for SAP Business One:    " Could not load file or assembly 'Crystal Decisions Windows Forms, version=12.0.2000.0, Culture=neutral,

  • Oracle Forms and Oracle Reports interation  without Oracle Portal

    Hi to all Can I integrate the application developed in Oracle Forms and Oracle Reports without Oracle Portal with Single Sign On. and if yes then how? and if no then why? I use 9iAS relese 2 installed on machine 1 Oracle Database installed on machine

  • Help with recurring paper jam on psc 2410

    My printer is an HP psc 2410 all in one photosmart and I get a recurring paper jam.  The paper stops feeding half way through and I get a message that the printer is out of paper.  When I open the back, I see that the paper is half way through and I

  • I am unable to download ANY software updates whatsoever...

    I am unable to download any software updates, whether it be Microsoft Office, Adobe or Apple updates. I run the update and I always ultimately get a message that there was an error (unspecified) and the update (du jour) could not be downloaded. I'm r

  • Smooth transition between frames

    Hi.  Say If I have an animation which runs to frame 80 and the loops.  On a button press, it goes to frame 81 and continues from there.  Currently, when the button is pressed, there is a very noticable jump from the current frame to frame 81.  The lo