Re: Another DataGrid Question

2010-05-17 Thread Bob Sneidar
Hi Joe. 

There is an excellent dictionary for Datagrids on BlueMangoLearning.com. Please 
see 
http://revolution.screenstepslive.com/spaces/revolution_tools/manuals/datagrid

You can walk through the lessons which will get you up to speed on the 
prescribed methods for interacting with Datagrids, and at the bottom is a link 
to Data Grid API, where there is a more concise description of the various 
commands and functions to use with them. 

Bob


On May 15, 2010, at 12:54 PM, lunchnme...@aol.com wrote:

 Hi Everyone
 
 First of all thanks to Zryip for the answer to my last grid question. Now 
 that problem is solved, but I have another.
 
 I have a dataGrid with 8 columns and 1000 rows. Knowing the data of a line 
 of column 2, I need to retrieve the data of column 1 of that line. I don't 
 want to change anything in the dataGrid while doing this. How is this best 
 accomplished? If it helps Column 1 is titled Securities and column 2 is 
 titled 
 Symbol.
 
 Thanks in advance for your continued assistance.
 
 Joe in Orlando
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Another DataGrid Question

2010-05-16 Thread Andre.Bisseret

Bonjour,

I searched for a solution in case you don't know the number of the line
I tested the following script (in a button) :

  local tIndex,tLineData,tName,tLine
   
on mouseUp
   ask Which symbol?
   if the result is cancel then exit mouseUp
   put it into tSymbol
   dispatch FindIndex to grp datagrid with Symbol,tSymbol
   put the result into tIndex
   if tIndex  0 then
  put the dgDataOfIndex[tIndex] of grp datagrid into tLineData
  put tLineData[Securities] into fld fldResult -- or into a  
variable, or whatever else

   else
  answer There is no such symbol
   end if
end mouseUp

This might be done with FindLine and dgDataOfLine as well (instead of  
FindIndex and dgDataOfIndex)


I tried to find a solution in case there might be several identical  
symbols in column 2, but without any success! (yet ;--))


Thanks Joe, for the training :-))

Best regards from Grenoble

André

Le 15 mai 10 à 22:48, zryip theSlug a écrit :


2010/5/15  lunchnme...@aol.com:

Hi Everyone

First of all thanks to Zryip for the answer to my last grid  
question. Now

that problem is solved, but I have another.


You're welcome ;)

I have a dataGrid with 8 columns and 1000 rows. Knowing the data of  
a line
of column 2, I need to retrieve the data of column 1 of that line.  
I don't
want to change anything in the dataGrid while doing this. How is  
this best
accomplished? If it helps Column 1 is titled Securities and column  
2 is titled

Symbol.


Assuming that you know the number of the line, a possible way is to
read the data of the line, then read the content of the column
securities, like this:

put the dgDataOfLine[tTheLine] of tMyDataGrid into tTheDataA
put tTheDataA[securities] into tTheValueOfColumn1


Regards,
--
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Another DataGrid Question

2010-05-15 Thread LunchnMeets
Hi Everyone

First of all thanks to Zryip for the answer to my last grid question. Now 
that problem is solved, but I have another.

I have a dataGrid with 8 columns and 1000 rows. Knowing the data of a line 
of column 2, I need to retrieve the data of column 1 of that line. I don't 
want to change anything in the dataGrid while doing this. How is this best 
accomplished? If it helps Column 1 is titled Securities and column 2 is titled 
Symbol.

Thanks in advance for your continued assistance.

Joe in Orlando
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Another DataGrid Question

2010-05-15 Thread zryip theSlug
2010/5/15  lunchnme...@aol.com:
 Hi Everyone

 First of all thanks to Zryip for the answer to my last grid question. Now
 that problem is solved, but I have another.

You're welcome ;)

 I have a dataGrid with 8 columns and 1000 rows. Knowing the data of a line
 of column 2, I need to retrieve the data of column 1 of that line. I don't
 want to change anything in the dataGrid while doing this. How is this best
 accomplished? If it helps Column 1 is titled Securities and column 2 is titled
 Symbol.

Assuming that you know the number of the line, a possible way is to
read the data of the line, then read the content of the column
securities, like this:

put the dgDataOfLine[tTheLine] of tMyDataGrid into tTheDataA
put tTheDataA[securities] into tTheValueOfColumn1


Regards,
-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Another DataGrid question

2010-02-09 Thread Jeff Massung
Sorry, can't find this in the documentation (although it's probably there
and I'm just blind)... Is there a way for me to get the template group for
the index of a DG? Something like...

get the dgDataControl[2] of group MyDataGrid

Jeff M.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Another DataGrid question

2010-02-09 Thread Trevor DeVore

On Feb 9, 2010, at 4:32 PM, Jeff Massung wrote:

Sorry, can't find this in the documentation (although it's probably  
there
and I'm just blind)... Is there a way for me to get the template  
group for

the index of a DG? Something like...

get the dgDataControl[2] of group MyDataGrid


I don't think these is documented by you can access the  
dgDataControlOfIndex or dgDataControlOfLine properties IF you are  
using a Data Grid form:


put the dgDataControlOfIndex[1] of group DataGrid

Notes: If you are not caching controls then returns empty if index or  
line has no control associated with it because it is offscreen.


For tables I see a ColumnControlOfIndex function in the source code.  
You can call it directly from any script nested within the Data Grid  
control.


put ColumnControlOfIndex(column name, 3) into theControl

May return an empty value.

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Another Datagrid question

2009-12-10 Thread Trevor DeVore

On Dec 9, 2009, at 10:15 PM, william humphrey wrote:

How do you do a returninfield? It doesn't work if you put it in the  
group

script. I want to return one of the cells in the selected line of a
dataGroup when the return key is hit.


If you have an editable field in the Data Grid then there is no  
message trapping that would prevent you from receiving this message in  
the Data Grid script (I just tested).


If you are trying to trap returnInField in the built-in field editor  
then you need to customize the behavior script associated with it.


How Can I Customize The Field Editor Behavior?: http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7338-How-Can-I-Customize-The-Field-Editor-Behavior- 



--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers: 
http://revolution.bluemangolearning.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Another Datagrid question

2009-12-09 Thread william humphrey
How do you do a returninfield? It doesn't work if you put it in the group
script. I want to return one of the cells in the selected line of a
dataGroup when the return key is hit.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution