on 04-13-2007 4:52 PM
Hi expert.
I always appricate your help. Today I haver a question about model binding with htmlb inpufield. I try to bind a data with quantity and currency field.
view code is below
<htmlb:inputField id = "ipf1"
value = "//model/qty" />
<htmlb:inputField id = "ipf2"
value = "//model/cur" />
and data structure is
qty; menge
cur; wears
how can i bind a qty and cur data with model. plz help me!!
regards.
Try the below code.
<htmlb:inputField id = "ipf2"
value = "//model/cur"
type = "currency"
currency = "USD"
isAppendUnit = "true"
/>
<htmlb:inputField id = "ipf1"
value = "//model/qty"
decimals = "1"
maxlength = "10"
type = "bcd"
/>
<i>* Reward each useful answer</i>
Raja T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raja.
i tried your suggestion. but it's not work still faulty. actually i use data element DMBTR and BAMNG as a components of a structure. so my actual code is below
<htmlb:inputField id = "ipf_netpr"
value = "//model/zty_mminfo.netpr"
type = "CURRENCY"
currency = "USD"
isAppendUnit = "true" />
<htmlb:inputField id = "ipf_menge"
value = "//model/zty_mminfo.menge"
type = "BCD"
decimals = "3"
maxlength = "17"/>
what should i do?
Regards.
I solve it myself. it's my fault. i did't make a structure correctly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
10 | |
8 | |
8 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.