New Comment System@Siebel Unleashed.. Do Try and give me feedback | Next Tip »Home

How to Invoke Popup Applet on button click.

OkAvarageGoodVery GoodExcellent (8 votes, average: 4.13 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.

  • Share/Bookmark

Related Posts


Article by neel

Authors bio is coming up shortly. neel tagged this post with: , Read 387 articles by neel
  • satpru
    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?
  • Kala
    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
  • Kala
    Hi,
    Can I have a List Applet as Popup Applet?Or is it applicable only to form applets?
  • Raghu
    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
  • Gustavo Cunha
    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");
  • tpremanand
    did you write script in applet level or BC level
  • rachel
    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
  • Pooja
    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.
  • Bejoy
    How do I close this applet.
  • Ravi Chandra
    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.
  • Puli
    stuandgraavy: That hasn't stopped me. Actualy i've managed to InvokeMethod("ShowPopup", ... ). You just need the right input parameters, that's all.
  • rama
    Adding few more words,

    The class file for the Popup applet should be "CSSSWEFramePopupHiGantt"

    Cheers
    Ram
  • rama
    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
  • Venkatesh
    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?
  • Rohit
    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.
  • @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.
  • Abhi
    ---------------------------
    Siebel
    ---------------------------
    Method 'ShowPopup' requires a value for argument 'SWETA'.(SBL-UIF-00355)

    ---------------------------
    OK
    ---------------------------

    I am getting this error
  • Ajay
    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?
blog comments powered by Disqus

Polls

Do you like the new Comment System and new look to Site?

View Results

Loading ... Loading ...