Q

Category in an embedded view clickable

I have managed to make a category in an embedded view clickable so that it expands as if you would click the twisty. The problem however is that I do not know how to do the same for the collapse. In my view column, I have specified an HREF link and I would need a flag to find out whether the view is expanded or collapsed to be able to pass the correct URL. I have tried using a field on the form but I cannot check the value of that field...

in the view. Then I have put an onclick event in the HREF that would check the value of the field but as I click the category, the view refreshes and the field is being reset.

I think there is a simple solution to your problem. In the _Iris Today_ article "Taking your Domino Applications to the Web," David DeJean explains how to replace the twisty image with your own graphics using the JavaScript below. You can extend this to include two transparent gif files if you do not want any images to show at all.

function imagereplace()

{ for( i=0; i { if( document.images[i].src.indexOf('expand.gif') != -1) { document.images[i].src=src = '/DATABASE.nsf/OPEN.gif?OpenImageResource' } //end if

if( document.images[i].src.indexOf( 'collapse.gif' ) != -1) { document.images[i].src= src = '/DATABASE.nsf/CLOSE.gif?OpenImageResource' } //end if } // end for }

For the full _Iris Today_ article "Taking your Domino Applications to the Web," visit: http://www.notes.net/today.nsf/f01245ebfc115aaf8525661a006b86b9/683ec315af82039e852569c8000c99e6

This was first published in May 2001
This Content Component encountered an error

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchWinIT

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchEnterpriseLinux

SearchVirtualDataCentre.co.UK

Close