I am trying to implement a dropdown+textbox kind of element in UI. Was using rich:autocomplete to achieve that. It worked, with one issue.
The client requirement is that the textbox should be able to take new values in it. i.e. If the values values are in the dropdown, it will take the dropdown values, otherwise it will take the new values entered.
Is there anyways to achieve that using rich:dropdown? Any other suggestion are also welcome. My application is using JSF2.0 + Richfaces 4.3.4.
Looking at your requirement I can suggest you can use tag input widget, see the reference link url:http://jquery-plugins.net/tag/tag-input
Related
I have the bot which working in MS Teams channel. I use it for creating some FTP groups and other stuff. The key problem, that now i have the large number of that groups and i wanna to filter them, before creating a new one. Is it possible to implement autocomplete for input text-box? I'm trying to use input choice set as a drop down list, but is not good solution, because I have about 200-300 groups, and its very annoying to scroll them down. If you have any solutions, please share it!:)
This is not possible yet. The Adaptive Cards roadmap can be found here.
What you are looking for is 'dynamic searchable select menu (like select2), which is on the roadmap, but currently not planned.
Yes, as #Mick said this feature was not implemented yet. But I hv some workaround to acheive this. We can convert the normal dropdown to the searchable dropdown using select2 jquery plugin.This helps the user to search the value in the dropdown without scrolling for a long time.
I hv attatched the images
1.before plugin how dropdown looks like
2. after plugin how it looks like
below which U can find the difference here
U can simply use jquery cdn and select2 cdn for getting these features.
Now inside the script tag u can write like this
$('select').select2();
So that all te dropdowns will changes to searchable/filterable dropdowns.
Refer this link https://select2.org/getting-started/basic-usage if u have any doubts on how to use this.
This worked for me.
Is it possible to filter a subgrid (Or some sort of list) based on what a user has selected in a dropdown field? If yes, how can I do this?
There is no easy way to do this.
For previous versions, there were some approaches to achieve this requirement (supported or unsupported way). Later this broke and ended up with community recommended Plugin approach. Read more
Since this is picklist dependent, I would assume the list items are few, probably you can build views based on dropdown values & manipulate the subgrid view based on the form value. Read more
Worst case, you can build a custom HTML webresource to render a grid by querying using web api filters.
Recently my boss asked me to complete a view use thymeleaf, this view contains an input box has autocomplete function, and my boss expect me to accomplish this feature using element ui input box which has autocomplete function, so I'm wondering that how can I combine thymeleaf with element ui so that I could use it's conponent.
Please help solve problem, I'll be so grateful for that.
I want to programatically choose one of the options available in a Excel Dropdownlist.
To manipulate the worksheet I'm using win32ole on ruby.
It works well until I try to change the value of the dropdownlist.
I simply don't know how and google has been of no help.
setting a value to a a cell is as simple as worksheet.Cells(x,y).Value=new_value. This is not choosing one of the alternatives available on the dropdownlist and it's not even possible since the cell in question is protected.
The protection doesn't stop me from changin the value manualy via excelso I figure there must be a method or functon somewhere that allows me to simulate this action aswell.
Help in advance for any suggestions.
EDIT:
I'm trying to choose one of the values available in the dropdown list.
I didn't find an api specific for dropdows, but I manage a work around. The data of the dropdown is somewhere in the workbook. Just choose from them and set it to the dropdown cell with "Cells.Value=new_value".
It was a little different for me since my workbook I was working on had some kind of protected custom dropdown but esencially the solution is realizing that the data of the dropdown can be found somwhere else in the workbook.
I am trying to create a dropdown in AbyyFlexicapture.
The dropdown should be filled from database (i have external DLL ready to do the job) or with fixed values. The problem is I cant find the appropriate element for the job. All i found (the closest) was checkbox group, but I dont know how to use it (add items programaticaly). The documentation on this is very poor ...
Any help would be appreciated!
Figured it out. You just push data to textbox with query and it gets auto-converted to dropdown. But theres no way (at least known to me) how to set up default selection...
Look at the IField.Suggest() method.