CoreBOSBB
I dont see related documents in custom module created by Module Builder - Printable Version

+- CoreBOSBB (https://discussions.corebos.org)
+-- Forum: Support (https://discussions.corebos.org/forumdisplay.php?fid=17)
+--- Forum: Modules/Extension Support (https://discussions.corebos.org/forumdisplay.php?fid=9)
+--- Thread: I dont see related documents in custom module created by Module Builder (/showthread.php?tid=165)



I dont see related documents in custom module created by Module Builder - Shao - 07-07-2015

According to: http://corebos.tsolucio.com/development/view.php?id=310

- I need help to create a cbupdater changeset. I'm totally new to this Smile
Do i just copy setRelatedList(relatedmodule, header, actions, 'get_attachments') to /build/changeSets/example.php and run cbupdater?


RE: I dont see related documents in custom module created by Module Builder - omarllorens - 07-07-2015

Hi.

Here you have more information about how to create a new changeset to modify your installation.

http://corebos.org/documentation/doku.php?id=en:devel:corebosupdater


RE: I dont see related documents in custom module created by Module Builder - joebordes - 07-07-2015

Look at this changeset:


build/changeSets/addvendorrelatedlist2contact.php

that adds a related list to contacts pointing to vendors, so it is very close to what you need. Copy this file and modify it.

Then create a new file here:

modules/cbupdater/cbupdates/shao.xml

inside that file you add blocks of changeset definitions for each changeset you create.
Let's suppose you copy the changeset above and name it: addDocumentsToMyModule.php, so you will have:

build/changeSets/addDocumentsToMyModule.php

now you edit modules/cbupdater/cbupdates/shao.xml and write this:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<updatesChangeLog>
<changeSet>
    <author>Shao</author>
    <description>add Documents relation to MyModule</description>
    <filename>build/changeSets/addDocumentsToMyModule.php</filename>
    <classname>addDocumentsToMyModule</classname>
    <systemupdate>false</systemupdate>
</changeSet>
</updatesChangeLog>

in the future you will add <changeset></changeset> blocks to this file.


RE: I dont see related documents in custom module created by Module Builder - Shao - 07-09-2015

It works for module, but i dont see documents in Accounts list.


RE: I dont see related documents in custom module created by Module Builder - joebordes - 07-09-2015

Sorry, I don't understand


RE: I dont see related documents in custom module created by Module Builder - Shao - 07-14-2015

Its ok - my bad sorry Smile