I would like to create a function with an action button(I assume using RUNPROCESS) where the fields of the form(all document variables) would be recorded in the note(text) then the fields would clear for a 2nd, 3rd, 4th, etc. entry.
Any help would be appreciated.
I have not tested this, but here is a way to approach the code.
Put document.thisChartNote somewhere on the form so that it's text translation gets printed to chart. Clear the text translation of the fields on the form you do not want to print to the chart.
.
[button Add to Chart Note] mel run process {
DOCUMENT.thisChartNote = DOCUMENT.thisChartNote + HRET + fnAppendChartNote()
fnClearFields()
}
.
{fn fnAppendChartNote() {
local sNew
sNew = sNew + (if document.A<>"",document.A,"")
sNew = sNew + (if sNew<>"" and document.B<>"",HRET,"") + document.B
....
return sNew
}
.
{!DOCUMENT.thisChartNote}
{fn ClearFields() {
document.A = ""
document.B = ""
....
return ""
}}
.
- Beverly