1Ci Support Help Center home page
Submit a request
Sign in
  1. 1Ci Support
  2. 1C:Enterprise Platform FAQ
  3. Development

How to Dynamically Create and Show a Value Table On a Form

  • Development
    • How to read and write data to/from a 1C:Enterprise info base to an XML file?
    • How to show totals for dynamic list fields on the form
    • How to setup and work with distributed infobases in 1C:Drive, alternative way, when the subordinate databases will not be created from the main infobase
    • Is it possible to cumulatively select and deselect rows of a form table by just left clicking on them?
    • How to filter a dynamic list via programming
    • How can I create a Dynamic List via programming?
    • How to filter a value table on a form by changing the query filling the value table
    • How to insert a value table to a query as a parameter
    • Conditional Appearance: How to set it up from the Designer
    • An example on how the asynchronous methods work
See more

Question:

I want to output to a form a value table whose field count and field data types can change dynamically. How can I do it?

 

Answer:

You can add or subtract fields to a value table attribute of a form via programming in the module of the form. How to add the columns to the FormDataCollection (which is the representation of the value table as an attribute of the form), how to fill them out and then how to show those to the user by adding the corresponding form items, adding an event to the created form item (form table) are shown in the screenshot below. In the immediate window of the screenshot, it is also shown how to refer to a field of a row by using the name of the field (string data type).

how_to_dynamically_create_a_value_table.png

© 2020-2022 1C INTERNATIONAL LLC www.1Ci.com Support policy