top of page

TEST-FILTER

CLOSE.png
Title
Index
Kategorie
Tutorial
Level
Beschreibung
Download-List
00052
REPEATER & DATABASE
ADVANCED
Description...
How2Include
00051
FUNCTION(INCLUDE)
ADVANCED
Description...
Show & Hide
00050
FUNCTION(VIDEO/BUTTON)
EXPERIENCED
Description...
Reload-Website
00049
FUNCTION (INTERVAL)
EXPERIENCED
Description...
Repeater - CommentBox
00048
FUNCTION(REPEATER)
ADVANCED
Description...
Comment-Pic / Auto-Update
00047
FUNCTION (PIC)
ADVANCED
Description...
Interval-Function
00046
FUNCTION
ADVANCED
Description...
Site-Plan
00045
FUNCTION (BUTTON)
EXPERIENCED
Description...
Keypress-Display
00044
FUNCTION (Keyboard)
EXPERIENCED
Description
Hide-Header
00043
FUNCTION
BEGINNER
Description
Simple-Return-Function
00042
FUNCTION
EXPERIENCED
DEscription...
Datatransfer to lightbox
00041
FUNCTION (LIGHTBOX)
EXPERIENCED
Description

Filter-Results

CLOSE.png

Total-Count

TEST-FILTER

First-Item

TEST-FILTER

Last-Item

TEST-FILTER

Forum-Post
Start-Filter
Show-Code
Filter-Results

Download-List

Description...

Vom:

00052

Show & Hide

Description...

Vom:

00050

Repeater - CommentBox

Description...

Vom:

00048

Interval-Function

Description...

Vom:

00046

Keypress-Display

Description

Vom:

00044

Simple-Return-Function

DEscription...

Vom:

00042

How2Include

Description...

Vom:

00051

Reload-Website

Description...

Vom:

00049

Comment-Pic / Auto-Update

Description...

Vom:

00047

Site-Plan

Description...

Vom:

00045

Hide-Header

Description

Vom:

00043

Datatransfer to lightbox

Description

Vom:

00041

CODE

CLOSE.png

import wixData from 'wix-data';

 

$w.onReady( () => {

    $w("#dataset1").onReady( () => {   

        let totalCount = $w("#dataset1").getTotalCount()

        $w("#dataset1").getItems(0, totalCount)

        

        .then( (result) => {

            let items = result.items;

        //------------------------------------------

            console.log("Total-Count = " + totalCount)

            console.log((totalCount))

            console.log(items)

            console.log(items[0].index)

            console.log(items[0].kategorie)

            console.log(items[0].tutorialLevel)

        //------------------------------------------

        } );

    } );

} );


 

export function BTNfilterresults_click(event) {show_results(), $w('#BOXfilterresults').show('FadeIn')}

 

function show_results (parameter) {

    $w("#dataset1").onReady( () => {    

        $w("#dataset1").getItems(0, $w("#dataset1").getTotalCount())

 

        .then( (result) => {

            let items = result.items

            let totalCount = result.items.length

            let firstFilteredItem = items[0]

            let lastFilteredItem = items[totalCount-1]

 

            console.log(result)

            console.log(totalCount)

            console.log(firstFilteredItem)

            console.log(lastFilteredItem)

 

            $w('#TXTtotalcount').text = totalCount.toString()

            $w('#TXTfirstitem').text = firstFilteredItem.title.toString()

            $w('#TXTlastitem').text = lastFilteredItem.title.toString()

        })        

    })

}


 

export function BTNfilter_click(event) {start_Filter()}

 

function start_Filter (parameter) {

    $w('#repeater1').show()

 let filter =  wixData.filter()

 let myKategory = $w('#dropdown1').value

 let myTutorial = $w('#dropdown2').value

 

 if ($w('#dropdown1').value!=0) {filter = filter.contains('kategorie', myKategory);}

 if ($w('#dropdown2').value!=0) {filter = filter.eq('tutorialLevel', myTutorial);}

    console.log(filter)

    $w('#dataset1').setFilter(filter)        

}

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
Page 1 of 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