Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to render table column data and then use its properties for below cells. Didn't found any example anywhere. #381

Open
rdev06 opened this issue Aug 27, 2024 · 2 comments

Comments

@rdev06
Copy link

rdev06 commented Aug 27, 2024

Expected:-

Year 1 Year 2 Year 3 Year 4
PSF 90 95 100 105
Annual rent 160,920.00 169,860.00 178,800.00 181,260.00

Tried:

+++FOR pro IN proposed+++ Year +++$pro.year+++ +++END-FOR pro+++
PSF +++$pro.psf+++
Annual rent +++$pro.year+++

date: -

proposed: [
      { year: 1, psf: 90, rent: '160,920.00' },
      { year: 2, psf: 95, rent: '169,860.00' },
      { year: 3, psf: 100, rent: '178,800.00' },
      { year: 4, psf: 105, rent: '181,260.00' }
    ]
}`

### I tried too much but apart from year column data (This is coming correct), PSF and Annual rent is always the last one i.e 105 and 181,260.00 in first column that is wrong and rest all is empty.
@DVGY
Copy link

DVGY commented Oct 24, 2024

@rdev06 how does the output look like in doc ?

@SuchiraD
Copy link
Contributor

@rdev06 , Following should work.

+++FOR pro IN proposed+++ Year +++$pro.year+++ +++END-FOR pro+++
PSF +++FOR pro IN proposed+++ +++$pro.psf +++ +++END-FOR pro+++
Annual rent +++FOR pro IN proposed+++ 23.99 +++END-FOR pro+++

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants