• Open dialog on page with readonly set on true

    By Dejan Ljubič 1 decade ago

     

     Hi, 
    
     
    
    I'm developing an application for wiewing document on the web with xpages and I am a little stucked.
    
    As I mentioned the  the application is only for viewing documents so the xpage property readonly is set to true,
    
    so even if I try to modify the action url from opendocument to editdocument it remain in readonly mode.
    
     
    
    The problem is that I have an dialog with a form for asking questions. The dialog is displayed  like a popup window
    
    and it work fine till it is opened from the document in the readonly mode. At this point the dialog is displayed in readonyl 
    
    mode too, so i cannot write down a question in the textarea.
    
     
    
    I tried to change the mode whene the dialog is displayed but I cant' get it to work. I don't know what I am doing wrong.
    
    Where shoul I call an event for change the document mode? 
    
     
    
    regards 
    
    Dejan