Welcome, Guest
Please Login or Register.    Lost Password?

how about a lua script to delete a todo task?
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: how about a lua script to delete a todo task?
#19785
how about a lua script to delete a todo task? 1 Year ago  
Would like a button next to each todo item that will allow me to delete that item.
Cannot find a rainlendar lua reference anywhere.
darren1234
Junior Boarder
Posts: 31
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#19786
Re:how about a lua script to delete a todo task? 1 Year ago  
Rainlendar_DeleteComponent

Syntax
Rainlendar_DeleteComponent(strUid, strCalendar)

Parameters
strUid (string) - The unique identifier of the event or task to be deleted.
strCalendar (string) - The name of the calendar from where the event or task is deleted. If the parameter is not given or it is empty string the event or task is deleted from all calendars where it belongs. (optional)

Return
Nothing.

Description
Deletes the given event or task. The item can be deleted from some specific calendar or from all of them.
anoob
Platinum Boarder
Posts: 500
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: TaiChung, Taiwan, R.O.C. Birthday: 02/12
The administrator has disabled public write access.
I couldn't speak English! This skin released to Customize.org(Do you want it? Click Picture) Please contact me if interested: jhg5702@gmail.com
 
#19789
Re:how about a lua script to delete a todo task? 1 Year ago  
thanks for reply, how would I go about getting values for strUid & strCalendar?
this is what I have done so far, which works

function Button_DeleteTask(strUid,strCalendar)
Rainlendar_DeleteComponent(strUid,strCalendar)
Rainlendar_Redraw(1)
end


called with
action="Button_DeleteTask('#GUID#','')"
(second parameter is two single quotes empty)

again, thankyou.
darren1234
Junior Boarder
Posts: 31
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2013/09/01 09:17 By darren1234.Reason: got it working
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop