Is it possible to submit data to database from a XML(rss)? - rss

I want to allow users to post comments on RSS page and the data will be saved in the database using a form.
I want to know if it is possible to submit data to database from a XML(rss) file.
I need help and guidance in this issue.

Related

Flutter, Firebase: retrieving data from firebase

I have a question. I have an app that allows users to save posts by clicking an icon. Posts are saved in Firebase inside a collection called "saved", this collection is inside another collection called "posts". This is a saved sample post:
Here is an example of an unsaved post:
The question is, how do I retrieve only the saved posts?
Any sample code you write can help me, or even suggest an idea.
you can achieve your goal by multiple ways, but I think since you are trying to get all collections in your database that is names saved, consider trying Collection Group it would help get all documents inside any saved collection in your database, for more information you can check:
https://firebase.google.com/docs/firestore/query-data/queries#collection-group-query

Drupal Webform Report

I have deleted one of my content from my Drupal site of WEB form content type.
Now I need to retrieve its report.
Please guide me on how to retrieve the report or database of a deleted web form.
Thanks in advance,
Anamika.
EDIT: Assumption that this is about Drupal 8 since this is not mentioned in the OP's question.
I am afraid you can't retrieve data from your webform once it's deleted. When you deleted the webform you expliytidly confirmed that you're okay with the deletion and all its related data.
If you happen to have a database backup, there is some hope to retrieve the data. Webform data is spread over multiple tables, here are the most important ones:
webform: List of all your webforms and their ID
webform_submission: List of all submissions (1 line per submission)
webform_submission_data: List of all your fields & values for a submission
So if you have a database backup, you can probably retrieve all the sid (submission id's) from webform_submission for the deleted webform and then retrieve all the data then in the webform_submission_data table.
If you don't have any kind of database back-up, I am afraid your data is lost forever.

Where is gravity form data stored?

The website I'm working on uses gravity forms and gravity form PDFs to generate PDFs from form data. There was a typo in one of the form field options. When I fixed the typo, every entry lost its data for that form field. Thankfully, this happened in a sandbox environment and the staging environment still has all of the information for that form field.
I have gone through every single table on the database and could not find where the information for these entries are stored. I also checked through the local file structure.
Does anyone know where the form field data is stored with Gravity Forms?'
EDIT:
Sorry, it was just mySQLworkbench being stupid. I had my rows set to 1000 and it was displaying 1044. That made me assume there were only 1044 rows... There were thousands of rows I didn't check. I changed my query and that fixed it
Any uploaded files will be stored in the wp-content/uploads/gravity_forms/$FORM_ID-randomstring folder. Any text entered in your form fields will be store in your WordPress database in dedicated Gravity Forms tables. A reference to any uploaded file will be stored in the database as well.
for more information please click the link https://docs.gravityforms.com/database-storage-structure-reference/ or check out other peoples contribution here >>https://legacy.forums.gravityhelp.com/topic/where-does-the-gravity-form-information-go-after-it-is-created

Drupal 7: Users or content nodes. Where do I put data?

Here are few things that I want to do with my data:
Add data without necessarily creating a user related to it. (as a node, maybe)
Create users related to that data, whenever needed.
Enable users to edit data related to them only without affecting anything else.
Make data easily searchable and filterable.
So what's the best approach? Do I create MANY users and add field to them with data, or create nodes?
And yes I am a beginner in Drupal.
Your question is very vague, but here is some general advice.
Only create Users if they really are USERS. Don't use the user entity to store general data, unless those data fields pertain to the user.
For example, if you need to store the mailing address of a user, add that field to the user object.

Loading external data to InfoPath once only

Hopefully someone can help me with my problem.
Background
I have create an InfoPath form that is to assess project risk. It allow the user to select a scenario and in return the form returns a risk class and set of actions. The actions are displayed on the form as a multi selection list box, because I was unable to display the action list in a text box.
The form is going to be used in multiple locations, thus will be published to multiple sharePoint sites across Australia and so for easy of updating all of the scenarios and actions will be loaded from a universal SharePoint list. This will then not require the republishing of the form with every update.
The Problem
If a new version of the form is rolled out. E.g. any of the scenarios or actions change. I can not have any previously submitted forms change with it, as the previously submitted answers in the form may not be relevant in the old versions.
This is not an issue with the Scenario fields as they can be tagged to load only once. But the multi selection list box works differently and loads its data every time the form is opened.
The Question
Is there anyway of loading the data in the multi selection list box only once?
If not is there anyway I can load data into a bulleted list or some other field that I can load only once on open of the form for the first time?
Hopefully someone can help.
I had the same issue - I don't want data in old, previously submitted forms to refresh their data for dropdown, tables, etc when they are opened in the future. They need to always use the same data they were submitted with, regardless of weather the database values have changed or not.
To do this, I first unchecked the option "Automatically populate data when the form is opened". Then I unchecked the option to tell data to expire after X amount of days - so i always know the form will have data cached.
I then created a field to serve as a marker for weather to update values from the database or not. Then I used custom code to refresh secondary datasources from the database if needed. In my form loading event, I check to see if the from has already been submitted or not using my marker field.... if not previously submitted - refresh the data - if previously submitted- do not refresh data.
On submition of the form, i set my market field to indicate the form is locked and should never update its secondary sources
Hope you get my idea.
Cheers
If a new version of the form is rolled out. E.g. any of the scenarios
or actions change. I can not have any previously submitted forms
change with it, as the previously submitted answers in the form may
not be relevant in the old versions
I do not understand your problem since the previously created XML data forms are opened with XSN templates with which they have been created (i.e. previously created XML data forms are opened wh the use of old XSN template forms). If it is not so, then open a question why it is failing for you.
Also, I do not understand why do you need to load choices from external source, if it should be fixed once and forever, load it from resource XML file embedded into template itself or choices entered manually (Enter choices manually in properties of Multi Selection List Box). So, they will be stored in the used template
Please check
Free Training: Data-Driven Design - Using Default Data (Lab 1)
on step-by-step tutorial on better ways how to create in Infopath a Quiz form with Default Data (questions and answers in modules)

Resources