Code Monkey home page Code Monkey logo

nupickers's Introduction

nupickers's People

Contributors

abjerner avatar alain-es avatar bjarnef avatar bowserm avatar csharpforevermore avatar greystate avatar hendy avatar jeavon avatar joelbhansen avatar leekelleher avatar pgregorynz avatar shazwazza avatar steroberts89 avatar theamph avatar tomfulton avatar vnbaaij avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nupickers's Issues

Not working in SQL CE?

Tried to test nuPickers, running it on Umbraco 7.2 alpha on a SQL CE database.

But i keep getting this error in the log:
executing query select id as Key, tag as Label from cmsTags
System.ArgumentException: Keyword not supported: 'flush interval'.

Doesn't it work on SQL CE?

Would be a shame not being able to use it on a hosted site, where there only is SQL CE.

add 'DotNet' DataSource & Pickers

Need to confirm the name 'DotNet', but configuration could be consist of the following fields:

  • Drop down of assemblies containing classes that implement a given interface
  • Drop down of classes implementing a given interface

Add Property Editors:

  • DotNet CheckBox Picker
  • DotNet DropDown Picker
  • DotNet PrefetchList Picker
  • DotNet RadioButton Picker
  • DotNet TypeaheadList Picker

Commas in CSV save format breaks

When I use the CSV format to store values for an XML Typeahead, stored values are not properly displayed when a content node is reloaded (e.g. after saving, leaving node, and entering node again).

Changing the save format to JSON fixes this issue.

Note that the CSV format is the only format that facilitates easy data importing (since it does not require the value label in the data set).

Different Pickers With Same Relation Type Don't Sync?

We're seeing a major problem with syncing Pickers across Document Types.

We are trying to relate different document types (such as a Product and a Download) using a bidirectional "relation only" data type. We actually have two different pickers, one for each end of the relationship, but have them both mapped to the same Relation Type. The picker for the Product node has a list of Downloads that can be related. The picker for the Download node has a list of Products that can be related. These two lists of Products and Downloads are the same parent/child ids that get saved in the Relation table, but the two pickers do not sync. We can only see the checkboxes from the childId node where the selections were originally made.

If we only use one nuPicker then the values are synced, but that isn't practical because we need a different set of checkboxes depending on which end of the relationship the admin is making the selections (product node or download node).

Has anyone else encountered this? Is this a limitation of nuPickers or are we implementing it wrong?
Thank you!

Is PickerPropertyValueConverter needed for DropDown pickers?

Hi there, long time uComponents fan, first time nuPicker user... here's a question ✨

Currently all of the property-editors are being ran through the PickerPropertyValueConverter, which returns a Picker object.

I'm wondering why the DropDown pickers need to be converted, as they are typically a single string value?

csv single item corruption

when saving a single item as a csv, and that item is a number something somewhere is converting this to a number rather than a string - potentially causing an overflow error

Relative url with ~/ not working as expected.

Would it be possible to have the relative url use the current request's domain as the root of the url instead of using mappath to determine the actual location on disk of the requested path. This way we can use our own web api with the Json data picker for example.

Dependency Handler Error

Hello,

I have an issue where nuPickers is working locally, but on the production environment, all of a sudden I am experiencing an error similar to this:

nuPickers.Shared.CheckBoxPicker.CheckBoxPickerEditorController' is not a function, got undefined at Error (native)
DependencyHandler.axd?s=L3VtYnJhY…MuYmxvY2t0eXBlcy5jb250cm9sbGVyLm1pbi5qczs&t=Javascript&cdv=545262247:7:622
Any ideas what this might be? I tried deleting the client dependency folder but no joy.

Edit: when trying to set up a data type using the nupickers, I am getting an error whereby I cannot select the assembly. The error reads:

