How can I fill the fields of a table in LibreOffice Base automatically? -


i have database contains table of cellphones. let's every cellphone has 10 fields. in order fill or modify table have several forms available user. however, don't want user modify 10 fields every time. want him give information 4 of fields , rest of them automatically filled or modified program. know how that? :)

while possible triggers, macros, or other coding, it's bad database practice have calculated fields or duplicate data stored in tables. related data should stored through relationships between tables , displayed in query, not directly in table.

so if, say, each store sells single color of phone, have user enter store. have table showed relationship between store name , phone color. when wanted list of users , phone colors, write query looks @ table list of users , bought phones , joins list of stores , colors sell.

my advice has 3 tiers:

  • almost best - redesign database more normalized, meaning use relationships between tables prevent need duplicate data.
  • if decide need macros, resource working openoffice macros andrew pitonyak's book openoffice macros explained (a free download website).
  • sql triggers cleaner way of doing (compared macros) not supported old database engine base default. (base handles queries, forms, , reports. tables handled separate software, default old version 1.8 of hypersql database or hsqldb "embedded" inside base.) need upgrade newer database software. instructions on upgrading hsqldb 2.3 in thread: [tutorial] splitting "embedded hsql database"

Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -