Several unavailable functions : programming rights?

Hello,
I am working at the customer.
I did a program to delete attachment functionnal in my XWiki

#foreach($attachment in $doc.getAttachmentList())
$doc.getDocument().deleteAttachment($attachment.getAttachment(), $context.context)
#end

But here the line is displaying without running

When I test I see the object Attachment

$attachment

But when I test the line is displaying without running

$attachment.getAttachment()

The Release Plan for version is 8.4.4, I have not access at the version of API
(the line is displaying without running)

$services.extension.core.getCoreExtension(‘org.xwiki.platform:xwiki-platform-extension-script’).id.version.value

Do you have an idea ?
Thanks,
Arnaud

PS : I see $context and $doc but not ‘$context.context’, ‘$doc.getDoc()’ and ‘$doc.getDocument()’

$attachment.getAttachment()

This require the author of the script to have programming right, maybe that’s your issue ?

Hi,

is this really something new, because it sounds a lot like a continuation of this thread.

So if you think it’s new maybe you should add more information to differentiate and help us solve the problem. Else you may want to update the old thread to preserve the “history” what has been tried so far.

Best regards,

rbr