Re: formbuilder_frontend question
| From: | Justin Patrin | Date: | Tue, 11 Apr 2006 15:11:56 +0000 |
| Subject: | Re: formbuilder_frontend question | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-23621@lists.php.net to get a copy of this message | ||
On 4/11/06, j.raggam@skillz.biz <j.raggam@skillz.biz> wrote:
> thank you for your reply,
>
> > The PEAR lists aren't really the right place for this as
> > DB_DO_FB_Frontend isn't a PEAR package. I'll still respond here,
> > though, in case anyone else is interested.
>
> is there any other place to talk about frontend related issues,
> development,bugs, feature-req, code-contribs, etc?
> or we keep talking here..
>
There isn't any other set place, no. You can always mail me personally
or, since no-one seems to be objecting, go ahead and e-mail this list.
>
> in particular i think i found a bug in the cvs version (what a surprise ,)
> when sorting with datagrid, there are no results displayed.
>
There may be some datagrid issues, yes. I've been playing with my own
feature additions to SDG and have yet to make sure it's all working
again.
> one more feature-request:
> - (DataGrid) any optoin to reverse-order the datagrid sort function?
> (i think this is an datagrid issue)
>
SDG supports this intrinsically. Click once on the column header to
sort one way, then click again to sort the other way.
> --
> (the following is NOT based on the cvs version but on the version you
> provide to download at pearified)
>
>
> MY FAULT ?:
>
> >> - ChooseTable options
> >> - option to order the tables displayed
> > You want tablesToList.
>
> i tried
>
> $fbfct_options =&
> PEAR::getStaticProperty('db_dataobject_formbuilder_frontend_choosetable',
> 'options');
> $fbfct_options = array(
> 'tablesToList' => array(
> 'Objekte',
> 'ObjekteBilder'
> )
> );
>
> but got an error - i think i have give the wrong parameters to
> choostable - .. 'll play around and look in the code..
Works fine for me. Remember that these need to be the real names of
the tables, the same as what you would pass to
DB_DataObject::factory().
>
>
> BUGS ?:
>
> >> - option to rename tables displayed
> > Already supported. Use fb_formHeaderText in the DO.
> thats true for the formheader in edit-mode, but the tables listing on
> the left still uses the database-table-names (so i may want to include
> my own tables listing in a frameset - also to have some more control
> over the interface design)
>
Works fine for me. See http://pear.reversefold.com/example/
But, as I said below (you chopped it off) you can simply set up your
own table listing which links to a script which instantiates the
ShowTable controller.
> >> - option to disable the tables listing (e.g. to include a own tables
> >> listing in a frameset)
> > Already supported, although probably not in the way you think. This
> i'll try
>
> >> - ShowTable options
> >> - option to order fields displayed in datagrid
> >
> > Already done. Set the field ordering in your DO with the normal FB
> > options (fb_fieldsToRender).
> hm -- for me is see no effect. i use fb_fieldsToRender, fb_preDefOrder,
> fb_preDefGroups,... i tried to disable some variables, but there is no
> effect on the order in datagrid. also fb_fieldsToRender also has no
> effect on which columns in datagrid will displayed.
Sorry about that, looks like that didn't quite work as it should have.
I've fixed this in CVS. fieldsToRender is now used if there is no
'fields' option set for the frontend.
>
> however, the db_dataobject_formbuilder_frontend_showtable options works
> fine.
>
> >> - option to rename fields displayed
> > Already done. Set fb_fieldLabels.
>
> fb_fieldLabels: also effect on edit-mode but not datagrid.
>
And again, works fine for me. It sounds to me like you're not setting
up your DataObjects correctly and the frontend isn't getting your
actual DataObject classes. Try editing the Frontend scripts and
running print_r() on the DO object in ShowTable.php to see if it has
your options set.
--
Justin Patrin