Ah nice, thanks so far.
I'm now calling the a new function with the #GUID# as for the todo-task.
my looks like the following so far:
-- Adds given category to a certain event and thus helps to
-- blend out an event if the category is set to hidden
-- strGuid - The unique identifier of the task.
-- strCat - Category
function Global_AddCategoryToEvent(strGuid, cat)
strEvent = Rainlendar_GetComponent(strGuid)
if (strEvent) then
-- Something to do here:
strEvent = Private_SetIcalProperty(strEvent, "STATUS", "NEEDS-ACTION")
bChanges = Rainlendar_FlushComponents()
if (bChanges == true) then
-- Redraw the windows if there were changes that need to be shown
but there's nothing about the SetIcalProperty in the help file so I don't know how to add my category which is set to be hidden, which is named "hidden_cat", please help me with this line! thanks!
edit: ok these private functions are defined in the lua file itself, but I don't know how the concerning category-field is named and further, I dunno how to do debugging with rainlendar to alert some test-variables or so so I would now how to manipulate. probably something like:
strEvent = Private_SetIcalProperty(strEvent, "CATEGORY", "hidden_cat")
but as mentioned, I don't really know it.
edit2: ok as tried just one line above: doesn't work.
anohter question would be: would it be better to not write it into the components.lua because this file will be overwritten when upgrading but if yes, where? can i create a custom lua file? and what about the private functions icalset/get? do I have to copy them into the own lua-file to be able to call them?