This here was the CODE for the EXAMPLE…
import wixData from 'wix-data';
$w.onReady(function () { });
export function button1_click(event) {xxx()}
function xxx (parameter) {
wixData.query("Card-Number")
.eq("title" ,$w('#input14').value)
.find()
.then( (results) => {
if(results.items.length > 0) {
let firstItem = results.items[0];
console.log(results.items[0].neuesFeld)
$w('#table4').rows = results.items
$w('#IMAGE').src = results.items[0].neuesFeld
} else {
// handle case where no matching items found
}
} )
.catch( (err) => {
let errorMsg = err;
} );
}
There isn’t any integrated substraction-function. But you can expand the CODE and add this function, or any other function.
And here you can see the used DATABASE for this example…
