
Collection:
Анабель
Klicken Sie hier, um eigene Inhalte hinzuzufügen oder verbinden Sie Datenquellen aus Ihrer Kollektion.
Type-1an
Type-2an
Type-3an
Type-4an
Type-5an





CODE

import wixData from 'wix-data';
var ItemLength
$w.onReady(function () {
wixData.query("Collection")
.find()
.then( (res) => {
let Item = res.items
ItemLength = res.items.length
wixData.query("Products")
.find()
.then( (results) => {
let item = results.items
$w("#repeater1").onItemReady( ($item, itemData, index) => {
for (var i = ItemLength-1; i >= 0; i=i-1) {console.log("i = " + i), console.log("index = " + index)
console.log('--------------------')
if (itemData.title === Item[i].title) {$item("#TXTtype1").text = results.items[(index)*5+i+0-(1*index)].type, $item("#IMGtype1").src = results.items[(index)*5+i+0-(1*index)].image, console.log("Output-Index1 = " + index)}
if (itemData.title === Item[i].title) {$item("#TXTtype2").text = results.items[(index)*5+i+1-(1*index)].type, $item("#IMGtype2").src = results.items[(index)*5+i+1-(1*index)].image, console.log("Output-Index2 = " + index)}
if (itemData.title === Item[i].title) {$item("#TXTtype3").text = results.items[(index)*5+i+2-(1*index)].type, $item("#IMGtype3").src = results.items[(index)*5+i+2-(1*index)].image, console.log("Output-Index3 = " + index)}
if (itemData.title === Item[i].title) {$item("#TXTtype4").text = results.items[(index)*5+i+3-(1*index)].type, $item("#IMGtype4").src = results.items[(index)*5+i+3-(1*index)].image, console.log("Output-Index4 = " + index)}
if (itemData.title === Item[i].title) {$item("#TXTtype5").text = results.items[(index)*5+i+4-(1*index)].type, $item("#IMGtype5").src = results.items[(index)*5+i+4-(1*index)].image, console.log("Output-Index5 = " + index)}
console.log('--------------------')
}
});
});
});
});
Info

In this example you will see how to place specific values into a repeater from 2-different databases.
You can see the big main-picture which represents the "Item-Collection" (database1), which is connected to a dataset and showing
all collections stored in (database1).
The 5-small pictures represents data which is loaded from a second database called "Products", in which all the product-items are stored in.
For each item-collection, it is possible to connect 5-product-items, in this example.
Price

Collection:
Арагон
Klicken Sie hier, um eigene Inhalte hinzuzufügen oder verbinden Sie Datenquellen aus Ihrer Kollektion.
Type-1ar
Type-2ar
Type-3ar
Type-4ar
Type-5ar





CODE

import wixData from 'wix-data';
var ItemLength
$w.onReady(function () {
wixData.query("Collection")
.find()
.then( (res) => {
let Item = res.items
ItemLength = res.items.length
wixData.query("Products")
.find()
.then( (results) => {
let item = results.items
$w("#repeater1").onItemReady( ($item, itemData, index) => {
for (var i = ItemLength-1; i >= 0; i=i-1) {console.log("i = " + i), console.log("index = " + index)
console.log('--------------------')
if (itemData.title === Item[i].title) {$item("#TXTtype1").text = results.items[(index)*5+i+0-(1*index)].type, $item("#IMGtype1").src = results.items[(index)*5+i+0-(1*index)].image, console.log("Output-Index1 = " + index)}
if (itemData.title === Item[i].title) {$item("#TXTtype2").text = results.items[(index)*5+i+1-(1*index)].type, $item("#IMGtype2").src = results.items[(index)*5+i+1-(1*index)].image, console.log("Output-Index2 = " + index)}
if (itemData.title === Item[i].title) {$item("#TXTtype3").text = results.items[(index)*5+i+2-(1*index)].type, $item("#IMGtype3").src = results.items[(index)*5+i+2-(1*index)].image, console.log("Output-Index3 = " + index)}
if (itemData.title === Item[i].title) {$item("#TXTtype4").text = results.items[(index)*5+i+3-(1*index)].type, $item("#IMGtype4").src = results.items[(index)*5+i+3-(1*index)].image, console.log("Output-Index4 = " + index)}
if (itemData.title === Item[i].title) {$item("#TXTtype5").text = results.items[(index)*5+i+4-(1*index)].type, $item("#IMGtype5").src = results.items[(index)*5+i+4-(1*index)].image, console.log("Output-Index5 = " + index)}
console.log('--------------------')
}
});
});
});
});
Info

