Socket
Socket
Sign inDemoInstall

mm-m3-list

Package Overview
Dependencies
1
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mm-m3-list

Created as a helper for H5-SDK in order to display a panel B of an M3 panel whether via Bookmark or SearchRequest. Do not use this library to load a transactional program or programs that will require to load thousands of data at one go. By default this


Version published
Weekly downloads
2
Maintainers
1
Created
Weekly downloads
 

Readme

Source

MMM3List

Created as a helper for H5-SDK in order to display a panel B of an M3 panel whether via Bookmark or SearchRequest. Do not use this library to load a transactional program or programs that will require to load thousands of data at one go. By default this library will load up to 3 pages of B panel data. You can overwrite this number but avoid having to have this bigger than 5. You'll be better off using CMS100MI or datalake for large data consumption.

If the panel supports SearchRequest and that would suffice your need then use it instead of bookmark.

This uses Soho library.

Use this at your own risk. The library comes as is and does not provide assurance of future support

Changelogs

4.0.0

  • Updated to Angular 14
  • Use this for odin cli version 6.0.0

3.0.0

  • Updated to Angular 12
  • Use this for odin cli version 5.0.0

2.0.0

  • Updated to Angular 11

1.0.7

  • Removed peer dependencies (use version 1.0.6 if this does not work)

1.0.6

  • Added event firstDataRetrieved when the first set of data is fetched

1.0.5

  • Updated to Angular 9
  • Stupid author. This should have been version 2.0.0
  • Change to FormService to properly close the instance

1.0.4

  • Added option to ignore a list of columns via ignoredColumns property

1.0.3

  • Added selectedRows() to return all currently selected records
  • Added option to enable checkbox selection via enableCheckbox property

1.0.0

  • Initial release

Usage

  • In your html
<mm-m3-list [bookmark]="bookmark"></mm-m3-list>
  • Then in your typescript file get a reference to the MMM3ListComponent
@ViewChild(MMM3ListComponent) listPanel: MMM3ListComponent;
  • and then define a bookmark object
bookmark: IBookmark = {
    program: 'MMS001',
    table: 'MITMAS',
    keyNames: 'MMCONO,MMITNO',
    sortingOrder: '1'
};
  • to show execute openBookmark
this.listPanel.openBookmark();

You can use properties of the library to customize your grid (Refer on type definitions for complete properties)

  • You can ignore columns you don't need to show in the view (but will be used in the code for code logic)
    <mm-m3-list
        [bookmark]="bookmark"
        [ignoreColumns]="['MMITGR', 'MMSTAT']"></mm-m3-list>
  • You can define your own gridOptions
    <mm-m3-list
        [bookmark]="bookmark"
        [gridOptions]="{
            editable: true,
            filterable: true,
            paging: true
        }"></mm-m3-list>
  • You can define columns that should be editable
    <mm-m3-list
        [bookmark]="bookmark"
        [gridOptions]="{
            editable: true
        }"
        [editables]="['MMITNO', 'MMITDS']"></mm-m3-list>
  • You can change the column headings
    <mm-m3-list
        [bookmark]="bookmark"
        [columnHeadings]="{
            'MMITNO': 'Component Number',
            'MMITDS': 'Description'
        }"></mm-m3-list>
  • You can enable checkbox selection
    <mm-m3-list
        [bookmark]="bookmark"
        [enableCheckbox]="true"></mm-m3-list>
  • You can subscribe to event when all records has been loaded
    <mm-m3-list
        [bookmark]="bookmark"
        (dataRetrieved)="yourMethod()"></mm-m3-list>
  • Overwrite the number of pagedown request. Default is 3
    <mm-m3-list
        [bookmark]="bookmark"
        [requestCount]="5"></mm-m3-list>

MIT License

Copyright (c) 2021 macalat

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Keywords

FAQs

Last updated on 09 Jan 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc