Changes for page TradeJournal

Last modified by Drunk Monkey on 2024-09-27 08:27

From version 6.3
edited by Drunk Monkey
on 2024-09-27 08:27
Change comment: Update LiveTable
To version 2.1
edited by Drunk Monkey
on 2020-05-12 06:29
Change comment: Update LiveTable

Summary

Details

Page properties
Content
... ... @@ -1,12 +1,15 @@
1 1  {{velocity}}
2 2  #set ($columnsProperties = {
3 - 'doc.title': {"link":"view"},
4 4   'forexPair': {},
5 5   'OpenDate': {"html":true},
6 6   'CloseDate': {"html":true},
7 7   'Entry': {},
8 - 'shortText': {},
9 - 'TradeAnalysis': {"filterable":false,"sortable":false,"html":true}
7 + 'SL': {},
8 + 'TP1': {},
9 + 'TP2': {},
10 + 'TP3': {},
11 + 'TradeReason': {},
12 + '_actions': {"sortable":false,"filterable":false,"html":true,"actions":["edit","delete"]}
10 10  })
11 11  #set ($options = {
12 12   'className': 'TradeJournal.Code.TradeJournalClass',
... ... @@ -14,9 +14,9 @@
14 14   'tagCloud': true,
15 15   'rowCount': 15,
16 16   'maxPages': 10,
17 - 'selectedColumn': 'doc.title',
20 + 'selectedColumn': 'forexPair',
18 18   'defaultOrder': 'asc'
19 19  })
20 -#set ($columns = ['doc.title', 'forexPair', 'OpenDate', 'CloseDate', 'Entry', 'shortText', 'TradeAnalysis'])
23 +#set ($columns = ['forexPair', 'OpenDate', 'CloseDate', 'Entry', 'SL', 'TP1', 'TP2', 'TP3', 'TradeReason', '_actions'])
21 21  #livetable('tradejournal' $columns $columnsProperties $options)
22 22  {{/velocity}}
AppWithinMinutes.LiveTableClass[0]
Live Table Columns
... ... @@ -1,1 +1,1 @@
1 -doc.title forexPair OpenDate CloseDate Entry shortText TradeAnalysis
1 +forexPair OpenDate CloseDate Entry SL TP1 TP2 TP3 TradeReason _actions
Description
... ... @@ -1,15 +1,7 @@
1 -{{container layoutStyle="columns"}}
2 -(((**Mandatory**
3 -* Pair
4 -* Open
5 -* Close
6 -* Entry
7 -* SL
8 -* TP1)))
9 -(((**Optional**
10 -* TP2
11 -* TP3)))
12 -(((**Recommended**
13 -* Reason
14 -* Analysis)))
15 -{{/container}}
1 +Pair, Open, Close, Entry, SL, TP1 - mandatory
2 +
3 +TP2, TP3 - possible, not mandatory
4 +
5 +Reason - suggested
6 +
7 +Analysis - recommended