0

Frontend not connected to backend saving API

The “Save Application” buttons (like saveRegularApplication()) only push data into a JS array applications[] — they never send it to the backend /save-application route.

So, nothing is saved in applications_data.json.

Admin table doesn’t show live backend data

displayDataInAdmin() tries to show data, but /get-all-data returns empty because nothing was saved.

Excel and JSON downloads

The backend routes (/export-excel, /download-json) work perfectly, but they’ll return empty files because there’s no data.

Report Download buttons

The frontend references functions like downloadReport() and downloadTableReport(), which aren’t implemented in the HTML file.

Static data

Some elements still use localStorage or in-memory JS arrays (applications[]), which prevents data persistence across sessions.

1
  • It's logical that if no data is saved, none will be displayed when the page reloads. Unfortunately, your information about your application is too vague, so we can only guess where the error might be occurring. We don't know the content of the mentioned function or endpoints. A minimal, reproducible example is the bare minimum required for us to help you. So please edit your question and add the necessary information. Commented Nov 5 at 12:29

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.