Defining global Visual Attribute groups

Hi,
We are currently in the process of moving our forms application from Oracle 6i (client/server) to 10g Webforms (we do not use the designer). The application consists of close roundabout 400 windows.
In the 6i version we declared some global Visual Attributes in a resource file via the Oracle Terminal program. Now that we moved the forms to 10g these visual attributes groups are missing and its making certain functionalities fail like for example highligting query mode.
My question is how do we most easily incorporate the missing visual attributes into all the webforms ?
Kind regards,
Bo

As the number of forms is quite large for manual processing, even if the solution already provided is adequate. You may use the Oracle Forms API to automate the task. Theres the ORCL Toolbox applications in top of that API that may help You.

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.

  • Visual attribute through get_item_property

    Hi People,
    I use forms 10g.While designing the form I wish to assign VISUAL ATTRIBUTE property for my TEXT_ITEM.So i tried wrinting the following code in WHEN-BUTTON-PRESSED of a push button.The code as follows,
    declare
         vlbl varchar(20);
         vatt varchar(20);
    begin
    vatt:=get_item_property('VA7',visual_attribute);
    vlbl:=     get_item_property(':block3.TEXT_ITEM6',vatt);
         end;But it shows me an error as,
    FRM-40105: Unable to resolve reference to item.
    Pls can u help me how to assign the Visual Attribute through get_item_property.
    With Regards
    VIDS

    I tried the same but I am getting FRM-41011: Undefined Attribute.Yes, because you are trying with the visual attribute group property and as i check the GET_ITEM_PROPERTY help it should have work. But also the same error as you mentions Undefined Attribute.
    I also checked the value returned by get_item_property('VA7',visual_attribute) using message which is 'CUSTOM' Yes, it is returns the CUSTOM either you specify the visual attribute group or not.
    So in this case the GET_ITEM_PROPERTY is returning "the name of a logical attribute defined in the resource file" is what I feel.I guess.
    Any idea how "the name of a named visual attribute" can be obtained.The task as the code is looking can be achieved by the following code.
    DECLARE
      vAttribName VARCHAR2(100);
    BEGIN
      vAN:=GET_ITEM_PROPERTY('ITEM_NAME',CURRENT_RECORD_ATTRIBUTE);
      SET_ITEM_PROPERTY('ITEM_NAME',CURRENT_RECORD_ATTRIBUTE,vAttribName);
    END;So, it will set the current record visual attribute property dynamically by the code.
    Also would like to know about resource file? What is it.Well, did not get experience about this matter. And haven't tried before. But maybe documentation will help.
    -Ammad

  • 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

  • Current Record Visual Attribute

    Hallo,
    In a Dev.2.1 Form I have defined a Visual attribute (VA01 - black on yellow) and then in a Data Base block I have assigned VA01 to the 'current record' property.
    One item of that block is not a Data Base one. When I scroll the rows of the Base Table only this item isn't affected by the current record visual attribute, i.e. it remains "black on white".
    Anyone kwnows why ?
    Thanks in advance.
    Dino.

    The 'Current record Visual attribute' property of that block is already set to VA01. The point is that all of the items of that block iherit the attribute, except the one I said, which doesn't belong to the base table. I ask if this behaviour is normal, and how to do to have also this item to be affected by the same visual attribute !
    Thanks.

  • Changing row's visual attribute

    Hi,
    I am populating a multi block record with a cursor, i have a field called read which holds value Y or N, if the value is Y then do nothing and if the value is 'N" then make that entire row in bold fonts. for this i have created a visual attribute group having its foreground font weight as "BOLD' i know what to do , but i dont know where to do it,,item level,block level or form level and in which trigger should i use it?.am using forms 6i.please suggest some methods to do it.

    Hi,
    Just for additional reference, to set a visual attribute to the active record, find the data block node, the selected block, open the block properties, scroll to find the "Records" sections and change the property "Current record visual attribute group"
    cheers,
    Hugo

  • Applying visual attribute to record dependant on value

    hi guys, i have a form which when queried can show 10 records at a time. What i want to do is that if a certain date field is less than the current date then apply visual attribute group to that whole record (which makes the record red).
    I assume such code would go in post query and i would need to use row id or something?
    or am i approaching it the wrong way.
    Thanks

    Yes, you can use the Post-Query trigger for this. You don't need to worry about the rowid as Forms will already know which record is being evaluated. Your code would look something like the following:
    /* Sample Post-Query trigger */
    /* This sample assumes you have created a Visual Attribute called "DATE_RED" */
    BEGIN
       -- Just compare DATE not DATETIME
       IF ( Trunc(:BLOCK.CERTAIN_DATE) < Trunc(SYSDATE) ) THEN
          Set_Item_Instance_Property('BLOCK.CERTAIN_DATE',CURRENT_RECORD, Visual_Attribute, 'DATE_RED');
       END IF;
    END;You will notice in my code sample that I am using the TRUNC function on the dates. This function will return just the date so the compare looks at just the date. If you need to compare the date AND time, then simply drop the TRUNC function from the code sample. ;)
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • 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...

  • About Visual Attributes

    1.can we create visual attributes dynamically like record groups.
    2.In forms there is any bulit in which gives the RGB format of particular color,i want to change background color at runtime.
    set_canvas_property(:system.mouse_canvas,BACKGROUND_COLOR,'darkred');
    how i can change the background color of canvas at runtime.
    thank's in advance

    Though you can not create the va at runtime, if you know the possible combinations or may be 10 visual attributes, u can create in the form and set it dynamically at run time. (set_item_property )
    Having said that you can not have any Visual attribute for a canvas. You can have only property class. VA is for text items... PC can not be set at run time.
    Best Regards
    Rajesh Alex

  • Travel management-- Control Parameters for Travel Expenses-- Define global

    We have setup provision variants for:
    India, UAE, Africa (since travel expenses in these countries need to be settled in the local currency).
    For each of the above variants, we have done the following settings in IMG node:
    Travel management-->Control Parameters for Travel Expenses --> Define global setting
    I have selected the respective country for the "Country grouping" field. i.e. for India Variant, it is set to India and similarly for UAE etc.
    Is this correct? What is the impact if in India variant this field ("Country grouping) is set to UAE?

    hi
    the settings which you set is right.
    you will have inconsistency between the settings you made in the other areas.

  • Attribute group for user?

    Hi all,
    We're trying to migrate user data from an LDAP server to Active Directory running on Windows Server 2012.    Besides users objects, there are multi-value attribute "groups" objects in the LDAP server and I've no idea how to migrate to
    AD, e.g.
    For user uid=123456 who is a student with double major, there exists 3 objects for this user:
    1. the user object, contains: uid: 123456, name, contact, etc...
    2. 1st major object, contains: uid: 123456, major: Mathematics, year of attention (2010), faculty: Science
    3. 2nd major object, contains: uid: 123456, major: English, year of attention (2011), faculty, Arts
    Would anyone please help?   Thanks a lot.
    Regards
    /ST Wong

    So group objects can be a bear, primarily because a group can contain other groups in the AD world not sure about the LDAP server you are migrating from.
    So the first thing I would do is map all attributes that are in use on the ldap server to a corresponding AD attribute, once that's done a script could be built to populate those.
    This would also be true from the groups.
    Groups need a User or Group distinguished name to add  to the members attribute.
    So in your migration steps before the first user is migrated, I would create a corresponding group that matches the LDAP servers group. Then as you migrate them in what ever script or third part product you use would just add as a member to the pre-created
    group. FIM can do this but can be cumbersome to use.
    Another thing that needs to go into the planning in respect to groups is that security groups are only useful when they are used to apply permissions to something.
    So looking at your example
    UID does that correspond to the logon name in Active Directory - if so then the corresponding attribute would be sAMAccountName
    Name could correspond to displayName in Active Directory
    Contact would be dependent on the data that the field held
    The Major objects seem like groups to me
    So Group Name,cn, and sAMAccountAttribute would be something like Mathematics2010
    Another attribute on the group object, maybe department would hold Science
    A lot of this is dependent on what consumes the data and whether an attribute already exists, You can create attributes if they are needed but would recommend first mapping out between the 2 systems to see which ones fit and which ones do not.
    I know that is vague but here is some links that will let you know which attributes are defined by default in Active Directory
    User Objects (Broken up by DC OS version)
    http://msdn.microsoft.com/en-us/library/ms683980(VS.85).aspx
    Group Objects (Broken up by DC OS Version)
    http://msdn.microsoft.com/en-us/library/ms682251(v=vs.85).aspx
    As you do the mappings between systems it important to have the final picture in mind of how everything will work once the migration is complete. That way it will allow you to focus on the important things and leave the not so important things till later.
    Hopefully that helps!

  • 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

  • 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

  • Global Report Attributes

    Marc:
    Is there a way to specify Global Report Attributes that would apply to all report regions on any page in the application?
    For example, I would like all columns with an alias of, say customer_name to be assigned to a CSS class of customer_name. This way, I can style that class in a custom CSS file and any report anywhere in the app would get that style. Currently, I have to open up each Report Attributes page, specify the CSS Class on each column. This gets to be a pain.
    Thanks

    Vikas,
    You might get answers quicker, if you don’t address a specific person but ask all forum participants. This question seems like something that others might haven an idea about as well.
    One thing you could try would be using the #COLUMN_HEADER_NAME# substitution string in your report column template, e.g.:
    <td class="#COLUMN_HEADER_NAME#">#COLUMN_VALUE#</td>
    Regards,
    Marc

  • Download Global Class attributes

    Hi...
          I want to download the global class attributes into an excel. when i checked the menu there is no such option.. Is that possible to do.. Can anyone guide me...
    Thanks in advance.
    Kalpanashri Rajendran.

    Hi,
    Assuming you are asking specifically about the global class "Attributes" and not all information about the global class itself.  To get the "Attributes" in a spreadsheet you can try this work-around:
    1. Run transaction SE84 Repository Info System.
    2. Expand the "Class Library" branch.
    3. Double-click the "Attributes" node.
    4. Enter your global class name and run the search.
    5. Once the list of attributes is displayed, choose menu path System -> List -> Save -> Local File.
    6. Choose "Spreadsheet" format in the popup.
    7. Give a file path and name for your spreadsheet.
    8. You should now have a spreadsheet with all the "Attributes" of your global class.
    Best Regards,
    Jamie

Maybe you are looking for

  • Maximum open cursors exceeded - after update to 1.1.1.25

    While browsing around a database I keep getting "Maximum open cursors exceeded". The only cure is to disconnect and reconnect. This doesn't happen in the prior version (1.0.0.15).

  • Front end Exceptions is not working

    Hi Experts, Front end version BI7.0 I have a below scenario: There are two calculated Key figures in my query ,lets say A & B. I have to show CKF A in RED if A is greater than B. To achieve this above ; I have created a formula KF to compare A & B. T

  • How to collect my data from a disk that I suspect to contain a malware

    I have experience several crashes the last 72 hours and I have to buy a new hard drive that I am using as an external drive to work from as a startup disk. Once I install all my software back, how can I collect my data from a hard drive that I am sus

  • MRP Data in BW Has anyone did this before?

    Folks, I am trying to get the MRP data into BW and found that I could use the 2LIS_03_S194 extractor.....but here are a few things I am struggling with: 1. It cannot support Delta... 2. I am getting an error message when I extract the data or even do

  • Switch display button not working

    Hi I recently installed arch on my HP laptop, and everything is running, exept for my switch display button (Fn+F4). Before arch, I used to run debian and ubuntu, in both the button worked fine. Trying a workarond, I could setup my xorg to set the di