Skip to content

Instantly share code, notes, and snippets.

@booyaa
Last active December 11, 2015 10:18
Show Gist options
  • Select an option

  • Save booyaa/4585277 to your computer and use it in GitHub Desktop.

Select an option

Save booyaa/4585277 to your computer and use it in GitHub Desktop.
Useful Lotus Notes toolbar formula buttons

###OpenByReplicaID

@Command([FileOpenDBRepID];@Prompt([OkCancelEdit]; "Enter Replica ID"; "I will open the db based on Replica"; "00000000:00000000"))

###ViewReplicaID

@Prompt([OkCancelEdit]; "Replica ID"; "Copy the code below"; @ReplicaID)

###View Db Props

@Prompt([OkCancelEdit]; "Db Props"; "Copy the code below"; @Text(@Implode(@DbName)))

###Remote con

@Command([AdminRemoteConsole])

###Example @For loop

position := @Member("Ship it!"; AuditAction);
fakedAudit := "Ben (SVP of stuff)" : "Jerry (SVP of Miscellany)";

@For( n := 1; n <= @Elements( AuditAction); n := n +1;
             @If(n = position; line := fakedAudit; line := @Text(n) + " - " + AuditAction[n]);
             full := full : line
);


@Prompt([OkCancelList]:[NoSort]; "Debuggery"; "Pick one";""; @Trim(full))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment