Siebel Product Configurator: How to restrict attribute length?

Requirement
We have one requirement in our project, that we need to restrict the value of one attribute to five characters only.

In Siebel vanilla application we tried to implement this without doing scripting, but failed.

Solution we used:
This requirement can be achieved in two ways:

1. By Scripting in Attribute Selected event. update or 
2. Creating Custom User Properties for product configurator.

I will be discussing the second solution in this post. It will involve editing of cfgui.js . For more info my older posts 

1. Find the following code in cfgui file.


try to find text: function showtextbox.
Updated Section:
2. Replace the code with :


3. Create user property on the root product like:



and you are done!

Now clear cache of browser and restart the client.

Attribute on which you have defined the property will automatically be constrained by the number of characters that you have provided in property.


Hope its is understandable.

For more info how it worked, look at the maxlength property here.

Comments (10)

Loading... Logging you in...
  • Logged in as
Amitabh Misro's avatar

Amitabh Misro · 774 weeks ago

Hi,

This is a very useful posting and will realy help in our implementation where we have many text attributes with varying lengths.
But one item has been missed from this post which needs to be added.
The solution provided as is cannot work.
Since we are creating a new user property MaxLength, in some swt file, this has to be read and associated to sMaxLength variable which we are using in TextBox function.

If you get this updated with details to read the new property, it will be great.

Thanks and Regards,
Amitabh Misro
4 replies · active 732 weeks ago
Thanks Amitabh for pointing! I have updated the image.
Hi Tejeshwer,
could you please tell me where i can find the update of this blog, because i have a requirement similar to this. And can you give me any idea how to format an attribute "my requirement is like this: attibute should accept the data in this format • Letters (a-z), digits (0-9) and hyphens (-). are accepted for ".how can we format an attribute.

Thanks In Advance
sireesha
Hi Tejeshware
i have similar requirement.with the screenshots you provided i tried in my application.it is perfectly working in sample. But not in server.Could please tell me where i can find the updated version for this blog. i mean to say how can i add this MaxLength to any webtemplate.i am in need of this.

Thanks
sireesha
Chinmoy Saha's avatar

Chinmoy Saha · 732 weeks ago

I want to remove the Promotion Field from the Product Configurator. Can you please help me?
Can anyone help me with this issue .

I want to restrict specific product visibility to specific users only . i tried doing it using User List access group , and added this in specific catalog . finally added this catalog to that product but dint work . can anybosy suggest me how to restrict specific product to specific user .
2 replies · active less than 1 minute ago
Chinmoy Saha's avatar

Chinmoy Saha · 732 weeks ago

I want to remove the Promotion Field from the Product Configurator. Can you please help me?
You need to modify the control web template for this. There would be one section for the promotion field, try removing that.
from where should i create user property from tools
i mean can you help me more little bit because am not to god with siebel tools , should i creat the user property at the applet and then assign it to the control or something else
my email : alialroomi2009@gmail.com

Post a new comment

Comments by

Other Siebel Blogs

siebel-admin-l @ IT - toolbox

siebel-dev-l @ IT - toolbox