Sergiu,
On 09/ 7/11 05:04 PM, Sergiu Dumitriu wrote:
And finally,
when I try to create the page from this template I see the
list of dates like:
2009-09-16 15:32:49.0
2009-09-16 15:32:49.0
2009-09-16 15:32:49.0
2009-09-16 15:32:49.0
2008-11-26 07:44:45.0
2008-08-27 20:00:06.0
2008-11-16 07:45:29.0
I don't see any page name and such so I guess my select query above is
wrong or at least `doc.name' is not defined column in the table.
When selecting two columns, the first one is considered the key stored
in the database and the second one is the pretty name displayed to
users. So if you inspect the generated HTML, you'll see that the inputs
have as value the document name, and as visible text label the document
modification date.
This is indeed interesting and good to know!
And now I
select few dates from this and hit Save&View button. What I
see as a resulting page is this:
list
2009-09-16 15:32:49.0, 2009-09-16 15:32:49.0, 2009-09-16 15:32:49.0,
2009-09-16 15:32:49.0, 2008-11-26 07:44:45.0
$values
from this it looks like my foreach ($i in $values) iteraction is not
working since it does not show any value. What's printing dates is
$doc.display($prop.getName()) call.
Ah, my mistake, it should be
$doc.getObject('Test.UserPageCounterClass').getProperty('list').value
with no s at the end, value instead of values. No idea how that got there...
Great! So this fixed that issue and now I'm able to multi-select not
only from DBStringList but from also our own (hopefully soon to be
contributed) SPARQ query property.
Thanks a lot for your help with this!
Karel