Page 1 of 1

Datagrid Editing in new window

Posted: Thu May 26, 2011 3:39 am
by jesse
This is a two part question. I have created a datagrid that when a row is clicked on it will open up an editing window.

1. Should this editing window be a stack, substack, or card? What is proper procedure?

2. When I do open this new window how can I send a specific column to the new window so the new window can
load the data related to the row clicked. So far I have this code in my datagrid just sending the column
clicked to an answer prompt. I would like to be able to send the ID column no matter what column the user
clicks on.

Code: Select all

on mouseDoubleUp pMouseBtnNum
    ## Let Data Grid process mouseDown and select row that was clicked on
    dgMouseDown pMouseBtnNum        
        
    ## Get value of column clicked on. The column name can be accessed in the
    ## dgColumn custom property of the column control (the target).
    put GetDataOfIndex(the dgHilitedIndexes of me, the dgColumn of the target) into theColumnValue
    answer theColumnValue
    
    ## Don't pass mouseDown
end mouseDoubleUp
Thanks in advance for any help. I am slowly beginning to understand Livecode. I know PHP well so I hope I can pick up
Livecode as good :)