How to let some certain user to download their Invoice or Quotation.

Hello everyone,
I have created a new member page with My Quotation / My Invoices. I actually want to let some certain user to download their respective invoice or quotation, which I can add in the database from backend.

Please advise.
Thanks
Pulkesh

For help with Wix Invoices and Quotations, they do already have their own Wix Support section that you can read.
https://support.wix.com/en/ascend-by-wix/wix-invoices
https://support.wix.com/en/ascend-by-wix/price-quotes

Plus, remember that users will already get an email which includes their invoice and a link for them to pay with.

Otherwise, ust use the current user call then to get the logged in members info and it can either filter just their items only to be shown or they can simply have their own dynamic page that only shows their files etc.
https://www.wix.com/corvid/reference/wix-users.html
https://www.wix.com/corvid/reference/wix-users-backend.html
https://www.wix.com/corvid/reference/wix-dataset.Dataset.html#setFilter
https://www.wix.com/corvid/reference/wix-dataset.DynamicDataset.html#setFilter
https://www.wix.com/corvid/reference/wix-data.WixDataQuery.html

Thanks Forum Ninja,
Can you please help me with a call function, where I can show a certain user their particular invoice on a Dynamic Page.
I can understand that I need to populate those details on the database.
But how to connect the database with page which shows only certain user to see their particular invoices.

Thanks in Advance
Pulkesh Sharma

@pulkesh001

Have a look at this tutorial for example as this lets you create a members profile page which the member can edit etc.
https://support.wix.com/en/article/corvid-tutorial-building-your-own-members-area

It will be only the logged in member who can see their own page as it is site member author read only.

It will also show you how to link your website to the current users page in the export function with a wix location to call.

You can also let them upload their invoices into their own page too.
https://support.wix.com/en/article/corvid-tutorial-creating-custom-member-profile-pages

Or try something simple like this for showing all user files in a repeater:

#pageDataset = The name of your dataset
#repeater1 = The repeater that will display your results, that is hidden on load.
2000 = The milliseconds to delay the repeater from showing (prevents flickering and viewing other results that do not equal to the owner)
Connect repeater to dataset.

import wixData from 'wix-data';
import wixUsers from 'wix-users';
let user;
var userID;


$w.onReady(function () {
user = wixUsers.currentUser;
		userID = user.id;
		$w("#pageDataset").setFilter( 
		 wixData.filter()
		.eq("_owner", userID)
	);
	const millisecondsToDelay = 2000;
    setTimeout(() => {
	$w('#repeater1').show();
    }, millisecondsToDelay);
});

Thanks @givemeawhisky .
This one really helped