Gettng item property - prompt visual attribute

have set the prompt visual attribute to 'ACTIVE_COL'
SET_ITEM_PROPERTY ('TEST',PROMPT_VISUAL_ATTRIBUTE, 'ACTIVE_COL')
but when I try to get the value back it return 'CUSTOM'
GET_ITEM_PROPERTY ('TEST',PROMPT_VISUAL_ATTRIBUTE)
Why???

I have overcome this problem by setting item property in form design to 'ACTIVE_COL' then change it back to 'DEFAULT'
it works fine.

Similar Messages

  • Setting Prompt Visual Attribute Group

    Hi,
    i'm trying to set the prompt visual attribute for a text item is the Forms Builder 6i patch 5. The only available choice is default. I'm using a named visual attribute for the text item and it's working just fine.
    thanks.

    Sorry about this one. I've forgot to change the visual attribute type for prompt.
    thanks.

  • About visual attribute

    1)I create a va object VA1, It is prompt type!
    and it's prompt foreground color set as "BLUE"
    2)Then create a text item TEXT1.
    It's prompt foreground color as "red"
    3)At runtime,
    I run :
    set_item_instance_property('TEXT1',CURRENT_RECORD,VISUAL_ATTRIBUTE,'VA1');
    4)RESULT:
    Item's foreground color changed to "BLUE"
    But not item's prompt text!!!
    Is it a Bug???

    I know use set_item_property can get it.
    what i really meant:
    I use one prompt visual attribute with prompt foreground color property.
    Then set_item_instance(...).
    Because va is prompt type,I think it will changed item prompt foreground color,not item foreground color.
    But result changed item foreground color.
    It is right?

  • Visual Attribute

    Dear Experts,
    I have two Items. Now, when I type 'A' in 1st text Item, then automatically visual attribute of the 2nd display Item should be changed to 'RED' (e.g.). The 2nd dispaly Item will return the same value as 1st text item(i.e. 'A').
    Note: I have just type 'A', My cursor is still in 1st text Item. It is not in 2nd item(display)
    I wud much appreciate if anyone help me out on this.
    Thanx in advance.
    Bhaveh

    I am now rather confused as your second message appears to be different requirement to your first.
    The method I had in mind is to make your item1 length one and with AUTOSKIP on.
    WHEN-VALIDATE-ITEM on item1
    :item2 := :item2||:item1;
    WHEN-NEW-ITEM-INSTANCE on item2
    set_item_instance_property('item2',current_record,visual_attribute,'red');
    -- Put Any other code here you want to fire after each character
    :item1 := null; -- makes room for next character to be typed.
    go_item('item1');
    Thus the cursor appears to stay in item1 where any number of charcters can be typed, although they appear in item2. The trigger on item2 fires after each charcter and can be made to do whatever you want.

  • Visual attributes of disabled item. plase help

    I have a form where when i disabled an item, this item item became unreadable, the font has blanc shine and when changing visual attributes property, can not find how to fix it. Do you have any idea? Thank you very much for your help. Thnaks.

    Thanks, i think of this but the items are mainly checkbox and radio button, i need to keep enabled to false.
    But would like to know is it possible to change the default visual displaying of disabled items?
    Edited by: Tabit7 on Jul 18, 2011 9:41 AM

  • Differences between Property Classes and Visual Attributes

    Hi folks
    Can anybody know the exact difference between a property class and a visual attribute?
    I'm substantially good at Forms but doesn't know the exact difference.
    Any reply will be deeply appreciated.
    Cheers,
    PCZ

    Visual Attributes are only for the visual representation of your items, buttons, blocks, canvas, ...
    Property Classes are for inheriting all objects including visual attributes.
    If you create a style guide for your company, then first define the visual attributes for the look and feel. After that create property classes for all of the other objects in your application. On top of that create object groups, where you centralize your property classes and visual attributes.
    If you have created such a form, then call this form reference-template. Now you inherit the object-groups to a second form and call this form "template".
    If you create new forms, copy the template and rename it. Then you have in all your forms inherited visual attributes, property classes, etc. and all this stuff is in one "reference-template"
    try it
    Gerd

  • How to use visual attribute property for the tab canvas

    Hi all,
    i wanted to use set_tab_page_property ,and a visual attribute property for that
    respective tab page .
    but is saying to many declarations to match up . how will i able to do that.
    can any one helip me out ...
    example....
    i wanted to set the page name (just name of the tab page) red color when i query the form under some conditions .
    can anyone help me out in this.
    thanks in advance
    vardhi

    Hi all,
    i wanted to use set_tab_page_property ,and a visual attribute property for that
    respective tab page .
    but is saying to many declarations to match up . how will i able to do that.
    can any one helip me out ...
    example....
    i wanted to set the page name (just name of the tab page) red color when i query the form under some conditions .
    can anyone help me out in this.
    thanks in advance
    vardhi

  • Visual attribute for current item

    How can i set the visual attribute of the current item in multi block form so that when user navigate through item in a form its background colour is changed and user can easily trace where the cursor is ?

    1- I have three list box on the form as well so whether post-text-item works over therei have no issues with this and it is working fine in my forms list box
    2- and i have 3 datablock among which 2nd and thid datablock is multirecord datablock where i set current record visual attribute so what is the behaviour @ run time either current record Visual attribute override current item VA or it works fine
    it is working perfectly in multi record also..you need to remember in post text trigger use the same visual attribute used for current record visual attribute

  • 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

  • Reg: visual attribute for list item

    hi frs,
    i have created a listitem i have used
    APP_ITEM_PROPERTY2.SET_PROPERTY('list4',VISUAL_ATTRIBUTE, 'color');
    in keylistval Trigger.
    when i select one particular item in the list it should have background color mentioned in the VISUAL_ATTRIBUTE 'color'.
    but what is happening is when i select one particular item visual attribute is set to all items in list.
    why it is so?
    how can i solve this problem.
    any one help pls.
    Thanks
    Rajesh

    1- I have three list box on the form as well so whether post-text-item works over therei have no issues with this and it is working fine in my forms list box
    2- and i have 3 datablock among which 2nd and thid datablock is multirecord datablock where i set current record visual attribute so what is the behaviour @ run time either current record Visual attribute override current item VA or it works fine
    it is working perfectly in multi record also..you need to remember in post text trigger use the same visual attribute used for current record visual attribute

  • How can Highlight a text item with Visual Attributes

    DEAR ALL,
    I have an emp_dept_date block and in that block there are item by the name of to_dates in tabular form there are many dates display when user double click on the current date or any date it show the data of that date in the next block. i want to create a (when button pressed) in my Control Block that when button press the current date color changed automatically so for that what should i wirte in when button pressed.
    Thanks for your cooperation
    Regards,
    Kamran J. Chaudhry

    the is for first item in a block
    Set_Item_Instance_Property('emp_dept_date.to_date', CURRENT_RECORD, VISUAL_ATTRIBUTE,'date');
    this is for second item in a block
    Set_Item_Instance_Property('emp_dept_date.DAILY_ID', CURRENT_RECORD, VISUAL_ATTRIBUTE,'date');
    (emp_dept_date) is block name
    (to_date & daily_id) is an item name
    date is an visual attribute name which we create our self to define a color we want to change for the items we want to.
    these both visual attributes will solve the when we click when button pressed in that change the color of the items in the block you want to change
    Message was edited by:
    Kamran J. Chaudhry

  • Partially apply a visual attribute to an item

    Is there any way to partially apply a visual attribute to an item?
    Currently, I do not have commas for my number formats and of course, now it is required. I am limited for space and adding the comma's will cause design layout issues. I was trying to think of another way to accomplish this -- red999,black999,red999,black999.99
    Any other suggesions or work arounds?
    Lesson learned ;)
    TIA

    Sorry if I was not clear. The colors would represent the positions that would be between the commas so the user could identify, lets say, between 1000.00 and 10000.00 or 1000000.00
    I was just wondering if there was a way to do this or if others have had similiar situations and may have other suggestions for a work around without having to go back and adjust my layout.

  • Changing current visual attribute property for the entire application

    Hi All.
    I want to change the current visual attribute color of my form at the application level, reason being i don't want to generate all the forms again from scratch.
    I know that we can change this using visual attributes but is there a way to change this through some form setting?(Oracle 10g)

    I know that we can change this using visual attributes but is there a way to change this through some form setting?(Oracle 10g) There are two settings in the formsweb.cfg that could help, but only if all of your foreground and background color settings are set to Undefined. The settings are: lookAndFeel=Oracle and colorScheme=<Choose Scheme> where "Choose Scheme is one of the following scheme's: Teal, Titanium, Red, Khaki, Blue, BLAF, SWAN, Olive, or Purple. The default is Teal.
    The fact that you are using a Visual Attribute for your Forms application color scheme tells me that you are not using the default "Undefined" color setting so changing the *colorScheme* setting will _not_ have the effect you want.
    Since you are using Visual Attributes (VA) to define colors, you will need to change the colors in your VA and then recompile your forms for the changes in the VA to be inherited in your forms. Sorry, that is just the way Forms works. Recompiling all of your forms due to this type of change is not that uncommon and is fairly painless if you have a shell script or batch file that compiles all of your forms for you. There are numerous posts in the forum about how to write a script that will do this, so if you don't have a script yet you can search forum for more details.
    The other option would be to build your own routine that would allow you to read an environment setting or pass the setting in the URL to select a color scheme. Then create a group of Visual Attributes used by these color schemes and apply them in each Form's Pre-Form or When-New-Form-Instance triggers. This is a lot of work, but it would give you the flexibility to change your application's color scheme without having to recompile your forms.
    Having said this, it begs the question - why not just use Oracle's predefined color scheme's or use the *lookAndFeel=Generic* setting so the user's desktop color scheme is inherited by your application.
    IMHO, Visual Attributes are best used to accent an application rather than define their _full_ color scheme. For example, I use VAs to highlight the current record and current item as well as highlight required items.
    As for using "JDAPI" as *WoMo* suggests is a design-time tool - not a runtime tool. Using JDAPI would require you to know Java and you will still have to recompile all of your forms using this tool.
    Craig...

  • Check box item visual attributes

    Hi,
    I set an item visual attributes like below
    background color gray15
    Font weight demibold
    Font style Plain
    Font spacing Dense
    But when executing the form this check box item does not appear clearly, it is not readable, could you suggest me some visual attributes setting to make a check box item more readable?
    Thanks you very much.

    I think the problem is related to enabled of set_item_property of this item when it is set to property_false, the enabled property_false does not allow the visual attributes setting to display the item more readable, do you have any idea to display the item more readable when enabled is set to property_false?
    Thank you very much for your suggestions.

  • Item property does not overrides block property ?

    I have CURRENT RECORD VISUAL ATTRIBUTE set to SOMETHING for block A. i also have CURRENT RECORD VISUAL ATTRIBUTE for item AA in block A ( A.AA) . but when i run form, it looks like item AA's CURRENT RECORD VISUAL ATTRIBUTE is not in effect ?
    usually item's property should override block property. but it'snot happening here.. can anyone figure out??

    Set_Item_Instance_Property is a more specific control, so Set_Item_Property logically should not change it.
    Create two package variables defined in a package specification in the form, trig_item and trig_record.
    Change your WBP trigger:
    Set_Item_Instance_Property(Pkg1.trig_item,Pkg1.trig_record, VISUAL_ATTRIBUTE,'');
    Pkg1.trig_item := :System.trigger_item;
    Pkg1.trig_record := :system.trigger_record;
    Set_Item_Instance_Property(Pkg1.trig_item,Pkg1.trig_record, VISUAL_ATTRIBUTE,'SET');
    Actually, a When-New-Item-Instance trigger might be better than the WBP trigger, so the same action would occur no matter how the cursor is moved around your form (Using Enter or Tab, or shift-Tab, or scrolling).

Maybe you are looking for