-->
Welcome, Guest
Username: Password: Remember me

TOPIC: Module Builder Wiki

Module Builder Wiki 1 year 1 month ago #33528

  • delcroip
  • delcroip's Avatar
  • OFFLINE
  • Expert
  • Posts: 126
  • Thank you received: 26
  • Karma: 9
Dear admin,

is it possible to create a page about the module builder on the wiki ?

I'd like to see how to refer to all standard dolibarr objects (fk_ ... ) or at least update the wiki with the one I used so I won't have to search next time.

br
The administrator has disabled public write access.

Module Builder Wiki 1 year 1 month ago #33538

  • delcroip
  • delcroip's Avatar
  • OFFLINE
  • Expert
  • Posts: 126
  • Thank you received: 26
  • Karma: 9
And also how to use the sellist ( also used in addextrafields)

about the objects, here the format I deducted for the type:

integer:ClassName:PathToClassFromHtdocs.class.php
- Should work with 'link' instead of 'integer'
sellist:tableName:ListFieldsToShow:IDcolum(rowid):ParentName|ParentColumnName:WhereClause
- ListFieldsToShow : each fields need to be separated with "|"
- REPLACE 'SELECT' by ''$SEL$' and the current object id per '$ID$ 'in WhereClause,
- use extra.' to refer to the extraf fields of your tableName
- Join and Joinclause might be added in the tableName but I am unsure of the result,
The administrator has disabled public write access.

Module Builder Wiki 5 months 3 weeks ago #35702

Hello Guys,

I don't understand how to use the "sellist" type in the extrafield, and cannot find information.

Maybe we need an example to understand better this type, I will do an example and please help me.

I have a dolibarr table called : billing_locations where I have the following fields :
1. rowid
2. name
3. status

basically is a simple table, and I want to add an extra field in the "thirdparty" view displaying the data from my table.

So : my code is here :
"billing_locations:name:rowid"

here my complete code :
$result4=$extrafields->addExtraField('locations', "Locations list", 'sellist',  102,  20, 'thirdparty',   0, 1, '', "billing_locations:name:rowid", 1, '', 1, 0, '', '', 'billingplus@billingplus', '$conf->billingplus->enabled');

The extra field name is shown in the thirdparty view, but the data is not shown.

Can you explain, please how work : sellist and chkbxlst ?

Best regards,
Isaac Flores
The administrator has disabled public write access.
Time to create page: 0.107 seconds