78
Views
3
Comments
How to create table with x columns
Application Type
Traditional Web

Hello,


I have a table in a WB in a traditional application, but I need this table to be created with x columns. I need the table to be created with the number of columns I pass in a WB input. What is the best way to do this? 


Example:

 I pass in the WB input Ncolumns=3 I need the table created in the WB to have 3 columns. 


Thanks.

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

The only way to do this is to have a table with the maximum number of columns you'll ever need, and hide the cell (using CSS and a "display:none") in case the input is smaller than the specific column number.

However, apart from this being ugly and cumbersome, you won't have much use for such a table, as there's no way to provide dynamic content for these columns.

2024-12-10 04-40-04
Gitansh Anand

Hi Renato, You can use blocks to achieve this. Please look at this post, which I have already answered for reactive web: Creating Dynamic columns on screen

Thanks
Gitansh Anand

2023-04-07 07-55-02
Krushna Mantri

Hi Renato,

you can create dynamic columns tables by using HTML tags, and use that in expressions with escape content No you can refer attach OML (DynamicTable screen).

Test_web.oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.