锘??xml version="1.0" encoding="utf-8" standalone="yes"?>你懂的在线视频,91性高湖久久久久久久久_久久99,久久精品日韩http://www.aygfsteel.com/nikon/category/28513.htmlzh-cnSun, 30 Dec 2007 04:01:42 GMTSun, 30 Dec 2007 04:01:42 GMT60鍏充簬 DOMINO LS閲岄潰 view鐨凢tsearch鐨?"entry is no longer in view"鐨勭爺絀?/title><link>http://www.aygfsteel.com/nikon/archive/2007/12/29/171527.html</link><dc:creator>鏉庣珛娉?/dc:creator><author>鏉庣珛娉?/author><pubDate>Sat, 29 Dec 2007 06:40:00 GMT</pubDate><guid>http://www.aygfsteel.com/nikon/archive/2007/12/29/171527.html</guid><wfw:comment>http://www.aygfsteel.com/nikon/comments/171527.html</wfw:comment><comments>http://www.aygfsteel.com/nikon/archive/2007/12/29/171527.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/nikon/comments/commentRss/171527.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/nikon/services/trackbacks/171527.html</trackback:ping><description><![CDATA[1錛?br /> 鍘熷洜涓昏鏄?鏁版嵁鐨勪笉鍞竴鎬?br /> <br /> domino鏂囨。鏁版嵁搴撶殑寮婄梾<br /> <br /> 鑰屼笖 FTSearch鏌ヨ璧鋒潵涔熶笉寰堝噯紜紝涓夊瓧絎︿竴涓嬫煡璇紝鍛戒腑鐜囦笉鏄崄鍒嗛珮錛屽ぇ綰?80%-95%<br /> <br /> 2錛?br /> entry is no longer in view閿欒鐨勯伩鍏嶆柟娉曟槸<br /> <br /> 鐢∟otesViewEntry.IsValid鏂規硶鍏堝垽鏂偅 Entry鏄惁鑳借皟鐢?br /> <br /> 濡傛灉涓嶆槸璋冪敤閲岄潰寰堝鏂規硶 閮戒細鎶?nbsp; entry is no longer in view錛屽氨綆?IsDocument涔熸病鐢ㄥ<br /> <br /> 浣嗚繖鏍鳳紝濡傛灉鏄嚜宸辨墜鍔ㄥ垎欏碉紝灝變細鍑虹幇 GetNthEntry鏃跺欎笉澶噯紜?br /> <br /> 浣嗘病鍔炴硶浜嗭紝涓よ呭紛錛屽彇鍏惰交<br /> <br /> 涓昏鏄鎴蜂綋楠屽彈鐐瑰獎鍝嶄簡<br /> <br /><img src ="http://www.aygfsteel.com/nikon/aggbug/171527.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/nikon/" target="_blank">鏉庣珛娉?/a> 2007-12-29 14:40 <a href="http://www.aygfsteel.com/nikon/archive/2007/12/29/171527.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>榪戞湡璐熻矗鍏徃鐨凮A鏀歸狅紝鎺ヨЕ浜唀xt-js妗嗘灦錛岃嚜宸卞姩鎵嬪啓浜嗕簺浠g爜錛屾渶鏈夋垚灝辨劅鐨勬槸 extnd閲屽垎欏電殑淇敼錛屼竴涓嬫槸閮ㄥ垎淇敼蹇冨緱http://www.aygfsteel.com/nikon/archive/2007/12/29/171521.html鏉庣珛娉?/dc:creator>鏉庣珛娉?/author>Sat, 29 Dec 2007 06:32:00 GMThttp://www.aygfsteel.com/nikon/archive/2007/12/29/171521.htmlhttp://www.aygfsteel.com/nikon/comments/171521.htmlhttp://www.aygfsteel.com/nikon/archive/2007/12/29/171521.html#Feedback0http://www.aygfsteel.com/nikon/comments/commentRss/171521.htmlhttp://www.aygfsteel.com/nikon/services/trackbacks/171521.html涓錛?br />
鍒嗛〉瑕佽嚜宸遍噸鍐欙細鍦?extnd-all-debug閲嶅啓鎷垮彇鏁版嵁閮ㄥ垎

