top of page
Forum-Post
CODE
INFO
CLOSE.png
Анабель

Collection:

Анабель

Klicken Sie hier, um eigene Inhalte hinzuzufügen oder verbinden Sie Datenquellen aus Ihrer Kollektion.

Button

Type-1an

Type-2an

Type-3an

Type-4an

Type-5an

NoImage.png
NoImage.png
NoImage.png
NoImage.png
NoImage.png

CODE

CLOSE.png

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

CLOSE.png

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.

Buchen

Price

Арагон

Collection:

Арагон

Klicken Sie hier, um eigene Inhalte hinzuzufügen oder verbinden Sie Datenquellen aus Ihrer Kollektion.

Button

Type-1ar

Type-2ar

Type-3ar

Type-4ar

Type-5ar

NoImage.png
NoImage.png
NoImage.png
NoImage.png
NoImage.png

CODE

CLOSE.png

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

CLOSE.png

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.

Buchen

Price

Алонзо

Collection:

Алонзо

Klicken Sie hier, um eigene Inhalte hinzuzufügen oder verbinden Sie Datenquellen aus Ihrer Kollektion.

Button

Type-1al

Type-2al

Type-3al

Type-4al

Type-5al

NoImage.png
NoImage.png
NoImage.png
NoImage.png
NoImage.png

CODE

CLOSE.png

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

CLOSE.png

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.

Buchen

Price

Тесина

Collection:

Тесина

Klicken Sie hier, um eigene Inhalte hinzuzufügen oder verbinden Sie Datenquellen aus Ihrer Kollektion.

Button

Type-1te

Type-2te

Type-3te

Type-4te

Type-5te

NoImage.png
NoImage.png
NoImage.png
NoImage.png
NoImage.png

CODE

CLOSE.png

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

CLOSE.png

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.

Buchen

Price

Мерида

Collection:

Мерида

Klicken Sie hier, um eigene Inhalte hinzuzufügen oder verbinden Sie Datenquellen aus Ihrer Kollektion.

Button

Type-1mr

Type-2mr

Type-3mr

Type-4mr

Type-5mr

NoImage.png
NoImage.png
NoImage.png
NoImage.png
NoImage.png

CODE

CLOSE.png

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

CLOSE.png

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.

Buchen

Price

Comment-Box

CLOSE.png

Version-1.0

Under_Construction.png

Leave a comment. . .

Arrow.png

General-Settings

ON                 OFF

Show Text-Length

ON                 OFF

max. Text-Length

ON                 OFF

Show Key-Press

ON                 OFF

Show Key-Code

ON                 OFF

Show Total-Count

Character-limit

Load default settings
Save
lestherg-esilverconnect 2:52:59 AM
8/20/2022
s18376 1:07:58 AM

asdas

1/20/2022
s18376 1:03:31 AM

asdas

1/20/2022
arthurvalatin 00:15:21

he he heeeeeeeeeee!

30/12/2020
arthurvalatin 00:15:03

undefinedha ha haaaaaaaaaaa!undefined

30/12/2020
arthurvalatin 00:14:48

My little joke!

30/12/2020
arthurvalatin 00:14:14

really real

30/12/2020
o0oelys 17:55:55

real

23/09/2020
russian-dima 18:49:20

123231

2.9.2020
russian-dima 18:49:17

213213

2.9.2020
russian-dima 17:56:10

123123123

2.9.2020
russian-dima 18:48:04
31.8.2020
russian-dima 18:46:47
31.8.2020
russian-dima 18:46:10

Here you can see my link to googhttp://www.google.de target=_self>www.google.dele.......

31.8.2020
russian-dima 18:45:34

Here you can see a LINK ---> myLinktoGoogle

31.8.2020
russian-dima 14:19:38

rrrrrrrrrr

31.8.2020
russian-dima 14:18:28

qeeeqweqweqwe

31.8.2020
russian-dima 14:01:12

awddawdawd

31.8.2020
russian-dima 13:58:53

23123213

31.8.2020
juanfelipeamt 7:46:31 PM

I tried to change my picture. :)

8/25/2020
juanfelipeamt 7:43:57 PM

Hellooooo

8/25/2020
mr-money-man 13:41:23

As you can see, i changed my PIC (of the test-user --> mr-money-man)

25.8.2020
mr-money-man 13:40:45

Hello!

25.8.2020
russian-dima 18:59:25

You are still not a member of my site? So it is time to change it xDDDDDD

24.8.2020
russian-dima 18:58:02

If you want to write a comment, than you have first to log-in!

24.8.2020
russian-dima 17:58:34

New logo? ^^

22.8.2020
russian-dima 17:58:16

You again xD

22.8.2020
arthurvalatin 16:19:33

Hi

21/08/2020
mr-money-man 00:30:40

As you can see in this version, i tried to implement more functions. You will fi
nd the first ones, when you go into sthe OPTIONS-MENU.

8.8.2020
mr-money-man 00:29:32

It is much more comfortable. ^^

8.8.2020
Page 1 of 2
Design
Settings
About
CLOSE.png
Leave a comment, or start a chat.

Post-Comment

- - -

Pressed-Key

- - -

Key-Code

Text-Length

- - -

max. Text-Length

- - -

Number of Comments

- - -

designed & developed by russian-dima

Write a comment
bottom of page