Update of forms

I have attached an example since my issue could cause confusion. What you will see are four issues:

Outline: I have a form (orders) and two tabs. Tab 1 holds a list with related orderdetails and tab 2 holds the selected orderdetail form.

I have the following issues all coming from the orderdetail form (tab 2, on the right hand side):

  1. When I have only one tab I don’t see the tab button (see tab 1)…
  2. I have 2 fields ‘sequence’. The first can be filled in by hand, the second are radioboxes. I don’t know why but changing the content of field 1 or 2 doesn’t show any radio button selection but the value is updated…
  3. Changing a value in a field won’t be updated in tab 1 unless you click in the form or attach a method with a call to the controller.
  4. Attached to the sequence field with radio’s I have a method that sorts the controller. Let’s say that the frontmost row has a sequence 1 and the second row has a sequence 2. You select the first row (sequence 1) and change the sequence to 3. The focus now goes to the first row in the list (again) and while you could think you are still editing the same row (1) you are not. You are editing row 2 that moved to the position it received after sorting. I expected the focus to remain with the row that I was editing…

1> is default behaviour, LAF Default with one tab == no tabs..

2> i will check the radio why it looses the selection

3> Data changes will only be seen in other forms on saves..
Will check it if we can improve it.

4> I see that when you sort the selected index stays.
We can only have 2 options after sort:

1> selectedIndex always to 1
2> selectedIndex stays as it was (and it displays what is then after the sort is under that index)

That are the 2 options. So 2 is the one it currently does. Do you want 1?

We can’t change the selected index to the row you are editing. Because then we have to search for it and youre row could be now the last one in the set. So that is not an option.

  1. ok
  2. thanks
  3. thanks
  4. leave it like it is then. I will write my own method to go back to the same row. At least I know now.

2 is fixed (2.0RC7)

3 will keep this behaviour for now (only update on save for Record and ListView)
TableView does something more so that you do see the result live. But this is a bit expensive (but we had to do it for tableview)