Giter VIP home page Giter VIP logo

inputreferenceselector's People

Contributors

andries-smit avatar cdcharlebois avatar jeltemx avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

inputreferenceselector's Issues

Widget does not respond to access rights

When you have only read rights on the association you are still able to select a different object in that association. When you commit you get an error. It would be nicer if the widget acts the same as the standard Mendix widgets and renders as a label.

dijitTextBox is not the right size

See the attachment for a screenshot. Problem is that no matter what I make the size the text is cutoff after 29 characters and then start scrolling.
It looks like the css is overwritten somewhere, because from the code I see that the width is set to 100%.
I hope you can take the time looking at this. And I still think that this should be incorporated in the standard reference selector. Now I have to do all kinds of hacking to get the button there so I can also open a form to show a list of selectable objects.

Regards,

Ronald

2017-01-06 09_33_14-daywizecloud - personeelsmutatie - stap 2 wijziging

Not working in 6.8.1

The widget does not seem to work in 6.8.1 (At least not on tablet). Not getting any errors per se, but the dropdown list does not seem to be populated

Remove jQuery

This widget does nicely do what is needed. However it loads jquery
https://github.com/mendix/InputReferenceSelector/blob/master/src/refkit/widget/InputRefSelector.js#L24

Looking at the use, it does make no sens to use it

$("div#" + this.id).focusin(function() {
	$(this).addClass("MxClient_Focus");
	$(this).css("outline", "#333 auto 2px");
	if ($("div#" + self.id + " div").hasClass("dijitTextBoxFocused")) {
		$("div#" + self.id + " div").css("outline", "rgb(0, 0, 0) auto 0px");
	}
});

$("div#" + this.id).focusout(function() {
	$(this).removeClass("MxClient_Focus");
	$(this).css("outline", "transparent auto 0px");
});

Could this be removed?

Search on emtpy input

Hi,

The option "Search on empty input" works if you enter data and remove it (backspace). However I would like to get the same result when I click in an empty widget. The list is a hint for the user what the selectable options look like.

Here is the scenario: Open a page/popup with the widget. Use the mouse and click inside the widget to give it the focus. Currently it does not anything. The proposed feature is to show the dropdown/list of the first n (as configured) items.

Regards,
Paul

Two issues with new version of InputReferenceSelector

Ticket filed by : @CharlesBronzwaer

1.) We get an NullPointerException error when we use an on change microflow. We get this error when the user changes the value of the InputRefSelector when an on change MF is configured in the widget properties:
java.lang.NullPointerException: null
at com.mendix.webui.actions.client.ExecuteAction.execute(ExecuteAction.java:56)
at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply$mcV$sp(ClientRequestHandler.scala:322)
at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:315)
at com.mendix.webui.requesthandling.ClientRequestHandler$$anonfun$handleRequest$1.apply(ClientRequestHandler.scala:315)
at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2$$anon$1.execute(ActionDispatching.scala:145)
at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32)
at com.mendix.core.session.Worker$$anonfun$receive$3$$anonfun$2.apply(ActionDispatching.scala:147)
at scala.util.Try$.apply(Try.scala:191)
at com.mendix.core.session.Worker$$anonfun$receive$3.applyOrElse(ActionDispatching.scala:141)
at akka.actor.Actor$class.aroundReceive(Actor.scala:465)
at com.mendix.core.session.Worker.aroundReceive(ActionDispatching.scala:137)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:516)
at akka.actor.ActorCell.invoke(ActorCell.scala:487)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:238)
at akka.dispatch.Mailbox.run(Mailbox.scala:220)
at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:393)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)

2.) It is not possible to add a validation feedback to the widget. The feedback is shown in a popup in stead of beneath the inputRefSelector field.

Mendix 6

I have included the widget in a mendix 6 project but I suspect its not working as it did in version 5, its not error messages but the display behavior...

Not able to select an option on iOS

I did some debugging and found out that the selected value is passed differently to the valueChange function on iOS.

Mind that I use the widget autocomplete set to false.

For instance, if you type "Ro" and see the option "Roy van der Valk" appearing and click on it then valueChange is normally triggered with value "Roy van der Valk" while on iOS it only contains the search string "Ro".

@JelteMX Have you got any idea why this is happening?

tagName of undefined

Maybe this is a misunderstood usage but I get this error occasionally when using the input reference selector, see attached image. The issue goes away when the widget is not used.

refselector

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.