//鑷繁閲嶅啓鍒嗛〉鎷挎暟鎹殑鏂規硶錛岃繖鏍鋒暟鎹鏁頒細姝g‘鐜板疄
  var ds = new Ext.nd.data.DominoViewStore({
          proxy: new Ext.data.HttpProxy({
              url: Ext.nd.extndUrl+'GetView?OpenAgent',
              method: "GET"
          }),
          baseParams: {db: "/"+Ext.nd.Session.CurrentDatabase.FilePath, vw: this.viewName },
          reader: viewEntryReader,
          remoteSort: true
      });

銆傘傘傘傘傘傘傘傘傘傘傘傘傘傘?br />
getView鐨刲s浠g悊濡備笅

'GetView:

Option Public
Option Explicit


Sub Initialize
%REM
This agent can be called from the web to search any view and return results in the
same format as the ?ReadViewEntries command. This was created for use with the
NotesView2 class v1.3 and above.
%END REM
 
 On Error Goto ErrorHandler
 
 Dim session As New NotesSession
 Dim dbSearch As NotesDatabase
 Dim colEntries As NotesViewEntryCollection
 Dim vwSearch As NotesView
 Dim entryResult As NotesViewEntry
 Dim docCurrent As NotesDocument
 Dim docResult As NotesDocument
 Dim col As NotesViewColumn
 Dim strQuery As String
 Dim strDb As String
 Dim strView As String
 Dim strCategory As String
 Dim intMax As Integer
 Dim lngCount As Long, i As Long
 Dim lngStart As Long, lngEnd As Long
 Dim strParameters As String
 Dim lngResults As Long
 Dim x,n As Integer
 Dim xmlStr,resortdescending ,resortascending As String
 Dim nav As NotesViewNavigator
 
 
 'start the xml document
 Print "Content-Type:text/xml;"
 Print "<?xml version=""1.0"" encoding=""gb2312""?>"
 
 'first we get the search parameters out of the querystring
 'db, vw, query, searchmax, count, and start
 Set docCurrent = session.DocumentContext
 
 strParameters = docCurrent.GetItemValue("Query_String")(0)
 'Msgbox strParameters
 strDb = GetParameter("db",strParameters)
 strDb = Replace(Strright(strDb,"/"),"/","\")
 strView = GetParameter("vw",strParameters)
 strQuery = GetParameter("query",strParameters)
 strCategory= GetParameter("RestrictToCategory",strParameters)
 resortdescending=GetParameter("resortdescending",strParameters)
 resortascending=GetParameter("resortascending",strParameters)
 
 intMax = 0
 If Isnumeric(GetParameter("searchmax",strParameters)) Then intMax = Cint(GetParameter("searchmax",strParameters))
 lngCount = 20
 If Isnumeric(GetParameter("count",strParameters)) Then lngCount = Clng(GetParameter("count",strParameters))
 lngStart = 1
 If Isnumeric(GetParameter("start",strParameters)) Then lngStart = Clng(GetParameter("start",strParameters))
 
 'now we get the view to search
 Set dbSearch = session.GetDatabase("",strDb,False)
 Set vwSearch = dbSearch.GetView(strView)
 
 'Msgbox resortdescending +" && "+resortascending
 
 'now we run the search
 If   strCategory="" Then
  
  Set colEntries = vwSearch.AllEntries 
 Else
  Set colEntries = vwSearch.GetAllEntriesByKey(strCategory)
 End If 
 
 lngResults=colEntries.Count
 
 
 'now we spit out the results
 Print "<viewentries toplevelentries=""" & Cstr(lngResults) & """>"
 
 
 'set the starting point for the loop
 If lngStart > lngResults Then lngStart = lngResults
 
 'set the ending point for the loop
 lngEnd = lngStart + lngCount - 1
 If lngEnd > lngResults Then lngEnd = lngResults
 'now loop through the appropriate subset of results and print out a viewentry tag for each one
 i = lngStart
 While i <= lngEnd
  
  If i = lngStart Then
   Set entryResult = colEntries.GetNthEntry(i) 
  Else
   Set entryResult = colEntries.GetNextEntry(entryResult)
  End If
  
  
  If Not entryResult Is Nothing   Then
  'If Not entryResult Is Nothing And entryResult.IsValid  Then
   'If entryResult.IsDocument Then
   Set docResult = entryResult.Document
   Print  "<viewentry position=""" & Cstr(i) & """ unid=""" & Cstr(docResult.universalID) & """ noteid=""" & Cstr(docResult.NoteID) & """ siblings=""" & Cstr(entryResult.SiblingCount) & """>"
   x = 0
   n=0
   Forall value In entryResult.ColumnValues
    Set col=vwSearch.Columns(x)
    
    If Not col.isCategory And  Not col.IsHidden  Then
     Print "<entrydata columnnumber=""" & Cstr(n) & """ name=""" & col.itemName & """>"
     Print  "<text>" & XMLEscape(GetValue(value,Cstr(docResult.universalID))) & "</text>"
     Print  "</entrydata>"
     n=n+1
    End If
    x = x + 1
   End Forall
   Print "</viewentry>"
   'End If
  End If
  i = i + 1
 Wend
AtEnd:
 Print "</viewentries>"
 
 ''''Msgbox xmlStr
 Print xmlStr
 vwSearch.Clear
 Set dbSearch=Nothing
 Set vwSearch=Nothing
 Exit Sub
ErrorHandler:
 Msgbox "<error>" & "Error in ($Ext.nd.SearchView): " & Error & "---at " & Erl & "</error>"
 Print "<error>" & "Error in ($Ext.nd.SearchView): " & Error & "---at " & Erl & "</error>"
 Resume AtEnd
End Sub
Function GetParameter(strParamName As String, strQuery As String) As String
 'this gets a parameter out of a querystring
 Dim i As Integer
 Dim s As String
 Dim v As Variant
 
 GetParameter = ""
 
 i = Instr(Ucase(strQuery),"&" & Ucase(strParamName) & "=")
 If i <> 0 Then
  s = Strright(Mid(strQuery, i),"=")
  If Instr(s, "&") Then
   s = Strleft(s, "&")
  End If
  v = Evaluate("@UrlDecode(""Domino""; """ & s & """)")
  GetParameter = Cstr(v(0))
 End If
End Function
Function XMLEscape(strValue As String) As String
 'this escapes a string so it can be printed out to xml safely
 strValue = Replace(strValue, "&" , "&amp;")
 strValue = Replace(strValue, "<" , "&lt;")
 strValue = Replace(strValue, ">" , "&gt;")
 XMLEscape = strValue
End Function


Function GetValue(strValue As Variant,id As String) As String
 On Error Goto sErr
 
 'Forall vs In strValue
 ' Msgbox "vs=" &  Cstr(vs)
 'End Forall
 GetValue=Cstr(strValue)
 Exit Function
sErr:
 GetValue="鏂囨。" & id
 Exit Function
End Function

 

鏈夊叴瓚e彲浠ョ爺絀朵笅 ext-js鐨凙JAX妗嗘灦錛岀‘瀹炲緢鏈夎叮



]]>
主站蜘蛛池模板: 泽库县| 科技| 武定县| 安西县| 格尔木市| 沅江市| 济阳县| 崇礼县| 英山县| 万安县| 东宁县| 德州市| 天台县| 武汉市| 民乐县| 布尔津县| 东方市| 县级市| 灵武市| 连南| 邯郸县| 巴彦县| 晋州市| 贺兰县| 永登县| 普宁市| 兴山县| 武强县| 墨脱县| 泗水县| 廊坊市| 兴文县| 文成县| 蓬溪县| 三门峡市| 临城县| 林州市| 册亨县| 张家川| 新巴尔虎右旗| 湖州市|