Re: Getting Started with DataGrid and another datagrid form question

2018-08-04 Thread zryip theSlug via use-livecode
Dear Douglas,

Thanks for your interesting feedback about your attempt to use DGH for the
first time, with creating a datagrid form.

All the properties for customizing the datagrid apart, I've created the
form template area (the way to custom the content of a row with controls
such as image, buttons, etc) with the following objectives:
- in the standard way to customize a datagrid template, we have to open the
row template group inside the template card. In DGH all this group is
copied inside a "visual" area we can manipulate
- when dropping some controls in the template area, with the datagrid, you
are alone with the required script for managing all these controls. DGH, at
the condition to respond to the right dialog, is building a minimal script
depending of the kind of controls you added. Unfortunately this is
difficult to cover all the needs, because they are all specific depending
of the developer and what he want to do. But at least the goal of the
installed script is to give you the keys and philosophy to understand what
it is required for the controls.For a button, how to perform an action, for
a checkbox, how to check or uncheck it, for an image how to display it, to
click it, etc
- one of the recurrent difficulties for users was to understand the
datagrid rows remains empty until you have populate it. And because it is
empty you will never see the beautiful button or image you have added if
you have not at least a row data. This is why in DGH, upper the template
area, we have a datagrid preview, to see immediately the control we have
added.

Your comment make me realize that it is not enough when you are beginning
with form template. One of my unexploited idea was to add kind of presets
template with for example a text on the left and four checkboxes on the
right, etc so the developper could start with ready to use templates to add
to his datagrid. The problem of the approach is covering needs, I can't
anticipate.

What might have you expected from DGH in this task? More tutorial
explaining how the template area is working?, more lessons?, contextual
help in DGH to help you to start? Something else? Feel free to expand, I'm
always interested in approachs or ways I could try to implement in the goal
to improve DGH.


Thanks in advance.


Best Regards,

On Sat, Aug 4, 2018 at 4:38 PM, Douglas Ruisaard via use-livecode <
use-livecode@lists.runrev.com> wrote:

> I concur with Brahmanathaswami that, in particular, datagrid forms (I
> haven't worked with tables (yet)) are very finicky with regard to
> scrolling.  I still would greatly appreciate some help with a recently
> submitted message to this group, Subject:
>
> datagrid form question
>
> Once you play around with a grid enough, it becomes clearer on what you
> can and cannot do.
>
> Regarding DGH v2... during my initial foray into datagrid forms (very
> recent, by the way), I was hoping that DGH v2 would be the panacea for the
> initial confusion regarding datagrids.  Alas, it is likely a fine tool but,
> from my perspective (as many aspects of LC), it may be most effective once
> one has mastered the fundamentals of datagrid construction and usage.  I
> downloaded the trial version and will go back to it ASAP now that I am over
> that initial learning hump ... with A LOT more to learn, I'm sure.
>
> It would probably be worthwhile to read through my two posts under "
> datagrid form question " to consider what I discovered with regard to
> scrolling... hopefully, I've made the explanation clear enough but if not,
> I'd be glad to expand on the subject.
>
> Thanks in advance.
> Doug
>
>
> > At $45.00 (cheap) and with your own endorsement (knowing that it is
> maintained)
> >
> > I'll get it!
> >
> > Brahmanathaswami
> >
> > Ps do you have a real name?
> >
> > ?On 8/2/18, 12:01 PM, "use-livecode on behalf of zryip theSlug via
> use-livecode"  > boun...@lists.runrev.com on behalf of use-livecode@lists.runrev.com>
> wrote:
> >
> > Dear Swami,
> >
> > We have some free material about datagrids form or table.
> >
> > 1. A tutorial written long time ago before I created DGH, exploring
> the
> > very basic concepts of the datagrid control (form and table):
> > http://www.aslugontheroad.com/download/category/3-tutorials
> >
> > 2. Some demo stacks created for demonstrating datagrid's
> possibilities such
> > as drag and drop, calculation, etc
> > http://www.aslugontheroad.com/download/category/4-lab
> >
> > 3. About your screenshot, a datagrid form will be your better option
> in my
> > opinion.
> >
> > 4. And about Data Grid Helper, I can not answer objectively

Re: Getting Started with DataGrid and another datagrid form question

2018-08-04 Thread Douglas Ruisaard via use-livecode
I concur with Brahmanathaswami that, in particular, datagrid forms (I haven't 
worked with tables (yet)) are very finicky with regard to scrolling.  I still 
would greatly appreciate some help with a recently submitted message to this 
group, Subject:

datagrid form question

Once you play around with a grid enough, it becomes clearer on what you can and 
cannot do.

Regarding DGH v2... during my initial foray into datagrid forms (very recent, 
by the way), I was hoping that DGH v2 would be the panacea for the initial 
confusion regarding datagrids.  Alas, it is likely a fine tool but, from my 
perspective (as many aspects of LC), it may be most effective once one has 
mastered the fundamentals of datagrid construction and usage.  I downloaded the 
trial version and will go back to it ASAP now that I am over that initial 
learning hump ... with A LOT more to learn, I'm sure.

It would probably be worthwhile to read through my two posts under " datagrid 
form question " to consider what I discovered with regard to scrolling... 
hopefully, I've made the explanation clear enough but if not, I'd be glad to 
expand on the subject.

Thanks in advance.
Doug


> At $45.00 (cheap) and with your own endorsement (knowing that it is 
> maintained)
> 
> I'll get it!
> 
> Brahmanathaswami
> 
> Ps do you have a real name?
> 
> ?On 8/2/18, 12:01 PM, "use-livecode on behalf of zryip theSlug via 
> use-livecode"  boun...@lists.runrev.com on behalf of use-livecode@lists.runrev.com> wrote:
> 
> Dear Swami,
> 
> We have some free material about datagrids form or table.
> 
> 1. A tutorial written long time ago before I created DGH, exploring the
> very basic concepts of the datagrid control (form and table):
> http://www.aslugontheroad.com/download/category/3-tutorials
> 
> 2. Some demo stacks created for demonstrating datagrid's possibilities 
>such
> as drag and drop, calculation, etc
> http://www.aslugontheroad.com/download/category/4-lab
> 
> 3. About your screenshot, a datagrid form will be your better option in my
> opinion.
> 
> 4. And about Data Grid Helper, I can not answer objectively to your
> question, for sure. All I can say is the tool has regular updates for
> supporting the new versions of LiveCode. A new  major (nothing to do with
> our friend Klaus :) (I prefer to specify because he made me the joke on 
>the
> livecode forum, haha :) )) 2.5 version has been released in June 
>supporting
> dg2 properties, widgets, custom headers, etc. A blog article has been
> published about it, with some available screenshots of the new features:
> https://livecode.com/data-grid-helper-2-5-adds-support-for-datagrid-2/
> 
> Now, if someone in the List want to add a comment about DGH, positive or
> not, he / she is welcome. :)
> 
> 
> Best Regards,
>

