datagrid joy

Moderators: heatherlaine, robinmiller, kevinmiller, Zryip TheSlug

Post Reply
paulalsmith1000
Posts: 16
Joined: Sat Jun 15, 2019 10:09 am

datagrid joy

Post by paulalsmith1000 » Wed Aug 14, 2019 7:02 pm

Hi Anyone

Once again I have a question?

I am having a strange problem with a dg form.

I think I understand the mechanics now,but it would seem not entirely.

Basically, I have several rows in this page (see attached) with data from a db (all this works fine), Also I think I understand how to save it back again. The odd bit is as follows;

if I tick the checkbox in row 1 then it also ticks the checkbox in row 4??

likewise if I disable the scrolling list field when the check box is ticked in row 1, it does the same in row 4???

I have no idea why this is, but I presume it has something to do with the syntax of what I put into the checkbox script,

Any help, again would be smashing

Kind regards

Paul
Attachments
Screenshot from 2019-08-14 19-00-39.png

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

Re: datagrid joy

Post by Klaus » Wed Aug 14, 2019 7:39 pm

Hi Paul,

it may help if you show us the syntax of what you put into the checkbox script! 8)
And maybe also your "fillindata" handler.


Best

Klaus

paulalsmith1000
Posts: 16
Joined: Sat Jun 15, 2019 10:09 am

Re: datagrid joy

Post by paulalsmith1000 » Wed Aug 14, 2019 10:23 pm

Hi Klaus

please see the script below -

fill in data

on FillInData pDataArray

set the text of field "species" of me to pDataArray["species_identified"]
set the text of field "scroll_list" of me to tspecies_options
put pDataArray["species_image"] into timage
put base64decode(timage) into timage2
set the text of image "image" of me to timage2
set the text of field "rowid" of me to pDataArray[rowid]

end FillInData

checkbox
when checked (using on mouseup) the script would put the selected text from the scrolling list into a variable, then check if it was empty, if empty it would save the contents of the species field to the DB, if not it would save the variable (this is so someone could confirm the species name or correct it), unfortunately I deleted most of it to try and find the problem, but the end result after the above would be something like

disable me
disable species
etc...

to grey-out the row to visually show the person to move on to the next row

Many thanks for your help

Kind regards

Paul

Post Reply

Return to “Data Grid Helper”