How to use the @hpcc-js/marshaller.WUResult function in @hpcc-js/marshaller

To help you get started, we’ve selected a few @hpcc-js/marshaller examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hpcc-systems / Visualization / demos / dashy / src / dashPOC.ts View on Github external
// tslint:disable
import { Table } from "@hpcc-js/dgrid";
import { FieldForm } from "@hpcc-js/form";
import * as marshaller from "@hpcc-js/marshaller";

//  Dashboard Element Container (Model)  ---
const ec = new marshaller.ElementContainer();

namespace data {
    export const Ins002_dsOutput1 = new marshaller.WU(ec)
        .url("http://10.173.147.1:8010/")
        .wuid("W20190617-131840")
        ;
    export const Ins002_dsOutput1_Ins002_dsOutput1_View_table1 = new marshaller.WUResult(ec)
        .wu(Ins002_dsOutput1)
        .resultName("Ins002_dsOutput1_View_table1")
        .responseFields([{ id: "state", type: "string" }, { id: "id", type: "number64" }, { id: "first_name", type: "string" }, { id: "last_name", type: "string" }, { id: "gender", type: "string" }, { id: "lat", type: "number" }, { id: "lng", type: "number" }, { id: "whole_number", type: "number64" }, { id: "decimal_number", type: "number" }, { id: "created_time", type: "string" }, { id: "created_date", type: "string" }, { id: "vip", type: "string" }])
        ;
    export const e_8 = new marshaller.Form()
        .formFields([
            new marshaller.FormField().fieldID("filter_state")
        ])
        ;
}

namespace viz {
    export const table1 = new marshaller.VizChartPanel()
        .id("table1")
        .title("Table 1")
        .widget(new Table())
github hpcc-systems / Visualization / demos / dashy / src / index.ts View on Github external
new Databomb()
                    .payload(JSON.stringify([]))
                ,
                new Form()
                    .formFields([
                        new FormField().type("number").fieldID("id").value(770),
                        new FormField().fieldID("fname").value("TIMTOHY"),
                        new FormField().fieldID("lname").value("SALEEMI"),
                        new FormField().fieldID("minitial").value(""),
                        new FormField().fieldID("gender").value("M"),
                        new FormField().fieldID("street").value("1734 NOSTRAND AVE #3"),
                        new FormField().fieldID("city").value("DRACUT"),
                        new FormField().fieldID("st").value("MA"),
                        new FormField().fieldID("zip").value("01826")
                    ]),
                new WUResult(ec)
                    .wu(
                        new WU(ec)
                            .url("http://192.168.3.22:8010")
                            .wuid("W20171201-153452")
                    )
                    .resultName("Result 1")
                ,
                new LogicalFile(ec)
                    .url("http://192.168.3.22:8010")
                    .logicalFile("progguide::exampledata::peopleaccts")
                ,
                new RoxieResult(ec)
                    .service(vmRoxie)
                    .resultName("Accounts")
            ]) {
                datasources.push(datasource);