reset datagrid swipe right property

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
terryho
Posts: 126
Joined: Mon Nov 05, 2012 2:53 pm

reset datagrid swipe right property

Post by terryho » Wed Mar 23, 2022 12:01 pm

Hi All

I had set the following property in the datagrid

set the dgprop["right swipe control"] of group "DataGridClient" to empty

Then I set the following property try to reset it to default one

set the dgprop["right swipe control"] of group "DataGridClient" to group id 1023 of card id 1002

But it fail, with return error "Can not find background"

How can I reset the datagrid to his orginal property?

Regards

Terry Ho

Klaus
Posts: 13820
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: reset datagrid swipe right property

Post by Klaus » Wed Mar 23, 2022 12:04 pm

Hi Terry,

try using BACKGROUND (bg) instead of group:

Code: Select all

set the dgprop["right swipe control"] of group "DataGridClient" to bg id 1023
Best

Klaus

terryho
Posts: 126
Joined: Mon Nov 05, 2012 2:53 pm

Re: reset datagrid swipe right property

Post by terryho » Wed Mar 23, 2022 2:47 pm

Hi Klaus

Thanks your advice. But still get the same error : Can't find background

Regards

Terry Ho

Klaus
Posts: 13820
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: reset datagrid swipe right property

Post by Klaus » Wed Mar 23, 2022 3:21 pm

Hi Terry,

maybe LC exspects just an image or SVG widget and not a group at all?
And the dictionary says that we need to provide "the long ID of <control>"
At least worth a try.


Best

Klaus

terryho
Posts: 126
Joined: Mon Nov 05, 2012 2:53 pm

Re: reset datagrid swipe right property

Post by terryho » Thu Mar 24, 2022 11:49 am

Hi Klaus,

Thanks your advice. But still fail.

I had try the following in another datagrid :

answer the dgprops["right swipe control"] of group "DataGridProduct"

it return -> group "DataGridClient" to group id 1023 of card id 1002 of "Data Grid Templates 1533989635283"

Which I use it on my datagrid, but it fail again.

May be I need to make a simple and report to it has a bug in livecode quality

Regards

Terry Ho

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”