Reg Property Class

Hi all,
i created 2 visual attributes NEGATIVE,NON_NEGATIVE and given different background colors, Then i created a property class with some properties of PURCHASE_COST field in the form names as US_CURRENCY. I created When-Validate-Item trigger under Property class with following pl-sql code:
IF :SYSTEM.CURSOR_VALUE < 100     THEN
     message('negative');
     message(' ');
     SET_ITEM_PROPERTY(:SYSTEM.CURSOR_ITEM, VISUAL_ATTRIBUTE,'NEGATIVE');
ELSE
     message('non-negative');
     message(' ');
     SET_ITEM_PROPERTY(:SYSTEM.CURSOR_ITEM, VISUAL_ATTRIBUTE,'NON_NEGATIVE');
END IF;
next i subclassed this property class to various currency fields in the form and then compiled and run, but the changes cannot be seen over the currency fields.
Regards,
Sreekanth.

Hi Francois,
i have nothing inside my property class but only have WHEN-VALIDATE-ITEM trigger which holds the code for selecting visual attribute at runtime:
BEGIN
IF TO_NUMBER(:SYSTEM.CURSOR_VALUE) < 0 THEN      -- Negative value entered
-- Attach NEGATIVE visual attribute to item     
SET_ITEM_INSTANCE_PROPERTY(:SYSTEM.CURSOR_ITEM, VISUAL_ATTRIBUTE, 'NEGATIVE');
ELSE                               -- Non-negative value entered
-- Attach NON_NEGATIVE visual attribute to item
SET_ITEM_INSTANCE_PROPERTY(:SYSTEM.CURSOR_ITEM, VISUAL_ATTRIBUTE, 'NON_NEGATIVE');
END IF;
EXCEPTION WHEN OTHERS THEN
     MESSAGE(TO_CHAR(SQLCODE)||'----'||SQLERRM);
END;
Now after i enter the PURCHASE_COST and move to another field, it is showing me the error:
*6502---ORA-6502:PL/SQL:numeric or value error*

