Re: Polygrid or polylist as datagrid form replacement?

2024-08-16 Thread Terry Judd via use-livecode
Thanks Andreas – that lesson explains how it works for Mark much more clearly than I could in the space of an email. Form datagrids are great but they can be a bit slow to render when they contain a lot of stuff. I use them to create fairly complex asssessment feedback reports (PDFs) to student

Re: Polygrid or polylist as datagrid form replacement?

2024-08-16 Thread Andreas Bergendal via use-livecode
So, Terry is correct: Polygrid and Polylist currently have fixed/uniform row heights. I hope that might be enhanced one day. So if variable row height is a requirement, you’ll have to stick with the Datagrid for now. This was also discussed in the Forum last year, including hints on how to achi

Re: Polygrid or polylist as datagrid form replacement?

2024-08-16 Thread Bob Sneidar via use-livecode
I believe he is talking about form style datagrids. Form style has row templates that can be coded dynamically. To my knowledge, table style only have column templates. Bob S > On Aug 16, 2024, at 3:02 AM, Mark Smith via use-livecode > wrote: > > Hi Terry, I can’t answer your question but

Re: Polygrid or polylist as datagrid form replacement?

2024-08-16 Thread Bob Sneidar via use-livecode
There are a great many things you can do with a datagrid that you cannot do with a polygrid. From what I have been able to gather, the main advantage to using a polygrid is that they perform better than a datagrid. But their list of properties that you can get and set are what I would call minim

Re: Polygrid or polylist as datagrid form replacement?

2024-08-16 Thread Mark Smith via use-livecode
Hi Terry, I can’t answer your question but I am curious if you have any code you use to dynamically resize the row height in a datagrid. I am very interested in doing this. Thanks Mark Sent from my iPhone > On Aug 16, 2024, at 7:35 AM, Terry Judd via use-livecode > wrote: > > I’ve been usi

Re: polygrid formatted column width

2024-02-21 Thread Mike Kerner via use-livecode
lcqc report 24493 added https://quality.livecode.com/show_bug.cgi?id=24493 On Tue, Feb 20, 2024 at 6:07 PM Bob Sneidar via use-livecode < use-livecode@lists.runrev.com> wrote: > Can I just say that the Datagrid does have all these properties? What is > the big advantage that would make Polygrids

Re: polygrid formatted column width

2024-02-21 Thread Mike Kerner via use-livecode
yes, the dg does have all of these properties. i'm replacing a dg with a pg. dg's work on mobile, too. the scrolling can sometimes be a little hairy and jerky, but it does work. until the pg, nearly every project we built for mobes had at least one dg in them. i'm doing this because this project is

Re: polygrid formatted column width

2024-02-20 Thread Bob Sneidar via use-livecode
Can I just say that the Datagrid does have all these properties? What is the big advantage that would make Polygrids a better choice? Is it because they are Mobile friendly? Faster for large datasets? Easier to work with (apparently not unless by easier one means less properties that you can man

Re: polygrid formatted column width

2024-02-20 Thread Paul Dupuis via use-livecode
You have the dataWidth of the polygrid for the formattedWidth of the widget (to be wide enough to display all data), but what I think you want is some equivalent of the fomattedWidth of each column. I don't believe any such property exists in the polygrid. It would be like setting the columnWid

Re: PolyGrid: UNhilite a row? UPDATE

2023-11-01 Thread Klaus major-k via use-livecode
Hi friends, > I tried had: > ... > set the hilitedrow of widget "index" to "0" > ... > set the hilitedrow of widget "index" to 0 > ... > set the pgHilitedText of widget "index" to "" > ... > set the pgHilitedText of widget "index" to EMPTY > ... > no dice!? it turned out that ONLY this widget "in

Re: PolyGrid: UNhilite a row?

2023-10-23 Thread Klaus major-k via use-livecode
Hi Mike, > Am 23.10.2023 um 19:15 schrieb Mike Kerner via use-livecode > : > > you didn't mention the workaround that you used. I wrote earlier in this thread: ... click at the topleft of widget "index" ... That does the trick for me and UNhilited the widget. > i'm not sure what we're supposed

Re: PolyGrid: UNhilite a row?

2023-10-23 Thread Mike Kerner via use-livecode
you didn't mention the workaround that you used. i'm not sure what we're supposed to do with the png since we can't see the code. On Mon, Oct 23, 2023 at 1:12 PM Klaus major-k via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi Mike, > > > Am 23.10.2023 um 19:09 schrieb Mike Kerner via

Re: PolyGrid: UNhilite a row?

2023-10-23 Thread Klaus major-k via use-livecode
Hi Mike, > Am 23.10.2023 um 19:09 schrieb Mike Kerner via use-livecode > : > > unfortunately, all i can see is the png file. yes, by intention! ;-) > i can't download the stack to see what's going on. Sorry, stack is not meant for public... Best Klaus -- Klaus Major https://www.major-k.de

