Discussion:
[GNC] Adding custom reports
Bill Manuel
2018-12-04 22:32:41 UTC
Permalink
I am unable to add custom reports to gnucash.
I use Gnucash 3.3 updated from 2.6.19 on windows 8.1.
The custom reports and configuration pages at wiki were my guides to add
custom reports:

https://wiki.gnucash.org/wiki/Custom_Reports
https://wiki.gnucash.org/wiki/Configuration_Locations#GTK_CONFIG_HOME

I copied, then opened “Hello-world.scm” , edited the sections as
described in the custom reports link

1. change define-module line
2. change name line
3. commented out the menu-name line
4. changed menu-tip line
5. got and pasted in a guid
6. and saved it under a new name.

In addition, I coped a report at github
(https://github.com/dschwen/gnucash-reports/blob/master/psl-budget.scm)

I created a file in MSWord saved as config.user (then, as an alternative
when the process failed) config-user.scm containing the lines:

(load (gnc-build-userdata-path "psl-budget.scm"))
(load (gnc-build-userdata-path "my-hello-world-.scm"))

and placed both the config file and custom.scm reports in the
gnc_data_home/gnc_config_home folder which the configuration page
indicated, for windows, was

C:/user/myusername/appdate/roaming/gnucash.

After doing all this, I started gnucash but neither of the customer
reports showed up in the menus.

Don’t know if this is relevant, but the wiki-config page indicated what
files are in GTK_config_home. My GTK_config_home (appdata/local/gtk3.0)
is empty.

If someone can help, it would be appreciated.
_______________________________________________
gnucash-user mailing list
gnucash-***@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List o
John Ralls
2018-12-05 00:03:18 UTC
Permalink
Post by Bill Manuel
I am unable to add custom reports to gnucash.
I use Gnucash 3.3 updated from 2.6.19 on windows 8.1.
https://wiki.gnucash.org/wiki/Custom_Reports
https://wiki.gnucash.org/wiki/Configuration_Locations#GTK_CONFIG_HOME
I copied, then opened “Hello-world.scm” , edited the sections as described in the custom reports link
1. change define-module line
2. change name line
3. commented out the menu-name line
4. changed menu-tip line
5. got and pasted in a guid
6. and saved it under a new name.
In addition, I coped a report at github (https://github.com/dschwen/gnucash-reports/blob/master/psl-budget.scm)
(load (gnc-build-userdata-path "psl-budget.scm"))
(load (gnc-build-userdata-path "my-hello-world-.scm"))
and placed both the config file and custom.scm reports in the gnc_data_home/gnc_config_home folder which the configuration page indicated, for windows, was
C:/user/myusername/appdate/roaming/gnucash.
After doing all this, I started gnucash but neither of the customer reports showed up in the menus.
Don’t know if this is relevant, but the wiki-config page indicated what files are in GTK_config_home. My GTK_config_home (appdata/local/gtk3.0) is empty.
If someone can help, it would be appreciated.
Did you make sure to tell MSWord to save the files as plain ASCII (not UTF8!) text?

Regards,
John Ralls

_______________________________________________
gnucash-user mailing list
gnucash-***@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-
Bill Manuel
2018-12-05 23:53:45 UTC
Permalink
I saved the config files in plain text format:

config-user.txt

which an internet search indicated is the same as ASCII. Did not fix the
problem.

Bill M
Post by John Ralls
Post by Bill Manuel
I am unable to add custom reports to gnucash.
I use Gnucash 3.3 updated from 2.6.19 on windows 8.1.
https://wiki.gnucash.org/wiki/Custom_Reports
https://wiki.gnucash.org/wiki/Configuration_Locations#GTK_CONFIG_HOME
I copied, then opened “Hello-world.scm” , edited the sections as described in the custom reports link
1. change define-module line
2. change name line
3. commented out the menu-name line
4. changed menu-tip line
5. got and pasted in a guid
6. and saved it under a new name.
In addition, I coped a report at github (https://github.com/dschwen/gnucash-reports/blob/master/psl-budget.scm)
(load (gnc-build-userdata-path "psl-budget.scm"))
(load (gnc-build-userdata-path "my-hello-world-.scm"))
and placed both the config file and custom.scm reports in the gnc_data_home/gnc_config_home folder which the configuration page indicated, for windows, was
C:/user/myusername/appdate/roaming/gnucash.
After doing all this, I started gnucash but neither of the customer reports showed up in the menus.
Don’t know if this is relevant, but the wiki-config page indicated what files are in GTK_config_home. My GTK_config_home (appdata/local/gtk3.0) is empty.
If someone can help, it would be appreciated.
Did you make sure to tell MSWord to save the files as plain ASCII (not UTF8!) text?
Regards,
John Ralls
_______________________________________________
gnucash-user mailing list
gnucash-***@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To
Christopher Lam
2018-12-06 10:13:54 UTC
Permalink
There's some reports about the (gnc-build-userdata-path) part causing
problems.

Try the following instead:
(load (pk (gnc-build-userdata-path "psl-budget.scm")))
(load (pk (gnc-build-userdata-path "my-hello-world-.scm")))

and please report back the tracefile:
https://wiki.gnucash.org/wiki/Tracefile

C
Post by Bill Manuel
config-user.txt
which an internet search indicated is the same as ASCII. Did not fix the
problem.
Bill M
Post by John Ralls
Post by Bill Manuel
I am unable to add custom reports to gnucash.
I use Gnucash 3.3 updated from 2.6.19 on windows 8.1.
The custom reports and configuration pages at wiki were my guides to
https://wiki.gnucash.org/wiki/Custom_Reports
https://wiki.gnucash.org/wiki/Configuration_Locations#GTK_CONFIG_HOME
I copied, then opened “Hello-world.scm” , edited the sections as
described in the custom reports link
Post by John Ralls
Post by Bill Manuel
1. change define-module line
2. change name line
3. commented out the menu-name line
4. changed menu-tip line
5. got and pasted in a guid
6. and saved it under a new name.
In addition, I coped a report at github (
https://github.com/dschwen/gnucash-reports/blob/master/psl-budget.scm)
Post by John Ralls
Post by Bill Manuel
I created a file in MSWord saved as config.user (then, as an
(load (gnc-build-userdata-path "psl-budget.scm"))
(load (gnc-build-userdata-path "my-hello-world-.scm"))
and placed both the config file and custom.scm reports in the
gnc_data_home/gnc_config_home folder which the configuration page
indicated, for windows, was
Post by John Ralls
Post by Bill Manuel
C:/user/myusername/appdate/roaming/gnucash.
After doing all this, I started gnucash but neither of the customer
reports showed up in the menus.
Post by John Ralls
Post by Bill Manuel
Don’t know if this is relevant, but the wiki-config page indicated what
files are in GTK_config_home. My GTK_config_home (appdata/local/gtk3.0) is
empty.
Post by John Ralls
Post by Bill Manuel
If someone can help, it would be appreciated.
Did you make sure to tell MSWord to save the files as plain ASCII (not
UTF8!) text?
Post by John Ralls
Regards,
John Ralls
_______________________________________________
gnucash-user mailing list
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.
_______________________________________________
gnucash-user mailing list
gnucash-***@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your repli
D via gnucash-user
2018-12-06 16:22:24 UTC
Permalink
Also, the file name should be "config.user" and not " config.user.txt"

The file *type* should be text.

On December 6, 2018, at 3:45 PM, Christopher Lam <***@gmail.com> wrote:

There's some reports about the (gnc-build-userdata-path) part causing
problems.

Try the following instead:
(load (pk (gnc-build-userdata-path "psl-budget.scm")))
(load (pk (gnc-build-userdata-path "my-hello-world-.scm")))

and please report back the tracefile:
https://wiki.gnucash.org/wiki/Tracefile

C
Post by Bill Manuel
config-user.txt
which an internet search indicated is the same as ASCII. Did not fix the
problem.
Bill M
Post by John Ralls
Post by Bill Manuel
I am unable to add custom reports to gnucash.
I use Gnucash 3.3 updated from 2.6.19 on windows 8.1.
The custom reports and configuration pages at wiki were my guides to
https://wiki.gnucash.org/wiki/Custom_Reports
https://wiki.gnucash.org/wiki/Configuration_Locations#GTK_CONFIG_HOME
I copied, then opened “Hello-world.scm” , edited the sections as
described in the custom reports link
Post by John Ralls
Post by Bill Manuel
1. change define-module line
2. change name line
3. commented out the menu-name line
4. changed menu-tip line
5. got and pasted in a guid
6. and saved it under a new name.
In addition, I coped a report at github (
https://github.com/dschwen/gnucash-reports/blob/master/psl-budget.scm)
Post by John Ralls
Post by Bill Manuel
I created a file in MSWord saved as config.user (then, as an
(load (gnc-build-userdata-path "psl-budget.scm"))
(load (gnc-build-userdata-path "my-hello-world-.scm"))
and placed both the config file and custom.scm reports in the
gnc_data_home/gnc_config_home folder which the configuration page
indicated, for windows, was
Post by John Ralls
Post by Bill Manuel
C:/user/myusername/appdate/roaming/gnucash.
After doing all this, I started gnucash but neither of the customer
reports showed up in the menus.
Post by John Ralls
Post by Bill Manuel
Don’t know if this is relevant, but the wiki-config page indicated what
files are in GTK_config_home. My GTK_config_home (appdata/local/gtk3.0) is
empty.
Post by John Ralls
Post by Bill Manuel
If someone can help, it would be appreciated.
Did you make sure to tell MSWord to save the files as plain ASCII (not
UTF8!) text?
Post by John Ralls
Regards,
John Ralls
_______________________________________________
gnucash-user mailing list
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.
_______________________________________________
gnucash-user mailing list
gnucash-***@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.
_______________________________________________
gnucash-user mailing list
gnucash-***@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your repli
Geert Janssens
2018-12-06 16:48:13 UTC
Permalink
Post by D via gnucash-user
Also, the file name should be "config.user" and not " config.user.txt"
Actually for gnucash 3.x the name should be
config-user.scm
Post by D via gnucash-user
The file *type* should be text.
That is correct.

Geert


_______________________________________________
gnucash-user mailing list
gnucash-***@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.

Loading...