[plugin] rex_taffydb (local database)

Post your completed addons to share with the community

Post » Thu Aug 04, 2016 2:19 pm

@andykenobi

Shuffle could be implemented by events
1. add a column in each row named "index" with a random value
2. sort rows by this "index" column
B
109
S
27
G
276
Posts: 4,480
Reputation: 154,420

Post » Sat Aug 06, 2016 6:54 am

Update

- Add "Action:Add to" to add a value to the key
- Add options 'if greater', 'if less' in "Action:set value", to set value by condition.

Sample capx
B
109
S
27
G
276
Posts: 4,480
Reputation: 154,420

Post » Sun Aug 07, 2016 11:46 am

Here is another database plugin - nedb, asynchronous database. Reference


@Joannesalfa
Here it is.
B
109
S
27
G
276
Posts: 4,480
Reputation: 154,420

Post » Mon Aug 08, 2016 4:00 am

@Kyatric

Please move this thread to "Completed Addons" section.
B
109
S
27
G
276
Posts: 4,480
Reputation: 154,420

Post » Mon Aug 08, 2016 6:31 am

@rexrainbow How do I do the following:
- I have a listview of several items
- When selecting each item, change the corresponding TaffyDB param for that item (i.e., "selected" = 1)
- Then I want to grab the selected items only, and group them into a new item by pressing a button (I already have a function for creating this item with text fields and stuff to name and classify the new item)

thanks
B
14
S
5
Posts: 37
Reputation: 1,026

Post » Mon Aug 08, 2016 6:49 am

@actuallybrown

Assume that the content of each items in your listview come from the result of querying of taffydb.
1. Then you could get value of a key by "Expression:Index2QueriedRowContent( index , key )" , index is the "selected" in your case.
2. To save the modified item, uses "Action:Set row index" to set the row id by index. See the section "Insert a row" in my document for more detail.
B
109
S
27
G
276
Posts: 4,480
Reputation: 154,420

Post » Mon Aug 08, 2016 9:18 am

Moved to completed addons as per request.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
293
S
117
G
96
Posts: 7,310
Reputation: 71,069

Post » Sat Aug 13, 2016 5:49 am

@rexrainbow awesome! I thought it would never happen until now, so I can test with my huge rpg database
B
99
S
35
G
29
Posts: 3,139
Reputation: 28,421

Post » Mon Aug 22, 2016 12:11 pm

@rexrainbow

If i use Nedb.QueiredRowsAsJSON, then it returns something like "key":"value". But how to get just value by key?
B
35
S
12
G
2
Posts: 198
Reputation: 3,739

Post » Mon Aug 22, 2016 2:28 pm

@norman74

sample capx

Code: Select all
+ Condition:For each row
- Expression:CurRowContent( key )


Or
Code: Select all
Expression:Index2QueriedRowContent( index, key )
B
109
S
27
G
276
Posts: 4,480
Reputation: 154,420

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 6 guests