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 :
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.
Amitabh Misro · 774 weeks ago
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
Tejeshwer 34p · 773 weeks ago
sireesha · 742 weeks ago
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
sireesha · 737 weeks ago
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 · 732 weeks ago
amit · 742 weeks ago
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 .
Chinmoy Saha · 732 weeks ago
Tejeshwer 34p · 731 weeks ago
ali · 546 weeks ago
ali · 546 weeks ago
my email : alialroomi2009@gmail.com