Home » Developer & Programmer » Forms » Need to insert text value into a text field on current cursor position (Forms, 6i, Windows 7)
Need to insert text value into a text field on current cursor position [message #597017] Mon, 30 September 2013 02:20 Go to next message
azamkhan
Messages: 492
Registered: August 2005
Senior Member
Hi,

I need to copy some text value in to a multi-line text item on the current cursor position. Is there a way to do this?
Re: Need to insert text value into a text field on current cursor position [message #597018 is a reply to message #597017] Mon, 30 September 2013 02:36 Go to previous messageGo to next message
Littlefoot
Messages: 19610
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
I usually do that using <Ctrl+C> & <Ctrl+V>.
Re: Need to insert text value into a text field on current cursor position [message #597036 is a reply to message #597018] Mon, 30 September 2013 06:30 Go to previous messageGo to next message
azamkhan
Messages: 492
Registered: August 2005
Senior Member
Dear Friend,

I have a button and a multi line text item. What I want to do is, when I click the button it copy same text in the multi line text item on the position where the cursor it currently blinking.

I hope you got the scenario.
Re: Need to insert text value into a text field on current cursor position [message #597038 is a reply to message #597036] Mon, 30 September 2013 06:38 Go to previous messageGo to next message
Littlefoot
Messages: 19610
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
As far as I can tell, Forms can't do that. *Maybe* you could try with some Java code (which I don't know and can't assist at all).
Re: Need to insert text value into a text field on current cursor position [message #597039 is a reply to message #597038] Mon, 30 September 2013 06:51 Go to previous messageGo to next message
azamkhan
Messages: 492
Registered: August 2005
Senior Member
Dear Friend LittleFoot,

Thank you for your quick reply.

LittleFoot please don't say that it cann't be done. Once a genius said to me, "A GOOD programer doesn't has the word IMPOSSIBLE in his/her dictionary".

So dear friend please don't say that it cannot be done.

I mean that there is D2k Utility that can do many wonderful staff that cann't be don't by forms, but yet with the help of this utility we can do thinks.

I hope ... I believe that there must be some logic that can help doing this task.
Re: Need to insert text value into a text field on current cursor position [message #597040 is a reply to message #597039] Mon, 30 September 2013 06:56 Go to previous messageGo to next message
Littlefoot
Messages: 19610
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
As I said, Forms (its original installation files) can't do that.

Furthermore, I said that *maybe* Java offers that flexibility. By "Java" in Forms context, I meant "Java beans". I don't know Java and I can't even test it, but you might search (Google) whether someone did what you asked. Hopefully, you'll find some code that might help you.

As you said, some "D2K utility" (which one? Webutil?) can do something that Forms itself can not. That's perfectly fine, use it if you know how.

Whatever you do, I still believe that Forms 6i (without any add-ons) can't do what you want.
Re: Need to insert text value into a text field on current cursor position [message #597041 is a reply to message #597040] Mon, 30 September 2013 07:00 Go to previous messageGo to next message
azamkhan
Messages: 492
Registered: August 2005
Senior Member
I got your point. But like you I am also a pure ORACLE developer and I don't know about Java. I love to work in pure Oracle coding.

Any ways I will try and try... until I succeeded. May be I am wrong that this task can be in Oracle forms. But I will try.

Thanks alot for your help friend.
Re: Need to insert text value into a text field on current cursor position [message #597042 is a reply to message #597041] Mon, 30 September 2013 07:02 Go to previous messageGo to next message
Littlefoot
Messages: 19610
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Good luck! I hope you'll succeed and - if you do - don't forget to post what you learnt here so that someone else might benefit from it.
Re: Need to insert text value into a text field on current cursor position [message #597043 is a reply to message #597042] Mon, 30 September 2013 07:19 Go to previous messageGo to next message
azamkhan
Messages: 492
Registered: August 2005
Senior Member
thank you and sure I will do so. Because I like this forum. It helped me out in problems.
icon5.gif  Re: Need to insert text value into a text field on current cursor position [message #623847 is a reply to message #597017] Mon, 15 September 2014 07:43 Go to previous messageGo to next message
feno_noga
Messages: 3
Registered: September 2014
Location: Egypt
Junior Member
I know that this topic is old, put did you pls find any solution??
Re: Need to insert text value into a text field on current cursor position [message #623949 is a reply to message #597017] Tue, 16 September 2014 09:39 Go to previous messageGo to next message
thelearner
Messages: 121
Registered: April 2013
Location: INDIA
Senior Member
Can you explain briefly...
I will try this one....
icon5.gif  Re: Need to insert text value into a text field on current cursor position [message #623980 is a reply to message #623949] Wed, 17 September 2014 01:35 Go to previous message
feno_noga
Messages: 3
Registered: September 2014
Location: Egypt
Junior Member
I have a multi line text field where user will write some kind of message
in the message I'm adding parameters that been added from list item using :text_item:=:text_item || :list_item;
so this add the parameter only at the end, when I tried to add the parameter to cursor position, I thought I can divide the text to 2 different items and re-concatenate like
:item_text1 := :item_text2 || :list_item || :item_text3;
put I'm not able to cut the text from cursor poisition

I tried to use win_api_shell.sendkeys procedure to send shift+home or shift+end, and it's not working

Previous Topic: Forms crashes when opened again after compilation
Next Topic: How do I get an active calendar on the forms toolbar
Goto Forum:
  


Current Time: Thu Sep 18 15:20:14 CDT 2014

Total time taken to generate the page: 0.11174 seconds