cancel
Showing results for 
Search instead for 
Did you mean: 

model binding problem

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

raja_thangamani
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Thanks Raja.

I'll try it.

Former Member
0 Kudos

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.

Answers (1)

Answers (1)

Former Member
0 Kudos

I solve it myself. it's my fault. i did't make a structure correctly.