Re: PolyGrid: UNhilite a row?

2023-10-23 Thread Klaus major-k via use-livecode
Hi Mark, > Am 23.10.2023 um 19:08 schrieb Mark Wieder via use-livecode > : > > On 10/23/23 10:03, Klaus major-k via use-livecode wrote: > >> See here, I have a long list of PDF files and clicking the widget "index" >> will filter the PDF list with that char. >>

Re: PolyGrid: UNhilite a row?

2023-10-23 Thread Mike Kerner via use-livecode
unfortunately, all i can see is the png file. i can't download the stack to see what's going on. On Mon, Oct 23, 2023 at 1:03 PM Klaus major-k via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi Mike, > > > Am 23.10.2023 um 18:51 schrieb Mike Kerner via use-livecode < > use-livecode@lis

Re: PolyGrid: UNhilite a row?

2023-10-23 Thread Mark Wieder via use-livecode
On 10/23/23 10:03, Klaus major-k via use-livecode wrote: See here, I have a long list of PDF files and clicking the widget "index" will filter the PDF list with that char. Davy's On

Re: PolyGrid: UNhilite a row?

2023-10-23 Thread Klaus major-k via use-livecode
Hi Mike, > Am 23.10.2023 um 18:51 schrieb Mike Kerner via use-livecode > : > > what event are you setting it in? i have had issues with the widgets not > responding to appearance updates in preopencard, but i don't have a great > recipe for it. See here, I have a long list of PDF files and clic

Re: PolyGrid: UNhilite a row?

2023-10-23 Thread Mike Kerner via use-livecode
what event are you setting it in? i have had issues with the widgets not responding to appearance updates in preopencard, but i don't have a great recipe for it. On Mon, Oct 23, 2023 at 12:50 PM Mike Kerner wrote: > interesting. it works for me. i use the numeric version (set the hilited > row o

Re: PolyGrid: UNhilite a row?

