Join Fribiz, place bids and win prizes | Next Tip »Home

How to Invoke Popup Applet on button click.

OkAvarageGoodVery GoodExcellent (10 votes, average: 4.30 out of 5)
Loading ... Loading ...

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.

Related Posts


Article by neel

Authors bio is coming up shortly. neel tagged this post with: , Read 416 articles by neel
View Comments Post a Comment
  1. Ajay says:

    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. Abhi says:

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

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

    I am getting this error

  3. stuandgravy says:

    @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.

  4. Rohit says:

    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.

  5. Venkatesh says:

    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?

  6. rama says:

    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

  7. rama says:

    Adding few more words,

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

    Cheers
    Ram

  8. Puli says:

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

  9. Ravi Chandra says:

    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

    • neel says:

      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.

  10. Bejoy says:

    How do I close this applet.

  11. Pooja says:

    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.

  12. rachel says:

    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

  13. Gustavo Cunha says:

    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”);

  14. Raghu says:

    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

  15. Kala says:

    Hi,
    Can I have a List Applet as Popup Applet?Or is it applicable only to form applets?

  16. Kala says:

    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

  17. satpru says:

    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?

  18. tpremanand says:

    did you write script in applet level or BC level

  19. VijayaKartheesh says:

    Hi,
    Can I have a Shuttle Applet as Popup Applet?

  20. VijayaKartheesh says:

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

blog comments powered by Disqus

Polls

Do you know how to use replace function?

View Results

Loading ... Loading ...