Douglas Ruisaard
Trilogy Software
(250) 573-3935



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


re: datagrid form question

2018-07-31 Thread Douglas Ruisaard via use-livecode
I realized belatedly that I didn't do a very good job (at all) of describing 
what one of the row's in my grid looks like... it may be relevant to a solution.

Each row has 1 checkbox, 3 fields and 2 buttons.
One of the buttons (the one I need assistance with), named "Query" calls a 
"tsnet" function to query a remote WiFi module (esp8266) to return the status 
of one of the IO pins on the wifi module.  Works like a charm on ALL rows, 
scrolled or not... becuse (I reckon) the button is actually *IN* the grid, so 
there's no issue with the group name.. it is always "me".

I also want to "automate" the queries (there are 8 such wifi modules involved). 
 So I have a button outside of the datagrid which selects each row of the 
populated datagrid and sends the "mouseUp 1" message to the datagrid (described 
in my previous message under this subject)

It is THAT loop which manufactures the Row Template group names.  It is THAT 
loop which has to know (at this time) which line/row it needs to "wrap" the 
group name back to "...0001"

Douglas Ruisaard
Trilogy Software
(250) 573-3935




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


datagrid form question

2018-07-31 Thread Douglas Ruisaard via use-livecode
Using LC v8.1.9 on Windows 7 pro

"Where" do I send a "mouseup" message on a datagrid form which has scrolled 
lines... i.e.:

send "mouseUp 1" to 

I know it sounds like a ridiculously simple question (and likely is) but a 
datagrid form seems to create a "Row Template" group for each populated row... 
i.e. "Row Template 0001", "Row Template 0002"... etc. UNTIL it reaches a row 
which is outside of the visible rows it then starts to create "duplicate" 
templates. For example, if there are 6 populated rows and the DataGrid is sized 
to only show 3 rows at a time, upon the initialization of the Datagrid, the Row 
templates groups are named:

row 1:  "Row Template 0001" 
row 2:  "Row Template 0002"
row 3:  "Row Template 0003"
row 4:  "Row Template 0004"
row 5:  "Row Template 0005"
row 6:  "Row Template 0001"
row 7:  "Row Template 0002"
row 8:  "Row Template 0003"

this is demonstrated by putting a "put me" in the Behavior Script within a 
MouseUp handler.

So... the "simple" issue is that if I "manufacture" the Row Template name based 
on the row to which I want to send the "mouseUp" command it works perfectly for 
the "visible" rows... even the next 2 rows (which I have scrolled into view via:
 set the dgHilitedLines of group "DataGrid 1" to y
 put the dgIndexOfLine[y] of group "DataGrid 1" into x

where "x" and "y" are throw-away variables ... which scrolls the appropriate 
row into view (for some reason)) ... if I try:

 dispatch "ScrollLineIntoView" to group "DataGrid 1" with pLine" 

... my row data doesn't populate properly ... which I may ask about another 
time.

BUT, for the 6th and subsequent lines I have to "wrap" the group names 
according to the pattern above.  i.e. for the sixth line, I manufacture "Row 
Template 0001", etc.

Since this "wrap-point" changes based on the "amount" of the datagrid I 
"expose", this doesn't lend itself to a very nice supportable project.

No doubt I'm approaching this wrong but I'm trying to teach myself datagrids 
and it's a struggle for this old brain!

Douglas Ruisaard
Trilogy Software
(250) 573-3935




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