1. #1
    Sencha - Services Team
    Join Date
    Mar 2007
    Location
    Foristell, MO
    Posts
    1,109
    Vote Rating
    3
    jratcliff is on a distinguished road

      0  

    Default Ext.nd Beta 2r2 available for download

    Ext.nd Beta 2r2 available for download


    Hi Everyone,

    We were finally able to get this uploaded to the server (thanks Rich!) so you can download at your convenience instead of waiting for me to email you a copy. We still have some more bugs to fix and the api docs need to be done. In the meantime, go through the included tasks.nsf and demo.nsf dbs to get an idea of what you can do. And as always, post questions to the forum if you have any.

    Jack

    http//extjs.com/downloads/extnd_b2r2.zip

  2. #2
    Sencha - Services Team
    Join Date
    Mar 2007
    Location
    Foristell, MO
    Posts
    1,109
    Vote Rating
    3
    jratcliff is on a distinguished road

      0  

    Default


    Hi Everyone,

    I hope you have been able to get this Beta working in your own environments. As I mentioned to the pre-release Beta testers that were getting the database emailed to them, this release contains a fix to searching in views.

    So, could everyone do me a favor and let me know if searching in a view works for them? Try flat and categorized views and views set to only show a single category and views within picklists.

    Thanks again for your interest and support.
    ~Jack

  3. #3
    Ext User forefront's Avatar
    Join Date
    Feb 2008
    Location
    Shanghai
    Posts
    60
    Vote Rating
    0
    forefront is on a distinguished road

      0  

    Default


    partial search get error "this.getRows.length is null or not object".eg,input "scho" not "school" demo.nsf.
    FYI.
    Nothing is impossible for a willing heart.

  4. #4
    Ext User forefront's Avatar
    Join Date
    Feb 2008
    Location
    Shanghai
    Posts
    60
    Vote Rating
    0
    forefront is on a distinguished road

      0  

    Default


    expand one category note by single click when you expand all by expand all action bar.
    Nothing is impossible for a willing heart.

  5. #5
    Ext User
    Join Date
    Aug 2008
    Posts
    2
    Vote Rating
    0
    AlanWHurt is on a distinguished road

      0  

    Default Beta2r2 Setup

    Beta2r2 Setup


    Hi,

    I've played around with the extnd stuff a while back and thought I would take a look at this newer version. I admit though, I don't remember how to set it up properly. I don't see any sort of document with setup instructions, but I remember something about profiles/configuration setup.

    Is there anything posted on how to get the sample demo or task dbs (or how to configure a db from scratch) to work?

    Thanks,
    Alan

  6. #6
    Sencha User
    Join Date
    Oct 2008
    Posts
    64
    Vote Rating
    0
    daddyschmack is on a distinguished road

      0  

    Default Search and a 8.5 server

    Search and a 8.5 server


    Hi Jack,

    Search is not working for me.. But I have it on an 8.5 server right now.. Interesting enough, I can't get the init function to call when I go into edit mode.. Is anyone else running this on an 8.5 server?

  7. #7
    Sencha User
    Join Date
    Jan 2009
    Posts
    7
    Vote Rating
    0
    Sean Bannister is on a distinguished road

      0  

    Default


    Hey Jack,

    Great work!

    So far have been looking at the search functionality and have found a few issues:
    1. if there is a space in the db path, the space is being converted to "%2520" (% is being url encoded again before calling the agent) so the "getParameter" function can not decode it properly. This means the dbSearch object cannot be set. As a work around I am manually replacing the string sequence before the Evaluate statement.
    2. If a column in the view being searched has "Show multiple values as separate entries" checked, the agent fails because the column value is returned as an array. I have done a Join on the array.
    3. When generating the search results any hidden columns need to be excluded and categorised column values set to blank(like notes does). The entrydata columnnumber is adjusted accordingly. When trying to troubleshoot this I was tripped up by the view sample "Sc1":
      1. When testing my fixes the column values where all moved left by one and missing the value for the "subject" column
      2. when looking at the output of the values, the subject was indeed missing from the array of columnValue from the view entry.
      3. Rembered that "view column constants" are not output to the columnvalues array and realized that the Hidden Column has a constant of "This should not display". This did not explain why the "subject" value was not available and the so called constant was.
      4. After much stuffing around realised that Domino was excluding the wrong column so(not sure if it is a bug on 6.5.4), to validate my assumption I changed the hidden column to lookup a field value and all worked perfectly--> Upshot is that if a view contains a column set to a fixed value it will mess with the column alignment(that is with my fixes applied).
    4. The IsHidden property of the NotesViewColumn object does not seem to be correct if a column is hidden by a "Hide When" formula (ie returns false when formula evaluates to true). This also has the effect of throwing out the column order of the returned results. Not sure if this is an issue on later versions of Domino and I haven't found away to overcome it yet.
    I have not tested this with "restrict to single Category". I'm guessing that the existing code may not be needed to handle that with these changes in place.


    Updated code for agent "extnd/3x/SearchView" initialize event:


    Code:
     
    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 strQuery As String
     Dim strDb As String
     Dim strView As String
     
     ' variables for single category search 
     Dim strRTC As String
     Dim intRTCAdjustment As Integer
     Dim columnRTC As NotesViewColumn
     Dim strRTCFormula 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 tmpString As String
     Dim x As Integer
    Dim intExcludedColCount
     
     'start the xml document
     Print "Content-Type:text/xml;"
     Print "<?xml version=""1.0"" encoding=""iso-8859-1""?>"
     
     '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)
     strDb = GetParameter("db",strParameters)
     strDb = Replace(Strright(strDb,"/"),"/","\")
     strView = GetParameter("vw",strParameters)
     
     strQuery = GetParameter("query",strParameters)
     intMax = 0
     If Isnumeric(GetParameter("searchmax",strParameters)) Then intMax = Cint(GetParameter("searchmax",strParameters))
     lngCount = 100
     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)
     
     ' check for RestrictToCategory because if one exists, we have to adjust the columnnumber attribute
     ' and we will need to tweak the strQuery to also search on the category
     strRTC = GetParameter("RestrictToCategory",strParameters)
     If (strRTC <> "") Then
      intRTCAdjustment = 1
      Set columnRTC = vwSearch.Columns(0) 'in a RestrictToCategory view, the first column, column 0, should be the category column
      If columnRTC.IsFormula Then
       strRTCFormula = columnRTC.Formula
      Else
       strRTCFormula = "FIELD " + columnRTC.ItemName
      End If
      strQuery = |(| + strRTCFormula + |="| + strRTC + |") AND (| + strQuery + |)|
     Else
      intRTCAdjustment = 0
     End If
     
     'msgbox strQuery
     'now we run the search
     lngResults = vwSearch.FTSearch(strQuery,intMax)
     
     'now we spit out the results
     Print "<viewentries toplevelentries=""" & Cstr(lngResults) & """>"
     Set colEntries = vwSearch.AllEntries
     
     '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
      Set entryResult = colEntries.GetNthEntry(i)  
      If Not entryResult Is Nothing Then
       intExcludedColCount = intRTCAdjustment
       Set docResult = entryResult.Document
       Print "<viewentry position=""" & Cstr(i) & """ unid=""" & Cstr(docResult.universalID) & """ noteid=""" & Cstr(docResult.NoteID) & """ siblings=""" & Cstr(entryResult.SiblingCount) & """>"
       x = 0
     
       Forall value In entryResult.ColumnValues
     
        If vwSearch.Columns(x).isCategory Then
            value = ""
        Elseif Isarray(value) Then
           value = Join(FullTrim(value), ",")
        End If
     
        If vwSearch.Columns(x).isHidden = False Then     
         tmpString = ""
         tmpString = tmpString + "<entrydata columnnumber=""" & Cstr(x - intExcludedColCount) & """ name=""" & vwSearch.Columns(x).itemName & """>"
         tmpString = tmpString + "<text>" & XMLEscape(Cstr(value)) & "</text>"
         tmpString = tmpString + "</entrydata>"
         Print tmpString
        Else     
          intExcludedColCount = intExcludedColCount + 1
        End If
        x = x + 1
       End Forall   
       Print "</viewentry>"
      End If
      i = i + 1
     Wend
    AtEnd:
     Print "</viewentries>"
     
     Exit Sub
    ErrorHandler:
     Print "<error>" & "Error in SearchView: " & Error & "---at " & Erl & "</error>" 
     Resume AtEnd
    End Sub
    Thanks again Jack and Rich for all your efforts!

    Regards

    Sean
    Last edited by Sean Bannister; 31 Jul 2009 at 5:01 AM. Reason: Additional info added

  8. #8
    Sencha - Services Team
    Join Date
    Mar 2007
    Location
    Foristell, MO
    Posts
    1,109
    Vote Rating
    3
    jratcliff is on a distinguished road

      0  

    Default


    Thanks! i'll look at this over the weekend.

  9. #9
    Sencha User
    Join Date
    Oct 2008
    Posts
    64
    Vote Rating
    0
    daddyschmack is on a distinguished road

      0  

    Default IE 6 blow up!

    IE 6 blow up!


    Jack,

    This might be a bit obscure, but when you use the notes file upload control on a form with shared actions, and set showActionbar: true in IE 6

    It causes out of stack memory errors or a complete browser shutdown..

    Thanks,

    John

  10. #10
    Ext User
    Join Date
    Jul 2007
    Posts
    8
    Vote Rating
    0
    Nicholas Hopkins is on a distinguished road

      0  

    Default Gray Theme

    Gray Theme


    Congrats on the new release. - Great work, seen a couple of nice new things I think.

    Small moan,

    Any reason why the xtheme-gray style sheet is missing and a blue one has appeared?

    Surely superfluous as blue is default.

    I rather like the gray, do you plan to put one in, or should I just hack away at the blue?

    Rgds

    Nick