error when changing item visual attribute property [message #283819] |
Wed, 28 November 2007 04:08 |
jitender.sadh
Messages: 86 Registered: May 2007
|
Member |
|
|
hi
i want to change the visual attribute of the item on which the cursor exists.for that purpose i write code on pre-text-item at block leve
set_item_instance_property(:system.cursor_item,visual_attribute,'abc');
but at run time i got error (ora-06502).
regards
jitender.
|
|
|
|
|
Re: error when changing item visual attribute property [message #283837 is a reply to message #283834] |
Wed, 28 November 2007 04:50 |
|
azamkhan
Messages: 557 Registered: August 2005
|
Senior Member |
|
|
ORA-06502 :Text: PL/SQL: numeric or value error
Cause: An arithmetic, numeric, string, conversion, or constraint error occurred.
For example, this error occurs if an attempt is made to assign the value NULL to a variable declared NOT NULL, or if an attempt is made to assign an integer larger than 99 to a variable declared NUMBER(2).
Action: Change the data, how it is manipulated, or how it is declared so that values do not violate constraints.
Regards,
Azam Khan
|
|
|
|
Re: error when changing item visual attribute property [message #283846 is a reply to message #283819] |
Wed, 28 November 2007 05:19 |
|
azamkhan
Messages: 557 Registered: August 2005
|
Senior Member |
|
|
Yes you are right... The parameter must be 4.
Following is the correct syntax:
SET_ITEM_INSTANCE_PROPERTY
(item_id ITEM,
record_number NUMBER,
property NUMBER,
value VARCHAR2);
OR
SET_ITEM_INSTANCE_PROPERTY
(item_id ITEM,
record_number NUMBER,
property NUMBER,
value NUMBER);
OR
SET_ITEM_INSTANCE_PROPERTY
(item_name VARCHAR2,
record_number NUMBER,
property NUMBER,
value VARCHAR2);
OR
SET_ITEM_INSTANCE_PROPERTY
(item_name VARCHAR2,
record_number NUMBER,
property NUMBER,
value NUMBER);
Regards,
Azam Khan
|
|
|
Re: error when changing item visual attribute property [message #283849 is a reply to message #283843] |
Wed, 28 November 2007 05:28 |
jitender.sadh
Messages: 86 Registered: May 2007
|
Member |
|
|
hi
now i am able to change the visual attribute of the item by writing code
SET_ITEM_INSTANCE_PROPERTY(:SYSTEM.CURSOR_ITEM,CURRENT_RECORD,VISUAL_ATTRIBUTE,'CURRENT_ITEM');
on per-text-item at block level. but this code no work on post-text-item.
actually i want that the visual attribute of a item on which the cursor exists have different colour form other item,
and when i navigate to another text item it set to default,means to at a state before navigation.
regards
jitender.
|
|
|
|
|
|