Git Product home page Git Product logo

addon_multiple_express_entry_selector's People

Contributors

danklassen avatar dimger avatar hissy avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

triplei dimger

addon_multiple_express_entry_selector's Issues

Cannot Delete Attribute

When I try to Delete a Multiple Express Entry Attribute I get:

An exception occurred while executing 'DELETE FROM AttributeKeys WHERE akID = ?' with params [99]: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (concrete5.atExpressSelectedEntries, CONSTRAINT FK_C9D404BBA2A82A5D FOREIGN KEY (avID) REFERENCES atExpress (avID))

And I really see no way to fix this for myself so far... :/ this is seriously breaking

Using Single and Multi Express Entry Selector Attributes on same Express Object, breaks Single Express Entry Selector

This is effectively a bug report for -> concretecms/concretecms#5718 (comment)

Copied text from that:

So I've tried using the Express Multi-Select, and in my dev testing (concrete5 8.5.4) When I add the multi-select addon manually that @hissy developed, I cannot use Single and Multi-Select attributes on the same Express Object, which is a problem for me.

Example scenario:

First Object, is an Event Location (hotel)

Second Object is an Event Location set of Sub-Sections (multiple meeting rooms, halls, etc)

Second Object is Events

Naturally, the Event Location associates with multiple Sub-Locations in a One-to-Many relationship. That works.

Then I create an Event Location, and two Event Location Sub-Sections. Associate the two Sub-Sections with the test Event Location, and that works.

Then I create the Event Object in such a way that it has two associations:
-Event Object associated with Event Location Object, in (Event) Many-To-One (Location) relationship
-Event Object associated with Event Location Sub-Sections (Event) Many-To-Many (Location Sub-Sections) relationship

Then when I define the Event Object I have Name Attribute, Single Express Select (Location) and Multi Express Select (Location Sub-Sections).

I then make a form with Name Attribute, Single Express Select, and Multi-Express Select.

I can enter the Name for the event, but Single Express Select presents NO options (when I know a location exists) BUT Multi-Express Select does work.

I think the issue is when using a Single Express Select AND Multi-Express Select on the same object, disabling the Single Express Select (and I really do need both to work for many reasons!).

Sorry, bit of a word-ful explanation :/

Create ability to save selected entries against an attribute

Normal attributes can be set using setAttribute('attribute_handle', attribute_value). However trying to set an attribute using a multi - select express attribute does not work as desired in this way. For example I have a user attribute which is an express multi select which holds a list of facilities a user is assigned to manage. I want to import a csv containing new users and assign their facilities based on an array in one field of the csv. But using setAttribute() won't allow this with the express multi select addon.

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.