<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Форум компьютерной помощи &mdash; Поле NotesRichTextItem и погашение SaveOptions]]></title>
		<link>https://itpmr.ru/viewtopic.php?id=991</link>
		<atom:link href="https://itpmr.ru/extern.php?action=feed&amp;tid=991&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Поле NotesRichTextItem и погашение SaveOptions».]]></description>
		<lastBuildDate>Fri, 21 Oct 2016 08:51:25 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Поле NotesRichTextItem и погашение SaveOptions]]></title>
			<link>https://itpmr.ru/viewtopic.php?pid=124606#p124606</link>
			<description><![CDATA[<div class="codebox"><pre><code> doc.SaveOptions = &quot;0&quot;
   Call uidoc.Close
   Set uidoc = workspace.CurrentDocument
   Set doc = uidoc.Document 
   doc.SaveOptions= &quot;1&quot;  </code></pre></div><p>У меня выпадают вложения из поля вниз формы, а в другом докобороте - при закрытии есть окошко сохранения документа, нажав &quot;Да&quot; - сохраняется всё как надо.</p>]]></description>
			<author><![CDATA[null@example.com (admin)]]></author>
			<pubDate>Fri, 21 Oct 2016 08:51:25 +0000</pubDate>
			<guid>https://itpmr.ru/viewtopic.php?pid=124606#p124606</guid>
		</item>
		<item>
			<title><![CDATA[Re: Поле NotesRichTextItem и погашение SaveOptions]]></title>
			<link>https://itpmr.ru/viewtopic.php?pid=124605#p124605</link>
			<description><![CDATA[<p>Вот еще пробовал обновлять функцией RefreshRT. Неудачно.</p><div class="codebox"><pre><code>Function RefreshRT(nuid As NotesUIDocument) As NotesUIDocument
    &#039;  УДАЛИТЬ, не использульется.
    On Error Goto ErrH
    Msgbox &quot;RefreshRT&quot;    
    Dim nuiws As New NotesUIWorkSpace
    If nuid.Document.GetItemValue(IN_SAVEOPTIONS)(0) = &quot;1&quot; Then
        Msgbox &quot;SAVEOPTIONS=1&quot;        
        Call nuid.Document.ReplaceItemValue(IN_SAVEOPTIONS, &quot;0&quot;)
        Msgbox nuid.Document.SaveOptions(0)
    End If
    Call nuid.Close()
    Set RefreshRT = nuiws.EditDocument(nuid.Document)
    
    If (Not RefreshRT Is Nothing)  Then
        RefreshRT.Document.ReplaceItemValue(IN_SAVEOPTIONS, &quot;1&quot;).SaveToDisk = False
        Msgbox nuid.Document.SaveOptions(0)
    End If
    Exit Function
ErrH:
    Print &quot;Ошибка RefreshRT &quot; &amp; Error(Err) &amp; &quot; в строке &quot; &amp; Erl
End Function</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (admin)]]></author>
			<pubDate>Tue, 18 Oct 2016 08:39:02 +0000</pubDate>
			<guid>https://itpmr.ru/viewtopic.php?pid=124605#p124605</guid>
		</item>
		<item>
			<title><![CDATA[Re: Поле NotesRichTextItem и погашение SaveOptions]]></title>
			<link>https://itpmr.ru/viewtopic.php?pid=124576#p124576</link>
			<description><![CDATA[<p>Еще есть вариант с секциями с контролируемым доступом, В секцию ставим NotesRichTextItem поле. В эдиторах ставим несуществующего юзера.</p>]]></description>
			<author><![CDATA[null@example.com (admin)]]></author>
			<pubDate>Fri, 05 Aug 2016 05:46:47 +0000</pubDate>
			<guid>https://itpmr.ru/viewtopic.php?pid=124576#p124576</guid>
		</item>
		<item>
			<title><![CDATA[Re: Поле NotesRichTextItem и погашение SaveOptions]]></title>
			<link>https://itpmr.ru/viewtopic.php?pid=124575#p124575</link>
			<description><![CDATA[<p>Решение оказалось очень простым. Но при этом документ нельзя закрывать крестиком, только &quot;сохранить и закрыть&quot;, иначе пропадет содержимое ричтекст поля.<br /></p><div class="codebox"><pre><code>doc.ReplaceItemValue({SaveOptions},{0}).SaveToDisk=False
        
Call doc.save (False, True)
Call uidoc.Close
Call workspace.EditDocument(False, doc)</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (admin)]]></author>
			<pubDate>Fri, 05 Aug 2016 05:40:05 +0000</pubDate>
			<guid>https://itpmr.ru/viewtopic.php?pid=124575#p124575</guid>
		</item>
		<item>
			<title><![CDATA[Поле NotesRichTextItem и погашение SaveOptions]]></title>
			<link>https://itpmr.ru/viewtopic.php?pid=124573#p124573</link>
			<description><![CDATA[<p>Есть в документе на форме функция в Globals - в ней я по таймеру аттачу в поле NotesRichTextItem&nbsp; вложение.<br />Потом хочу переоткрыть док, чтобы увидеть вложение.</p><p>Не работает.<br /></p><div class="codebox"><pre><code>Doc.SaveOptions = &quot;0&quot;
Call Doc.save (False, True)
Call uidoc.Close
Call workspace.EditDocument(False, Doc)
Print doc.header(0) &#039;  чтобы увидеть где ошибка, если будет
Doc.SaveOptions = &quot;1&quot;        
Call doc.save (False, True)</code></pre></div><p>делаю, как в хелпе. Не работает.<br /></p><div class="codebox"><pre><code>Call rtitem.EmbedObject ( EMBED_ATTACHMENT, &quot;&quot;, pathOUT &amp; FName)
rtitem.Update
......
    Doc.SaveOptions = &quot;0&quot;
        Call uidoc.Close(True)
        Set uidocNew = workspace.EditDocument(True, Doc, , , , True)
        Delete uidoc
        uidocNew.Document.RemoveItem(&quot;SaveOptions&quot;)</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (admin)]]></author>
			<pubDate>Thu, 04 Aug 2016 07:54:18 +0000</pubDate>
			<guid>https://itpmr.ru/viewtopic.php?pid=124573#p124573</guid>
		</item>
	</channel>
</rss>
