Changes for page TradeJournal

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

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

Summary

Details

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