Dashboard page redirect problem ?

Hello,
I have a dashboard page that has products table. When i click one row on table, I want to redirect product details page(dashboard). If possible, can you tell me how to do it?

$w("#table1").onRowSelect( (event) => {let rowData = event.rowData;let rowIndex = event.rowIndex;let productID = rowData["inventoryItem"]["externalId"]; //wixLocation.to(""); ??} );

thanks
alexsunny

I assume you want to navigate to the DYNAMIC-PAGE, right?

First try the following code and take a look onto all given RESULTS…

$w.onReady(async()=> {
    $w("#table1").onRowSelect((event)=> {console.log("Row selected...");
        let rowData = event.rowData; 
        let rowIndex = event.rowIndex; 
        let productID = rowData["inventoryItem"]["externalId"]; 
        //------------------
        console.log("Row-Index: ", rowIndex);
        console.log("Product-ID: ", productID);
        console.log("Row-Data: ", rowData);
    });
});

Second, you surely want to navigate to a specific dynamic-page?
If so, you will surely find a specific DB-FIELD inside of your DATABASE for this.
It should be a “greyed-out” DB-FIELD (dynamic).

This dynamic-field is like a → LINK.

To be able to help you more (or to help yourself)…
…open the → console.log("Row-Index: ", rowIndex); <–RESULTS in console and inspect them (show them).