[maemo-community] [maemo2midgard] how to search for productGroup?
From: Ferenc Szekely ferenc at maemo.orgDate: Wed Jan 31 11:40:20 EET 2007
- Previous message: [maemo2midgard] how to search for productGroup?
- Next message: [maemo2midgard] purging deleted contents
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, On 1/31/07, Henri Bergius <henri.bergius at nemein.com> wrote: > Hi! > > On Wed, January 31, 2007 2:50 am, Ferenc Szekely wrote: > > i can't figure out how to search for productGroup (or "application > > category") in the app catalog. > > You need to search by the database ID of the product group, not the URL name. > I don't exactly know what do you mean here. > > <select name="org_openpsa_products_search[3][value]" id="productGroup"> > > <?php > > org_maemo_search_options_helper($options, 3); > > ?> > > </select> > > Try: > > <select name="org_openpsa_products_search[3][value]" id="productGroup"> > <?php > $options = org_openpsa_products_product_group_dba::list_groups(); > org_maemo_search_options_helper($options, 3); > ?> > </select> > Tried it, no luck. The current code looks like this: <input type="hidden" name="org_openpsa_products_search[3][property]" value="productGroup" /> <input type="hidden" name="org_openpsa_products_search[3][constraint]" value="LIKE" /> <label for="productGroup">Category:</label> <select name="org_openpsa_products_search[3][value]" id="productGroup"> <?php $options = org_openpsa_products_product_group_dba::list_groups(); org_maemo_search_options_helper($options, 3); ?> </select> > Your search would actually have worked if you had specified the > org_openpsa_products_search[3][property] as 'productGroup.code', since > productGroup is a linked field. > I tried that too, but no luck either. Do you have any documentation on this topic? > /Henri > thanks, ferenc
- Previous message: [maemo2midgard] how to search for productGroup?
- Next message: [maemo2midgard] purging deleted contents
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]