|
|
|
Re: Multiple one to many relationship [message #453541 is a reply to message #453204] |
Thu, 29 April 2010 09:04 |
cookiemonster
Messages: 13963 Registered: September 2008 Location: Rainy Manchester
|
Senior Member |
|
|
Try recreating with the blocks with the datablock wizard.
And saying you have a problem with inserting and updating is basically useless - we need to know what problem is, what error messages you are getting etc.
|
|
|
Re: Multiple one to many relationship [message #453566 is a reply to message #453541] |
Thu, 29 April 2010 12:24 |
coolbharat4u
Messages: 30 Registered: April 2010
|
Member |
|
|
I tried this using views for different blocks
also tried using from clause query for the second block setting the query data source name, these are the errors I was getting
FRM-40654 Records has been updated by another user Re-query to see change
FRM 40735 ON UPDATE TRIGGER RAISED UNHANDLED EXCEPTION
ORA-00001 Unique constraint voilated
there was a lock which was occuring here(on-lock).
Thanks
|
|
|
|
Re: Multiple one to many relationship [message #453598 is a reply to message #453592] |
Thu, 29 April 2010 20:31 |
coolbharat4u
Messages: 30 Registered: April 2010
|
Member |
|
|
Please find the attached file, here
1)item id, description has multiple UOM, PURCHASABLE,MATERIAL,MAKEBUY
2) item id, description, UOM,PURCHASABLE,MATERIAL,MAKEBUY has multiple labor and pay_uom all are from same table
All are from the same table, we need to show this in form in the way I attached the previous doc.
Here I tried to create 3 views and tried to insert or update but there was an error, even when I tried the from clause query in Query data source name for the block2 which has item id, description, UOM,PURCHASABLE,MATERIAL,MAKEBUY (item id, description invisible in block two)I had an error, hope this is clear for you.
-
Attachment: DOC1.JPG
(Size: 69.13KB, Downloaded 635 times)
|
|
|
|
|
Re: Multiple one to many relationship [message #453701 is a reply to message #453204] |
Fri, 30 April 2010 06:07 |
gregor
Messages: 86 Registered: March 2010 Location: Germany
|
Member |
|
|
Hi,
please consider to review the Layout in your Form.
To work only on ONE row of the same table,
it could be an solution to build filter on the Records
you want to see or change.
1.Controllblock (no Basetable)
|________________| |_____________| <-- Search Criteria
Level 1 ( ID,DESCRIPTION)
2.Multirow-Basetableblock with Search Results
|________________| |_____________| |_.....
|________________| |_____________|
|________________| |_____________|
|________________| |_____________|
3.Filterrow (no Basetable) for Labor or want ever you want
|V_______________| |V____________|
Built the query dynamic : in Pre-Query (after Search-Button)
( if :filterlaborid is not null then filterstring :=
set_block_property('BASTABLEX',ONE_TIME_WHERE,'your filter-
string') . .... if if
At start up show all row or none.
|
|
|
|