257
Views
6
Comments
Solved
Creating Dynamic columns on screen
Question
Application Type
Reactive

Hello Team

In my application(Reactive) I have a table like below screenshot and need to get the information on the screen also in screen shot.

The trick here is the FUND column needs to be dynamic, so later if I have a fund no 5 in the table my screen should have the FUND5 as a new column. This is in Reactive application. I did look for in the forum for some ideas and I need some inputs on how do I approach the above in Outsystems.


Thanks in advance.


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

Hi Baishali Deb, I am not sure if there is a forge component available, but I am adding an OML, please look to see if it works for you.

I have not used tables; instead, I have used blocks to generate the required case.

You may need to work on UI.

Thanks
Gitansh Anand

Test.oml
2022-06-20 10-22-18
Nabeel Khan

Hello

You can give a try to this Forge available,

https://www.outsystems.com/forge/component-overview/3669/dynamictable

Thanks,

Nabeel Khan.

UserImage.jpg
baishali deb

Hi Nabeel, thanks for the link to the forge component.. but I am looking for something which can work in Reactive... The component above if I am not wrong is for traditional application.

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

Hi Baishali Deb, I am not sure if there is a forge component available, but I am adding an OML, please look to see if it works for you.

I have not used tables; instead, I have used blocks to generate the required case.

You may need to work on UI.

Thanks
Gitansh Anand

Test.oml
UserImage.jpg
baishali deb

Hi Gitansh... 

It was a really cool idea to use the weblocks for getting my dynamic columns and I could get them, For this solution If I need to also implement pagination to the data like showing only 10 records at a time in the main page and that should also get me the corresponding data in the weblock, how do you think I must proceed?

Thanks

Baishali

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

Hi Baishali, I am adding an updated OML.
I have created two screens, both of which have the same approach. The only difference is that in the first screen, I have used a data action to reduce server calls (I have not tested the SQL, so there might be syntax errors, but you can get the general idea), and I suggest you also use the first screen approach.
There may be a better way to implement this, but at the time, this is what I could think of.

Test.oml
UserImage.jpg
baishali deb

Hi Gitansh

Thank you for the ideas.. It did solve my problem with dynamic columns and also the navigation.

Thanks

Baishali

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