Tabbing have issue if next field is readonly - odoo

I want to fill the fields using tab key and it is working fine in all cases but if next field is read-only then it doesn't work and even for the toggle buttons it doesn't make focus on toggle fields.
I tried using tabindex on these fields but it doesn't works and grouping structure changes doesn't fit in my case.
So how can I solve this issue?

Related

Save databound table information spread across 3 tabs vb.net

I have a Windows form with a tab control on it. I have fields from one bindingsource on 3 tabs of the tab control. I can open the form and change data on all 3 tabs and navigate between tabs and my changes are there. When I click on the 'Save' button on the BindingNaviator, not all of my changes are saved to the table I am bound to. Is there something special that needs to be done to not lose the changes?
I found the issue. On Tab2 of my tab control I have some number fields. There is also a checkbox the user can select to set those number fields to 100, and if they uncheck it, it was setting the the .text property of those to "". The fields should be set to 0 instead of a blank. After I made this change, it works fine. Thanks for the help.

Microsoft Access - Navigation form is causing my query to not work

I got a form that works amazingly by itself, but the second I attach it to my navigation form. I start to get prompted for user input since this line
[Forms]![frm_addReceiveReportInformation]![cbo_PurchaseOrderID]
no longer works due to the current form becoming subform in the navigation form which was explained in
ACCESS 2010 Navigation Form Query Property
I can't seem to figure a way out of using the !form since I absolutely need to retrieve the ID from a combo box to update another combo box.
I tried multiple ways of using the !forms but I can't seem to wrap my head around how to retrieve my information that I am seeking.
I got the 2 way navigation menu(vertical + horizontal tabs). Anyone got advice or has encounter this problem in the pass, who can direct me down the right path.
To access a field inside a form, which is attached to a navigation tab, you should use the following structure:
[Forms]![YourNavigationTab]![NavigationSubform].[Form]![YourField]
Note: tested in MS Access 2013
In order for queries that contain form references to work, the form must be fully loaded. I think the problem you are experiencing is that the query in the Row Source of the Part Code combo is being evaluated before the form is loaded and therefore you are being asked to input the parameter value.
You can work around this by leaving the Row Source property of the Part Code combo empty until it gets focus for the first time, something like:
Private Sub cboPartCode_GotFocus()
If Len(cboPartCode.RowSource) = 0 Then
cboPartCode.[RowSource] = "Your Query"
cboPartCode.Requery
End If
End Sub
I sometimes just put a button on the navigation form which opens the desired form as a standalone form. It is probably not the neatest solution but it does work.

Arrow keys don't work after programmatically setting the selected item in a listview

I have a listview with some things in it, and I have a sub that will refresh the listview by deleting everything in it and re-populating it.
However, when the user selects an item and the list refreshes, I wanted to have that same item select itself once more. I accomplished that by doing:
ListView.Items(4).Selected = True
ListView.Select()
which selects the 5th item in the list view (counting 0). However, when the user presses the up or down keys, the selected item jumps back up to the top item in the list, and I can't find a way around this.
The only search that has come up with anything is here:
Arrow keys don't work after programmatically setting ListView.SelectedItem
But I do not understand the responses, I need a dumbed down version or a simpler solution if possible, thank you.
Try using the Focused property on an Item. Seems like I may have run into this before.
ListView.Items(4).Focused = True
You may also need to set that same property to False for the first item in the list.

Turn off field programmatically in VB.Net

I'm creating an addin button in Arcmap via VB.net that when clicked, runs the identify tool. But I want only selected fields to appear in the identify dialog. I thought of hiding the unnecessary fields and then showing them again after the button is used.
Does anyone know how to programmatically turn off/on field?
you have to iterate the fields in layer and then set visible property into false .
see this link in
gis.stackExchange

SQL Report initial toggle state

I have a report that contains a table of data this data is set to be intially collapsed using the initial toggle state property setting, however this does not happen the (sub-data) for want of abetter word still appears, and to make things even more confusing the icon that is placed at the side changes from the expected minus in expanded mode to a plus (which I would expect when the data is collapsed)
I have been trying to solve this for hours now but I cannot find a setting that will remedy the situation. I have tried selecting the row and edit group this allows me to set the rows to be exapnded by the relevant parent field, which I do set, but when applying the collapsed setting to the sub data, it is ignored.
Any help would be much appreciated thanks.
there seemed to be a strange error where if i edited the group directyly the group displayed the settings buit the page did nor solved by editing the page settings as well