On Mon, Apr 22, 2013 at 09:09:52PM +0200, Robert Großkopf wrote:

>> So, I managed to update the built-in help for my new feature. Now, for
>> the Base Handbook chapter 4: forms.

>> Here are the needed changes, all in section Form properties /
>> properties of controls / List box:

>>  - page 23, everywhere that the property "BoundField" is referred to:
>>    I added (for LibreOffice 4.1) the possibility to set that property
>>    to -1 to get (in the database field "Data field") the *index* of
>>    the selected entry (or entries) in the list instead of anything
>>    from the table/query/... as appropriate.

> In the handbook we should only write about features, that exist. So
> let us explain every new feature of LO 4.1 ind the next version of
> the handbook.

Fair enough.

> I haven't followed the whole discussion. As I understood first
> (QA-list) it is planned to change the macro code to get the bounded
> value of a listbox, not only the current (displayed) value. Why do
> you want to change the property of this field to -1?

The change you refer to is for the behaviour of a specific programming
interface, which used to always return the display string of the
currently selected entry, and which will now return the bounding value
of the currently selected entry (like it does for all other
controls). This is completely orthogonal / independent of the
BoundedColumn=-1 feature.

When ListSourceType is Table/Query/SQL/SQL [native], the BoundedColumn
property determines *what* the bounding value is. If it is zero, it is
the display string (that is, the first column). If it is one, then the
second column. If it is two, then the third column, etc.

Now, the new feature is that one can now set BoundedProperty to -1,
and in that case the binding value is the index of the selected
entry. That is, getCurrentValue() will return the index, the index
will be read from / written to the database field, ...

-- 
Lionel

-- 
Unsubscribe instructions: E-mail to [email protected]
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/documentation/
All messages sent to this list will be publicly archived and cannot be deleted

Reply via email to