Home pageFind It!Contact JeksJeks documentation

Jeks

 Jeks forum

This forum is dedicated to Jeks.
You may read freely the messages it contents. If you want to write a message or answer to a subject, subscribe to it first.

Subjects Recent messages Login Subscribe

Messages of subject Calculating for the whole column

hhuynh

Location : USA
Member since : Feb 10, 2004
Messages : 4
 Feb 10, 2004 at 6:41 AM
Is there away to specify the value of a colum is a function with
input is another column?

   |A     B = sin(A)
   |-----------
1 |34   xx
2 |45   xx
3 |6     xx

Right now, all can do is manually enter the formula for each cell of column B. In Excel, you can copy the formula and stretch it out along B as long as you need.

Manu

Location : Paris / France
Member since : Apr 29, 2003
Messages : 394
 Feb 10, 2004 at 11:19 PM
If you just try to find out the way to stretchout th a cell formla out along a column, it's not possible in Jeks.
On the other side, if you want to display some values in a JTable where some columns are computed with a formula that references the cell of a column at the same row, it's possible if you create your own TableModel using JeksParser to compute some cells. Have a look at
http://www.eteks.com/jeks/en/doc/com/eteks/parser/ExpressionParser.html to get a (little) idea about the way of doing this.
If this is the feature you're looking for, just tell me, I'll try to give you an example of this kind of TableModel.
---
Manu (moderator/modérateur)


Home pageFind It!ContactTop

© Copyrights 1997-2023 eTeks - All rights reserved

JeksJeks documentation