You just posted the blocks image on the name of logic. You must explain it. Otherwise koder will have to always copy your blocks to their project as you haven’t explained.
Because I think this is a really Simple logic and so there is nothing to explain it
But if you need an explanation then Here it is
Explanation
On TxtSearch: on text changed event Call a Loop with a limit of length to list then add if-else statement to check that if list element contains txtsearch.text then show it in list in any design
Yes, that’s it. This is the explanation of SearchBar Logic
Good to see the guide.
I am using this method for search in my app from airtable database with listview and image . But after search result, when i click the listview, I am unable to delete the data in airtable which I am willing to delete. I am unable to solve this issue please help me. Thank you in advance.
After the search and upon clicking on the result, you should need to get the row number for the select d item… if you get it then easily can delete it. If show us your blocks after search result, we can suggest you
I am using long click to delete airtable data by using get position it works fine in normal situation but when i use search then problem arises as position changes on search.
Then after search you are not fixing the index numbe properly, it may selects index but instead of correct index number
Yeah, I want the position before searching remain same after searching to delete the correct row number and this is what I am not able to do that.
I am using listview, image and text
Something like this, modify code according to your needs for example if you wish to delete from global lists or …
Thank you I think it’s Working. By the way I am still testing
What is the problem with above blocks ?
Actually I have to do two things on long click, 1st is to delete and 2nd is to download for that I am using notifier, that’s what I am not getting how to do it. @dora_paz
Do you want to do both things on same button click? i.e download + delete
Or you are giving option for user to delete or download?
Instead of using else if, try only else.
I mean if choice = download , then you have added blocks for download (it is ok) and add else in which you shift the block related to delete
Eg.
If get choice = download
Then (download blocks)
Else (delete blocks)
EDIT: Made it work
New working blocks:
See my question here
Hi
I love the guide and it looks great, I tried to set up blocks but I get error
Here are my blocks (should be same as you have in guide, only with some different names)
The error I get is this:
I use this schema to make Dynamic CardViews:
See schema
{
"name": "Template_Handlekurv",
"metadata-version": 1,
"extension_version": 5,
"author": "<your name>",
"platforms": [
"creator.kodular.io"
],
"extensions": {},
"keys": [
"id",
"Produktbilde",
"Produktantall",
"Produktnavn",
"Produktpris",
"BackgroundColor"
],
"components": [
{
"id": "Template_Handlekurv_Prod_{id}",
"type": "MakeroidCardView",
"properties": {
"Clickable": true,
"CornerRadius": 20,
"Elevation": 5,
"Width": -2,
"BackgroundColor": "{BackgroundColor}"
},
"components": [
{
"id": "Handlekurv_Horizontal_Arrangement1_{id}",
"type": "HorizontalArrangement",
"properties": {
"AlignVertical": 2,
"Width": -2
},
"components": [
{
"id": "Produktbilde{id}",
"type": "Image",
"properties": {
"Height": 60,
"Width": 60,
"Picture": "{Produktbilde}"
}
},
{
"id": "Handlekurv_Vertical_Arrangement_{id}",
"type": "VerticalArrangement",
"properties": {
"AlignVertical": 2,
"Width": -2
},
"components": [
{
"id": "Horizontal_Arrangement4{id}",
"type": "HorizontalArrangement",
"properties": {
"Width": -2
},
"components": [
{
"id": "Produktantall{id}",
"type": "Label",
"properties": {
"FontBold": true,
"FontSize": 20,
"TextColor": -1,
"Text": "{Produktantall}"
}
},
{
"id": "Produktnavn{id}",
"type": "Label",
"properties": {
"FontSize": 20,
"TextColor": -1,
"Text": "{Produktnavn}"
}
}
]
},
{
"id": "Handlekurv_Horizontal_Arrangement3_{id}",
"type": "HorizontalArrangement",
"properties": {
"AlignHorizontal": 2,
"Width": -2
},
"components": [
{
"id": "Handlekurv_Label5_{id}",
"type": "Label",
"properties": {
"TextColor": -1,
"Text": "Ca pris"
}
},
{
"id": "Produktpris{id}",
"type": "Label",
"properties": {
"Clickable": true,
"Height": -2,
"TextColor": -1,
"Text": "{Produktpris}",
"TextAlignment": 1
}
}
]
}
]
},
{
"id": "HA_Knapper{id}",
"type": "HorizontalArrangement",
"components": [
{
"id": "Handlekurv_btn_Plukket{id}",
"type": "Label",
"properties": {
"Clickable": true,
"FontSize": 40,
"FontTypeface": 7,
"Text": "check_box",
"TextColor": -11751600
}
},
{
"id": "Handlekurv_btn_Fjern{id}",
"type": "Label",
"properties": {
"Clickable": true,
"FontSize": 40,
"FontTypeface": 7,
"Text": "disabled_by_default",
"TextColor": -834762
}
}
]
}
]
}
]
}
]
}
And as you can see here in my database it stops at first product:
This is my Global Produktnavn:
Any idea why I get this error?