In this example you will see how to place specific values into a repeater from 2-different databases.
You can see the big main-picture which represents the "Item-Collection" (database1), which is connected to a dataset and showing
all collections stored in (database1).
The 5-small pictures represents data which is loaded from a second database called "Products", in which all the product-items are stored in.
For each item-collection, it is possible to connect 5-product-items, in this example.
Price

Collection:
Алонзо
Klicken Sie hier, um eigene Inhalte hinzuzufügen oder verbinden Sie Datenquellen aus Ihrer Kollektion.
Type-1al
Type-2al
Type-3al
Type-4al
Type-5al





CODE

import wixData from 'wix-data';
var ItemLength
$w.onReady(function () {
wixData.query("Collection")
.find()
.then( (res) => {
let Item = res.items
ItemLength = res.items.length
wixData.query("Products")
.find()
.then( (results) => {
let item = results.items
$w("#repeater1").onItemReady( ($item, itemData, index) => {
for (var i = ItemLength-1; i >= 0; i=i-1) {console.log("i = " + i), console.log("index = " + index)
console.log('--------------------')
if (itemData.title === Item[i].title) {$item("#TXTtype1").text = results.items[(index)*5+i+0-(1*index)].type, $item("#IMGtype1").src = results.items[(index)*5+i+0-(1*index)].image, console.log("Output-Index1 = " + index)}
if (itemData.title === Item[i].title) {$item("#TXTtype2").text = results.items[(index)*5+i+1-(1*index)].type, $item("#IMGtype2").src = results.items[(index)*5+i+1-(1*index)].image, console.log("Output-Index2 = " + index)}
if (itemData.title === Item[i].title) {$item("#TXTtype3").text = results.items[(index)*5+i+2-(1*index)].type, $item("#IMGtype3").src = results.items[(index)*5+i+2-(1*index)].image, console.log("Output-Index3 = " + index)}
if (itemData.title === Item[i].title) {$item("#TXTtype4").text = results.items[(index)*5+i+3-(1*index)].type, $item("#IMGtype4").src = results.items[(index)*5+i+3-(1*index)].image, console.log("Output-Index4 = " + index)}
if (itemData.title === Item[i].title) {$item("#TXTtype5").text = results.items[(index)*5+i+4-(1*index)].type, $item("#IMGtype5").src = results.items[(index)*5+i+4-(1*index)].image, console.log("Output-Index5 = " + index)}
console.log('--------------------')
}
});
});
});
});
Info

In this example you will see how to place specific values into a repeater from 2-different databases.
You can see the big main-picture which represents the "Item-Collection" (database1), which is connected to a dataset and showing
all collections stored in (database1).
The 5-small pictures represents data which is loaded from a second database called "Products", in which all the product-items are stored in.
For each item-collection, it is possible to connect 5-product-items, in this example.
Price

Collection:
Тесина
Klicken Sie hier, um eigene Inhalte hinzuzufügen oder verbinden Sie Datenquellen aus Ihrer Kollektion.
Type-1te
Type-2te
Type-3te
Type-4te
Type-5te





CODE

