Page 1 of 1

reset datagrid swipe right property

Posted: Wed Mar 23, 2022 12:01 pm
by terryho
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

Re: reset datagrid swipe right property

Posted: Wed Mar 23, 2022 12:04 pm
by Klaus
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

Re: reset datagrid swipe right property

Posted: Wed Mar 23, 2022 2:47 pm
by terryho
Hi Klaus

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

Regards

Terry Ho

Re: reset datagrid swipe right property

Posted: Wed Mar 23, 2022 3:21 pm
by Klaus
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

Re: reset datagrid swipe right property

Posted: Thu Mar 24, 2022 11:49 am
by terryho
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