home *** CD-ROM | disk | FTP | other *** search
- /****************************************************************************\
- * *
- * KBResult.jrp -- Knowledge Base Search Results Report *
- * *
- * KBResult.jrp is part of the Knowledge Base solution application. It is *
- * called by the kbsearch.jfm form to show a list of documents that match the *
- * search criteria. The report file takes one parameter, which is a sql *
- * statement that is used to search for data. Each of the document titles *
- * is used to link to the kbdoc.jfm form. *
- * *
- * Dependencies: knowbs31.gif *
- * homepg31.gif *
- * paper_22.gif *
- * apps\shared\controls.cc *
- * *
- * Links to: ibapps/index.htm *
- * svr/intrasrv.isv?apps/knowbase/kbsearch.jfm *
- * svr/intrasrv.isv?apps/knowbase/kbdoc.jfm(<DocID>) *
- * *
- * Updated 8/27/96 by IntraBuilder Samples Group *
- * $Revision: 1.17 $ *
- * *
- * Copyright (c) 1996, Borland International, Inc. All rights reserved. *
- * *
- \****************************************************************************/
- // This heading is used in place of the standard report heading, to get
- // the query string for the report. Since the page numbers are not
- // passed in, this report prints all at once.
- var r = new KBRESULTReport();
- if (KBRESULT.arguments.length == 1) {
- r.query1.sql = KBRESULT.arguments[0];
- }
- r.render();
- return;
- // {End Header} Do not remove this comment//
- // Generated on 08/27/1996
- //
- var r = new KBRESULTReport();
- if (KBRESULT.arguments.length == 2) {
- r.startPage = KBRESULT.arguments[0];
- r.endPage = KBRESULT.arguments[1];
- }
- r.render();
- class KBRESULTReport extends Report {
- _sys.scripts.load(_sys.env.home() + "APPS\\SHARED\\CONTROLS.CC");
- with (this) {
- title = "Knowledge Base Search Results";
- linkText = "Next Page";
- }
-
-
- with (this.ibapps1 = new Database()){
- left = 49;
- top = 3;
- databaseName = "IBAPPS";
- active = true;
- }
-
-
- with (this.query1 = new Query()){
- left = 570;
- top = 0;
- database = parent.ibapps1;
- sql = "@kbresult.sql";
- active = true;
- }
-
-
- with (this.query1.rowset) {
-
- }
-
-
- with (this.pageTemplate1 = new PageTemplate(this)){
- height = 15840;
- width = 12240;
- marginTop = 1080;
- marginLeft = 1080;
- marginBottom = 1080;
- marginRight = 1080;
- gridLineWidth = 0;
- color = "silver";
- background = "filename PAPER_22.GIF";
- }
-
-
- with (this.pageTemplate1.streamFrame1 = new StreamFrame(this.pageTemplate1)){
- height = 13000;
- left = 360;
- top = 360;
- width = 9360;
- }
-
-
- with (this.streamSource1 = new StreamSource(this)){
-
- }
-
-
- with (this.streamSource1.detailBand) {
- height = 1200;
- }
-
-
- with (this.streamSource1.detailBand.TitleHTML = new HTML(this.streamSource1.detailBand)){
- height = 192;
- width = 1500;
- color = "black";
- fontBold = false;
- text = "Title ";
- }
-
-
- with (this.streamSource1.detailBand.TitleFieldHTML = new HTML(this.streamSource1.detailBand)){
- height = 192;
- left = 2000;
- width = 7000;
- color = "black";
- fontBold = false;
- text = {||"<A HREF='/svr/intrasrv.isv?apps/knowbase/kbdoc.jfm(" + parseInt(this.form.query1.rowset.fields["DocumentID"].value) + ")'>" + this.form.query1.rowset.fields["Title"].value + "</A>"};
- }
-
-
- with (this.streamSource1.detailBand.DocumentIdHTML = new HTML(this.streamSource1.detailBand)){
- height = 192;
- top = 192;
- width = 1500;
- color = "black";
- fontBold = false;
- text = "Document Number ";
- }
-
-
- with (this.streamSource1.detailBand.DocumentIdFieldHTML = new HTML(this.streamSource1.detailBand)){
- height = 192;
- left = 2000;
- top = 192;
- width = 1000;
- color = "black";
- fontBold = false;
- text = {||parseInt(this.form.query1.rowset.fields["DocumentID"].value)};
- }
-
-
- with (this.streamSource1.detailBand.ProdCatHTML = new HTML(this.streamSource1.detailBand)){
- height = 192;
- top = 384;
- width = 1500;
- color = "black";
- fontBold = false;
- text = "Product / Category ";
- }
-
-
- with (this.streamSource1.detailBand.ProdCatFieldsHTML = new HTML(this.streamSource1.detailBand)){
- height = 192;
- left = 2000;
- top = 387;
- width = 5000;
- color = "black";
- fontBold = false;
- text = {||this.form.query1.rowset.fields["ProdDescript"].value + " / " + this.form.query1.rowset.fields["CatDescript"].value};
- }
-
-
- with (this.streamSource1.detailBand.KeywordHTML = new HTML(this.streamSource1.detailBand)){
- height = 192;
- top = 576;
- width = 1500;
- color = "black";
- fontBold = false;
- text = "Key words ";
- }
-
-
- with (this.streamSource1.detailBand.KeywordFieldHTML = new HTML(this.streamSource1.detailBand)){
- height = 192;
- left = 2000;
- top = 576;
- width = 8383;
- color = "black";
- fontBold = false;
- text = {||this.form.query1.rowset.fields["Keyword"].value};
- }
-
-
- with (this.streamSource1.detailBand.rule1 = new Rule(this.streamSource1.detailBand)){
- top = 900;
- size = 2;
- right = 9000;
- }
-
-
- with (this.printer) {
- duplex = 1;
- orientation = 1;
- paperSource = 15;
- paperSize = 1;
- resolution = 4;
- color = 2;
- trueTypeFonts = 2;
- }
-
-
- with (this.reportGroup) {
- groupBy = "";
- }
-
-
- with (this.reportGroup.headerBand) {
- height = 1600;
- }
-
-
- with (this.reportGroup.headerBand.KnowledgeBaseLogo = new Image(this.reportGroup.headerBand)){
- height = 1255;
- width = 1265;
- dataSource = "filename KNOWBS31.GIF";
- alignment = 4;
- }
-
-
- with (this.reportGroup.headerBand.HeadingHTML = new HTML(this.reportGroup.headerBand)){
- height = 435;
- left = 2000;
- width = 7000;
- color = "navy";
- text = {||'<H1><FONT SIZE="+4"><FONT COLOR="maroon">K</FONT></FONT>nowledge <FONT SIZE="+4"><FONT COLOR="maroon">B</FONT></FONT>ase <FONT SIZE="+4"><FONT COLOR="maroon">R</FONT></FONT>esults</H1>'};
- }
-
-
- with (this.reportGroup.headerBand.rule1 = new Rule(this.reportGroup.headerBand)){
- top = 1400;
- size = 2;
- right = 9000;
- }
-
-
- with (this.reportGroup.footerBand) {
- height = 3560;
- }
-
-
- with (this.reportGroup.footerBand.MatchesHTML = new HTML(this.reportGroup.footerBand)){
- height = 200;
- width = 9000;
- color = "maroon";
- fontBold = false;
- fontItalic = true;
- text = {||"Number of matches: " + this.parent.parent.agCount({||this.parent.streamSource1.rowset.fields["DocumentID"].value})};
- }
-
-
- with (this.reportGroup.footerBand.rule1 = new Rule(this.reportGroup.footerBand)){
- top = 300;
- size = 2;
- right = 9000;
- }
-
-
- with (this.reportGroup.footerBand.SearchLinkImage = new Image(this.reportGroup.footerBand)){
- height = 1245;
- top = 500;
- width = 1240;
- dataSource = "filename KNOWBS31.GIF";
- alignment = 4;
- onImageClick = class::link_to_search_page;
- }
-
-
- with (this.reportGroup.footerBand.SearchLinkHTML = new HTML(this.reportGroup.footerBand)){
- height = 250;
- left = 2005;
- top = 500;
- width = 6500;
- color = "black";
- fontBold = false;
- text = {||'<A HREF="/svr/intrasrv.isv?apps/knowbase/kbsearch.jfm">Start a New Search</A>'};
- }
-
-
- with (this.reportGroup.footerBand.HomePageLinkImage = new Image(this.reportGroup.footerBand)){
- height = 1215;
- top = 1800;
- width = 1255;
- dataSource = "filename HOMEPG31.GIF";
- alignment = 4;
- onImageClick = class::link_to_home_page;
- }
-
-
- with (this.reportGroup.footerBand.HomePageLinkHTML = new HTML(this.reportGroup.footerBand)){
- height = 250;
- left = 2005;
- top = 1800;
- width = 6500;
- color = "black";
- fontBold = false;
- text = {||'<A HREF="/ibapps/index.htm">Return to Home Page</A>'};
- }
-
-
- with (this.reportGroup.footerBand.rule2 = new Rule(this.reportGroup.footerBand)){
- top = 3150;
- size = 2;
- right = 9000;
- }
-
-
- with (this.reportGroup.footerBand.GeneratedHTML = new GeneratedHTML(this.reportGroup.footerBand)){
- height = 200;
- top = 3350;
- width = 9000;
- fontBold = false;
- }
-
- this.firstPageTemplate = this.form.pageTemplate1
- this.form.pageTemplate1.nextPageTemplate = this.form.pageTemplate1
- this.form.pageTemplate1.streamFrame1.streamSource = this.form.streamSource1
- this.form.streamSource1.rowset = this.form.query1.rowset
-
- function link_to_home_page()
- {
- // {Export} This comment causes this function body to be sent to the client
- location.href="/ibapps/index.htm";
- }
-
- function link_to_search_page()
- {
- // {Export} This comment causes this function body to be sent to the client
- location.href="/svr/intrasrv.isv?apps/knowbase/kbsearch.jfm";
- }
-
-
- }
-