Coder Social home page Coder Social logo

albanian-xrm / pcf.multiswitch Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 1.0 7.95 MB

AlbanianXrm's MultiSwitch PCF Component

License: Apache License 2.0

TypeScript 97.69% CSS 1.31% JavaScript 1.00%
dataverse powerappscomponentframework pcf made-in-albania

pcf.multiswitch's People

Contributors

asllanmakaj7 avatar betimbeja avatar tjola avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

pcf-stories

pcf.multiswitch's Issues

Ability to use the standard api's for a Multi-Select control

It appears that you can't use the following methods when interacting with this control from a form script:
addOption(1234)
removeOption(1234)
getOptions()
clearOptions()

Having these methods is a pretty important feature for this type of control. It would be much appreciated if you're able to add these. Thanks

Error message when importing as solution

Error message occurs when importing as a solution.

The solution file is invalid. The compressed file must contain the following files at its root: solution.xml, customizations.xml, and [Content_Types].xml. Customization files exported from previous versions of Microsoft Dynamics 365 are not supported.

Feature Request: How can we filter out certain options making them disappear from the UI?

Hello,

Is it possible to filter out certain options making those switches disappear from the UI?

If not, may I ask for a feature providing an option to filter certain options out, hiding them completely (comma-separated values of a multi-option set column or a JSON array of values)?

Perfect solution for one of our current use-cases would be to allow to bind a second multi-option set column to your control (foreign field on the current record) which then acts as a filter on the option values currently being displayed on the UI.

The idea is to implement a dependent multi-option set field, enabling users to select a parent classification and to solely allow selection of matching values.

E.g.: Let's assume we want to classify heroes and therefore have a universe field on our contact form (multi-option set) as well as a category field (also multi-options set). We would like to store the classification of a contact person which represents a hero in our example:

Chat-GPT helped me providing a possible classification matrix of heroes:

Universe ID Universe Name Category ID Category of Hero Contact Name (Hero)
100.001.000 Marvel Universe 100.001.001 Mutant Wolverine
100.001.000 Marvel Universe 100.001.002 Avenger Iron Man
100.001.000 Marvel Universe 100.001.003 Sorcerer Doctor Strange
100.002.000 DC Comics Universe 100.002.004 Kryptonian Superman
100.002.000 DC Comics Universe 100.002.005 Amazon Wonder Woman
100.002.000 DC Comics Universe 100.002.006 Bat-Family Batman
100.003.000 Valiant Universe 100.003.007 Psiot Livewire
100.003.000 Valiant Universe 100.003.008 Eternal Warrior Gilad Anni-Padda
100.003.000 Valiant Universe 100.003.009 Bloodshot Ray Garrison/ Bloodshot
  • Multi-Option Set 1 allows to define the universe(s) and can be 100.001.000, 100.002.000 or 100.003.000.
  • Multi-Option Set 2 allows to set the category (type) of Hero:
    E.g.: If Marvel is selected, only Mutant, Avenger or Sorcerer is available as Category.
  • Always all categories matching to x amount of digits (selectable?; 6 in this example) of the currently selected Universe(s) in Multi-Option Set 1 should be available for selection in Multi-Option Set 2.
  • Assuming Universes 100.001.000 + 100.003.000 are selected, then the first- and last three categories should become available for selection, because six digits match between parent (universe) and child (category) values (100.001 and 100.003).
  • If a universe is being removed, also non-matching categories should become unselected and removed from the UI.

Do you think something like this is possible?

Thank you,
Cheers,
Reinhard

Using 'Fluent UI' instead of 'Material UI'

First off - I too love using Material UI! That being said, for MS related stuff, especially with D365 I like to use Microsoft's own Fluent UI library which appears to better match the UI in Dynamics. Perhaps you could allow switching between the 2 or provide a similar library using the Fluent UI controls found here: Fluent UI

Specifically, you could swap out:

Checkboxes

This looks great! Have you considered making the option available to just show checkboxes instead?

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.