top of page
Title
Image
Book-1
Book-2
Book-3
Book-4

Books

Collection - 

Reference-Field

Column-Name: Author

ID: ---> "author"

Output-Firstname

Include

Ich bin ein Textabschnitt. Klicken Sie hier, um Ihren eigenen Text hinzuzufügen und mich zu bearbeiten.

Output-Lastname

Code
Book-DB
Author-DB

Ich bin ein Textabschnitt. Klicken Sie hier, um Ihren eigenen Text hinzuzufügen und mich zu bearbeiten.

Collection - 

Author

Title
Author-Firstname
Author-Lastname
Authors-Birthday
Author-Pic
Author-4
Charles
Dickens
1812
Author-3
Ernest
Hemingway
1899
Author-2
Johan-Wolgang
Von Goethe
1782
Author-1
Friedrich
Schiller
1759
2020-08-29 23_27_45-Wix Website-Editor -
CLOSE.png
2020-08-29 23_27_14-Wix Website-Editor -
CLOSE.png

CODE

CLOSE.png

import wixData from 'wix-data';

 

$w.onReady(function () {   });

 

export function BTN_click(event) { start_Function()  }

 

function  start_Function() {

    wixData.query("Books").include("author").find()

    .then( (results) => {

        if(results.items.length > 0) {

        let books = results.items;

        let firstBook = books[0];

        let firstAuthor = firstBook.author;

        console.log(books)

        console.log(firstBook)

        let output1 = [], output2 = []

 

        for (var i = 1; i < results.items.length; i++) {

            output1.push(books[i].author.authorFirstname)

            output2.push(books[i].author.authorLastname)

        }

        console.log(output1, output2)

        $w('#TXToutput1').text=output1.toString()

        $w('#TXToutput2').text=output2.toString()

    } else {    }

  } )

}

Collection

Field 

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
Seite 1 von 1
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