Hello Susheel,

Thank you. I would like to have your new code.
Send you a private mail?
Thanks again.

Alvaro

................

El dom, 29-11-2015 a las 17:16 +0530, Susheel Jalali escribió:
> Dear OpenMeetings Developers,
> 
> We created a new method which then calls the action command for  our new 
> sub-menu items, and from there we are able to load and display the 
> desired file. If someone has a need, we will be happy to share the code.
> 
> Sincerely,
> Susheel Jalali
> 
> Web site:www.Coscend.com <http://www.coscend.com/>
> ------------------------------------------------------------------
> CONFIDENTIALITY NOTICE: See 'Confidentiality Notice Regarding E-mail 
> Messages from Coscend Communications Solutions' posted at: 
> http://www.Coscend.com/Terms_and_Conditions.html 
> <http://www.coscendcommunications.com/Terms_and_Conditions.html>
> 
> 
> On 11/28/15 17:38, Susheel Jalali wrote:
> > Dear OpenMeetings Developers,
> >
> > We would like to load a one-page PDF file to whiteboard by clicking on 
> > a sub-menu link in menu dropdown.  We are able to upload and display 
> > the PDF file on whiteboard through File Explorer, thereby meaning 
> > ImageMagick, Ghostscript and OpenOffice are properly installed and the 
> > configuration path in OM 3.0.7 is correct. However, when we click on 
> > the menu link to the PDF file, it gives a DELETED (large) picture.  We 
> > have placed the SWF created from the PDF file 
> > inopenmeetings/dist/red5/webapps/<OMinstance>/upload, ../files 
> > directories.
> >
> > We would appreciate any vectors to solve this issue.  Below are the 
> > details.
> >
> > ------------
> > DETAILS
> > ------------
> > We are able to successfully use the following call from within the 
> > Onclick Handler of a Menu Button of conferenceMenuBar:
> > by replacing the "fileHash" parameters with our SWF filename placed in 
> > "<OM_HOME>/dist/red5/webapps/<OMinstance>/upload/files" directory":
> > canvas._drawarea.parent.parent.clearAreaAndAddImage(this.generateFileLink(file1.swf),0,0,
> >  
> >
> > canvas.getUrl() +'DownloadHandler',
> > "file1.swf","videoconf1","/","files",hib.conferencedomain);
> > However the same code called from within the "onclick" OR "command" 
> > handler of a Sub-menu command, it only displays the "DELETED" image or 
> > "Image Deleted" picture.
> > 1.  We put this code and call directly in command action code.
> > 2.  We created a new  method with this code (method upchart) in 
> > "mainAttributes.lzx", and call it from command action code.
> > 3. We added this "upchart" method inside a clone of 
> > conferencDropDownMenuItem, and called it from its "onclick" handler.
> > We have extracted the image loading part of the steps and put it into 
> > a method, which is then called from the onclick handler of a clone of 
> > <conferencDropDownMenuItem>, like "<abcDropDownMenuItem>"
> > (we can't put this method in the original, as that would affect all 
> > the existing submenu items behaviour).
> >          <handler name="onclick">
> >              if (!this.enabled) {
> >                  return;
> >              }
> >            this.upchart('file1.swf' );
> >              parent.parent.close();
> >          </handler>
> >
> >    And the method definition of this method is also included within 
> > the class definition of <abcDropDownMenuItem>:
> >     <method name="upchart" args="upfilename">
> >           <![CDATA[
> >             var fileLink = canvas.getUrl()+'DownloadHandler?' +
> >                              'fileName='+ upfilename +
> >                              '&moduleName='+ "videoconf1" +
> >                              '&parentPath='+ '/' +
> >                              '&room_id=files' +
> >                              '&sid='+canvas.sessionId;
> >            var secondid=0;
> >            var isOwner=0;
> >            var servletName='file.upload';
> >            var 
> > parentFolderId="/usr/local/openmeetings/dist/red5/webapps/<OMinstance>/upload";
> >  
> >
> >             var uploadurl = canvas.getUrl() + servletName +'?' +
> >                'moduleName='+ "videoconf1" +
> >              '&publicSID='+canvas.publicSID +
> >              '&filename='+ upfilename +
> >              '&parentFolderId='+parentFolderId +
> >                '&room_id='+hib.currentroomid +
> >                '&secondid='+secondid +
> >                '&isOwner='+isOwner +
> >                '&sid='+canvas.sessionId;
> >        if ($debug) Debug.write("uploadurl: ",uploadurl);
> > canvas._drawarea.parent.parent.clearAreaAndAddImage(fileLink,0,0,
> >                  canvas.getUrl() +'DownloadHandler', 
> > upfilename,"videoconf1",parentFolderId,"files",hib.conferencedomain);
> >            ]]>
> >   </method>
> > -- 
> > In the last line, if we replace "files" parameter with "", then it 
> > should take the file from "upload" folder. It is not taking it either 
> > way.  In the Menu Button case, both scenarios were succeeding.
> > -- 
> >
> > Sincerely,
> > Susheel Jalali
> >
> > Web site:www.Coscend.com <http://www.coscend.com/>
> > ------------------------------------------------------------------
> > CONFIDENTIALITY NOTICE: See 'Confidentiality Notice Regarding E-mail 
> > Messages from Coscend Communications Solutions' posted at: 
> > http://www.Coscend.com/Terms_and_Conditions.html 
> > <http://www.coscendcommunications.com/Terms_and_Conditions.html>
> >
> >
> > ----------------
> >> From    Maxim Solodovnik <[email protected]>
> > Subject    Re: How to upload static PDF file to whiteboard via Menu 
> > button
> > Date    Thu, 12 Nov 2015 04:13:59 GMT
> > I guess filehash is sort of MD5 hash on filename (maybe + some 
> > additional data, like date) This need to be done on server to match DB
> >
> > On Thu, Nov 12, 2015 at 1:46 AM, Susheel Jalali 
> > <[email protected]> wrote:
> >  > Dear Maxim,
> >  >
> >  > Is there any guide about how 'fileHash' is generated on a file that 
> > is  > already present in the OpenMeetings Server?
> >  > The examples we ran into show how it is used, but not how it is 
> > created.
> >  >
> >  > It seems that for actually uploaded files, "onCompleteByRemote" is 
> > a  > callback method that gets called with fileHash remotely when 
> > upload is
> > >  complete.  For a local file, can we bypass this remote call and 
> > generate  > the fileHash in the 'onclick' handler itself?
> >  >
> >  > Also, is the 'hib.conferencedomain' value accessible from the 
> > onclick  > handler of a menu button, or is there a better way to 
> > access it?
> >  > Regards,
> >  > Susheel Jalali
> >  > Coscend Communications Solutions > www.Coscend.com 
> > <http://www.coscend.com/> >
> >
> >
> 


Reply via email to