Welcome to dbForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

how: 3 blocks (1:many:many) using only 1 database source

 
   Database Forums (Home) -> Oracle RSS
Next:  SQLMAINT.EXE Process Exit Code: 1 (Failed)  
Author Message
gnober




Joined: Aug 09, 2005
Posts: 1



(Msg. 1) Posted: Tue Aug 09, 2005 11:37 pm
Post subject: how: 3 blocks (1:many:many) using only 1 database source

Hi everyone! I'm working on this Forms program with the following properties:
+ it has 3 blocks, all using the same database table with this relationship: 1 block - 2 block : 1 is to many
2 block to 3 block : many is to many.

What is the best way to go about this situation? My program currently has the 3rd block as the base table, the other blocks as data source type: FROM clause query. The problem is i can't do updates on the 1 or 2 block wheneven there are more than 1 data in the 3 block, as i would get the error : FRM-40654 (record has been updated by another user)..

Now, if i were to use 3 different tables for each block then it would be no problem as i would just relate them in forms.. How do i do this if i were to use only a single table for each blocks as i don't think i could just relate them normally?

Thank you & more power!

 >> Stay informed about: how: 3 blocks (1:many:many) using only 1 database source 
Back to top
Login to vote
user1882

External


Since: Dec 08, 2004
Posts: 142



(Msg. 2) Posted: Wed Aug 10, 2005 4:15 pm
Post subject: Re: how: 3 blocks (1:many:many) using only 1 database source [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

G, If you do not get a useful reply you might try the
comp.databases.oracle.tools board. A lot more Forms and Report Writer
people post there than here on misc.

HTH -- Mark D Powell --

 >> Stay informed about: how: 3 blocks (1:many:many) using only 1 database source 
Back to top
Login to vote
Matthias Kleinicke

External


Since: Jun 10, 2005
Posts: 5



(Msg. 3) Posted: Thu Aug 11, 2005 6:55 pm
Post subject: Re: how: 3 blocks (1:many:many) using only 1 database source [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi gnober,

gnober schrieb:
> Now, if i were to use 3 different tables for each block then it would
> be no problem as i would just relate them in forms.. How do i do this
> if i were to use only a single table for each blocks as i don�t think
> i could just relate them normally?
there are two possible situations:
1. All blocks contain different rows of the same table:
this case You should relate the block normally.
2. The rows inside some blocks are shared:
here You must solve the situation, because You can not update the same
row in two different blocks.

according to your post at least one modified row is contained in two
blocks. else there should be no update contention.

best solution in this case seems to create one db-block and two non
db-blocks. populating and updating of the non db-blocks is done via
copy to the db-block.

anyway there would be a lot of coding to do.

greetings

Matthias
 >> Stay informed about: how: 3 blocks (1:many:many) using only 1 database source 
Back to top
Login to vote
++mcs

External


Since: Aug 14, 2005
Posts: 1



(Msg. 4) Posted: Sun Aug 14, 2005 4:32 am
Post subject: Re: how: 3 blocks (1:many:many) using only 1 database source [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

first, make sure your form design really makes sense -- if the error is
being caused by the same user updating the same record in a different
block on the same form, determine why the user should be allowed to
update the same data in more than one block

however, you did not state whether the user is actually doing any
updates in block 3 -- if the user is not performing updates, then
determine what processing you've coded into your forms that is causing
updates (or deletes) when records are present in block 3

if the code added to your form or the user is not causing updates (or
deletes) when records are present in block 3, then the data changes
must be caused by another user, and you've run into a typical forms
issue

if the problem is due to forms code or the user, determine what exactly
is peforming the DML -- do you really need to have the same record
displayed (and available to update) simultaneously in more than one
block? that usually is not a good design. or are the updates done by
the code really necessary?

if changes are initiated by the user, and the data really need to be
displayed in more than one area of the form, you can use the
'Synchronize with Item' property item to have the same database value
displayed in two or more items (in the same block), and have forms
automatically coordinate them. this is often used with multi-record
blocks, where the additional items are on a separate canvas and have
their 'Number of Items Displyed' property set to 1.

if the changes are initiated by code in your form (and that code is
necessary) or by other users, then you have to code a block or record
refresh -- which involves writing code to issue an EXECUTE_QUERY action
(making sure block coordination only occurs where necessary) or
manually resetting item values and resetting the SYSTEM.RECORD_STATUS
(via the SET_RECORD_PROPERTY built-in)

however, it sounds like the best bet might be to revisit the over-all
design of the form -- can you give more information on what business
functionality the form is intended to support? can you specify what is
causing the update (or delete) of records that the user is currently
viewing in block 1?

++ mcs
 >> Stay informed about: how: 3 blocks (1:many:many) using only 1 database source 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
what are the different between database migration and data.. - what are the different between database migration and database upgration?

database - i Am facing the problem like Oracle Initialization or Shutdown in Progres. But as per our logic i went to command prompt and typed sqlplus /nolog it enter into the SQl prompt, after, SQL> connect / as sysdba or connect sys/password as sysdba for this...

database - Sir In a Application software its databade is store in access.Can it is possible to change this database.can it is possible to create one own database and connect it throug ODBC on that software.

database triggers - hello, I am tryiing to get data into a temp table from 3 odd master tables referencing a stored procedure to insert values via triggers. But I am unable to populate data in the temp table? Does anyone have any suggestion?

database filesystem - when do you think ms will have a database based filesystem ?
   Database Forums (Home) -> Oracle All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]