Hi Ricardo,
Sorry about the "mm" / slip of the finger
This is used for minutes. MM is for month.
But I have a little problem: since the syntax uses the ' character to separate Dialog items, how can I use that character (very common in italian) inside a string?
I tried to enclose it between " or \, but it doesn't seem to work
Instead of doing this > plugins.dialogs.showSelectDialog('Alert','there
's a problem here')
(bold single quote creates syntax error)
do this >plugins.dialogs.showSelectDialog("Alert","there's a problem here")
This should work(as well as escaping \), although I understand from your words , you've already tried this. Does the Method editor warns you, when you try to save the script , or does the script itself runs incorrect?
The method is:
var sceltannata = ""
var sceltannata = plugins.dialogs.showSelectDialog('Seleziona annata','RICERCA ANNATA MORNINGER\n\nSeleziona annata',
'1993','1994','1995','1996','1997','1998','1999','2000','2001','2002','2003')
controller.find()
data = "1-01-" + sceltannata + "...31-12-" + sceltannata +"|dd-MM-yy"
controller.search()
forms.elenco.controller.show()
This should work fine.
(btw: I don't see any single quotes in these text strings))
I've run next code succesfully as a test.
var year = plugins.dialogs.showDialog("Alert", "Let's choose a year","2001","2002","2003")
controller.find()
date_followup = "1-01-" + year + "...31-05-"+ year + "|dd-MM-yyyy"
controller.search()
Hope this helps.