Continuing with my zk studies, now i have a better knowledge about data binding features from here
Selected Item data from a table to textbox in ZK
thanks for the previous help i resolved the issue, now i have a small request for someone that has experience using ZK and it is when i select an item from this table
http://s33.postimg.org/mo1bu0ua6/Sample.jpg
i want to enable all the component of above, the textboxes and the buttons and only when i do the selection.
How works the components restrictions enable/disable in ZK in this particular case? i am open to your suggestions, thank you for your time.
If you work with MVVM patter it's actually very easy :
<textbox value="bind(vm.selectedObject.textValue)" readonly="#load(empty vm.selectedObject)" />
databinding works for each attribute and you can use some keywords in it.
Related
I am trying to make my job easier by creating simple AHK scrips to auto-fill certain forms online.
Im not really good at explaining, but hopefully someone will understand what Im saying. The problem is that this website has certain textboxes with dropdown auto-suggestions turned on, and it has a delay when selecting those textboxes. I assume when selecting textbox it is pulling data from some database which is causing delay. Now my question is. Is it possible to turn off dropdown menu on websites or even in entire browser if necessary? I really want to my script to tab-in, wright down whats needed, tab-out without delay.
Autocomplete dropdown lists are just JS scripts. So there is no way, I think, to disable them by clicking checkbox in browser settings.
First, try to disable JS completely.
Also, if only few sites are involved, you could try to find out what JS libraries are used and disable them in browser JS console.
Are you planning to do this via keypresses or via COM?
I imagine that via keypresses you could not avoid focusing the elements and triggering the information lookup.
AutoHotkey can interact with webpages on Internet Explorer using COM (Component Object Model).
COM can launch/latch onto an IE instance, detect if the page is loading/has loaded, navigate to a particular url, and set the text of web elements,
quite possibly without triggering the drop-down lists. I haven't tested if COM can disable elements, it's possible.
Also, Acc.ahk may be able to set the text of elements.
In JIRA, you can create quick filters so you can easily find your issues based on some custom filterings. For example, I have the following quick filters:
Bugs
My issues
Coworker's issues
Recently created
When I click each one of them I want all others be become deselected. How can I do this? Right now they all stay selected when I click around.
The answer is: you can't. They are just designed as a toggle buttons.
But... if you are really depressed to do that you can create JIRA plugin which will inject some JavaScript to do that for you ;)
according to this Thread: http://social.msdn.microsoft.com/Forums/vstudio/en-US/d566e2e5-3782-4e2b-be3b-85228f41dfc3/add-a-tree-path-field-in-work-item it is not possible to create a TreePath or AreaPath for a custom-field.
I kinda can't believe nobody is running into extreme problems without this crucial controls.
Since the last answer in this Thread (and the others about this I found) is from earlier last year, was there anything changed about this control?
Has anyone found a solution about this? I tried to google about creating own custom controls, but I think this is not possible. Is there any workarround to create a easy tree-structure in a control?
Thanks and greetings
Matthias
Read more carefully. You cannot have fields with TreePath data type, but you can create custom controls for other data types.
In other words, you can create custom controls that display hierarchical information as long as you are able to represent this in an existing data type, in practice the String type.
Examples of custom controls at https://witcustomcontrols.codeplex.com/.
I was wondering if there are any ways to place a Listboxfor inside a Texboxfor? I am using Bootstrap in a MVC project for a registration page and have a text field for character name input and a dropdownlist field for a server select. Currently, they are placed consecutively, but I was thinking it would be visually appealing to have the dropdownlist inside the textbox as they are interrelated.
Thanks for the help!
It's not clear what you're trying to achieve here, but you cannot place a drop down list inside a textbox. That's not how the HTML elements work.
If you just want the drop down list next to the textbox, just put one directly after the other. They're both inline elements (by default, though you may have CSS that changes that behavior), so they'll naturally flow together.
If you're talking about having a combo box, where you start typing and options appear based on entered text, that's JavaScript-based functionality. There's tons of plugins online for that type of thing. Just do a search on Google and integrate one that works best for your needs.
I am trying to show/load different editor on different rows of a editorgridpanel. Like a textbox on one row combobox/superboxselect on another and it could be any order, random.
The conditions which dictate which editor will be shown reside in the database.
Please tell me if this is possible and if so, how do i go about it.. I have tried pulling the conditions asynchronously which are pulled on a click event for the respective column, but calling it async causes problems. Please advise
Anything is possible, but what you want to do would take a bit of work. The basic idea would be to configure the needed grid editor(s) dynamically and update the columns with the new editors when needed. Now... what would be required to make that actually work I couldn't say offhand without digging into the Ext source -- it would almost definitely require overriding default behavior in the grid and/or column model.
Pulling your conditions asynchronously would (I imagine) be too slow for the interaction of clicking on a row to edit inline. If it takes a second or more from click to configured editors, that would not be acceptable performance. I would try to find a way to send your conditions down along with the other row data if at all possible (they can be in the store's data model on the client without having to be shown in the grid).
Without knowing more about your business requirements, it might be more appropriate to ditch the editable grid and instead go with a dynamically-configured FormPanel tied to the grid. This way the interaction of clicking and then pausing slightly while the form is configured would appear to be more natural. Also, the functionality of rendering a form with a particular configuration is perfectly standard and would require nothing fancy on your end. See this example as a starting point (your form would be dynamic, but maybe the same type of interaction could work?)