Home » Developer & Programmer » Forms » Update after assigning From LOV
Update after assigning From LOV [message #456028] Fri, 14 May 2010 03:15 Go to next message
rmaheshbabu
Messages: 10
Registered: April 2010
Location: INDIA
Junior Member
In my form I added blk_dept (Dept Table consists Deptno-pk and Dname Columns)
with Insert, update, delete and view buttons

1) From view Button I called lov.

Lov displays all the department Number and Names and
It assigns block fields(blk_dept.deptno and blk_dept.dname)

2)After Assigning when I Press delete Button

Code Written is:

Delete from dept where deptno=:blk_dept.deptno;
Commit;

Browser Simply Processing long time without retrieving
any result or displaying Fields

If I written Code as
Delete Record;
Commit;

It Results
Frm 40401: No changes to save;

But It Not Deleting From The Table.
I think after Deleting it Inserting Same Record Is it?

3)When I press Update Button

update dept set dname=:blk_dept.dname where
deptno=:blk_dept.deptno;
commit;

It Results
Frm: 40508 oracle error unable to insert record
or
Browser Simply Processing long time without retrieving any
result or displaying Fields

Thanks and Regards

R.MaheshBabu

Re: Update after assigning From LOV [message #456031 is a reply to message #456028] Fri, 14 May 2010 03:31 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
When you manipulate data using INSERT, UPDATE, DELETE, then you should use standard.commit.

As of FRM 40508, go to Help menu and choose Display Error - it will show the reason why the error occurred.

However, why are you making your life complicated? Forms is capable of doing all of that by default, you don't need to code it.
Re: Update after assigning From LOV [message #456035 is a reply to message #456031] Fri, 14 May 2010 04:01 Go to previous message
rmaheshbabu
Messages: 10
Registered: April 2010
Location: INDIA
Junior Member


Thank You. It's Working

Regards
R.MaheshBabu
Previous Topic: icons problem
Next Topic: Display data in Master-Detail block structure
Goto Forum:
  


Current Time: Fri Sep 20 09:20:57 CDT 2024