I am new to CSVI but I got it working, I can add records and update fields in my table
But in order to create a new record it is necessary to deliver a new record without a value for the field that has the primary key
How can I populate this field after the insertion with the proper value so it gets found by the primary key when I want to update it
I have tried with combining but that does not work
PHP version 7.0.13
Joomla! version 3.6.4
Database schema version 6.6.0
CSVI version 6.6.4.
- psmits
- RO CSVI
- Thursday, 01 December 2016
- Subscribe via email
0
Accepted Answer
Pending Moderation
Hello,
If you are looking for updating custom table based on a field other than primary key field in database, the functionality is coming in our next CSVI release. Please check custom table import documentation under SETTING THE OPTIONS section.
If you are looking for updating custom table based on a field other than primary key field in database, the functionality is coming in our next CSVI release. Please check custom table import documentation under SETTING THE OPTIONS section.
Kind regards,
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Accepted Answer
Pending Moderation
Hi Tharuna
That is disapointing for me as it means more work to maintain the table
Can you tell me in which peace of the code, this decision is made
Because then I can change the code
If an update does deliver a rowcount "0" then I can decide to insert it
Or is it somehow possible to combine two import fields and use them to update the field afterwards ?
I know combination is possible, but that happens up front
That is disapointing for me as it means more work to maintain the table
Can you tell me in which peace of the code, this decision is made
Because then I can change the code
If an update does deliver a rowcount "0" then I can decide to insert it
Or is it somehow possible to combine two import fields and use them to update the field afterwards ?
I know combination is possible, but that happens up front
Accepted Answer
Pending Moderation
Hello,
If you are using custom table import then yes you need primary key field else records will be inserted. As i said earlier you can export the primary key field with other fields using custom table export template, do the update to fields and import the file.
If you are using custom table import then yes you need primary key field else records will be inserted. As i said earlier you can export the primary key field with other fields using custom table export template, do the update to fields and import the file.
Kind regards,
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Accepted Answer
Pending Moderation
Hi Tharuna
I am using component CSVI PRO with import on custom tables, so no Joomla related tables
If I leave the field that is the primary key out of the import, than all records are inserted !!
Which fields are rquired for import ??
Ho can I indicate which fields need to be used to search the table ??
I am using component CSVI PRO with import on custom tables, so no Joomla related tables
If I leave the field that is the primary key out of the import, than all records are inserted !!
Which fields are rquired for import ??
Ho can I indicate which fields need to be used to search the table ??
Accepted Answer
Pending Moderation
Hello,
You don't actually need a primary key field for doing an update. I am not sure which import your are using but there are few required fields for import, if the value of these required fields match with the one in database, CSVI will automatically do an update to a record.
But then one way to get primary key field for update is that you can export the needed fields along with primary key field using an export template and do your updates to the export file and import the file.
You don't actually need a primary key field for doing an update. I am not sure which import your are using but there are few required fields for import, if the value of these required fields match with the one in database, CSVI will automatically do an update to a record.
But then one way to get primary key field for update is that you can export the needed fields along with primary key field using an export template and do your updates to the export file and import the file.
Kind regards,
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Tharuna
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
There are no replies made for this post yet.
Be one of the first to reply to this post!
Be one of the first to reply to this post!
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here. Register Here »