www.Inmagic.com    Inmagic Forums    Inmagic Forums  Hop To Forum Categories  Scripting    Print Record script from Record Display
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Posted
Hi - We are currently creating a more user-friendly OPAC from DBTW for Libraries (Pls note we do NOT yet have Web Publisher). I have added a number of script buttons to handle launching a search, navigating through records in the record, opening the full record, printing a customized brief or full report, etc.

I'd like to add a script from the Record Display to "Print Record" but although the various Print report scripts are working fine, I can't figure out the print record. Essentially, it might also be better to treat it
as the "Print Form for Current Window" command.

My knowledge of scripting is extremely basic. The below script has some errors in it as I've been editing the scripts I used from my "print full" and "Print brief" options from the report windows. However, I sense the "print record" option requires different commands, and I also wonder if the better option might be to "Print form for current window".

Any help is appreciated.

function btnPrintBrfRecord_onClick()
{
if (!Application.activeTextbase.printReport("Display> BRIEF"))
Application.message("There are no records to print.");
}

function btnPrintFullRecord_onClick()
{
if (!Application.activeTextbase.printRecord("Display> FULL"))
Application.message("There are no records to print.");
}

Regards,

Becky
 
Posts: 6 | Location: Ottawa, Ontario, Canada | Registered: Wed September 24 2003Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

www.Inmagic.com    Inmagic Forums    Inmagic Forums  Hop To Forum Categories  Scripting    Print Record script from Record Display