Hi Tharuna!
Best wishes for the upcoming year!
I have a question about skipping empty fields. I tried to find solutions myself but somehow it does not seem to work. You posted some methods about the way to do this with 2 rules (a first multi-replace rule to fill empty fields with a text value and the a second rule for skipping fields with that text value) and I also tried skipping empty field with a regular expression /(\s)/ but both scenarios generates an xml with no records at all. I checked the first rule only (works like a charm, it puts a value in empty the empty field, but adding the skip field results in an empty file. See attachement.
Thanks in advance and kind regards, Marcel
- Marcel
- RO CSVI
- Sunday, 05 January 2020
- Subscribe via email
Attachments (1)
0
Accepted Answer
Pending Moderation
Hello Marcel,
If you are using regex then you don't need two rules. You can do it with one rule and only using RO CSVI Skip rule plugin. In your Skip rule try setting regex to
That is correct, first rule will replace empty test and second Skip rule will skip the record when the value of the field is 'delete'(as per your screenshot).
Can you post a screenshot of your skip rule? The Multi replace rule seems to be correct from the screenshot.
I also tried skipping empty field with a regular expression /(\s)/ but both scenarios generates an xml with no records at all
If you are using regex then you don't need two rules. You can do it with one rule and only using RO CSVI Skip rule plugin. In your Skip rule try setting regex to
/\s*$/
and see if it works.You posted some methods about the way to do this with 2 rules (a first multi-replace rule to fill empty fields with a text value and the a second rule for skipping fields with that text value)
That is correct, first rule will replace empty test and second Skip rule will skip the record when the value of the field is 'delete'(as per your screenshot).
I checked the first rule only (works like a charm, it puts a value in empty the empty field, but adding the skip field results in an empty file. See attachement.
Can you post a screenshot of your skip rule? The Multi replace rule seems to be correct from the screenshot.
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 Tharnua
Here is the screenshot. Your regex gave me the same result, an empty xml.
Here is the screenshot. Your regex gave me the same result, an empty xml.
Attachments (1)
Accepted Answer
Pending Moderation
Hello Marcel,
Your rules Multi replace and Skip rules looks fine. In template fields for the field you have applied the rules, check the order of the rule in Rules field. It should be first Multi replace rule and then Skip rule. Do you see the order this way?
Can you give a try with the below regex?
Your rules Multi replace and Skip rules looks fine. In template fields for the field you have applied the rules, check the order of the rule in Rules field. It should be first Multi replace rule and then Skip rule. Do you see the order this way?
Your regex gave me the same result, an empty xml.
Can you give a try with the below regex?
/\S/
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
The order was already like you mentioned. adding your new regex gives me a xml with records but the empty field is still there.
I could create a new login for the site so you can check yourself.
Regards, Marcel
I could create a new login for the site so you can check yourself.
Regards, Marcel
Accepted Answer
Pending Moderation
Hello Marcel,
Before i look into your site, can you post the template XML of your export template? To get your template XML file, in CSVI maintenance menu select CSVI Pro on first option, backup templates on second option, select your export template and download the XML file. Post the XML file so i can run the export on my local site and check.
Before i look into your site, can you post the template XML of your export template? To get your template XML file, in CSVI maintenance menu select CSVI Pro on first option, backup templates on second option, select your export template and download the XML file. Post the XML file so i can run the export on my local site and check.
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
- Page :
- 1
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 »