[OPEN-ILS-DEV] A/T Validator Reading Stat Cats
Scott Prater
sprater at gmail.com
Wed Jan 11 09:29:19 EST 2012
I think you'll need to retrieve that stat_cat object by its ID to then
get the full blown object:
my $stat_cat_id = $sce->stat_cat;
my $stat_cat = $self->simplereq( 'open-ils.cstore',
open-ils.cstore.direct.$type.stat_cat.retrieve", $stat_cat_id );
my $name = $stat_cat->name;
Of course, you'll need to supply the correct type ("asset" or
"actor"), and you'll also need to do error checks around your
simplereq() call.
-- Scott
More information about the Open-ils-dev
mailing list