An a post a few weeks back I went into detail about the function "@LocationGetInfo" which I used to help Rocky solve a programming puzzle. He needed to get the current location document's name so that he could do things with that location document. After doing a dxl export of common system files I found some parameters and using those we came up with formula language to get what we needed.
Just this morning a response by Jens Winkelmann added a new parameter to that function. [FullName]. I've tested it, and it works.
The list of parameters we now know about are:
@LocationGetInfo([FullName])
@LocationGetInfo([HomeServer])
@LocationGetInfo([InternetMailAddress])
@LocationGetInfo([NamePreference])
@LocationGetInfo([BookmarksFilename])
@LocationGetInfo([SametimeServer])
@LocationGetInfo([UNID])
If you're curious, the formula language I came up with before Jens' post was:
n := @Text(@LocationGetInfo([UNID]));
locList := @DbColumn("":"NoCache" ; "": "Names.nsf" ; "Locations"; 1);
@For( x := 1 ; x <= @Elements(LocList) ; x := x+1 ;
t := @DbLookup("":""; "":"Names.nsf"; "Locations"; @Subset(@Subset(loclist; x) ; -1) ; "Name" ; [ReturnDocumentUniqueID]);
@If(n = @Text(t) ; @Do(@Set("LocationName"; @Subset(@Subset(loclist; x) ; -1) ); x := @Elements(loclist) + 1 ) ; "")
);
@Prompt([Ok];"";LocationName)
Comment Entry |
Please wait while your document is saved.