GnuCash
Contact   Instructions
Bug 796531 - transaction report: export file/location associated with transaction
Summary: transaction report: export file/location associated with transaction
Status: RESOLVED FIXED
Alias: None
Product: GnuCash
Classification: Unclassified
Component: Reports (show other bugs)
Version: 3.1
Hardware: Other All
: Normal enhancement
Target Milestone: future
Assignee: reports
QA Contact: reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-07 11:03 EDT by Jannick
Modified: 2020-05-31 05:43 EDT (History)
5 users (show)

See Also:


Attachments

Description Jannick 2018-06-07 11:03:33 EDT
Transaction report: It would be helpful to have an option to export

1 - the file associated with the transaction
2 - the location (URL) associated with the transaction.

Thanks, J.
Comment 1 Christopher Lam 2018-06-12 01:08:25 EDT
This was considered, but there were usability problems: clicking a file/URL led to display of file/URL but the back button was broken. As a result this enhancement was not considered ready.
Comment 2 Christopher Lam 2018-06-12 11:37:25 EDT
PS you can enable location reporting by adding the following in transaction.scm somewhere in the definition of left-columns around line 1030 onwards. Again it will only work well when the report is exported to HTML and opened using a web browser.

+               (add-if 'url-column
+                       (vector ""
+                               (lambda (split transaction-row?)
+                                 (let ((url (xaccTransGetAssociation (xaccSplitGetParent split))))
+                                   (if (string-null? url)
+                                       (gnc:html-make-empty-cell)
+                                       (gnc:make-html-text
+                                        (gnc:html-markup-anchor url "
Comment 3 Christopher Lam 2018-06-12 11:38:14 EDT
Resend, previous was lost due to unicode.

+               (add-if 'url-column?
+                       (vector ""
+                               (lambda (split transaction-row?)
+                                 (let ((url (xaccTransGetAssociation (xaccSplitGetParent split))))
+                                   (if (string-null? url)
+                                       (gnc:html-make-empty-cell)
+                                       (gnc:make-html-text
+                                        (gnc:html-markup-anchor url "url")))))))

I'd mark this bug WONTFIX because it is not usable in common use.
Comment 4 John Ralls 2018-06-12 11:49:59 EDT
(In reply to Chris from comment #2)
> Again it will only work well when the report is exported to HTML
> and opened using a web browser.

Since the report tabs are a browser, why does it need to be exported and run in a separate browser?
Comment 5 Christopher Lam 2018-06-12 18:00:34 EDT
John: I meant the requested behavior of the <a href="xx"> for transaction-file-association in the Gnucash browser.

If I enable transaction-association linking in transaction.scm, it can happily display the anchor, however, clicking on it leads to either (1) error for http because the builtin webkit cannot go to outside internet, or (2) webkit display of image... and the latter was not satisfactory because the back button to return to the report doesn't work.

If the report is exported then opened in modern browser then the <a href> links work well.
Comment 6 Bob 2020-05-31 05:43:58 EDT
This is fixed and will be in 4.0, the associations will open in there respective default applications.

Note You need to log in before you can comment on or make changes to this bug.