Andrew Pollack's Blog

Technology, Family, Entertainment, Politics, and Random Noise

Technote update -- Undocumented function @LocationGetInfo

By Andrew Pollack on 08/18/2006 at 08:56 AM EDT

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)


  • car icon

    On Site Training

    We can bring the same kind of top quality training you get at conferences right to your offices. If your team needs training in a single topic, or you want to do a whole series on site, we can put a mini-conference together just for your team. For more information, Contact Me.
  • There are  - loading -  comments....

    Does someone provide a list of all known undocumented Calls in @-LotusScript?By Jens on 08/18/2006 at 13:15 EDT
    Comment Loading
    Would such a list not in and of itself redefine such calls as "Documented"?By Devin Olson on 08/31/2006 at 13:05 EDT
    Comment Loading
    My own thoughts on this are...By andy b on 09/01/2006 at 21:10 EDT
    Comment Loading


    Other Recent Stories...

    1. 04/24/2012The next iteration in using Twitter to market -- if Twitter doesn't find a way to control some of this, it will die off in favor of something else.Twitter becomes more and more a vector for marketing and less and less a path for valuable (or even just fun) information. If Twitter can't find away to curb this use of their system, they're leaving themselves wide open to be replaced by some other simple tool. To combat almost ubiquitous "reply spam", many of us have closed our Twitter accounts so that our tweets are not public. By keeping them out of the public timeline, we don't get reply spam most of the time. It reduced the value of Twitter, however, ...... 
    2. 04/21/2012IBM, this is the worst way to handle browser compatibility issues.What you succeed in doing with this method of handling browser compatibility is take something that MAY NOT work, and turn it into something that DEFINITELY DOESN'T work. I know for a fact that this browser works just FINE with the template, because if I change the browser's identifier to claim it is a different version the template works. More important, you've removed the decision from me. This is the kind of arrogant, unthinking, over-controlling, poor user interface design that has users hating the ...... 
    3. 04/13/2012The usefulness and utility of Notes browser plug-in - promised for 8.5.4 around the end of 2012Sorry for the long time between posts. I've been working on things most of you wouldn't be interested in, and with other social media outlets better suited to the day to day trivialities, I've wanted to keep this blog for things less quotidian. I've also been spending almost no time keeping up with what we call the "Yellowverse". I keep half an eye out through friends in the community but mostly I rely on them to tip me when something really interesting is happening. I'm happier staying out of the rest of ...... 
    4. 04/01/2012Really enjoying XPages and thrilled to see the market so attracted to it. 
    5. 03/02/2012Ok. I was wrong. This is me eating crow. You CAN separate the validation events on the XPages 
    6. 03/02/2012Agh. Just when you think your XPage is behaving -- something else IBM failed to do right. Validation on multi-document XPages 
    7. 03/02/2012XPages - Suggestion and a Tip for Newbies on Repeat Controls 
    8. 03/01/2012Making progress working with TrialandErrorPages. Some things I've learned 
    9. 03/01/2012XPages bug - computewithform option for data sources with some formula language commands 
    10. 02/25/2012Companies that avoid telling the truth about their products and services to avoid losing customers, lose customers 
    Click here for more articles.....


    pen icon Comment Entry
    Subject
    Your Name
    Homepage
    *Your Email
    * Your email address is required, but not displayed.
     
    Your thoughts....
     
    Remember Me  

    Please wait while your document is saved.