Execute Record after 10 Second [message #405859] |
Sat, 30 May 2009 08:45 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
shahzaib_4vip@hotmail.com
Messages: 410 Registered: December 2008 Location: karachi
|
Senior Member |
|
|
Hellow
I want to execute record after 10 Second for example if we my check box checked then every 10 Second my module will execute all record
Is there is any way?
Regards
Shahzaib Ismail
|
|
|
|
|
|
|
|
Re: Execute Record after 10 Second [message #405951 is a reply to message #405859] |
Mon, 01 June 2009 02:00 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
shahzaib_4vip@hotmail.com
Messages: 410 Registered: December 2008 Location: karachi
|
Senior Member |
|
|
Thanks for all of your guys for reply
Actually i mean to execute those record which emp_no between 1 to 500
so after 10 second its will refresh all record and find new record if new record where insert or delete
Vasmi you are absolutely right i mean refresh my record
Shahzaib Ismail
|
|
|
Re: Execute Record after 10 Second [message #405954 is a reply to message #405859] |
Mon, 01 June 2009 02:17 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
shahzaib_4vip@hotmail.com
Messages: 410 Registered: December 2008 Location: karachi
|
Senior Member |
|
|
I think i want to give you guys more information about what i need
I have a table which is
CREATE TABLE d_dispatch (
tra NUMBER(10),
d_dispatch_date DATE,
challan_no NUMBER(10),
d_dispatch_style_no VARCHAR2(15),
dispatch_color_code NUMBER(10),
dispatch_color_name VARCHAR2(10),
dispatch_party_code NUMBER(10),
dispatch_party_name VARCHAR2(40),
size_1 NUMBER(10),
size_2 NUMBER(10),
size_3 NUMBER(10),
size_4 NUMBER(10),
size_5 NUMBER(10),
size_6 NUMBER(10),
size_7 NUMBER(10),
size_8 NUMBER(10),
dispatch_quantity NUMBER(10),
comments VARCHAR2(50),
dispatch VARCHAR2(3),
packed VARCHAR2(3),
CONSTRAINT fk_d_dispatch_style_no FOREIGN KEY ( d_dispatch_style_no ) references d_style(d_style_no),
CONSTRAINT fk_dispatch_color FOREIGN KEY ( dispatch_color_name ) references d_color(color_name),
CONSTRAINT fk_party_code_dispatch FOREIGN KEY ( dispatch_party_name ) references d_party(party_name))
I Show this table in my block with where clause
Where Dispatch='NO'
Now this block will show all my record which dispatch=No i create one button and write the trigger
:DISPATCH:='YES';
COMMIT;
now i need when i press my button its will wait 10 Second after 10 Second its will execute my all record which Dispatch='NO'
So those record which dispatch='Yes' (Which button i press) will automatically not show at this block
Hope i will clear my Question
Regards
Shahzaib Ismail
|
|
|
|
|
Re: Execute Record after 10 Second [message #405962 is a reply to message #405957] |
Mon, 01 June 2009 03:13 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
![](/forum/images/custom_avatars/72104.gif) |
Littlefoot
Messages: 21823 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
I still think that time frame isn't the best idea. What if user needs 12 seconds? Will he/she know it? Sometimes, probably.
So, what you might do is omit committing within the trigger. Let user modify value of the "dispatch" item, back and forth from "yes" to "no", round and round. Though, code you've written doesn't enable that - you can only set "dispatch" to "no". Perhaps you should enable toggling its value, something likeif :dispatch = 'no' then
:dispatch := 'yes';
elsif :dispatch = 'yes' then
:dispatch := 'no';
end if; (it could be rewritten in some other manner, but I guess you got the idea).
Once it is done, let him/her manually COMMIT and then, within that action (will it be a push button or KEY-COMMIT trigger), execute a query.
So: your "current" trigger would be just"Save changes" button (WHEN-BUTTON-PRESSED) or simply KEY-COMMIT trigger would then be
|
|
|
Re: Execute Record after 10 Second [message #405964 is a reply to message #405859] |
Mon, 01 June 2009 03:22 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
shahzaib_4vip@hotmail.com
Messages: 410 Registered: December 2008 Location: karachi
|
Senior Member |
|
|
Ok
I agree with you
Any way i have another button which will highlight current record
which trigger is
set_item_instance_property('challan_no',current_record,visual_attribute,'BL');
set_item_instance_property('dispatch_date',current_record,visual_attribute,'BL');
set_item_instance_property('style_no',current_record,visual_attribute,'BL');
set_item_instance_property('dispatch_party_name',current_record,visual_attribute,'BL');
set_item_instance_property('d_dispatch_quantity',current_record,visual_attribute,'BL');
but i want to Dis select highlight if i click any other item or any other button
The picture will clear you my point
Regards
Shahzaib ismail
-
Attachment: sa.bmp
(Size: 937.06KB, Downloaded 758 times)
|
|
|
|
|