Home » Developer & Programmer » Forms » help me (multiple topics with same generic title merged) (window xp, oracle 10g)
help me (multiple topics with same generic title merged) [message #490215] Fri, 21 January 2011 22:25 Go to next message
helloworld_28
Messages: 60
Registered: October 2010
Member
hi,

iam new to oracle 10g form doing pratices i have create two data block of same table ,i want to display all records in particular deptno if i enter dept no and press button i have attached fmx file , i dont what all triggers have to written to display in tabular .
  • Attachment: demo1.fmx
    (Size: 15.11KB, Downloaded 994 times)
Re: help me [message #490222 is a reply to message #490215] Sat, 22 January 2011 00:55 Go to previous messageGo to next message
ranamirfan
Messages: 535
Registered: January 2006
Location: Pakistan / Saudi Arabia
Senior Member

You attached fmx file.Can we open it in Form Builder.?
Re: help me [message #490224 is a reply to message #490215] Sat, 22 January 2011 01:15 Go to previous messageGo to next message
helloworld_28
Messages: 60
Registered: October 2010
Member
sorry ,

ihave attached in demo. fmb;
  • Attachment: demo1.fmb
    (Size: 52.00KB, Downloaded 988 times)
Re: help me [message #490225 is a reply to message #490215] Sat, 22 January 2011 01:18 Go to previous messageGo to next message
helloworld_28
Messages: 60
Registered: October 2010
Member
hi,

ranamirfan i think you are active member of this forums. can you give me you email id so that i can ask doubts, will you be friend of mine.
Re: help me [message #490229 is a reply to message #490225] Sat, 22 January 2011 02:45 Go to previous messageGo to next message
ranamirfan
Messages: 535
Registered: January 2006
Location: Pakistan / Saudi Arabia
Senior Member

Dear,

I m using Forms 11g.

/forum/fa/8620/0/

Please see below code.You also must Konw about Cursor.


WHEN-BUTTON-PRESSED
Go_Block('Employees');

Declare

Cursor EmpCur Is 

Select * From Employees
where  Department_id=:Departments.Department_Id;

Begin
       First_Record;
for rec in empCur loop
	:Employee_ID:=rec.Employee_ID;
	:First_Name:=rec.First_Name;
	:Last_Name:=rec.Last_Name;
	:Email:=rec.Email;
	:Phone_Number:=rec.Phone_Number;
	:Hire_Date:=rec.Hire_Date;
	:Job_ID:=rec.Job_ID;
	:Salary:=rec.Salary;
	:Commission_Pct:=rec.Commission_Pct;
	:Manager_ID:=rec.Manager_ID;
	:Employees.Department_ID:=rec.Department_ID;
	:Status:=rec.Status;
  
        Create_Record;
        end loop;

End;



Hope it'll Help you & Change it According to your Requirements.

Regards,
Irfan
Re: help me [message #490234 is a reply to message #490229] Sat, 22 January 2011 09:03 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
From my point of view, it is a standard master-detail form. Use data block wizard - it will create all procedures and triggers necessary for master-detail relationship, and guess what? It'll work!

Using a cursor is another possibility, but I'd suggest you to use standard Forms functionalities as much as possible. Let Forms do the "dirty" job (i.e. programming) - write your own code only for something that Forms can't do.
help me [message #490275 is a reply to message #490215] Sun, 23 January 2011 09:40 Go to previous messageGo to next message
helloworld_28
Messages: 60
Registered: October 2010
Member
hi,

i have been pratice vb.net but am new to oracle 10g form and report ,now i am knowing a bit but , how to create menu in oracle 10g forms please help me ,
Re: help me [message #490343 is a reply to message #490234] Mon, 24 January 2011 04:01 Go to previous message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
Never use a cursor to populate a database datablock with records from that block. That's guaranteed to give errors. As LF says - use execute query.
Previous Topic: icons not showing in safari browser on mac os client
Next Topic: lov problem
Goto Forum:
  


Current Time: Mon Sep 16 12:54:34 CDT 2024