Data-Grid usage

dunbarx at aol.com dunbarx at aol.com
Fri Aug 2 17:20:20 EDT 2013


Not quite sure what you are asking.


Say you had a list field on a "main" card. If the user clicks on a line and navigates to another card based on what line that contained, would that do the trick?


When user edits the field(s) on that local card, you can write a routine that populates the main list field with one or more keywords that might appear that local card, so that the references back in "main" are always updated. 


If I were doing it, I would change the name of the card itself to reflect some aspect of the data in the local  field. So if the user entered "texas" in the field on card 200, the name of that card would change to "texas", and the appropriate line in the list field would change as well. This can get unwieldy with many lines, and in that case you will want to create a binary search gadget, where the user types a few characters into a field, and a routine pulls matches from all the other cards and loads them into the list field. The more you type, the shorter the list field matches. This will probably necessary unless you only have a handful of cards to go to.


You can certainly use a datagrid, but for what you are asking it seems like overkill, unless I am missing much of what you intend, which is very likely. 


Craig Newman





-----Original Message-----
From: Vaughn Clement <vclement at gmail.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Fri, Aug 2, 2013 2:27 pm
Subject: Data-Grid usage


Hi

(New to LiveCode)

I would like to have a stack index or contents for each card where I
determine the fields in the data-grid. I would also like to have a control
in the row that would go to the card for the data in the row.

Questions:


   - Can the data-grid be set to use fields on individual cards in the data
   grid as the user information for the card they want to view?
   - Can the card be called and displayed form the row where the field data
   is present?
   - Is the data grid the only way to accomplish this task?
   - I want the user to be able to select a card similar to the way a table
   in IOS is used to direct the user to the screen with the specific data they
   want.

Thank you

Vaughn Clement

Apps by Vaughn Clement (Support)
*http://www.appsbyvaughnclement.com/tools/home-page/*
Skype: vaughn.clement
https://secure.join.me/appsbyvclement
FaceTime: vclement at gmail.com
LogMeIn also avaialble
Call on "ooVoo" at address:  vaughnclement or 9282549062
Ph. 928-254-9062
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

 



More information about the use-livecode mailing list