Re: dbforms2 - chooser, tableprefix

Matthias Dieke <[email protected]>
Newsgroups gmane.comp.cms.bitflux.general
Message-ID <[email protected]>

Christian Stocker wrote:
> Hi
> 
> On 17.7.2005 15:44 Uhr, Matthias Dieke wrote:
> 
>>Hi,
> 
> 
>>
>>
>>This is my dbform-file:
>>
>><dbform:form xmlns:dbform="http://bitflux.org/dbforms2/1.0">
>>
>>    <dbform:fields table="spielerposition">
>>
>>    <dbform:field name="position" type="text" descr="Position"
>>onkeyup="updateUriField('field_position',document.getElementById('field_uri'));">
>>
>>            </dbform:field>
>>
>>
>>    <dbform:field name="uri" type="text" descr="uri"
>>onkeyup="this.edited = true;"></dbform:field>
>>
>>    <dbform:chooser namefield="position" wherefields="position"
>>orderby="l" limit="35"/>
>>
>>    </dbform:fields>
>>
>></dbform:form>
>>
>>>
>>>"namefield" is the fields which are displayed in the dropdown (you have
>>>to use the sql function concat() if you want to display more than one
>>>field there, so for example "concat(uri, ' - ' ,id)")
>>
>>
>>
>>"position" should be shown --> namefield="position"
>>
>>
>>
>>>"wherefields" is in which fields it should search, comma seperated
>>
>>
>>Search for what??? My where field is "position" too. Or should I use "id"?
> 
> 
> If you type something in the search field on the top, it searches in the
> fields you define in the wherefields. If you just want to search in the
> position field then define just that there. Like you did in your xml above.
> 
> For example in the blogposts dbforms2 implementation, we want to search
> in the in the post_contents and post_title field, but we only want to
> display the post_title. That's the reason, why these are 2 different fields.


It seams that I'm to stupid at the moment ;)


I opend http://foobar.tld/admin/dbforms2/blogcategories/

In the top there the buttons "save", "new" and so on. On the right side 
of the buttons thats the chooser-field?!?


When I click on the chooser-field I get a list of all blog-categories, 
without type in something.


The same I want to do with

http://foobar.tld/admin/dbforms2/spielerposition/


but when I click on the chooser-field nothing happends.

Thats my problem. Sorry for asking so much on this sunny Sunday ;)

Matthias


> 
> chregu
> 
-- 
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.