Hello,
I'd like to display text lines according to different categories.
The data grid form for the categories does not display correctly - only check boxes are visible.
But using the same data grid form as for categories all the text lines on a second card are fully displayed.
See the attached stack.
Please let me know how to correct the code to display the categories fully.
Thanks.
keram
problem with displaying categories in data grid
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
problem with displaying categories in data grid
- Attachments
-
- TextLine Categories.zip
- (11.32 KiB) Downloaded 144 times
Using the latest stable version of LC Community 6.7.x on Win 7 Home Premium, 64bit
Re: problem with displaying categories in data grid
I've got some help with it and now it's solved with this code:
keram
Code: Select all
set the dgData of group "mycategories_compact" to empty
replace comma with tab in gSelectedCategories
set the itemDelimiter to tab
local tIndex = 1,tDataA
repeat for each line i in gAllLines
if item 2 of i is among the items of gSelectedCategories then
put item 1 of i into tDataA[tIndex]["Text"]
put item 2 of i into tDataA[tIndex]["Category"]
add 1 to tIndex
end if
end repeat
set the dgData of group "mycategories_compact" to tDataA
Using the latest stable version of LC Community 6.7.x on Win 7 Home Premium, 64bit