Hope there is a DXL guru here! I am putting together a system to provide an interface via a browser for users to configure agent schedules. I have got a fair way, having discovered some code on a blog. I have a few issues, the first one is I can’t seem to get the agent to accept the “minutes” attribute of the “schedule”.
Here’s a snippet of the code, I am no DXL expert! I am learning by hacking as usual.
Call triggernode.SetAttribute(“type”,“scheduled”)
Set newnodelist = triggernode.GetElementsByTagName(“schedule”)
If newnodelist.NumberOfEntries > 0 Then
Set newNode = newnodelist.GetItem(1)
Else
Set newnode = domdoc.CreateElementNode(“schedule”)
End If
’ Update schedule fields
Call newnode.SetAttribute(“type”,AgentType)
Call newnode.SetAttribute(“hours”,AgentHours)
Call newnode.SetAttribute(“minutes”,AgentMinute)
Call newnode.SetAttribute(“runlocation”,AgentRunLocation)
Call newnode.SetAttribute(“runserver”,AgentRunServer)
Call newnode.SetAttribute(“onweekends”,AgentOnWeekends)
All the attributes set OK except the minutes which never set!
Any ideas?