How to enable button – various ways.

The most basic requirement in Siebel is adding a button on an applet and associating functionality to it. But when add a button in Siebel it is grayed out or in other words not enable by default you have to make it enable.

In this post I will write down the various ways that I know to enable a button.

While describing the steps I assume you have already added the button to applet by editing the web layout of that applet and the method name you have mentioned for that button is “MyMethod”

  • Scripting at Applet PreCanInvoke method.
  • This is the most basic and the oldest way to enable a button. Steps to perform

  1. Select the applet on which you have added the button
  2. Right Click – Choose Edit Server Script Menu Option
  3. In WebApplet_PreCanInvokeMethod add the following lines of code
    if (MethodName == “MyMethod”)
    {
        CanInvoke = “TRUE”;
        return (CancelOperation);
    }The button on Applet should get enabled.
  • Named Method Property
  • The second way to enable the button is using user property called Named Method n. Steps to enable the button.

  1. Go to the underlying BC of that Applet
  2. Choose Business Component User Property from object explorer
  3. Create a New Record and Enter the following information
  1. Name Field: Named Method 1
    (where the number will be one more than the last named method user property)
  2. Value Field: “MyMethod”, “INVOKE”, “Quote Item”, “MyMethod”
  • EventMethod
  • This is the latest and simplest of all methods to enable the button. You can read in detail in the following post about Event Method

21 Responses to How to enable button – various ways.

  1. Hi Neel This s Help full to me iam very happy for U’R Answ…but one thing here That button was Enabled When i am select that button it shown one message “The specialized ‘Method invoked’ is not supported on business component ‘Account’ used by Business object ‘Account'(SBL-DAT-00322)” ple help to me

  2. Hi Neel This s Help full to me iam very happy for U’R Answ…but one thing here That button was Enabled When i am select that button it shown one message “The specialized ‘Method invoked’ is not supported on business component ‘Account’ used by Business object ‘Account'(SBL-DAT-00322)” ple help to me

  3. Hello there,

    I hope you can help.
    i am logged onto siebel call center 8.0 and am in the Service Request screen tab. When I click on the Activities view tab under Service Request, the New button is greyed out. This is true to some machines and not for others. Have you seen this scenario before?

    thanks for your comments.
    Nisha

  4. Hello there,

    I hope you can help.
    i am logged onto siebel call center 8.0 and am in the Service Request screen tab. When I click on the Activities view tab under Service Request, the New button is greyed out. This is true to some machines and not for others. Have you seen this scenario before?

    thanks for your comments.
    Nisha

  5. Nisha,

    We are also experiencing the same issue with our system. Have you found a fix? If so, can you share it.

    Thanks,

  6. Hi Neel,

    Seeing as this is an old post, Im not sure if you will reply.. Anyway, heres my question:

    The Tools Help (see Siebel Developer’s Reference > User Properties>Named Method n) seems to suggest that Named Method n user property can also be used as an applet user property as well. Am I wrong? Heres the section from the bookshelf:

    Within the Siebel Application there is standard functionality, including applet user properties, to allow you to implement automated responses to data changes without the need to use custom scripts.

    The Named Method n applet user property can be used to invoke methods in a certain order.

    This user property is supported for applets based on the CSSFrameBase and CSSFrameListBase classes and business components based on CSSBCBase class.

    For example, the Named Method applet n user property can be used update a legacy system with new Account records after a new record is created in the Siebel application. It first commits the record in the Siebel application, and then invokes a workflow process to update the legacy system.

    • Mathew,

      Yes, Named method user property can be used on applet as well. As mentioned in bookshelf it is not supported by all the applets and in addition to that syntax is little different from BC named method.

      You can go to the Flat tab in tools and search in Applet User Property, you will see plenty of examples in using that.

Leave a Reply

Contribute