Trouble with custom report options

Jon Schewe jpschewe at mtu.net
Sun Oct 1 21:00:30 EDT 2017


Thanks. I am on 2.6.15, so I will need to wait until Ubuntu gets an update
to see this fixed. Glad to know that it's not my code.


On Sun, Oct 1, 2017 at 6:56 PM, Christopher Lam <christopher.lck at gmail.com>
wrote:

> This is a bug that's been fixed in 2.6.18
> There's more than a few report writers now :)
>
> https://bugzilla.gnome.org/show_bug.cgi?id=647805
>
> On 2 October 2017 at 05:55, Jon Schewe <jpschewe at mtu.net> wrote:
>
>> All,
>>
>> I'm trying to create a report with some options that are disabled when
>> others are not selected. Below are my 2 options. When I select the Memo
>> option I get a critical error. Does anyone know why the set_selectable
>> field is null? Am I missing some initialization.
>>
>> CRIT <gnc.app-utils> gnc_option_set_selectable: assertion
>> 'option->odb->set_selectable != NULL' failed
>>
>>
>>   (gnc:register-trep-option
>>    (gnc:make-simple-boolean-option
>>     gnc:pagename-display (N_ "Notes") "d2" (N_ "Display the notes if the
>> memo is unavailable?") #t))
>>
>>   ;; Add an option to display the memo, and disable the notes option
>>   ;; when memos are not included.
>>   (gnc:register-trep-option
>>    (gnc:make-complex-boolean-option
>>     gnc:pagename-display (N_ "Memo")
>>     "d"  (N_ "Display the memo?") #t
>>     #f
>>     (lambda (x) (gnc-option-db-set-option-selectable-by-name
>> gnc:*transaction-report-options*
>> gnc:pagename-display
>> (N_ "Notes")
>> x))))
>>
>>
>> Thank you,
>> - Jon
>>
>>
>> --
>> http://mtu.net/~jpschewe
>> _______________________________________________
>> gnucash-user mailing list
>> gnucash-user at gnucash.org
>> https://lists.gnucash.org/mailman/listinfo/gnucash-user
>> -----
>> Please remember to CC this list on all your replies.
>> You can do this by using Reply-To-List or Reply-All.
>>
>
>


-- 
http://mtu.net/~jpschewe


More information about the gnucash-user mailing list