Multiple values for one field - gwt

In GXT I want to create a form where a single field can have multiple values. so once one value is provided user should have option enter another value for the same field, similar to how we attach files in an e-mail.. what is the best way to do this?

One way to provide a button with plus symbol in the form. Clicking that button should add a field to the form dynamically. User can use that field to provide another value.

If you are talking about a single control, which can capture multiple values, can you try Multi-Select field like the one explained in this thread?

Related

How can you perform form validation at form level (not at field level)?

I know you can use a FormTextField to validate user input at the field level, but say you have First Name and Last Name as fields, and you would like to make sure that at least one of them is filled in.
How can you achieve that ?
Thanks.
I'll share what I did in this scenario. I use TextEditingController for these two fields. And after Form is validated I also check these two fields from controllers and if it matches to the condition then I submit values.If it does not, I show an alert dialog.

Ms Access, double click listbox element to update form

I'm trying to make an improved search text field in a form in Access. I'm searching through my customer names and I've been able to implement a "search as you type" textbox linked to a listbox where the matching records show up.
Now I want to simply double click on an item in the listbox and have all the fields of the form update automatically. I am pretty sure it already exists, but I havn't been able to find it. I'd be glad to be pointed to an existing resource or anything.
Thanks for your help!
In the listbox's On Dbl Click event, click the button and choose code builder.
Then you will need to write some code to figure out which row of the listbox is selected. Use the .ItemData method of your listbox. See here
This will return the value in the bound column of your listbox, which you can use to tell the form to navigate to the record that matches that bound column value. You may want to use a DLOOKUP to find the Record ID if the listbox bound column is not the primary key. Then you navigate to the record. For that you will likely need the .FindRecord method. See here

How to retain the value of an editable text field in a Lotus Notes form every time the user opens it?

I have a form in Lotus Notes containing an editable text field.
Once the user enters a value in that field, it gets saved properly when I check it by opening the document from the back-end.
But I need this value to be seen in the form every time the user opens the form.
Because it is a configuration form where the user should be able to see all the values saved.
For example, a field which contains the path to download a report. And it should be an editable field itself. Is there any way to do this? Any sort of clue or help would be really appreciated. Thanks in advance!
The value of an editable field stored in a document does keep it's value every time the user opens the document.
It sounds like you may ask for something else. You want User A to create a document, enter a value (i.g. a download path) and save the document. When User A or User B later creates another document based on the same form, the previously entered value should be the default. Is that what you mean?
In that case you could simply use #DbLookup or #DbColumn in the formula language in the Default Value property of the field.
Or create a lookup view with the previously created document, sorted descending by date, then use the GetFirstDocument method of the NotesView class to get the first document in that view and read the value out of it using the GetItemValues method of the NotesDocument class.
Performance tip: If you make sure the value you want to look up is visible in the lookup view you can use the GetFirstEntry method of the NotesView class, then use the ColumnValues property to get the value, this is much faster.
Solution is to use #DbColumn in the default value of the editable text field of my form

Cannot see records in form bounded to table in Access

I have a form and it's record source is a table. I created the form separately and added the control sources to the different fields in the form and also changed it's record source. I imported values from an excel sheet into the table and when I open the form, I do not see the tabe values being displayed in the form. Any idea what I should do to see the table records in the form?
In form design mode, check the form's DataEntry property. It sounds like yours is set to Yes, which hides existing records and only allows new entries. Change it to No and you will see the existing records.
Another possibility is that a filter is active and no records match that filter.
Use a form wizard to generate a working form based on your table. Then once you can see the data being displayed in the form, customise as needed.

struts2 select tag, second select based on value of first select

I have 2 select, I want the second select list loads based on selected value of first select. In another word first select is a list of objects, those objects each has a list of another objects. so I want load second list based on selected object of first select. I know that can be done using JQuery, but can I do this without JavaScript/JQuery?
Thanks in advance.
There is a tag that does this for you http://struts.apache.org/2.x/docs/doubleselect.html
Out of the box it probably uses Dojo API or uses a server side request to generate the second list. I have not used any of the JQuery UI in Struts.
No, you can't do this without Javascript. With static HTML you can't achieve this effect; drop-down fields on HTML forms come pre-loaded with their options, and are independent of other fields on the form.