logo

New Response

« Return to the main article

You are replying to:

    • avatar
    • Jake Howlett
    • Posted on Thu 27 Nov 2003

    With Domino 6 we don't need all this trickery as we have new @Function such as @While.

    The code to create the navigation list can be simplified to:

    _________________________________

    REM {Create links for each page of results for a search};

    viewname:="vwSearch"; count:=10; options:="&SearchFuzzy=True";

    link := "<a href=\""+viewname+"?SearchView&Query=" + Query + "&start=";

    start:=1; @While(start<totalhits; @If(@Text(start) = @UrlQueryString("start"); html:=html + "<b>[ " + @Text(1+(start-1)/10) + " ]</b> "; html:=html + link + @Text(start) + "&count=" + @Text(count) + options + "\">[ " + @Text(1+(start-1)/10) + " ]</a> "); start:=start+10 );

    html _________________________________

    Some time soon I will update the article or write a new one...

    Jake

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: