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

- Create the following user properties
Name: Mode
Value: Edit
Name: Popup
Value: Applet Name to Popup

Name: Check Status
Caption – String Override: Check Status
MethodName: ShowPopup
And you are done. When you click on that button it should popup the applet mentioned by you.


(10 votes, average: 4.30 out of 5)




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?
—————————
Siebel
—————————
Method ‘ShowPopup’ requires a value for argument ‘SWETA’.(SBL-UIF-00355)
—————————
OK
—————————
I am getting this error
@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.
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.
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?
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
Adding few more words,
The class file for the Popup applet should be “CSSSWEFramePopupHiGantt”
Cheers
Ram
stuandgraavy: That hasn’t stopped me. Actualy i’ve managed to InvokeMethod(“ShowPopup”, … ). You just need the right input parameters, that’s all.
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.
How do I close this applet.
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.
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
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”);
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
Hi,
Can I have a List Applet as Popup Applet?Or is it applicable only to form applets?
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
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?
did you write script in applet level or BC level
Hi,
Can I have a Shuttle Applet as Popup Applet?
To be very precise, I just wanted to know if I can get a Shuttle Applet as Popup Applet On clicking a button?