7
Smart-icon to run a @Formula over a doc Bruno Grange www.grange.com.br

Smarticon to run @Formula over Notes documents

Embed Size (px)

Citation preview

Page 1: Smarticon to run @Formula over Notes documents

Smart-icon to run a @Formula over a doc

Bruno Grangewww.grange.com.br

Page 2: Smarticon to run @Formula over Notes documents

Smart-icon to run a @Formula over a doc

• The function of this smart-icon is changing a document field value.

• It is simple and easy to use.• It reduces the effort of small data

changes considerably.

Page 3: Smarticon to run @Formula over Notes documents

Smart-icon to run a @Formula over a doc (cont.)

• Toolbar preferences...• Toolbars, New

Toolbar...

• Customize• New... Button...• Paste the code button

Page 4: Smarticon to run @Formula over Notes documents

Smart-icon to run a @Formula over a doc (cont.)

• Smart icon code:result := @Eval ( @Prompt

( [OkCancelEdit]; "Formula evaluator"; "Enter the formula to evaluate:"; "" ) );

@Prompt([OkCancelEdit]; "Results window"; "Use Ctrl+C to copy the results below:"; @Text(@Implode(result; " ~ " )))

Page 5: Smarticon to run @Formula over Notes documents

Smart-icon to run a @Formula over a doc (cont.)

• Select a document to run the formula

• Click on your new smart-icon

• Write the @Formula

• Check the results

@AttachmentNames + ":" + @Text(@AttachmentLengths)

Page 6: Smarticon to run @Formula over Notes documents

Smart-icon to run a @Formula over a doc (cont.)

• Limitations:– The @Formula can

not be huge string (the formula field size is limited to about 255 characters).

– Not all @Formulas work on this tool.

– The result string will be truncated at the first 255 characters.

Page 7: Smarticon to run @Formula over Notes documents