<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Форум компьютерной помощи &mdash; Свой поиск по базе данных в Lotus]]></title>
		<link>https://itpmr.ru/viewtopic.php?id=793</link>
		<atom:link href="https://itpmr.ru/extern.php?action=feed&amp;tid=793&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Свой поиск по базе данных в Lotus».]]></description>
		<lastBuildDate>Thu, 05 Dec 2013 12:10:37 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Свой поиск по базе данных в Lotus]]></title>
			<link>https://itpmr.ru/viewtopic.php?pid=124046#p124046</link>
			<description><![CDATA[<p>Вот еще полезный хелп с тонкостями поиска в лотусе:<br />ww-10.lotus.com/ldd/ddwiki.nsf/dx/Searching_for_Documents</p>]]></description>
			<author><![CDATA[null@example.com (admin)]]></author>
			<pubDate>Thu, 05 Dec 2013 12:10:37 +0000</pubDate>
			<guid>https://itpmr.ru/viewtopic.php?pid=124046#p124046</guid>
		</item>
		<item>
			<title><![CDATA[Re: Свой поиск по базе данных в Lotus]]></title>
			<link>https://itpmr.ru/viewtopic.php?pid=123897#p123897</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (admin)]]></author>
			<pubDate>Mon, 05 Aug 2013 06:39:29 +0000</pubDate>
			<guid>https://itpmr.ru/viewtopic.php?pid=123897#p123897</guid>
		</item>
		<item>
			<title><![CDATA[Re: Свой поиск по базе данных в Lotus]]></title>
			<link>https://itpmr.ru/viewtopic.php?pid=123896#p123896</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (admin)]]></author>
			<pubDate>Mon, 05 Aug 2013 06:36:22 +0000</pubDate>
			<guid>https://itpmr.ru/viewtopic.php?pid=123896#p123896</guid>
		</item>
		<item>
			<title><![CDATA[Свой поиск по базе данных в Lotus]]></title>
			<link>https://itpmr.ru/viewtopic.php?pid=123895#p123895</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (admin)]]></author>
			<pubDate>Mon, 05 Aug 2013 06:28:10 +0000</pubDate>
			<guid>https://itpmr.ru/viewtopic.php?pid=123895#p123895</guid>
		</item>
	</channel>
</rss>
