Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
5
Erster Beitrag:
vor 2 Jahren, 2 Monaten
Letzter Beitrag:
vor 2 Jahren, 2 Monaten
Beteiligte Autoren:
Sivaprakash, Piet van Zanten

Re: Computer columns in Table

Startbeitrag von Sivaprakash am 15.12.2015 06:06

Hello,

Can a computed column be added in a Table ? eg. I got two columns Rate and Quantity in File, but I want to display Amount (Quantity * Rate) in Table, which is not available in File.

Is this possible ? Can I display any computed columns in Table, which is not available in Files ?

Displaying from a query is possible, I think, but I prefer to display directly from File.

Happiness Always
BKR Sivaprakash

Antworten:

Re: Computer columns in Table

Sorry, some typo error in Subject. It should be computed column and not computer column.

von Sivaprakash - am 15.12.2015 06:25

Re: Computer columns in Table

Hi Sivaprakash,

It's very easy, just add a column not linked to the file and put the code in the "row display" section of the table code:
col_Amount=col_Quantity * col_Rate

Regards, Piet

von Piet van Zanten - am 15.12.2015 08:15

Re: Computed columns in Table

Thanks Piet van Zanten for your reply. I'm new to WX, so please bear with my basic clarifications.

I'm adding Table control into a window and trying to add those columns from file.

I could add a new column without linking to any file, but couldn't find a way to define the 'calculation' part there in Table Control. Can I add it there or should I go with script alone ?

Hope I could call a function too, instead of the simple calculation.

Happiness Always
BKR Sivaprakash

von Sivaprakash - am 15.12.2015 09:26

Re: Computed columns in Table

Hello,

Thanks. I got it working.

Happiness Always
BKR Sivaprakash

von Sivaprakash - am 15.12.2015 09:30
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.