When deleting XPages watch your form property "Display XPage instead"
During the XPages training in Manila we found an interesting behaviour of the "Display XPage instead" property of a form. To reproduce this follow these steps:
- Create a form
form1
- Create an XPage
test1.xsp
- Set the form property "Display XPage instead" (both for Client and web) to
test1.xsp
- Preview
form1
in Notes client and web - works as designed,test1.xsp
will show. - Now delete
test1.xsp
- Preview
form1
in Notes client and web - it will show an error - Inspect the "Display XPage instead" property of
form1
: it will show empty since test1.xsp is no longer a selectable item, However that value is still stored in the form (we didn't touch it at this point) - Open the
form1
as DXL. At the end of the form you will find:<item name='$XPageAlt'><text>test1.xsp </text></item>
<item name='$XPageAltClient'><text>test1.xsp </text></item> - To fix this: Either delete the lines in DXL (if you dare ) - or: in the form property "Display XPage instead" select any other XPage (optional) and then the empty item on top and save the form. Just open and save the form doesn't do the trick, you have to touch the form property
Posted by Stephan H Wissel on 16 December 2011 | Comments (1) | categories: XPages