Similar Messages

  • How to set property classes at runtime.

    Well, as the subject line says my question is plain and simple. I don't see any property for this in SET_ITEM_PROPERTY built-in.
    Currently a form has 10 subclassed blocks and views. These blocks have almost similar/definite number of items. At a time only one block with its canvas will be shown to the user. Instead of using so many sub-classed objects, I would like to use only one block and canvas. Now I am looking get getting just property classes from the 10 child forms, which I am looking forward to apply to the common block and items. Any other ideas for the same also appreciated.
    Thanks,
    -- Raam.

    alsalamu alykom
    I think there is no way to set property classes at runtime.
    u must loop through the objects

  • Problem with IFCMP60, subclassing, property classes and Object Libraries

    I'm looking to write a little batch script that recompiles all my forms. I've got one off the net - Mine is a little more complicated but I'm basing it on
    FOR %%F in (*.fmb) do call ifcmp60 %%F userid=uname/pwd@dbase batch=YES Window_State=Minimize
    Many of my forms have those items shown on the canvas subclassed using a property class. Those property classes are held in an object library (.olb) and subclassed into the form. the .olb is resident in the same directory as the forms.
    When I run my batch script some forms compile okay but some don't. I've figured out that the ones that don't are the ones like the above - and looking at the .err produced, they fail on the subclassed fields.
    e.g.
    Compilation error on procedure PROCESS_MULTI_QUERY:
    PL/SQL ERROR 49 at line 139, column 33
    bad bind variable 'multi_query.input_file'
    there is a block multi_query with a field input_file and this field uses a property_class subclassed from the object library. So ifcmp60 doesn't realise that ":MULTI_QUERY.INPUT_FILE" refers to the block item. However it is just fine with the other items on the canvas that are not subclassed.
    Anyone else encountered this? Can I fix it without breaking all the subclassing?

    False alarm: A colleague had recompiled the OLB under 10g, so Forms 6i didn't recognise it.

  • Dynamic Setting of Properties in a Property Class

    Can anybody tell me how to change the properties in a Property Class dynamically using Forms 6i?

    Besides changing item property you can change property of block, forms too, dynamocally.
    Use "help" in Forms Builder/Designer and search on "SET_", we will get lot of info on this.

  • Forms 9i - Compilation on Linux - property class,VA from base form

    Hi all,
    We have got around 400 forms converted from forms 6i to forms 9i.
    We have subclassed property classes and visual attributes to most of the forms from the base form (say std.fmb).
    Now , we need them to be compiled on Unix / Linux for the first time.
    While compiling, we get message "FRM-18108: Failed to load the following objects." but the .fmx file is created.
    We understand that this is due to the reference of the source form as STD and not as std. How to correct this problem but without renaming the form std to STD or having one more copy of that as STD.fmb.
    Please suggest

    Hugo,
    the Forms module can be compiled without having to compile oracle.forms.demos.ProgressBarPJC. Just have the implementation class reference in teh Forms module and use the same jar file.
    Frank

  • How to reference /inherit property class in form in oracle apps

    Hi
    I had a Form which is register in the oracle apps but now i have another requirement to
    create a tab canvas put all fields of pervoius form(content form) into new tab page canvas
    now i want to know how i can reference/inherit the pervious conent form property class and object to new tab canvas
    since i didn't create with template fom .but i have property class in form module
    is it possible to inherit property classes
    Iam using form 6i,11i apps
    please help me

    It is possible.

  • In onLoad JavaScript, I'm getting "Error: Permission denied to access property 'classes'" when I access Components.classes; how do I enable that permission?

    I need to emulate several ActiveX functions in my client's web application. I have located several Mozilla web pages that describe how to do the things I need, and I have attempted to implement those instructions. However, I can't seem to get past the first line of code. In my web page, I am calling a JavaScript function using the onLoad attribute of the <body> tag. I am using the Navigator object to determine that the browser is Firefox. I then attempt to access the extension classes using the following code on lines 51 and 52 of the Download.js file:
    var C = Components;
    var CC = C.classes;
    The Web Console gives me these two messages:
    [13:51:55.621] The Components object is deprecated. It will soon be removed. @ http://distribution:781/NewDDI/DownLoad.js:51
    [13:51:55.621] Error: Permission denied to access property 'classes' @ http://distribution:781/NewDDI/DownLoad.js:52
    How do I enable adequate permission to be able to access the Components classes?

    I think Components is available only in extensions (or otherwise privileged code) and not in ordinary web pages.

  • How to inherit property class

    hello experts,
    i am using forms 10g. i created a property class in form a.
    save and compile. now i wanted to inherit that property class in form b.
    for this i subclass it from form a to form b.
    when i close the form a, it showing the message
    frm:18108 error
    source module: formA
    source object my_property (property class)
    as we say we can inherit property classes , please help me how?
    thanks
    yash

    Yash,
    In order for FORM B to find the Property Class in FORM A, FORM A must be in a directory that is part of the FORMS_PATH. It is always a good idea to create a GLOBAL.FMB (or what ever you want to call the form) or an Object Library (.OLB) that contains all of your objects that will be subclassed in other forms. Then put this .FMB or .OLB in a directory that is in your FORMS_PATH. This lets you store all of your subclass source objects in one location.
    Craig...

  • Property Classes in Forms

    I have some forms with Property Classes but when I want to see what is inside
    appears only General like they would be empty..
    How can I see the content?
    Any idea?
    Many Thanks!

    I know that...but this property class has nothing inside and it is in a working system and I can't see what it does...because aparently it doesn't have any
    property...except General.
    GENERAL
    Name
    Subclass Information
    Comments
    That's all I can see.

  • T:div throws Component property class is not writable

    I'm using the Tomahawk div-tag including the rendered attribute to check if the wrapped components should be rendered. An exception is thrown indicating the component property is not writable. In other words, I think it means there's no public set-method. However, there is. I'm also using the same rendered expression in t:inputText / t:outputText element/s where it does work.
    What's so specific with the t:div?
    Also I wonder why there's a set-method needed as I don't use it..
    please help,
    thanks,
    dave

    If it says 'component property class is not writable' maybe it is talking about the component property 'class'? not 'rendered'.

  • Property Class Forms - ADF Implementation

    I'm thinking about the property class functionality like in Oracle Forms.
    Which is the best implementation in ADF ?

    Hi,
    for visual properties this is Style Sheets. For business services attributes these are base classes (e.g extending the ADF BC framework)
    Frank

  • Easy question on property classes

    How does one associate a property class with an object? I cannot find anything in the property palette, but I'm sure I'm missing something obvious.

    Use the Subclass Information property. In the dialog box that appears, click the Property Class radio button. Then you can choose the Property Class you want from list.
    Regards,
    Robin Zimmermann
    Forms Product Management

  • Frmf2xml and frmxml2f with property classes that have triggers

    All,
    I am not sure if I have a setup problem or a bug, but here goes. When I convert a form from fmb to xml (using frmf2xml) the .xml version gets created fine. When I convert back I get the following error:
    Processing XML module module1_fmb.xml
    Subclassing error: Check that your FORMS_PATH contains all parent modules.
    Could not find exisiting sub-object KEY-CLRBLK on owner MODULE1
    Could not find exisiting sub-object KEY-DELREC on owner MODULE1
    Could not find exisiting sub-object WHEN-MOUSE-CLICK on owner MODULE1
    Module saved as module1.fmb
    The FORMS_PATH is set right etc. The problem only shows up in the following circumstances:
    I have a property class in the form - the property class has a trigger - the property class is attached to the Module Property Sheet.
    Looking at the XML that gets generated, it looks like the trigger information is repeated when the property class is used at form level. If i use it at block or item level it converts ok?
    I can't find anything on metalink and wondered if anyone else had the issue? i.e. a functional property class with triggers used at module level.
    Thanks in advance,
    Bren

    It's quite easy to replicate this (if anyone is interested):
    1. Create a new form
    2. Create a property class and call it Module_Class
    3. Add a couple of triggers to the class with "Null;" in teh trigger code, say a PRE-FORM trigger and a POST-FORM trigger.
    Now - if you save the module at this stage conversion works fine to/from XML/FMB.
    Open the form and select the modules property sheet. Now, subclass the module using the Module_Class you created before.
    Save the module.
    Now - conversion from fmb to XML appears to work - but converting back fails.
    Can anyone verify this?
    Regards,
    Bren

  • Trigger inheritance through property classes

    Dear members,
    I have property classes that contain triggers.
    When I make a block inherit those classes, it copies the triggers in the block, in subclass mode, right ?
    I would like to be able to modify the PL/SQL code of those triggers once they are in the block.
    But for this, I would have to tell Forms to copy the triggers instead of subclassing them when I subclass the property class (I keep dreaming) or to break the inheritance once they are in the block.
    Any slight part of an idea about this will be much welcome.

    Ok, that's what I feared.
    But let's think positive.
    I build modules from templates, so I can put into the template all the objects (form level triggers, alerts,...) that have to be in all my modules.
    I can't do this for block level triggers since the blocks have not been created yet. So I had the idea of creating a property class for each kind of block, and get the triggers through it, but then I can't modify those triggers anymore.
    I'd like to avoid having to copy the block triggers one by one from an OLB.
    Is there another solution ?

  • Property Class

    We have used Visual attributes in our forms. Recently we had a few more properties which we wanted to standadise so I created property Class for all the items and add Visual attribute property in the Property Class. When I make changes to the Visual Attribute group the changes are not getting carried forward to the text items subclassed. Even if I change the properties of the property Class it doesn't seem to get carried forward it I have subclassed them.
    If I create a new form and copy the property Class and Visual attribute I can see the changed value but when I subclass they are retaining the same values as assigned on the time of creation.
    Help will be greatly appreciated. Thanks.

    Sudha,
    I have a object Group which has visual attributes, property classes and other things in it. I had a property class which had a Visual Attribute property in it. What we generally do when we create a form is subclass the object group and subclass all the individual items to the Visual attribute. When I created this property class we thought all I would have to do is subclass the item to the property class. When I made changes to the visual attribute this wasn't getting inherited into the items.
    Afetr I posted this message I tried to inherit some basic property and it wasn't inheriting for some reason ( I know for sure that it was able to inherit some properties yesterday) So I tried the same thing from another PC and it seems to work. Looks like I have some problem with my PC.
    I am going to reboot to see it this would make a difference. Thanks for your help.
    null

Maybe you are looking for