2023-10-23 Thread Mike Kerner via use-livecode
interesting. it works for me. i use the numeric version (set the hilited row of widget "pg" to 0 On Mon, Oct 23, 2023 at 11:40 AM Klaus major-k via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi friends, > > I cannot UN-hilite a row in a polygrid?! > I tried: > ... > set the hilitedrow

Re: Polygrid sorting

2023-08-25 Thread Paul Dupuis via use-livecode
Thank you Panos! I must be going blind not to have seen the example when I clicked on the Dictionary entry for the message! On 8/25/2023 5:16 AM, panagiotis m via use-livecode wrote: Hello Paul, See the example in the dictionary for the "headerClick" message: local sDirection on headerClic

Re: Polygrid sorting

2023-08-25 Thread panagiotis m via use-livecode
Hello Paul, See the example in the dictionary for the "headerClick" message: local sDirection on headerClick pColumnNumber local tText put the text of me into tText put not sDirection[pColumnNumber] into sDirection[pColumnNumber] set the itemDel to tab # Sort data by this

Re: Polygrid columns not fully clearing when pgColumns is set

2023-08-24 Thread Paul Dupuis via use-livecode
In this particular case, the table being displayed in the polygrid is based on datasets that researcher loads into our application and the number of rows and columns can vary widely as well as the column names/labels and type of data. Rather than conduct a large analysis to determine which of N

Re: Polygrid columns not fully clearing when pgColumns is set

2023-08-24 Thread Bob Sneidar via use-livecode
Why not get the pgColumns first, alter only the array element needed for the specific column(s), then set the pgColumns of the PolyGrid? Bob S > On Aug 24, 2023, at 1:26 PM, Paul Dupuis via use-livecode > wrote: > > Thanks Klaus. > > I may use this method rather than the overhead of clearin

Re: Polygrid columns not fully clearing when pgColumns is set

2023-08-24 Thread Paul Dupuis via use-livecode
Thanks Klaus. I may use this method rather than the overhead of clearing and setting the whole pgData property. Actually, the more I think about it, neither "method" should be needed. This is a polygrid bug. If you set the pgColumsn to fewer column, regardless of whether there is left over d

Re: Polygrid columns not fully clearing when pgColumns is set

2023-08-24 Thread Klaus major-k via use-livecode
Hi Paul, > Am 24.08.2023 um 20:30 schrieb Paul Dupuis via use-livecode > : > > Aha, I was setting pgColumns to the fewer columns and THEN pgData to the > smaller data set to match the columns > You need to clear the pgData (set to empty) first, then set the columns, then > set the new pgData.

Re: Polygrid columns not fully clearing when pgColumns is set

2023-08-24 Thread Paul Dupuis via use-livecode
Aha, I was setting pgColumns to the fewer columns and THEN pgData to the smaller data set to match the columns You need to clear the pgData (set to empty) first, then set the columns, then set the new pgData. Perhaps this is a documentation bug? On 8/24/2023 2:26 PM, Paul Dupuis via use-live

Re: PolyGrid

2022-09-23 Thread Mike Kerner via use-livecode
The docs in the dictionary may not be complete, yet. I filed a report about it, but I don't know if they're all done or not. On Fri, Sep 23, 2022 at 2:11 PM Tom Glod via use-livecode < use-livecode@lists.runrev.com> wrote: > Thanks Klaus, > > Its strange that it didn't occur to me to check there,

Re: PolyGrid

2022-09-23 Thread Tom Glod via use-livecode
Thanks Klaus, Its strange that it didn't occur to me to check there, I assumed it was not updated. :D My bad. Thanks. Tom On Fri, Sep 23, 2022 at 11:47 AM Klaus major-k via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi Tom, > > > Am 23.09.2022 um 01:32 schrieb Tom Glod via use-livec

Re: PolyGrid

2022-09-23 Thread Klaus major-k via use-livecode
Hi Tom, > Am 23.09.2022 um 01:32 schrieb Tom Glod via use-livecode > : > > Hello Folks, > > I'm wondering if there is any official documentation for the polygrid and > polylist widgets. > Like a place that tells you what messages the grid listens to and etc. > Something in written form? yes, c

Re: Polygrid sorting

2022-08-16 Thread Mark Smith via use-livecode
I downloaded and installed the widget, it works (very well) now :) > On 15 Aug 2022, at 9:10 pm, Paul Dupuis via use-livecode > wrote: > > Okay, I built the stack and tested it under Windows 10. The 3 beeps are > intentional. It is to let me know when it is done as some test with 500+ > colu

Re: Polygrid sorting

2022-08-16 Thread Mark Smith via use-livecode
Hi Paul, My bad. I don’t have the polygrid widget installed. I bought the summer bundle but haven’t had time to install or play with it. I will try this afternoon and send feedback later. Mark > On 15 Aug 2022, at 9:49 pm, Paul Dupuis via use-livecode > wrote: > > FYI, > > I also just te

Re: Polygrid sorting (problems)

2022-08-15 Thread Mark Wieder via use-livecode
On 8/15/22 16:43, Mark Wieder via use-livecode wrote: On 8/15/22 16:22, Alex Tweedly via use-livecode wrote: I haven't tried csvdata or tsvdata (they're not listed in the dictionary, so I'd tend to avoid them if possible. I do see tsvData in the dictionary, but I'm getting weird errors thrown

Re: Polygrid sorting (problems)

2022-08-15 Thread Paul Dupuis via use-livecode
On 8/15/2022 7:51 PM, Paul Dupuis via use-livecode wrote: On 8/15/2022 7:22 PM, Alex Tweedly via use-livecode wrote: On 15/08/2022 20:34, Paul Dupuis via use-livecode wrote: So there is an example of sorting in the PolyGrid documentation under the entry for the MESSAGE "headerClick" and under

Re: Polygrid sorting (problems)

2022-08-15 Thread Paul Dupuis via use-livecode
On 8/15/2022 7:22 PM, Alex Tweedly via use-livecode wrote: On 15/08/2022 20:34, Paul Dupuis via use-livecode wrote: So there is an example of sorting in the PolyGrid documentation under the entry for the MESSAGE "headerClick" and under the entry to the PROPERTY "text" (and in 'the text of me')

Re: Polygrid sorting (problems)

2022-08-15 Thread Mark Wieder via use-livecode
On 8/15/22 16:22, Alex Tweedly via use-livecode wrote: I haven't tried csvdata or tsvdata (they're not listed in the dictionary, so I'd tend to avoid them if possible. I do see tsvData in the dictionary, but I'm getting weird errors thrown from the widget when I try to use it. May still be ex

Re: Polygrid sorting (problems)

2022-08-15 Thread Bob Sneidar via use-livecode
I think they are trying to be consistent with datagrid terminology, perhaps thinking that a tabular data object has become a new class of objects. Bob S > On Aug 15, 2022, at 16:22 , Alex Tweedly via use-livecode > wrote: > > > On 15/08/2022 20:34, Paul Dupuis via use-livecode wrote: >> So

Re: Polygrid sorting (problems)

2022-08-15 Thread Alex Tweedly via use-livecode
On 15/08/2022 20:34, Paul Dupuis via use-livecode wrote: So there is an example of sorting in the PolyGrid documentation under the entry for the MESSAGE "headerClick" and under the entry to the PROPERTY "text" (and in 'the text of me') The example code only sort the visible rows as "the text

Re: Polygrid sorting

2022-08-15 Thread Paul Dupuis via use-livecode
On 8/15/2022 4:55 PM, Mark Wieder via use-livecode wrote: On 8/15/22 13:12, Paul Dupuis via use-livecode wrote: So I see that the Summer Bundle of widgets in the store has a note that says "Latest update 1.0.19: 11 August 2022" However, the Download button says "Version 1.0.0". Does anyone kno

Re: Polygrid sorting

2022-08-15 Thread Mark Wieder via use-livecode
On 8/15/22 13:12, Paul Dupuis via use-livecode wrote: So I see that the Summer Bundle of widgets in the store has a note that says "Latest update 1.0.19: 11 August 2022" However, the Download button says "Version 1.0.0". Does anyone know how to update the widget set to 1.0.19 or how to update

Re: Polygrid sorting

2022-08-15 Thread Paul Dupuis via use-livecode
FYI, I also just tested on a MacBook Air, M1, running Monterey with LC9.6.8 and the version 1.0.0 of the Summer Bundle widget packs and the PolyGrid and my sample stack displayed for me at 10, 100, and 500 columns and rows. On 8/15/2022 4:01 PM, Mark Smith via use-livecode wrote: Hi Paul,

Re: Polygrid sorting

2022-08-15 Thread Paul Dupuis via use-livecode
I just tested on macOS Mojave (10.14) on an Intel MacBook Pro and the PolyGrid and my sample stack work as expected. Tried 10, 100, and 500 columns/rows. Now I have to find the MacBook Air with Monterey and see... 8/15/2022 4:01 PM, Mark Smith via use-livecode wrote: Hi Paul, I downloaded y

Re: Polygrid sorting

2022-08-15 Thread Paul Dupuis via use-livecode
So I see that the Summer Bundle of widgets in the store has a note that says "Latest update 1.0.19: 11 August 2022" However, the Download button says "Version 1.0.0". Does anyone know how to update the widget set to 1.0.19 or how to update a single widget? On 8/15/2022 2:29 PM, Paul Dupuis

Re: Polygrid sorting

2022-08-15 Thread Paul Dupuis via use-livecode
Okay, I built the stack and tested it under Windows 10. The 3 beeps are intentional. It is to let me know when it is done as some test with 500+ columns/rows takes a while. It does display under LC9.6.8 (64 bit) on Windows 10. Now I have to go try it on macOS? On 8/15/2022 4:01 PM, Mark Smi

Re: Polygrid sorting

2022-08-15 Thread Mark Smith via use-livecode
Hi Paul, I downloaded your sample stack, put 100 into the Columns field, heard 3 audible beeps but no data (or PolyGrid) appeared. There is data in the pgcolumnnames and pgdata custom properties (so those values were defined). It’s just the grid that did not appear. Thinking it might be my lapt

Re: Polygrid sorting (problems)

2022-08-15 Thread Paul Dupuis via use-livecode
So there is an example of sorting in the PolyGrid documentation under the entry for the MESSAGE "headerClick" and under the entry to the PROPERTY "text" (and in 'the text of me') The example code only sort the visible rows as "the text of widget X" returns the data of PolyGrid X as tab delimit