Re: [simple-groupware] New Module creates a new tab

58 views
Skip to first unread message

Thomas Bley

unread,
Oct 10, 2012, 6:46:48 PM10/10/12
to simple-g...@googlegroups.com
Hello,

when you change the Simple Groupware code base or add new code without
publishing it, there can be no support for your code.

bye
Thomas


On Wed, Oct 10, 2012 at 4:51 PM, Ti <tiagoho...@gmail.com> wrote:
> Hello,
>
> I'm trying to create a customized company module based on the default one. I
> am able to create the required fields and I have the .xml module in
> "<sgs-dir>/module/schema/" as well as a modules.txt with the newly created
> module.
>
> The only issue I have is when I try to create a new company entry on the new
> module a new tab appears called contact with all the fields and the tab
> General has no fields. It's not preventing the work to be done but I would
> like to know what I'm doing wrong.
>
> Can you please try to help me with this issue?
>
> Thanks in advance,
>
> Regards
>
> --
> You received this message because you are subscribed to the Google Groups
> "Simple Groupware" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/simple-groupware/-/et8Agv-xJnsJ.
> To post to this group, send email to simple-g...@googlegroups.com.
> To unsubscribe from this group, send email to
> simple-groupwa...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/simple-groupware?hl=en.

Thomas Bley

unread,
Oct 12, 2012, 3:13:28 PM10/12/12
to simple-g...@googlegroups.com
Hello,

see:
http://www.simple-groupware.de/cms/SgsMLReference
http://www.simple-groupware.de/cms/Customization

bye
Thomas

On Fri, Oct 12, 2012 at 5:51 PM, Ti <tiagoho...@gmail.com> wrote:
> Hello,
>
> Thank you for your quick answer. I figured It out that I should of created
> the custom fields with the customization folder provided.
>
> There is another issue that I've been trying to work out.
>
> Is It possible to add a custom field of Contact Groups to Companies and
> Contact modules so that you can add members (i.e. Contacts, Companies)
> directly. the idea is to create a select type custom field of Contact Groups
> items and relate them to a Company or Contact when you are creating the
> record.
>
> I am able to create the custom select field but I can't get the data of
> Contact Groups on the right hand side.
>
> Do you have any sugestions?
>
> Thanks in advance,
>
> Regards
> .
> https://groups.google.com/d/msg/simple-groupware/-/53CWwf92d5AJ.

paulzarucki

unread,
Oct 14, 2012, 8:21:36 AM10/14/12
to simple-g...@googlegroups.com
Hi,

If you would like to post your code for the custom field then we might be able to see where the problem lies.

Regards,
Paul.


On Friday, 12 October 2012 16:51:22 UTC+1, Ti wrote:
Hello,

Thank you for your quick answer. I figured It out that I should of created the custom fields with the customization folder provided.

There is another issue that I've been trying to work out.

 Is It possible to add a custom field of Contact Groups to Companies and Contact modules so that you can add members (i.e. Contacts, Companies) directly. the idea is to create a select type custom field of Contact Groups items and relate them to a Company or Contact when you are creating the record.

I am able to create the custom select field but I can't get the data of Contact Groups on the right hand side.

Do you have any sugestions?

Thanks in advance,

Regards
.

Quarta-feira, 10 de Outubro de 2012 23:46:49 UTC+1, Thomas escreveu:

Thomas Bley

unread,
Oct 17, 2012, 12:33:03 AM10/17/12
to simple-g...@googlegroups.com
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@&amp;view=details"/>
</field>

You only need to change "simple_contacts" to "simple_mycontacts".

bye
Thomas

On Mon, Oct 15, 2012 at 6:26 PM, Ti <tiagoho...@gmail.com> wrote:
> Hello,
>
> 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@&amp;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.
Reply all
Reply to author
Forward
0 new messages