For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > April 2006 > Re: [PEAR] formbuilder_frontend question









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] formbuilder_frontend question
Justin Patrin

2006-04-11, 7:00 pm

On 4/11/06, j.raggam@skillz.biz <j.raggam@skillz.biz> wrote:
> thank you for your reply,
>
>
> 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 ?:
>
>
> i tried
>
> $fbfct_options =3D&
> PEAR::getStaticProperty('db_dataobject_f
ormbuilder_frontend_choosetable',
> 'options');
> $fbfct_options =3D array(
> 'tablesToList' =3D> 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 ?:
>
> 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.

s[color=darkred]
> i'll try
>
> 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_showt
able options works
> fine.
>
>
> 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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com