sat100
28th March 2002, 23:05
We are using latest version of Baan software. In any multi-occurrence form there is an option to copy the overview (multi occurrence) records to clip board..see attached picture. I would like to know what functions are used to copy the contents to the clipboard. I have a similar requirement where I should be able to copy value of just one field(instead of the entire record as the standard tools do) to clipboard. Any help is appreciated. Thank you.

NPRao
28th March 2002, 23:37
I think there are some undocumented functions in BaaN.

I found one, but I couldnt find it in the help file.

error = clipboard.to.file(pname)

It uses,


#pragma used dll ottstpguidisp
#pragma used dll ottdskdisplay

#define ALTF4 ((1024-1) + 4)

#include <bic_spec>
#include <bic_event>
#include <bic_object>
#include <bic_process>

I found some more info in the helpfile -

DsNdrawMode
(long) [CS] The drawing mode for the graph control. Possible values are:DSDRAWNOACTION Graph not drawn – reset to
DSDRAWDEFAULT to display the graph.
DSDRAWCLEAR Graph not drawn but background set to
color specified by DsNbackground.
DSDRAWDEFAULT Redraws the graph immediately
(default).
DSDRAWBLIT Graph built in background, then
displayed all at once.
DSDRAWCOPY Copies the graph image as a bitmap to
the clipboard.

thats all I could find...hope it helps you.

bmadhu
29th March 2002, 20:18
I know there are some functions available but never used them before. You can experiment with copy.to.clipboard() , cut.to.clipboard() and paste.to.clipboard() functions available in the "tgbrgtools" dll.

NPRao
29th March 2002, 20:33
Hi Madhu,

I could not find the script - tgbrgtools. We are working on the BaaN-5.2 Reger.

Can you please clarify me ?

Thanks!

bmadhu
29th March 2002, 21:47
'tgbrgtools' library is available in BaanIVc4 only. For ERP you would have to use the tools object 'ottdskclip'.