Upload
bruno-grange
View
122
Download
1
Embed Size (px)
Citation preview
Smart-icon to run a @Formula over a doc
Bruno Grangewww.grange.com.br
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.
Smart-icon to run a @Formula over a doc (cont.)
• Toolbar preferences...• Toolbars, New
Toolbar...
• Customize• New... Button...• Paste the code button
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; " ~ " )))
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)
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.