#create a new note def sagdialogmapcreatenewnote @rwd_call_after_back << "rwddialogmapreloadtab" if @sagdialogmaprecordsresulth == nil newnotecontent = 'new note' else newnotecontent = @sagdialogmaprecordsresulth.to_s end if @a_viewdialogmaphtml.empty? newnotefilename = "newnote.txt" else newnotefilename = @a_viewdialogmaphtml.to_s end $reloadaftercreate = true download("#{newnotecontent}", "#{newnotefilename}") end def rwddialogmapreloadtab if $reloadaftercreate @rwd_tab = "superantcomeditnoterecordfile" $reloadaftercreate = false end end