Giter Club home page Giter Club logo

parameterhandling's Introduction

ParameterHandling

This extension has been created to handle the parameter string that can be passed to a Job Queue Entry but could be used for any string parsing.

If you have comments, suggestions, pull requests let me know.

  • NOTE: this is in its infancy so there may be radical changes as it matures.
  • NOTE: this is currently in the custom dev range (80000 - 80049) it will be moved to an appSource range in the future.

Usage

Parameter Types

There is a series of parameter Codeunits that provide typed parameters for most simple AL types (decimal, integer, date, time, datetime, text, code, dateformula, boolean). The interface JDV Parameter Handler can be used to add a new type parameter.

Initialization

You add instances of parameters to an instance of Codeunit JDV Parameter Handling for each possible parameter in the list. You specify the default value of a parameter if it is not in the parameter string and also specify if a parameter is required.

Parsing

Simply pass the provided parameter list to the the ParseParameters procedure. The parameter string will be interpreted.

  • Possible errors:
    • A required parameter is not specified.
    • A parameter in the parameter string is not in the defined parameter list.
    • The same parameter name was defined more than once in the parameter string.
    • More than one parameter instance specifies the same name (regardless of type).
    • The parameter string does not start with a hyphen (-).
    • A parameter instance is not properly defined (name and default value required).

Known Issues

  • None identified

parameterhandling's People

Contributors

tscottjendev avatar

Watchers

 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.