Anoop a reader of my blog asked me a question few days ago. It is an interesting question.

Question:
In Siebel Applet suppose we have a Limitation to show Only 40 Field (Control) and we want to show some more columns.how to configure in this scenario?

I had an idea how to do it but I hadn’t actually worked on it. After this question I decided to find out the answer and the result is the post below.

Solution:

As we all know that Siebel uses Siebel Web Template (SWT) files to render UI both our List Applet and Form Applet are based on Web templates. So, Answer in short is We can achieve our requirement by changing SWT files. Some other question that we have to answer before this question becomes complete are.

  • Which SWT File?
  • What to Change in that SWT File?

Complete Solution:

Follow the steps given below to find out which SWT file you have to change

  1. Open Siebel Tools
  2. Query for the Applet in which you want to add more columns
  3. Click on Applet Web Template icon in Object Explorer as show in picture below
  4. Select the Mode for which you want to add column
  5. Note down Value in Web Template Field in Applet Web template list applet
  6. Go to Web Template object in Object Explorer
    (If you don’t see Web Template Object the follow the instruction in this post to add it to list)
  7. Query with the value you had noted down in step 5
  8. Go to Web Template File section and note down the Value in Filename field in Web Template file Applet. This is the file that you need to edit.
  9. Go to Siebel installation\Siebel tools\WEBTEMPL folder and search for this file
  10. Open this file in any Text editor and search for code that is like code given below. (It might be a bit different than depending on which SWT file you are trying to edit)

    <swe:for-each startValue="501" count="40" iteratorName="currentId">
    <swe:control id="swe:currentId">
    <td align="swe:this.TextAlignment" class="Row"><swe:this property="FormattedHtml" hintText="Field" hintMapType="ListItem"/></td>
    </swe:control>
    </swe:for-each>
  11. Increment count attribute to with the number you columns you want to add. For example if you want to add 2 column then code after editing will look like<swe:for-each startValue="501" count="42" iteratorName="currentId">
    <swe:control id="swe:currentId">
    <td align="swe:this.TextAlignment" class="Row"><swe:this property="FormattedHtml" hintText="Field" hintMapType="ListItem"/></td>
    </swe:control>
    </swe:for-each>

If you don’t find the above given code in the SWT file then you need to look for included files in that SWT. Look for a line like

<swe:include file="CCListBody.swt"/>

open the included SWT file and look for the above given code. You will need to move this SWT file to web client\ WEBTEMPL folder before you can see the changes in the application.

Let me know your feedback.

OkAvarageGoodVery GoodExcellent (9 votes, average: 4.67 out of 5)
Loading ... Loading ...