import wixData from 'wix-data';
var ItemLength
$w.onReady(function () {
wixData.query("Collection")
.find()
.then( (res) => {
let Item = res.items
ItemLength = res.items.length
wixData.query("Products")
.find()
.then( (results) => {
let item = results.items
$w("#repeater1").onItemReady( ($item, itemData, index) => {
for (var i = ItemLength-1; i >= 0; i=i-1) {console.log("i = " + i), console.log("index = " + index)
console.log('--------------------')
if (itemData.title === Item[i].title) {$item("#TXTtype1").text = results.items[(index)*5+i+0-(1*index)].type, $item("#IMGtype1").src = results.items[(index)*5+i+0-(1*index)].image, console.log("Output-Index1 = " + index)}
if (itemData.title === Item[i].title) {$item("#TXTtype2").text = results.items[(index)*5+i+1-(1*index)].type, $item("#IMGtype2").src = results.items[(index)*5+i+1-(1*index)].image, console.log("Output-Index2 = " + index)}
if (itemData.title === Item[i].title) {$item("#TXTtype3").text = results.items[(index)*5+i+2-(1*index)].type, $item("#IMGtype3").src = results.items[(index)*5+i+2-(1*index)].image, console.log("Output-Index3 = " + index)}
if (itemData.title === Item[i].title) {$item("#TXTtype4").text = results.items[(index)*5+i+3-(1*index)].type, $item("#IMGtype4").src = results.items[(index)*5+i+3-(1*index)].image, console.log("Output-Index4 = " + index)}
if (itemData.title === Item[i].title) {$item("#TXTtype5").text = results.items[(index)*5+i+4-(1*index)].type, $item("#IMGtype5").src = results.items[(index)*5+i+4-(1*index)].image, console.log("Output-Index5 = " + index)}
console.log('--------------------')
}
});
});
});
});
Info

In this example you will see how to place specific values into a repeater from 2-different databases.
You can see the big main-picture which represents the "Item-Collection" (database1), which is connected to a dataset and showing
all collections stored in (database1).
The 5-small pictures represents data which is loaded from a second database called "Products", in which all the product-items are stored in.
For each item-collection, it is possible to connect 5-product-items, in this example.
Price

Collection:
Мерида
Klicken Sie hier, um eigene Inhalte hinzuzufügen oder verbinden Sie Datenquellen aus Ihrer Kollektion.
Type-1mr
Type-2mr
Type-3mr
Type-4mr
Type-5mr





CODE

import wixData from 'wix-data';
var ItemLength
$w.onReady(function () {
wixData.query("Collection")
.find()
.then( (res) => {
let Item = res.items
ItemLength = res.items.length
wixData.query("Products")
.find()
.then( (results) => {
let item = results.items
$w("#repeater1").onItemReady( ($item, itemData, index) => {
for (var i = ItemLength-1; i >= 0; i=i-1) {console.log("i = " + i), console.log("index = " + index)
console.log('--------------------')
if (itemData.title === Item[i].title) {$item("#TXTtype1").text = results.items[(index)*5+i+0-(1*index)].type, $item("#IMGtype1").src = results.items[(index)*5+i+0-(1*index)].image, console.log("Output-Index1 = " + index)}
if (itemData.title === Item[i].title) {$item("#TXTtype2").text = results.items[(index)*5+i+1-(1*index)].type, $item("#IMGtype2").src = results.items[(index)*5+i+1-(1*index)].image, console.log("Output-Index2 = " + index)}
if (itemData.title === Item[i].title) {$item("#TXTtype3").text = results.items[(index)*5+i+2-(1*index)].type, $item("#IMGtype3").src = results.items[(index)*5+i+2-(1*index)].image, console.log("Output-Index3 = " + index)}
if (itemData.title === Item[i].title) {$item("#TXTtype4").text = results.items[(index)*5+i+3-(1*index)].type, $item("#IMGtype4").src = results.items[(index)*5+i+3-(1*index)].image, console.log("Output-Index4 = " + index)}
if (itemData.title === Item[i].title) {$item("#TXTtype5").text = results.items[(index)*5+i+4-(1*index)].type, $item("#IMGtype5").src = results.items[(index)*5+i+4-(1*index)].image, console.log("Output-Index5 = " + index)}
console.log('--------------------')
}
});
});
});
});
Info

In this example you will see how to place specific values into a repeater from 2-different databases.
You can see the big main-picture which represents the "Item-Collection" (database1), which is connected to a dataset and showing
all collections stored in (database1).
The 5-small pictures represents data which is loaded from a second database called "Products", in which all the product-items are stored in.
For each item-collection, it is possible to connect 5-product-items, in this example.
Price