Home » Developer & Programmer » Forms » Key-next-item
Key-next-item [message #533547] Wed, 30 November 2011 08:51
Hometown
Messages: 35
Registered: October 2010
Location: India
Member
Dear All,
I have a trigger (Key-Next-item)at item level, following is the content
Declare
	a boolean;
	var1 varchar2(1000);
	var varchar2(1000);
Begin
	var1:=get_block_property('vew_sponsorship_detail',default_where);
	list_values(Restrict);
	if
		:filter.country_name is not null then
		var:=var1 ||' and student_country_code='||ltrim(rtrim(:vew_sponsorship_detail.student_country_code));
	end if;
	go_block('vew_sponsorship_detail');
	clear_block;
	set_block_property ('vew_sponsorship_detail',default_where,var);
	execute_query;
	END;

After List of Values is displayed. It asks me "Do you want to save the changes you have made"

I couldn't understand. Block vew_sponsorship_detail is based on view and following is the structure of the view
SQL> desc vew_sponsorship_detail;
 Name                            Null?    Type
 ------------------------------- -------- ----
 SPONSORSHIP_CODE                NOT NULL NUMBER(5)
 CONTACT_CODE                             NUMBER(5)
 SPONSORSHIP_TYPE                         VARCHAR2(10)
 DONATION_CODE                            NUMBER
 DD_CODE                                  NUMBER
 DD_LINE_NO                               NUMBER
 DD_DETAIL_AMOUNT                         NUMBER(10,2)
 DONATION_AMOUNT                          NUMBER(5)
 SPONSORSHIP_SDATE                        DATE
 SPONSORSHIP_EDATE                        DATE
 STUDENT_COUNTRY_CODE                     NUMBER(5)
 STUDENT_NAME                             VARCHAR2(100)
 STUDENT_CODE                             NUMBER(5)
 CONTACT_NAME                             VARCHAR2(100)


. This has started to come after I made changes to the structure of the view through "Schema Manager". The view is perfect because it throws the result on SQL PLUS.

The following changes to the Block property of block vew_sponsorship_detail have been made

Key Mode: Non-Updateable
and the text item (sponsorship_code) in the view sponsorship_code property

Primary Key : Yes

Once this has been done it started to ask every time this message
"Do you want to save the changes you have made"

How do I get rid of this message, I am not changing or updating anything in the said block

Regards
Previous Topic: Lov should not repeat the value
Next Topic: 'Do you want to save change you have made'
Goto Forum:
  


Current Time: Fri Aug 09 11:38:14 CDT 2024