GithubHelp home page GithubHelp logo

nielsminnee / nndropdown Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 6.0 252 KB

Control which converts Many-to-Many relationship into a multiselect dropdown. Via an input parameter a filter can be added, which is impossible with OOB Functionality of the N:N Control.

Home Page: https://be-empowered.nl

License: MIT License

TypeScript 100.00%
dropdown dynamics-365 many-to-many pcf powerapps powerapps-component-framework powerplatform react

nndropdown's People

Contributors

nielsminnee avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nndropdown's Issues

Control is not displayed in lookup field

Despite import the solution, creating the NN relationship and the search field, the NN Dropdown control does not appear in the search field.

image

What could be the problem?

Component unable to display self-referencing N:N relationships

Currently the component is unable to display self-referencing N:N relationships (when an entity has an N:N to itself) due to the field names being different in the intersect entity. This causes the FetchXml queries and dropdown logic to break.

In a standard intersect entity the ID fields for the respective entities are always named following the pattern '{entityname}id' (for example) 'new_entityid' and 'accountid', this is assumed and implemented in the component.

However with a self-referencing N:N, the intersect entity can not contain two fields named '{entityname}id', the Dataverse auto-corrects for this by using a different pattern, namely: '{entityname}idone' for the left side and '{entityname}idtwo' for the right side of the relationship.

I've created this issue to attach a PR to address this issue :-)

How to define data order as accent-insensitive?

Hello, does anyone know how to define a FetchXML filter that sorts the data in an accent-insensitive way?
Because currently, the component lists our accented data (French) in an accent-sensitive order whereas in Dataverse the sorting lists the data in the expected accent-insensitive order.
Thank you in advance if any of you has any clue that could guide us to a solution. Best regards.

make the bound field required

Hi,
is there a way to make filling the "dropdown" REQUIRED, after saving the record of course?
I have a business scenario where the user should fill in the field where I am using this PCF control, and triggering a JS onchange of the field is not successful as we are not writing any data into to the actual field

thanks

Field value not set

Hi,

I changed the fetchxml to get distinct values of the column, after changing to new column and changing the primary column to point to this new column.

Its not storing the value select in the dropdown and also selecting multiple options is not working, after selecting first value , dropdown closes.

Apprecaite your help

Dynamic values to the filter fetchxml ?

is it possible to pass the values to the filter fetchxml, i have filter on the fetchxml to show values for country, can this country value be dynamically changed based on parent entity field value (country)

Filtering based on lookup : any way ?

Hi! Thanks for this great control! This is exactly what I was looking for.

In addition, it would be nice to allow filtering based on another lookup. Is there currently already a way to achieve this? I thought about binding the TargetEntityFilter to a Text Field, that would contain the fetchXML. I tried this with a calculated field, but calculated fields only work on Single Line of Text fields (and not multiple lines of text).

Keep up the great work!

FetchXML filter setting field truncation after 100 characters

Hi,
First of all this is an awesome PCF control, and thank you for it.
I discovered that there might be a bug on the "TargetEntityFilter" in which we enter the FetchXML filter, but the field truncates everything after 100 characters, which breaks the filter and the control.

appreciate looking into it.

Thanks

How to get selected values?

Is there a way to get the selected values in a javascript save event handler method? I'm trying this command and it's returning null:

var selectedVals = formContext.getAttribute("xyz_multiselectfield").getValue();

The control does not save

Hi,
I was able to implement the custom control and with the filter too, and the records show up from the target entity very nicely...but it does not save any data to the relationship!
am I missing anything here?

Clarity over N:N

Hi

It's not clear whether this only works for pure N:N relationships, or whether it can work with a custom intersect table and two 1:N relationships (such that other use cases can added additional fields to the intersect table). Also not clear if the names entered into the controls need to be the names (typically all lower case) or Schema names (which can include capitals)

How to turn component in read-only ?

Hi,
First of all, many thank for your fantastic component !!! It's working like a charm :-)
In one of my forms, I would like to turn the NNDropDown component in read-only when current record statecode is "Inactive" but I cannot find how to do it ?
Thanks for your help.

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.