Hi Paulette,
Not sure how the Java you're working with would/could access buffer (named
or default). Might need some ACL to intermediate. Not sure what your
ultimate goal is, not sure how Java might integrate with what I'm about to
share, again, might need some ACL to intermediate, but you could create one
or more tempfiles.
I stripped the following out of some of my code (and hid some
corporate-speak so there is a possibility I've introduced error) but it
should give you a strategy for creating, opening, displaying, and
destroying a temporary file. Whether it would work (or whether you'd ever
want to display it .... it sounds like not) for your purposes ... can't
say. Displaying help for the various commands would reveal variations you
might need that I don't use.
## building temp file
local fn=temp_name("myname");
local tempfile = open( fn, "w+" );
if(tempfile < 0)
{
response("Couldn't open file $tempfile for write");
return 0;
}
put($tempfile, $some_content);
put($tempfile, $more_content);
close($tempfile);
local mydoc = doc_open($fn)
local flags=1+8
local geom="500x500-10+10"
mywin = window_create( 'help', flags, mydoc, geom );
window_set(mywin, 'title', 'mytitle’);
current_window(mywin)
window_show(mywin,1);
window_raise(mywin)
window_destroy(mywin);
On Thu, Apr 4, 2013 at 1:42 PM, Paulette Zorrilla <
paulette.zorrilla@oracle.com> wrote:
> Hello experts!!
>
> I'm trying to create and use a buffer in order to save data that later
> will be presented to the user in a textbox inside a customized window
> which was created by me, however i don't know a lot about buffers, I
> found the paste command but I understand is only to paste the content
> from my buffer to the place where the cursor is inside my document. I
> thought that a buffer would be a good idea since my content will be
> generated dynamically in a Java class which acts as an analyzer and
> using content extracted from Arbortext. So, I create the buffer in my
> init script and then I insert the info in my buffer, but when I need the
> buffer's content I don't know what to do? :'(
>
> Please, I really appreciate your time and support, and also all the
> information related with buffers that you can provide me, also if any of
> you knows another way to manage my issue, I really appreciate your opinion.
>
> Best Regards!
> Paulette Zorrilla
>