albanian-xrm / pcf.multiswitch Goto Github PK
View Code? Open in Web Editor NEWAlbanianXrm's MultiSwitch PCF Component
License: Apache License 2.0
AlbanianXrm's MultiSwitch PCF Component
License: Apache License 2.0
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 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.
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 |
Do you think something like this is possible?
Thank you,
Cheers,
Reinhard
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:
Creating issue from this comment:
https://pcfgallery.userecho.com/en/communities/1/topics/125-create-radio-switch-buttons-control-for-multi-optionset?redirect_to_reply=132#comment-132
- should provide option to display values horizontally
- should provide option to control the height and width of the control as it occupies whole page if there are like 15 options
- provide layout to divide options in to tablix structure like 3 rows and 4 columns
This looks great! Have you considered making the option available to just show checkboxes instead?
Originally posted by egomezats November 1, 2022
Please share the package.json
I see there is no package.json in the repository. Trying to build/install the solution but have many issues with dependencies, modules.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.