<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум компьютерной помощи &mdash; Свой поиск по базе данных в Lotus]]></title>
	<link rel="self" href="https://itpmr.ru/extern.php?action=feed&amp;tid=793&amp;type=atom" />
	<updated>2013-12-05T12:10:37Z</updated>
	<generator>PunBB</generator>
	<id>https://itpmr.ru/viewtopic.php?id=793</id>
		<entry>
			<title type="html"><![CDATA[Re: Свой поиск по базе данных в Lotus]]></title>
			<link rel="alternate" href="https://itpmr.ru/viewtopic.php?pid=124046#p124046" />
			<content type="html"><![CDATA[<p>Вот еще полезный хелп с тонкостями поиска в лотусе:<br />ww-10.lotus.com/ldd/ddwiki.nsf/dx/Searching_for_Documents</p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>https://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2013-12-05T12:10:37Z</updated>
			<id>https://itpmr.ru/viewtopic.php?pid=124046#p124046</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Свой поиск по базе данных в Lotus]]></title>
			<link rel="alternate" href="https://itpmr.ru/viewtopic.php?pid=123897#p123897" />
			<content type="html"><![CDATA[<p>Вот еще пример поиска по полю:</p><div class="codebox"><pre><code>If uidoc.FieldGetText(&quot;sДело&quot;)&lt;&gt;&quot;&quot; Then &#039; Дело 
        If formula$ &lt;&gt; &quot;&quot; Then
formula$ = formula$+{ AND [IDDelo]=} &amp;  uidoc.FieldGetText(&quot;sIDDelo&quot;)            
        Else    
            
formula$ = formula$+{[IDDelo]=} &amp;  uidoc.FieldGetText(&quot;sIDDelo&quot;)
        End If
    End If</code></pre></div><br /><p>А ранее пробовал искать так:<br /></p><div class="codebox"><pre><code>formula$ = formula$+{[СОДЕРЖАНИЕ]= &quot;} &amp; uidoc.FieldGetText(&quot;sСОДЕРЖАНИЕ&quot;) &amp; {&quot; OR [СОДЕРЖАНИЕ_]= &quot;} &amp; uidoc.FieldGetText(&quot;sСОДЕРЖАНИЕ&quot;) &amp; {&quot;}
Set dc=db.Search(formula$,Nothing,0)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>https://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2013-08-05T06:39:29Z</updated>
			<id>https://itpmr.ru/viewtopic.php?pid=123897#p123897</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Свой поиск по базе данных в Lotus]]></title>
			<link rel="alternate" href="https://itpmr.ru/viewtopic.php?pid=123896#p123896" />
			<content type="html"><![CDATA[<p>На форме размещаем, к примеру, поля для поиска<br />Дата регистрации&nbsp; Date1<br />Заголовок&nbsp; sЗАГОЛОВОК<br /> и кнопку &quot;искать&quot;&nbsp; с кодом:</p><div class="codebox"><pre><code>Sub Click(Source As Button)
    Dim session As New NotesSession
    Dim db As NotesDatabase
    Dim dc As NotesDocumentCollection
    Dim formula As String
    Set db = session.CurrentDatabase
    
    Dim ws As New NotesUIWorkspace
    Dim uidoc As NotesUIDocument
    Set uidoc = ws.CurrentDocument
    
    formula$ =&quot;&quot;
    
    If uidoc.FieldGetText(&quot;Date1&quot;)&lt;&gt;&quot;&quot; Then &#039; нач дата регистрации дока
    formula$ = formula$+{[ДАТА_РЕГИСТРАЦИИ]&gt;=}  &amp; uidoc.FieldGetText(&quot;Date1&quot;)            
    End If

    If uidoc.FieldGetText(&quot;sЗАГОЛОВОК&quot;)&lt;&gt;&quot;&quot; Then &#039; ЗАГОЛОВОК
        If formula$ &lt;&gt; &quot;&quot; Then
            
            formula$ = formula$+{ AND [ЗАГОЛОВОК] CONTAINS &quot;} &amp;  uidoc.FieldGetText(&quot;sЗАГОЛОВОК&quot;)&amp; {&quot;}    
        Else    
            formula$ = formula$+{[ЗАГОЛОВОК] CONTAINS &quot;} &amp; uidoc.FieldGetText(&quot;sЗАГОЛОВОК&quot;)  &amp; {&quot;}        
        End If    
    End If    



    Set dc = db.AllDocuments
    Call dc.FTSearch(formula$,0)
    
    Call dc.PutAllInFolder(&quot;FoldSearch&quot;)
    
    &#039;-----------------------закрытие---------------------------------&#039;
    Dim uidb As NotesUIDatabase
    Set uidb = ws.CurrentDatabase
    Call uidoc.Close
    Call uidb.OpenView(&quot;FoldSearch&quot;)
    Call ws.viewrefresh
End Sub</code></pre></div>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>https://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2013-08-05T06:36:22Z</updated>
			<id>https://itpmr.ru/viewtopic.php?pid=123896#p123896</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Свой поиск по базе данных в Lotus]]></title>
			<link rel="alternate" href="https://itpmr.ru/viewtopic.php?pid=123895#p123895" />
			<content type="html"><![CDATA[<p>Создаем&nbsp; папку shared, private on fist use, к примеру имя FoldSearch.<br />Отображается как ключик с &quot;1&quot; наверху.<br />Для каждого юзера будет создаваться своя такая папка.<br />Увидеть все такие приватные папки можно только в домино администраторе у базы в списке видов.</p><br /><p>В папке создаем кнопочку:</p><p>Sub Click(Source As Button)<br />&nbsp; &nbsp; Dim session As New NotesSession<br />&nbsp; &nbsp; Dim db As NotesDatabase<br />&nbsp; &nbsp; Dim workspace As New NotesUIWorkspace<br />&nbsp; &nbsp; Dim view As NotesView<br />&nbsp; &nbsp; Dim vc As NotesViewEntryCollection<br />&nbsp; &nbsp; Set db = session.CurrentDatabase<br />&nbsp; &nbsp; Set view = db.GetView(&quot;FoldSearch&quot;)<br />&nbsp; &nbsp; Call view.AllEntries.RemoveAllFromFolder(&quot;FoldSearch&quot;)<br />&nbsp; &nbsp; Call workspace.DialogBox (&quot;fSearch&quot;, False, True,True, False, True, False, &quot;найдётся всё !!!&quot;, session.CurrentDatabase.CreateDocument(),True,True)<br />End Sub</p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>https://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2013-08-05T06:28:10Z</updated>
			<id>https://itpmr.ru/viewtopic.php?pid=123895#p123895</id>
		</entry>
</feed>
