Hey people, I didnt find sth related to my problem so I start a post, maybe some1 has more experience than me.I have some custom propertys like customer (list) and I wanna make a JS for my dropbox that moves the document to the folder of the customer.I have 2 Problems,1. how to trigger a JS after i edited the properties (does on Update work here? Because Inbound triggers the script before i can set my properties)2. how to use Paths in document.move i only found space.childByNamePath("SPACENAME") as destination but i wanna use sth like in lucene PATH:\"/app:company_home/cm:ComTeam/cm:Customer/PROPERTIE_OF_DOCUMENT" as destinationcan any1 help me please?regardsProblem 1: On Update works fine for that, Script gets triggered after i modified propertiesProblem 2: I started with following script, i get no error but it doesnt work
var Standard = document.properties["custom:AStandard"];
var Produkt = document.properties["custom:AProduktformat"];
var dest = companyhome.childByNamePath("ComTeam AG/Produktformate/" + Produkt);
document.move(dest);
cant see my mistake maybe some1???Rule was broken, that script is working now for me:
var Produkt = document.properties["custom:AProduktformat"];
var Standard = document.properties["custom:AStandard"];
var Rahmen = document.properties["custom:ARahmen"];
var Kunde = document.properties["custom:AKunde"];
var Auftrag = document.properties["custom:AAuftrag"];
if (Standard == "Ja" && Rahmen == "Ja")
{
document.remove();
}
if (Standard == "Ja")
{
var Sziel = "ComTeam AG/Produktformate/" + Produkt;
var Sdest = companyhome.childByNamePath(Sziel);
document.move(Sdest);
}
if (Rahmen == "Ja")
{
var Rziel = "ComTeam AG/Kunden/" + Kunde + "/01 Rahmendokumente";
var Rdest = companyhome.childByNamePath(Rziel);
document.move(Rdest);
}
if (Standard == "Nein" && Rahmen == "Nein")
{
var Aziel = "ComTeam AG/Kunden/" + Kunde + "/02 Auftragsordner/" + Auftrag;
var Adest = companyhome.childByNamePath(Aziel);
document.move(Adest);
}
////// onlything i need is sth like the alert() function to make a popup with information after script execution, some1 a hint?!