Giter Site home page Giter Site logo

flx-report's Introduction

flx-report

Install

add jayuda:flx-report to your project

Screen Shoot

![Screen shoot report](Screen Shot 2016-08-26 at 17.21.06.png)

Usage

create route report

Router.route('/report', function () {
	this.render('flxreport');
});

Set Session parameter

var sReportName = "NAME OF YOUR REPORT";
var sReportNumber = "NO REPORT";
var sReportFootNote = "any footnote to your report";
var sCollections = "name of collections";
var sBackUrl = "router on back buttons";
var cCollectionsInitial = DECLARATIONCOLLECTIONS;
var aReportFilter = {"FILTER REPORT TO YOUR collections"};
var aReportOptions = {"ANY OPTION (SORT, FIELDS, LIMIT)"};
var oReportFieldDisplay = [
	{"NAMA":"NAME TO display", "fields": "NAME FIELDS ON collections"}
];



Session.set("reportCompany", reportCompany);
Session.set("reportTo", reportTo);
Session.set("reportNama", sReportName);
Session.set("reportKolom", oReportFieldDisplay);
Session.set("reportCollections", sCollections);
Session.set("reportBackUrl", sBackUrl);
Session.set("reportCollectionsAll", cCollectionsInitial.find(aReportFilter,aReportOptions).fetch());
Session.set("reportNumber", sReportNumber);
Session.set("totalvalue", "");
Session.set("reportFootnote", sReportFootNote);

Router.go("report");

add template menu

<template name="menuDownload">
    <div style="position: fixed; bottom: 20px; right: 80px;z-index: 1000;">
        <a href="#" class="download btn btn-fab btn-fab-mini btn-raised shadow-z-4 shadow-z-2" style="color:{{sHeaderBackground}};"><span class="glyphicon glyphicon-cloud-download" style="color:{{sHeaderBackground}};color: {{sGeneralFont}};font-size: large;position: relative;top:7px;"></span></a>
    </div>
</template>
<template name="menuPrint">
    <div style="position: fixed; bottom: 20px; right: 20px;z-index: 1000;">
        <a href="#" class="print btn btn-fab btn-fab-mini btn-raised shadow-z-4 shadow-z-2" style="color:{{sHeaderBackground}};"><span class="glyphicon glyphicon-print" style="color:{{sHeaderBackground}};color: {{sGeneralFont}};font-size: large;position: relative;top:7px;"></span></a>
    </div>
</template>
<template name="menuBackBottom">
    <div style="position: fixed; bottom: 20px; right: 140px;z-index: 1000;">
        <a href="#" class="back btn btn-fab btn-fab-mini btn-raised shadow-z-4 shadow-z-2" style="background-color:{{sHeaderBackground}};"><span class="glyphicon glyphicon-arrow-left" style="background-color:{{sHeaderBackground}};color: {{sGeneralFont}};font-size: large;position: relative;top:7px;"></span></a>
    </div>
</template>
<template name="menuLoadMore">
  <a href="#" class="loadmore btn btn-fab btn-fab-mini btn-raised shadow-z-4 shadow-z-2" style="background-color:white;position:absolute;right:50%;"><span class="glyphicon glyphicon-menu-down" style="background-color:{{sHeaderBackground}};color: {{sGeneralFont}};font-size: large;position: relative;top:7px;"></span></a>
</template>
<template name="footNoteReport">
    <div style="position: fixed; bottom: 20px; left: 20px;z-index: 1000;">
        <a href="#" class="print" style="color:{{sHeaderBackground}};font-size: smaller;"> Print By {{username}} at {{datePrint}} </a>
    </div>
</template>

flx-report's People

Contributors

jayuda avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.