Home » Developer & Programmer » Forms » Problem with List Item (6i)
icon7.gif  Problem with List Item [message #471396] Fri, 13 August 2010 18:54 Go to next message
Yanamalai
Messages: 1
Registered: August 2010
Location: USA
Junior Member
I need to filter records in a datablock based on Yes or No criteria.So i created a listitem(INCLUDE_ZERO_QTY_ITEMS) for that and i am using following code in WHEN-LIST-CHANGED trigger.

BEGIN
IF :XGEC_SW_ITEM_LOAD_ITEM_DETS_V.INCLUDE_ZERO_QTY_ITEMS = 'Y'
THEN
GO_BLOCK ('XGEC_SW_ITEM_LOAD_ITEM_DETS_V');
SET_BLOCK_PROPERTY ('XGEC_SW_ITEM_LOAD_ITEM_DETS_V',
default_where,
'1=1');
EXECUTE_QUERY;
ELSIF :XGEC_SW_ITEM_LOAD_ITEM_DETS_V.INCLUDE_ZERO_QTY_ITEMS = 'N'
THEN
IF :XGEC_SW_ITEM_LOAD_ITEM_DETS_V.EXHIBITOR_COUNT = 0
AND:XGEC_SW_ITEM_LOAD_ITEM_DETS_V.SHOW_ORGANIZER = 0
THEN
GO_BLOCK ('XGEC_SW_ITEM_LOAD_ITEM_DETS_V');
SET_BLOCK_PROPERTY (
'XGEC_SW_ITEM_LOAD_ITEM_DETS_V',
default_where,
'1=1 AND EXHIBITOR_COUNT<>0 AND SHOW_ORGANIZER<>0'
);
EXECUTE_QUERY;
END IF;
END IF;
END;

I am able to filter the records but the list item is not displaying initial value and the value that i am selecting from poplist.

can any one help me on this please?
  • Attachment: untitled.png
    (Size: 729.05KB, Downloaded 824 times)

[Updated on: Fri, 13 August 2010 18:57]

Report message to a moderator

Re: Problem with List Item [message #471756 is a reply to message #471396] Tue, 17 August 2010 03:17 Go to previous message
sinida1984
Messages: 83
Registered: September 2007
Location: India
Member
hello

could you please try by making the list item's Database item property to No..and then try

Regards
Sinida
Previous Topic: FRM-15004 Error while parsing join condition
Next Topic: forms 10g crashes - Abnormal termination
Goto Forum:
  


Current Time: Fri Sep 20 06:36:44 CDT 2024