Hello,
> particular user to the table simple_contactgroups in the column members. I
the members field is already there in
"<sgs-dir>/bin/modules/schema/contactgroups.xml":
<field name="members" displayname="{t}Members{/t}"
simple_type="select" simple_size="5">
<data function="dbselect|simple_contacts|contactid,concat(lastname;'
';firstname)||lastname asc|10"/>
<filter views="all"
function="showselect|\n|simple_contacts|company,concat(lastname;'
';firstname)|contactid=@value@|"/>
<link value="index.php?find=asset|simple_contacts||contactid=@members@&view=details"/>
</field>
You only need to change "simple_contacts" to "simple_mycontacts".
bye
Thomas
> So I added a field to the customized module mycontacts.xml: (this new field
> is the only difference to the original contacts.xml)
>
> <field name="members" displayname="Members" simple_type="select"
> simple_size="5">
> <data
> function="dbselect|simple_contactgroups|groupname,groupname||groupname
> asc|10"/>
> <link
> value="index.php?find=asset|simple_contactgroups||groupname=@members@&view=display"/>
> </field>
>
> So this creates a new column called members on the table simple_mycontacts
> as expected and if I add data to the field for a particular user writes the
> data on this table without a problem.
>
> My issue is that I would like to do the opposite. I would like to add the
> particular user to the table simple_contactgroups in the column members. I
> read the reference guides
http://www.simple-groupware.de/cms/SgsMLReference
>
http://www.simple-groupware.de/cms/Customization but as I just started to
> work on Simple Groupware very recently I could not understand the way to
> solve this problem yet.
>
> I would appreciate very much If you could point me to the right direction.
>
> Regards
> Ti
>
https://groups.google.com/d/msg/simple-groupware/-/thO6iOoT-W4J.