After a long holiday, i am back. Will discuss about an wonderful property named ‘InlineEditing
Chart of account is a window where your list of accounts is displayed. The same window is used to create a new account as well as finding a particular account (you are looking for analysing it).
Now in Navision, in any in editable window, you can simply start typing in any text and system opens the search box to search that text. But as the Chart of Account is editable (its the entry window), if you start typing something intending to search for it, you can inadvertently overwrite any field in this window. And users do this mistake quite often.
Can we arrange something whereas the system will not allow you to edit this window at the first instance but will allow you to insert a new account if intended?
Yes, you can achieve this using the ‘InlineEditing‘ property. Use this property to force the user to click in the table box or press F2 to begin editing the text inside the table box. In other words once this property is turned on, no editing will be allowed when the form is opened. The user must click on an active editable control, press F2 when an editable control is in focus, or choose to insert a new record to begin editing. So if the user start typing in something immediately after the window is opened, the search function (window) will open and no text will be overwritten by mistake.
This particular property belongs to the Table box. The table box is nothing but the control in any tabular form which displays the different fields from a table. Let do it –
Open the form 16 (the chart of account window) and select the tablebox control.
Go to the property of the tablebox and find out the property ‘Inlineediting‘.
Make it true (Yes). Save the form.
Now reopen the chart of account and see whether it is editable in the first instance or when the form is opened. You will find the you need to click on any field or press F2 to edit it. Otherwise, if you start typing in any text, the search window opens immediately.
Note: You can also set this property dynamically in the runtime depending different criteria.
Hope this serves the purpose of making the chart of account in editable and at the same time, he
same window can be used to edit and insert record.
See you in next post.