Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old May 26th, 2004, 04:16 PM
hudo hudo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 97 hudo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 23 m 19 sec
Reputation Power: 5
clear block with initial value

Hello,

I'd like to clear a block with an initial value.
I tried it with

GO_BLOCK('MY_BLOCK_TO_CLEAR');
CLEAR_BLOCK(No_Validate);

But everything from the block except the field with
an initial value is cleared.

Reply With Quote
  #2  
Old May 27th, 2004, 10:11 AM
Kraeg Kraeg is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: Schaumburg, IL
Posts: 20 Kraeg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
1) It really depends on what end result you are looking for. If you don't want that value in there (item a) anymore, then set the initial_value property for that particular item to null on the property sheet.

1a) If you want the initial value to appear conditionally, do the step above and write code on the when-val-item trigger of item b to populate item a.

2) You may be able to add the statement:
:item_a := null;
after your clear block, but I'm not sure what that will do to your record status. It might change it from 'NEW' to 'INSERT' which opens up a new set of problems.

3) Otherwise, that is normal forms functionality to show those initial values when your cursor is in the block in question on a new record. Your record status should be 'NEW' so there should be no locking or navigation issues unless you are populating other fields in the record (like from a when-new-rec-inst trigger).

If this does not help, expand on your explanation of what you are trying to do a little more.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > clear block with initial value


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway