new to Polygrid
Posted: Fri Oct 13, 2023 2:38 pm
Hi everyone,
good day
I bought a widget polygrid from livecode.
This is my first time to use this widget can some one teach me how to get the total sum in one column.
sorry for my code if they are long codes for you i'm still trying and learning to make it short.
this past days i tried using field and repeat to get the sum thanks for those who share their knowledge in that topic.
good day
I bought a widget polygrid from livecode.
This is my first time to use this widget can some one teach me how to get the total sum in one column.
sorry for my code if they are long codes for you i'm still trying and learning to make it short.
Code: Select all
on checkData
if fld "fldQtty" is empty or hilitedbutton of grp "grpType" is 0 or hilitedbutton of grp "grpLoc" is 0 then
beep
Answer error "May nakalimutan ka ilagay pa." titled "Error: May nakalimutan ilagay"
else
put fld "fldQtty" into tQtty
if the hilite of btn "Round" then
put "Round" into tType
end if
if the hilite of btn "Slim" then
put "Slim" into tType
end if
if the hilite of btn "Clark" then
put "Clark" into tLoc
end if
if the hilite of btn "Sapangbato" then
put "Sapangbato" into tLoc
end if
if the hilite of btn "WalkIn" then
put "Walk-IN" into tLoc
end if
put tQtty &TAB& tType &TAB& tLoc &TAB& short Time &TAB& short Date into tNewInputData
put the pgText of widget "PgridGallon" of stack "StackGallons" into tOldData
if tOldData is empty then
put tNewInputData into tOldData
else
put cr & tNewInputData after tOldData
end if
set the pgText of widget "PgridGallon" of stack "StackGallons" to tOldData
end if
repeat for each key tkey in tOldData // i just got this code from the dictionary
put tOldData [tkey]["cQtty"] into tQtty
// i'm stuck here I don't what's next code
end checkData
this past days i tried using field and repeat to get the sum thanks for those who share their knowledge in that topic.