| Next Tip »Home
Home » Configuration

Dynamic Toggle Applets

22 June 2009 2,350 views 8 Comments
OkAvarageGoodVery GoodExcellent (10 votes, average: 4.80 out of 5)
Loading ... Loading ...

In this post I will discuss how to create Dynamic Toggle applet in Siebel. In Toggle Applet introduction post I mentioned that in Dynamic Toggle user would see a different applet based on some field and its value. So let’s start the hands on Dynamic Toggle Applet.

Requirement:

We have “Account” (Parent) and “Notes” (Child), based on Account Type we should be able to see different Notes applets. For example if Account Type is “Customer” on Notes Applet we should see a field called “Customer Info” and if Account Type is “Hotel” we should see a field called “Hotel Info”. In all other cases we should see default Notes Applet.

First we need to do some basic configuration before we can start with setting up Toggle Applet. Here are the things that we will do.

  • Create a Calculated field in Account Note BC with following details:
    Name: Account Type
    Calculated Flag: True
    Calculated Value: ParentFieldValue (“Type”)
    Dynamic_Toggle_Applet_Field
    This field will fetch Account Type in Account Notes BC
  • Create 2 more copies of “Account Note Applet(which is default applet under Account Notes view) and Name them as Account Note Applet Toggle 1 and Account Note Applet Toggle 2.
  • Create 2 new fields in Account Note BC and name them as Customer Info and Hotel InfoDynamic_Toggle_Applet_New_Fields
  • Expose Customer Info field in Account Note Applet Toggle 1 
    Dynamic_Toggle_Customer_Web_layout
  • Expose Hotel Info field in Account Note Applet Toggle 2
    Dynamic_Toggle_hotel_Web_layout

Now our basic configuration is done. Let’s configure the Dynamic Toggle.

  • Query for Account Note Applet (we want to keep this as default applet so we will define Toggle on this applet)
  • Select Applet Toggle Object from object explorer
  • Create two new records with following details
    Record 1 detail:
    Applet: Account Note Applet Toggle 1
    Auto Toggle Field: Account Type
    Auto Toggle Value: Customer
    Record 2 detail:
    Applet: Account Note Applet Toggle 2
    Auto Toggle Field: Account Type
    Auto Toggle Value: Hotel
    Dynamic_Toggle_Object_Record

That’s it, now the only thing left to do is to compile your changes. Here are some screenshots of how it will look

Dynamic_Toggle_Hotel_Applet  Dynamic_Toggle_Customer_Applet

  • Share/Bookmark

Related Posts

8 Comments »

  • Mahesh MonsterID Icon Mahesh said:

    say suppose i am trying to create new account of type customer. The Which notes applet will appear.

  • neel MonsterID Icon neel (author) said:

    When you create a new account of type customer nothing will happen on notes applet. Notes applet will only toggle once you do a new record on notes applet.

    till that time you will keep on seeing default applet.

  • Mahesh MonsterID Icon Mahesh said:

    when we go to Account- Notes Detail View.
    Say supppose records are empty. then it will show default notes applet.

    user wants to create Account of type customer. And Create notes for that account, then he cannot see the field Customer info. Say suppose it is required.

    In this case this logic fails rt.

  • neel MonsterID Icon neel (author) said:

    No, logic will not fail.

    As soon as you click new on Notes applet it will toggle based on account type. It will be better if you try implementing it once to clear your doubts.

  • JP MonsterID Icon JP said:

    I came across a question,
    If I click on Opportunity Screen tab and I want to toggle between two applets, at the click of Opportunity tab itself. Based on Position assign to my user. Ex If position is Developer Show App1 and if posnt is Administrator App2
    What I guessed is : create a join with S_POSTN table and use that joined field for toggle

  • satish MonsterID Icon satish said:

    Hi Friends

    Could you please explain me what is difference between Dynamic Toggling and Dyanamic Drilldowns

    Thanks in Advance
    Satish

  • Sugandh MonsterID Icon Sugandh said:

    Hi,

    I want to set toggle value as for value cash no child applet appears. Is it possible in Siebel?

  • neel MonsterID Icon neel (author) said:

    Yes, it is possible… will try to post details on it soon.. basically you need to configure a salutation applet for your solution

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.