• Fabrik V4.4.1 is now available.

    This version corrects the Admin issue introduced by V4.4. V4.4.1 is available through the Joomla Updater or for download through your My Downloads area of our website.

    Turns out a code change intended for our 5.0dev branch inadvertantly got pushed to the 4.x branch (by me, duh!). The javascript structure in 5.0 will change considerably and part of that change took effect with the inadvertant code change.

    We have reverted the code change and released 4.4.1. V4.4 has been retracted.

    Sorry for any inconvenience.

  • A new version of Full Calendar is now available.

    See the details here

List copy plugin or Form Copy issue

jo-ka

Member
Hello.

I'm linking a list to an existing ERP table, that has an index formed by 3 fields, that must be unique on the table.

upload_2022-6-14_18-36-12.png



By using copy list plugin, or form copy button, I have an error related with that uniqueness...

upload_2022-6-14_18-38-1.png
Is there a way to have an increment on the Number filed, everytime I use list copy plugin, or form copy button?

I can't have an auto increment field, because the Number is related with SerieId and DocumentTypeId fields, this is, I can have, for example, document number 1 multiple times, depending on the Document Type and Serie Id.

Thanks in advance.
 
Is this only a unique index or a composes primary key?
Anyway
There's the seequence element but it seems to do nothing on copy.
I assume you can't use build-in Fabrik copy but must do it with php plugins.
 
Playing a bit with the sequence element: It's doing onCopy (not sure what I did before).

It should do (at least on form Copy button) with
Method = Submit
Sequence Query something like
select max(your-number-column)+1 from your-table where your-doc_type-column={your-doc-type-element} and your serie-id-column={your-serie-ide-element}
 

Members online

No members online now.
Back
Top