How to Invoke Popup Applet on button click.

This post will discuss the configuration required to invoke a Popup Applet on a button click. As always we will discuss it with the help of a requirement.

Requirement:

  • On a list applet have a button with caption as “Check Status”
  • Clicking on that button should result in an applet opening in separate window (popup applet)

Solution:

I am not listing the normal configuration steps like creating an applet or code to enable the button. I am assuming that you have already done that and just need configure the popup.

  • Query the List Applet that you want to add the button to.
  • In the Control section create a new record.
  • Enter the following values
  • Name: Check Status
    Caption – String Override: Check Status
    MethodName: ShowPopup

  • Map the control to the Applet UI by editing Applet Web Layout
  • Expand the control section and select the Control User Prop Section as shown below
    Siebel Tools Control User property section
  • Create the following user properties
    Name: Mode
    Value: Edit
    Name: Popup
    Value: Applet Name to Popup
    Siebel tools control section userproperties for popup applet

And you are done. When you click on that button it should popup the applet mentioned by you.

43 Responses to How to Invoke Popup Applet on button click.

  1. Those “Names” and “Values” you mentioned, are predefined or what…from where can we get the list of such “Names” & “Values”(Like Mode,Popup etc) that we are providing there…What is actually happening when we provide such data..Can you explain the mechanism please?

  2. Those “Names” and “Values” you mentioned, are predefined or what…from where can we get the list of such “Names” & “Values”(Like Mode,Popup etc) that we are providing there…What is actually happening when we provide such data..Can you explain the mechanism please?

  3. —————————
    Siebel
    —————————
    Method ‘ShowPopup’ requires a value for argument ‘SWETA’.(SBL-UIF-00355)

    —————————
    OK
    —————————

    I am getting this error

  4. —————————
    Siebel
    —————————
    Method ‘ShowPopup’ requires a value for argument ‘SWETA’.(SBL-UIF-00355)

    —————————
    OK
    —————————

    I am getting this error

  5. @Abhi: you get that error if you try to call ‘ShowPopup’ from script. The way the function’s been implemented it has to be invoked from a button click. I discussed a way around that restriction in this post.

  6. @Abhi: you get that error if you try to call ‘ShowPopup’ from script. The way the function’s been implemented it has to be invoked from a button click. I discussed a way around that restriction in this post.

  7. i have two buttons on an applet. Both buttons are using the “ShowPopup” method. I want to write some code to restrict one button, but since both button are using the same method code is getting fired from both button. I want it to work only for one button not for both.
    Any help will be appreciated.

  8. i have two buttons on an applet. Both buttons are using the “ShowPopup” method. I want to write some code to restrict one button, but since both button are using the same method code is getting fired from both button. I want it to work only for one button not for both.
    Any help will be appreciated.

  9. Hi,
    I am using the Siebel 8 version. I am new to working in Siebel. I have a form applet. I have a minbutton in it. The button is enabled. When i click on the button, i want to invoke another form applet. How to invoke another form applet through the button click?

  10. Hi,
    I am using the Siebel 8 version. I am new to working in Siebel. I have a form applet. I have a minbutton in it. The button is enabled. When i click on the button, i want to invoke another form applet. How to invoke another form applet through the button click?

  11. Hi Venkatesh,

    Please find the following solution for your requ

    1) Create a New Button in the applet and place it in web layout

    2) Write the following code in the Applet PreInvokeMethod method

    if(MethodName== “Add-Record”)
    {
    var destBO = TheApplication().GetBusObject(“Activity”);
    var destBC = destBO.GetBusComp(“Activity”);
    with(destBC)
    {
    SetViewMode(AllView);
    ClearToQuery();
    SetSearchSpec(“Id”,vCopyId);
    ExecuteQuery(ForwardOnly);
    TheApplication().GotoView(“Request Document View”,destBO);
    }
    }

    Hope this will work ..let me know if ur facing any issues

  12. Hi Venkatesh,

    Please find the following solution for your requ

    1) Create a New Button in the applet and place it in web layout

    2) Write the following code in the Applet PreInvokeMethod method

    if(MethodName== “Add-Record”)
    {
    var destBO = TheApplication().GetBusObject(“Activity”);
    var destBC = destBO.GetBusComp(“Activity”);
    with(destBC)
    {
    SetViewMode(AllView);
    ClearToQuery();
    SetSearchSpec(“Id”,vCopyId);
    ExecuteQuery(ForwardOnly);
    TheApplication().GotoView(“Request Document View”,destBO);
    }
    }

    Hope this will work ..let me know if ur facing any issues

  13. Adding few more words,

    The class file for the Popup applet should be “CSSSWEFramePopupHiGantt”

    Cheers
    Ram

  14. Adding few more words,

    The class file for the Popup applet should be “CSSSWEFramePopupHiGantt”

    Cheers
    Ram

  15. stuandgraavy: That hasn’t stopped me. Actualy i’ve managed to InvokeMethod(“ShowPopup”, … ). You just need the right input parameters, that’s all.

  16. stuandgraavy: That hasn’t stopped me. Actualy i’ve managed to InvokeMethod(“ShowPopup”, … ). You just need the right input parameters, that’s all.

  17. I am not able to see any content here.

    getting the content filled with the lines similar to the following line

    Warning: preg_replace_callback() [function.preg-replace-callback]: Unknown modifier ‘|’ in /home/siebelun/public_html/wp-includes/formatting.php on line 1347

    kindly rectify

    • Hi Ravi,

      There was a smalll problem with site. I have recitified it and able to see the content. Please check now if you are able to see proper content or not.
      Thanks for the info.

  18. I am not able to see any content here.

    getting the content filled with the lines similar to the following line

    Warning: preg_replace_callback() [function.preg-replace-callback]: Unknown modifier ‘|’ in /home/siebelun/public_html/wp-includes/formatting.php on line 1347

    kindly rectify

    • Hi Ravi,

      There was a smalll problem with site. I have recitified it and able to see the content. Please check now if you are able to see proper content or not.
      Thanks for the info.

  19. Siebel
    —————————
    Method ‘ShowPopup’ requires a value for argument ‘SWETA’.(SBL-UIF-00355)

    —————————
    OK
    —————————

    I am getting this error

    I am not calling showpopup through script. I have exactly followed the step u have asked to.
    Is anythign else also required other than the above mentioned steps.

  20. Siebel
    —————————
    Method ‘ShowPopup’ requires a value for argument ‘SWETA’.(SBL-UIF-00355)

    —————————
    OK
    —————————

    I am getting this error

    I am not calling showpopup through script. I have exactly followed the step u have asked to.
    Is anythign else also required other than the above mentioned steps.

  21. Hi!

    I have a popup created with de method explained in the post, but, when i close the popup applet, it gives an error of memory, can you help me?

    tx

  22. Hi!

    I have a popup created with de method explained in the post, but, when i close the popup applet, it gives an error of memory, can you help me?

    tx

  23. I managed to fire a ShowPopup method from script using the code above:

    InvokeMethod(“ShowPopup”, “APPLET NAME”,”Edit”);

    To close the ShowPopup applet, I used : InvokeMethod(“CloseApplet”);

  24. I managed to fire a ShowPopup method from script using the code above:

    InvokeMethod(“ShowPopup”, “APPLET NAME”,”Edit”);

    To close the ShowPopup applet, I used : InvokeMethod(“CloseApplet”);

  25. Hi

    I followed all the step my custom button in enabled by using methodinvoke but when I am click button its not showing what applet I gave. I mentioned control user properties as Mode:Edit and Popup:Account list Applet.

    can you please resolve my issue asap

    Thanks

  26. Hi

    I followed all the step my custom button in enabled by using methodinvoke but when I am click button its not showing what applet I gave. I mentioned control user properties as Mode:Edit and Popup:Account list Applet.

    can you please resolve my issue asap

    Thanks

  27. Hi,
    I tried to pop up pick applet from the button New on a list applet using ShowPopup method.I was able to get the pop up applet but it was not populating any values for the field.Can nyone tell me what shall i need to get the values?
    Regards,
    Kala

  28. Hi,
    I tried to pop up pick applet from the button New on a list applet using ShowPopup method.I was able to get the pop up applet but it was not populating any values for the field.Can nyone tell me what shall i need to get the values?
    Regards,
    Kala

  29. I am getting an error “Applet: %1 does not have the %2 template file specified.
    ” when I try to invoke a Pop up applet from a button. Wt should I do to invoke the pop up applet form a button apart from following above steps?

  30. To be very precise, I just wanted to know if I can get a Shuttle Applet as Popup Applet On clicking a button?

  31. i have a requirement like in the applet i have to select more than one record by using control and if i click on a button the selected records can be deleted how can we do . plz guide me

  32. I have opened a URL on this button in pop up applet.
    but once its open for the first tym and its minimized then on clicking the button again it does not come to focus…
    the button starts acting as a dummy button.

Leave a Reply

Contribute