Set_va_property

How should I use it in order to change dinamically the visual attributes of my object? What I see is that that the va property is changed(testing it by get_va_property), but my object remains the same. Any suggestion?
null

You can use the display_item(item_name, va_name)built in but it has to be done for each item.
If all the items need to be changed to one visual attribute then you could use
set_block_property(block_name, current_record_property, va_name);
Hope this helps you.

Similar Messages

  • Change Background_Color with set_*_property doesn´t work with NLS_LANG UTF8

    Hi @all,
    we changed our forms from we8iso8859p1 to utf8 and now we noticed that changing of background colors from canvases, items etc don´t work anymore.
    I tried set_canvas_property, set_va_property, set_item_property.
    When I start the form with NLS_LANG: GERMAN_GERMANY.WE8ISO8859P1 changing the colors works.
    When I start the form with NLS_LANG: GERMAN_GERMANY.UTF8 changing the color don´t work.
    We use Forms Version 6.0.8.11.3.
    Are there any workarounds to change the colors when nls is set to utf8?
    Thanks
    Thomas

    Hi,
    I discovered following:
    - if name of OU in AD is without space (e.g. test,sample) so DN record is test\,sample and user is moved into this OU.
    - if name of OU in AD is with space (e.g. test, sample) so DN record is still test\,sample and user isn't moved.
    So problem is with empty space. How can I preserve space in DN name? I found something in documentation but I doesn't work for me.
    +Special Characters in FieldValues
    If you have a field value with a comma (,) or double quote (") character, or you want to preserve leading or trailing spaces, you must embed your field value within a pair of double quotes ("field_value"). You then need to replace double quotes in the field value with two double quote (") characters. For example, "John ""Johnny"" Smith" results in a field value of John "Johnny" Smith. +
    (from IDM Business Administrator's Guide, p.77)
    Guided this information I put value of slctOrganizationalUnitUzivatele into "". But this didn't work. Is good idea to have space in DN?
    Thanks for help.
    Petr
    Edited by: petrklinkovsky on Sep 10, 2009 5:06 AM

  • Color of a frame

    Dear fellows,
    I want to change the color of a frame programmatically. How can i do it?
    Is it possible to change the background color of your frame through code? If yes then how? I am using forms 6i.
    Please help.
    Mirza Imran Baig

    Hi,
    Basically, the way to change a color programmatically is to use one of the SET_..._PROPERTY commands.
    Parameters are <element ID>, <property name> and <value>.
    <element ID> is text (the name of the element) or ID (which you can get with a FIND_... command, depending on the object).
    <property name> is like BACKGROUND_COLOR, ...
    <value> has to be of RGB type, but it seems that the values are not in percent, but from 0 to 256 !!
    i.e. White color is r256g256b256 if you set it programmatically, but it's r100g100b100 if you set it directly into an object property. Dunno why.
    Exemple to change the background color of a visual attribute:
    declare
    attribute_id Visualattribute;
    begin
    attribute_id := Find_VA('myVisualAttribute');
    set_va_property(attribute_id, background_color, 'r0g256b0');
    end;
    Hope it helps...

  • About the canvas color

    Hiii,
    i had made a visual attribute,
    changing the background color property at runtime by set_va_property().
    suppose i am changing the background color value R0G0B100 by set_va_property().
    when this value set at design time of visual attribute gives exact color.
    when this value set at runtime gives different color.
    i am using forms6i.
    Thank's in advance

    > I'm confused here. Sandeep wants to use a different shade of color than a straight 255 blue. What if Sandeep wants to use a gray that is r128g128b128?
    <p>I don't understand why Sandeep cannot use the full range of colors. He did not explain what happens. But that reminds me... there IS a Forms bug where at some versions, the runtime stops translating the color changes, and reverts back to using colors only from the color palette. Oracle knows about it, but is taking forever to fix the problem.
    <p>There is also a Windows screen display setting where the blended colors will not display -- If you use a 256 colors setting, the result will be solid colors, or something worse with Forms runtime.
    <p>If you want to experiment with color shades, you can download my Color.fmb form. It even has a pl/sql translation function to convert (both ways) the 0-100 Forms Builder colors into 0-255 actual color settings used at run time. The Color.fmb form is aware of the Forms bug, and issues a message when the run time stops displaying colors correctly.

  • Visual attribute creation at runtime.

    hi all,
    can i create a visual attribute attribute and set its properties at run time.
    please help me.
    thanks
    Muhammad Nadeem
    [email protected]

    As per my knowledge we can’t create any object at runtime, but object properties can be changed anytime
    Mr. Francois is right you can create some visual attributes at design time and set its property at runtime using SET_VA_PROPERTY built_in
    Good luck
    Ayaz.

Maybe you are looking for

  • String problem in web tutorial

    HI, I tried to create the web tutorial, the first step, that is to put a label, text field, button and static text. This line is my problem in the helloButton action "String name= (String)nameField.getText();" I am not sure where a static text field

  • Internal table with variable no of columns

    Hi All, I have to create an internal table with some fixed columns and rest of the table should be dynamic. The total no of columns depends on a field of some other table. hence, the number of columns of the table are unknown. How to create such a ta

  • Leaving excel Inplace, the excel session is still active

    I all, I use the Excel Inplace method to format data in PivotTables. I use a template based on sap_MM.xls with the procedure Public Sub ALV_CUS_Exit (). It is working correctly. My problem happens when I leave the transaction and return to the initia

  • Using third party jars with Oracle Business Rules

    Hi I am working on Oracle AS 10g release 2. We are using Oracle Business Rules in integration with Oracle BPEL. While using third party jars however, Oracle Business Rules end is facing errors. Error during unmarshallingProvider com.sun.xml.bind.Cont

  • Application Server 8 won't start on Solaris 10

    I used the JES installer installed the application server ... no errors but when I try to start the app server I get this # ./asadmin start-domain domain1 Starting Domain domain1, please wait. Log redirected to /var/opt/SUNWappserver/domains/domain1/