• Bug and possible fix in search agent

    By Markus Jungbluth 2 decades ago

    Hi,

    I just tested Domgle and I'm quit expressed with the result. But I ran into problems when using the search on two databases where one database doesn't have the fields I'm requesting.

    It seems that if the search agent produce different result sets with a different number of columns. Only the database which has the field delivers results.



    here's a little change to the agent which takes care of the problems. You might wan't to implement this into your offical version as it takes better care of missing values:





    'Get Field asked

    For j% = 1 To 5

    fvalue$ =""

    If docFound.HasItem(AgentArgs("AS_Field_Name_"+Cstr(j%))) Then

    fvalue$ = docFound.GetItemValue(AgentArgs(&quot;AS_Field_Name_&quot;+Cstr(j%)))(0)<br/>
    

    End If

    Print |<entrydata><![CDATA[|+fvalue$+|]]></entrydata>|

    Next

    • Thanks !

      By Julien Bottemanne 2 decades ago

      Thanks Markus,



      Soon a new Domgle release will be available. Be sure your code will be include in the new release.



      Thanks again.



      Julien

    • Done in 1.2

      By Julien Bottemanne 2 decades ago

      Your code modification is include in 1.2 release.



      Thanks again.