Launch the Desktop Module

  1. #1

    Launch the Desktop Module

    Hi Sir,

    Here is my requirement :

    I wanted to launch the window when user press on button.

    I have tried below code and its not working and there was an javascript error throws up, but autorun=true working perfectly. Is there option instead of autorun.

    Looking for launch window based on condition.

    this.Call("getModule('AdminServices').createWindow ");

    this.Desktop1.LaunchModule("AdminServices");

    App.Desktop1.getModule('AdminServices').createWind ow();

    Below is the screen shot for quick reference.

    Thank you,
    Vamsi.
    Attached Thumbnails Click image for larger version. 

Name:	Launch.png 
Views:	55 
Size:	40.4 KB 
ID:	25409   Click image for larger version. 

Name:	Launch2.jpg 
Views:	50 
Size:	108.6 KB 
ID:	25410  
  2. #2
    Hello Vamsi!

    Hello what you're trying should work. For instance, if you open the Desktop Example and call this in the console, it will show the notepad window:

    App.Desktop1.getModule("notepad").createWindow()
    Can't tell what's wrong in your case by what you provided. Can you check this in the example and maybe expand the example to point what you can't achieve? You may just remove any other modules from the example and use just one like the "notepad" one, maybe.

    Looking forward to your follow-up!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. [CLOSED] how to launch desktop Module from client side
    By susanz in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 03, 2014, 7:05 PM
  2. Menu Module in Desktop
    By dtsleite in forum 2.x Help
    Replies: 3
    Last Post: May 08, 2014, 4:49 AM
  3. Selected desktop module ID
    By yash.kapoor in forum 2.x Help
    Replies: 0
    Last Post: Jan 07, 2013, 6:40 AM
  4. How to get the Desktop Module Window Id
    By yash.kapoor in forum 2.x Help
    Replies: 1
    Last Post: Nov 12, 2012, 6:00 AM
  5. Desktop Module JS error
    By fenix2222 in forum Bugs
    Replies: 1
    Last Post: Mar 29, 2009, 2:21 PM

Posting Permissions