Skip to main content

Changing the View for Forms Opened from the Archive

The ability to detect this when entering the form from the archives;

string DocumentOpenSource; "archive" means entered from the archive. Null check should be performed.

string DocumentOpenArchiveName; the name of the archive, if entered from the archive. if it is not entered from the archive, it is "null".

string DocumentOpenArchiveType; the type of archive, if it was entered from the archive. if it is not entered from the archive, it is "null".

Values it can take: "dataview","dynamic","form","process"

Example

public void OnLoadData()

{

if (DocumentOpenSource!=null && DocumentOpenSource.Equals("archive")) {

CurrentView = "test";

}

}