"An error has occurred.","ExceptionMessage":"The 'ObjectContent`1' type failed to serialize the response body for content type 'application/json; charset=utf-8'.","ExceptionType":"System.InvalidOperationException","StackTrace":null,"InnerException":{"Message":"An error has occurred.","ExceptionMessage":"Could not load file or assembly '311296 bytes loaded from uComponents.nuPickers, Version=1.2.1.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format."

Thanks in advance,

Kenny

Request : Link/URL Picker

Part of uComponents, but missing as a Data Type in Umbraco 7 is the Link/URL picker (or at least I can't find it). As a suggestion perhaps add this to nuPickers??

add a new editor control - Paged Picker (+ data source variants)

Name to be confirmed (PagedList Picker / PagedGrid Picker... ?)

The goal of this picker is to be able to present a large set of data to browse and pick from (without the need for any typeahead text, or restricting the height of a prefetch list picker)

The selectable items would be rendered in pages and items could be toggled - there could be an option to render the selected items in a separate list so that they can be sorted.

PickedKeys Count 0 when using Relations Only Save Format

Hi all!

Love the nuPickers project – amazingly powerful and well structured, even for someone as slow as myself =)

I'm able to wire-up a bi-directional relationship between two published Documents and can render the PickedKeys value on the front-end without a problem. However, when I try to query the same data from a remote page (without using Model or CurrentPage) the PickedKeys Count is always 0.

I'm linking Products to Product Categories. So, on the Product View, this works perfectly:

    var productCategories = Model.Content.GetPropertyValue<Picker>("category");
    @productCategories.PickedKeys.Count() // Renders "3"

But retrieving the same product from a remote page (ie. the site Home page) doesn't work:

    IPublishedContent product = Umbraco.TypedContent(1234); // Product exists elsewhere in the Content tree
    var productCategories = product.GetPropertyValue<Picker>("category");
    @productCategories.PickedKeys.Count() // Renders "0"

Is this a limitation of nuPickers, Umbraco 7, or am I simply misunderstanding how to query the data in this type of situation?

Thank you!

DotNetDataSource: class name not found in custom assembly

I have implemented the IDotNetDataSource in a class library project (using latest Umbraco core libs and nuPickers from NuGet) and dropped the binary in the Umbraco bin folder.

When I create a data type based on a nuPickers:DotNet property editor I can select the assembly yet no class names are returned: the dropdown remains empty (the ajax call completes without errors and returns an empty array).

Add GetEnabled to EnumExtensions

The EnumExtensions now contains the following methods:
GetKey
GetLabel

The EnumDataSource attribute also has an Enabled property. It would be nice if you could also return that boolean with a GetEnabled extension method.

Pick Unpublished content

I can confirm unpublished nodes are not shown for the xmlTypeaheadList and xmlPrefetchList. This is in opposition to the way the Umbraco.ContentPickerAlias and Umbraco.MultiNodeTreePicker work.

Initial class name lookup fails for "App_Code"

Steps to reproduce:

  • Create a new data type
  • Select any of the DotNet/Enum property editors
  • The ajax call to retrieve class names fails with an HTTP 500

I'm using a (near) empty v7.1.4 install, with no code in App_Code.

Add Lucene DataSource & Pickers

A Lucene DataSource could be configured with the following fields:

  • Lucene Searcher
  • Raw Query
  • Key Field
  • Label Field

Add Property Editors:

  • Lucene CheckBox Picker
  • Lucene DropDown Picker
  • Lucene PrefetchList Picker
  • Lucene RadioButton Picker
  • Lucene TypeaheadList Picker

XML Picker - Dropdown empty, user has to save document first

Hi,

I'm using the XML Dropdown picker with an xpath of
$currentPage/ancestor-or-self::Legislature//PoliticalGroupList/PoliticalGroup/*[@isdoc]

The xpath works but only if I save the document first. That is, as soon as I create a new document the XML Dropdown picker is empty. Once I save the document, then the picker loads with the correct values.

If I use an MNTP picker, the xpath works as expected. However, I then have problems due to requiring a Max no. of items restriction and its value not being populated in editorState when using angularjs (http://our.umbraco.org/forum/developers/api-questions/56606-Custom-Property-Editor-Get-value-of-MultiNodeTreePicker)

Am I doing something wrong? Is there a way to force the dropdown to populate on creation of document?

Thanks

Umbraco 7.1.6
nuPicker 1.2.1

When removing nupickers property editor from a Document Type doesn't delete created relations

Hi!

Today we have started to use nuPickers ... and the first thing we want to say you is THANK YOU for these incredible property editors!!

We have added a nuPicker property editor to a Content Type using the relation mapping feature. Everything seems to work properly. The problem is when you decide to remove this property from the content type, the relations created are still here! Is that normal?
Umbraco v7.1.4 and nuPickers v 1.2.1

Cheers,
Alain

Wait a bit and just take last result for typeaheads

The typeahead changes results out of sync and search results doesn't always match what's typed. Waiting a bit seems to make it end up with the right result. Also seems like the xpath one doesn't respect the actual xpath. //DocTypeName is set, but it returns other doc types.

Installing from NuGet

I installed nuPickers 1.2.1 from NuGet into a pretty clean Umbraco 7.1.7 install. At some point everything seemed to be working but then when I came to run it this morning I started to see a 404 for every single plugin. The 404 was triggered by lazyload.min.js:258 An example file that was returning a 404 is:

http://localhost:58072/umbraco/App_Plugins/nuPickers/Shared/DotNetDataSource/DotNetDataSourceConfigController.js?cdv=1194119330

I noted the App_Plugins/nuPickers/ folder doesn't exist in my installation.

I also uninstalled and reinstalled nuPickers, but error persisted. I also deleted client dependency cache and ran Chrome with cache disabled (and debug='true' in web.config).

Feature: Preview

What about adding previewing of data, i.e. on a Dropdown list, whilst inserting the xpath/JsonPath, the user gets to see a table of resolved values

remove nuPickers.PropertyValueConverters namespace ?

as all pickers use the same PropertyValueConverter move this back to root (simpler namespace referencing - but breaking change)

the returned Picker obj belongs at root - the constructor could be made public so this can be reused outside the scope of the PropertyValueConverter (eg.by a typed DotNet Picker)

LucenePrefetchListPicker sorting not saving reliably

RE: LucenePrefetchList Picker
Pick multiple nodes and Save --> success (watching umbraco.config and website)
Sort selected items and Save --> no sort changes saved(just new updateDate in umbraco.config)
Add new item and Save --> new item and order save successfully

Controller.js not loading via ClientDependency in Load Balanced Enviro

In a load balanced environment, I am forcing site admin to one box, so it's not load balanced, per Umbraco doc, but the Controllers aren't loading when ClientDependency is running.
When admin-ing my Data Type that uses xmlTypeAheadPicker, the screen doesn't render correctly and Chrome Dev shows the error:
Error: Argument 'nuComponents.DataTypes.Shared.ListPicker.ListPickerEditorController' is not a function, got undefined
In Chrome Dev, I cannot find that namespace when I search the scripts.

When admin-ing content that uses this DataType, the typeahead does not work and Chrome Dev shows the error:
error: Argument 'nuComponents.DataTypes.Shared.RelationTypeMapping.RelationTypeMappingConfigController' is not a function, got undefined

If I publish a debug version to turn OFF script bunding via ClientDependency then everything works. I can find the namespace in Chrome in unminified /Umbraco/App_Plugins/nuComponents/DataTypes/Shared/TypeAheadListPicker

FYI, the other custom DataTypes are in /App_Plugins, not /Umbraco/App_Plugins, could that make a difference?

Error feedback

If there is an issue with the URL data source, such as the file is malformed (XML and JSON) there should be some kind of reporting to the users? or maybe logging to the log file.

URL Provider: Caching

Maybe implement some kind of caching per datatype? I.e. for an implementation of a Xml/json drop down list, user can say this document doesn't change very often, cache it for 6 hours, maybe with the option in the to clear the cache should they want to.

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.