So speichern Sie InfoPath-Formular mit einem einzigartigen Dateinamen, wenn er als Site-Inhaltstyp veröffentlicht wird

sharepoint.stackexchange https://sharepoint.stackexchange.com//questions/60428

Frage

Ich habe ein InfoPath-Formular erstellt, das als Site-Inhaltstyp veröffentlicht werden sollte.

Der Inhaltstyp wird in mehreren Bibliotheken verwendet.Das Formular muss für jede neue Instanz einen eindeutigen Dateinamen erstellen.Jedes Tutorial zum Erstellen eines eindeutigen Namens, den ich gefunden habe, erfordert eine Datenverbindung an die Bibliothek, in der das Formular verwendet wird.Da jedoch ein Inhaltstyp ist, der in mehreren Bibliotheken verwendet werden kann, kann ich keine statische Submitverbindung hinzufügen.

Gibt es dynamisch, um das Formular in der LIB zu speichern, wo es mit einem eindeutigen Namen installiert wurde? (SharePoint 2010, InfoPath 2010)

War es hilfreich?

Lösung

Depending on your true requirements there are multiple ways to do it. If I don't care about doing incremental naming I simply use a timestamp to create the custom name. I create the field named FileName and set a default value using the now() function, although I translated it. So it would be something like translate(now(), "Tt:;-_ ", "") this strips out everything and leaves numbers only, which you could also shorten if needed. So the only potential issue with this is if two people happen to initiate the form at the same exact time.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit sharepoint.stackexchange
scroll top