Interface DocMixin

interface DocMixin {
    mBuild(arg): Promise<IUnbuildApp>;
    mCloneBookmark(sourceBookmarkId, title, description?, state?): Promise<string>;
    mCreateBookmarkFromMeta(bookmarkMeta, title, description?): Promise<string>;
    mCreateSessionListbox(fieldName, options?): Promise<{
        layout: IGenericBaseLayoutExt;
        obj: IGenericObject;
        props: IGenericObjectPropertiesExt;
        flattenData(): INxCellListBox[];
    }>;
    mExtensionObjectsAll(): Promise<IExtension[]>;
    mGetBookmarkMeta(bookmarkId, state?): Promise<IMBookmarkMeta>;
    mGetBookmarkValues(bookmarkId, state?): Promise<IBookmarkValue[]>;
    mGetBookmarksMeta(state?): Promise<IMBookmarkMeta[]>;
    mGetFields(): Promise<string[]>;
    mGetSyntheticTables(): Promise<ITableRecord[]>;
    mGetTables(): Promise<string[]>;
    mGetTablesAndFields(): Promise<{
        field: string;
        table: string;
    }[]>;
    mSelectInField(): Promise<boolean>;
    mSelectionsAll(): Promise<ISelectionListObject>;
    mSelectionsSimple(): Promise<{
        field: string;
        values: string[];
    }[]>;
    mSelectionsSimpleGrouped(): Promise<{
        field: string;
        value: string;
    }[]>;
    mUnbuild(sections?): Promise<IUnbuildApp>;
    mVariableCreate(name, definition?, comment?): Promise<IGenericVariableProperties>;
    mVariableGetAll(showSession?, showReserved?): Promise<INxVariableListItem[]>;
    mVariableUpdateById(id, name?, definition?, comment?): Promise<IGenericVariableProperties>;
    mVariableUpdateByName(name, newName, definition?, comment?): Promise<IGenericVariableProperties>;
}

Methods

  • Experimental

    Parameters

    • sourceBookmarkId: string
    • title: string
    • Optional description: string
    • Optional state: string

    Returns Promise<string>

  • Experimental

    Parameters

    Returns Promise<string>

  • Parameters

    • fieldName: string
    • Optional options: {
          destroyOnComplete?: boolean;
          getAllData?: boolean;
          state?: string;
          type?: string;
      }

      Additional options

      • Optional destroyOnComplete?: boolean

        Destroy the session object at the end

      • Optional getAllData?: boolean

        By default the first 10 000 values will be extracted and returned. If need all set this option to true

      • Optional state?: string

        Create the object in specific state. Defaults to $

      • Optional type?: string

        Type of the object. Defaults to session-listbox

    Returns Promise<{
        layout: IGenericBaseLayoutExt;
        obj: IGenericObject;
        props: IGenericObjectPropertiesExt;
        flattenData(): INxCellListBox[];
    }>

  • Returns Promise<{
        field: string;
        table: string;
    }[]>

  • Returns Promise<{
        field: string;
        values: string[];
    }[]>

  • Returns Promise<{
        field: string;
        value: string;
    }[]>

  • Experimental

    Parameters

    • Optional sections: ("script" | "variables" | "appProperties" | "connections" | "bookmarks" | "measures" | "dimensions" | "objects")[]

    Returns Promise<IUnbuildApp>

  • Parameters

    • id: string

      id of the variable to be updated

    • Optional name: string

      variable new name

    • Optional definition: string

      variable new definition (expression)

    • Optional comment: string

      variable new comment

    Returns Promise<IGenericVariableProperties>

  • Parameters

    • name: string

      name of the variable to be updates

    • newName: string

      variable new name

    • Optional definition: string

      variable new definition (expression)

    • Optional comment: string

      variable new comment

    Returns Promise<IGenericVariableProperties>