<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум компьютерной помощи &mdash; Кнопки Скопировать / Вставить на форме документа.]]></title>
	<link rel="self" href="http://itpmr.ru/extern.php?action=feed&amp;tid=1165&amp;type=atom" />
	<updated>2025-02-14T12:15:56Z</updated>
	<generator>PunBB</generator>
	<id>http://itpmr.ru/viewtopic.php?id=1165</id>
		<entry>
			<title type="html"><![CDATA[Re: Кнопки Скопировать / Вставить на форме документа.]]></title>
			<link rel="alternate" href="http://itpmr.ru/viewtopic.php?pid=124989#p124989" />
			<content type="html"><![CDATA[<p>У каждого поля документа на форме&nbsp; на событие:</p><p>Событие&nbsp; Entering<br /></p><div class="codebox"><pre><code>Sub Entering(Source As Field)
    Dim session As New NotesSession
    Dim ws As New notesuiworkspace
    Set uidoc = ws.CurrentDocument
    fieldName  =  uidoc.CurrentField
End Sub</code></pre></div><p>Событие Exiting<br /></p><div class="codebox"><pre><code>Sub Exiting(Source As Field)
    Dim session As New NotesSession
    Dim ws As New notesuiworkspace
    Set uidoc = ws.CurrentDocument
    Dim fieldValue As String  
    
    Print   &quot;fieldName  &quot;fieldName
    
    fieldValue = uidoc.FieldGetText(fieldName)
    Call session.SetEnvironmentVar( &quot;FieldDoc&quot;, fieldValue)
    Call session.SetEnvironmentVar( &quot;FieldName&quot;, fieldName)
End Sub</code></pre></div>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>http://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2025-02-14T12:15:56Z</updated>
			<id>http://itpmr.ru/viewtopic.php?pid=124989#p124989</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Кнопки Скопировать / Вставить на форме документа.]]></title>
			<link rel="alternate" href="http://itpmr.ru/viewtopic.php?pid=124988#p124988" />
			<content type="html"><![CDATA[<p>Кнопка &quot;Вставить&quot;.</p><div class="codebox"><pre><code>Sub Click(Source As Button)
    Dim session As New NotesSession
    Dim ws As New notesuiworkspace
    Dim uidoc As NotesUIDocument
    Set uidoc = ws.CurrentDocument
    
    st=session.GetEnvironmentString( &quot;FieldDoc&quot;)
    Print st
    mytext$ =  uidoc.FieldGetText(&quot;empty&quot;)
    Print  fieldName
    Call    uidoc.FieldSetText(fieldName,mytext$)
End Sub</code></pre></div><p>На форме в декларации:</p><div class="codebox"><pre><code>Public  fieldValue As String
Public  fieldName As String  
Public uidoc As NotesUIDocument </code></pre></div>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>http://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2025-02-14T09:41:26Z</updated>
			<id>http://itpmr.ru/viewtopic.php?pid=124988#p124988</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Кнопки Скопировать / Вставить на форме документа.]]></title>
			<link rel="alternate" href="http://itpmr.ru/viewtopic.php?pid=124987#p124987" />
			<content type="html"><![CDATA[<p>Нужно сделать две кнопки на форме, при нажатии &quot;Скопировать&quot;, в буфе попадает значение последнего поля.<br />А при нажатии &quot;Вставить&quot; - вставляется значение с последнего поля.</p><p>Вот реализация данного функционала на лотус-скркрипте.</p><p>Кнопка &quot;Скопировать&quot;</p><div class="codebox"><pre><code>Sub Click(Source As Button)
    Dim session As New NotesSession
    Dim ws As New notesuiworkspace
    Dim uidoc As NotesUIDocument
    Set uidoc = ws.CurrentDocument
    Dim st As String
    st=session.GetEnvironmentString( &quot;FieldDoc&quot;)
    Print &quot;Скопировано значение  &quot; st
    
    Call uidoc.FieldSetText(&quot;empty&quot;,st)
    
    
End Sub</code></pre></div>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>http://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2025-02-14T09:39:55Z</updated>
			<id>http://itpmr.ru/viewtopic.php?pid=124987#p124987</id>
		</entry>
</feed>
