TOPIC:

how to hand over record_id to plugin 4 years 9 months ago #184449

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Developer
  • Developer
  • Posts: 10064
  • Karma: 167
  • Thanks: 808
The reason why they are not "offically" in the field list is (and you noted that probably), that you can attach any data-source into ContentBuilder (not just BreezingForms and CB native tables). Which also means it can connect to storages that actually don't use a record id (those will internally get one in CB but the natively it can happen they don't have one or they aren't numeric)

If you have a look /administrator/components/com_contentbuilder/classes/types/, you see 2 standard implementations for data sources (BreezingForms and ContentBuilder).

So what you can do is for example create your own implementation and simply copy the existing ones into the folder "media/contentbuilder/types", rename them (and the class inside).

Your custom source will then be selectable in the view and then you can force that field to show up with the methods/functions that hand over the data to CB.

Regards,
Markus

Please Log in or Create an account to join the conversation.

how to hand over record_id to plugin 4 years 9 months ago #184499

  • Topic Author
  • hartmuts1
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 9
  • Thanks: 0
adding an extra field (storage_recordid) besides primarykey (id) in the datastorge and refering to this field in
{CBVerify ... item-number: {storage_recordid:value} } solves my prob.
Thanks

Please Log in or Create an account to join the conversation.

how to hand over record_id to plugin 4 years 9 months ago #184518

  • pedro81's Avatar
  • pedro81
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 15273
  • Karma: 287
  • Thanks: 1077
Hi,

does it mean that the problem is solved?

Please Log in or Create an account to join the conversation.

how to hand over record_id to plugin 4 years 8 months ago #186183

  • Topic Author
  • hartmuts1
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 9
  • Thanks: 0
Yes. I followed your suggestion and added an extra field "recordid" which is set to the new id in the moment when the record is created. This extra field can than be referenced in the details form and used as for instance "itemid" in {CBVerify plugin: flightlogcommit; ...; itemid: {recordid:value} }

Please Log in or Create an account to join the conversation.

how to hand over record_id to plugin 4 years 8 months ago #186234

  • Tihomir's Avatar
  • Tihomir
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 3564
  • Karma: 87
  • Thanks: 288
Great,

we're glad you have managed to resolve that.

Pls , let us know if you have further questions.

Kind regards
Tihomir
===============================================
Support Crosstec and get ALL EXTENSIONS and professional support for just $5
Here!
===============================================
Regards
Tihomir
==========================================
+++ Purchase Professional Support: crosstec.org/en/support/purchase-additional-support.html +++

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Time to create page: 0.050 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!