on 11-14-2008 12:53 PM
Hi All,
I have 1 column as drop down in a table.
The values in the Drop Down are Unit of Measure such as " One 1".
When i save the value at the backend it is getting saved as"One 1" where as i want to save it as "1" only.
How this break up can be achieved ??
Thanks,
Nikhil
Hi,
Try by using drop down by index and check once.
Regards
Padma N
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
How you populating the dropdown in Table ?
if you using the DropDownByKey binded with attribute of simple type .
just in enumeration of simple type make the enumeration value as "1" and enumeration text as "One 1";
hope it helps you !
Regards,
ramesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I suppose you have mapped a context attribute to the drop down and the attribute has a value set associated which contains pairs key-value. The texts you see in the drop down are the values but the value stored in the context attribute is the key. So, for example, you can have the pair 1 (key) / One 1 (value) and the key "1" will be saved in the backend.
But if your key is something like "AB001" instead "1" it should be the same for you, why do you want "1" to be saved in the backend? if it is a key, any value can be useful...
If you want to get the substring "1" from ths string "1" you must index from the value set the pair "1" / "One 1" and extract the substring "1" from the string "One 1".
Maybe this helps...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.