Home » Developer & Programmer » Forms » copy paste in forms
copy paste in forms [message #84060] Thu, 22 January 2004 23:04 Go to next message
Sun
Messages: 92
Registered: August 2002
Member
Friends,
I work in client server architechture,
Forms 6i as front end and oracle 8i as back end.
In forms i would like to use copy and paste options like windows.
I have created a pop up menu with two sub items copy and paste.
In copy i am assigning the value of current item to a global variable.
In paste i have to find the item name and i have to paste it. Using the system.current_item i found the itemname also.

How to assign the global value to this current item.

Consider both the items are same datatype.

I could able to copy the value.
Any help provided to paste it will be helpful.

Thanks
Sun
Re: copy paste in forms [message #84104 is a reply to message #84060] Thu, 29 January 2004 15:54 Go to previous messageGo to next message
SHANKAR.K.
Messages: 7
Registered: April 2003
Junior Member
code for cut
------------

begin
:global.cut_value := :system.cursor_value;
end;

code for paste
--------------
begin
go_item(:system.cursor_item);
:abc_item := :global.cut_value;
-- where abc_item is the itemname
end;

better try this
cut
-----------------
begin
go_item(:system.cursor_item);
select_all;
cut_region;
end;

paste
-----------------
begin
go_item(:system.cursor_item);
paste_region;
end;
Re: copy paste in forms [message #84228 is a reply to message #84104] Tue, 17 February 2004 18:30 Go to previous message
Sun
Messages: 92
Registered: August 2002
Member
Shankar..

Really excellent.. i used the second option.. before this i was breaking my head for one day.. thanks a lot..

sun
Previous Topic: Re: faq and their answers on developer20(6i)
Next Topic: How do compare two different versions of a oracle FMB File.
Goto Forum:
  


Current Time: Fri Apr 19 03:06:01 CDT 2024