Hey,
thank you for the fast answer - but i already read some of those.
I cant find the error.
With all 3 codes i just get [object Object]
1. My first Code
import wixLocation from 'wix-location';
$w.onReady(function () { $w("#dataset2").onBeforeSave(function() { $w("#dataset2").setFieldValue('ean', wixLocation.query); $w ("#dataset2"). save () });
- Second Code (fixed loading)
import wixLocation from 'wix-location';
$w.onReady( () => { $w("#dataset2").onReady( () => { $w("#dataset2").setFieldValue("ean", wixLocation.query); $w ("#dataset2"). save () } ); } );
- Third Code (New "Trigger)
import wixLocation from 'wix-location';
export function button1_click(event) {
//Add your code for this event here:
$w("#dataset2").setFieldValue("ean", wixLocation.query);
$w ("#dataset2"). save ()
}