cancel
Showing results for 
Search instead for 
Did you mean: 

Description of field value in label

Former Member
0 Kudos

Hi Expert,

i have a requirement where i am selecting industry code from a popup, along with that industry code name(description)is  there in popup.

so client wants to display description also along with field. how to do that, is it possible with bsp tag or i need to create label for particular cell in view configuration.

please suggest solution.

Regards

Praveen

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Praveen,

The description should be populated once the industry code is filled.

So we can create new field in View Configuration and enhance its get method

to read the description based on code value.

Regards,

Amrit

Former Member
0 Kudos

Hi Amrit,

for that requirement i creted attribute in existing node, but it shows error so i created new contxt node and add it. it worked fine. But i want using thtml is there is any procedure with html to create that field label  in webui.

Regards

Praveen

deepika_chandrasekar
Active Contributor
0 Kudos

Hi,

If you created view configuration using .htm page

then you can use this code

<thtmlb:gridCell columnIndex = "1"
                 rowIndex    = "1" >

<thtmlb:inputField id                     = "desc"
                             tooltip                = "Description"                            
                             width                  = "100px"
                             disabled             = "TRUE"
                             value                  = "<%= controller->gv_desc %>"
                             maxlength              = "40" />
        </thtmlb:gridCell>

Regards,

Deepika.

former_member210661
Active Contributor
0 Kudos

Hi Praveen,

if you want to display label and input field using thtmlb this is the procedure.

<thtmlb:grid columnSize = "1"

                  rowSize    = "2"

                  width      = "100%" >

       <thtmlb:gridCell columnIndex = "1"

                        rowIndex    = "1"

                        height      = "100%" >

         <thtmlb:grid columnSize = "6"

                      rowSize    = "5"

                      height     = "60%"

                      width      = "100%" >

           <thtmlb:gridCell columnIndex         = "1"

                            rowIndex            = "1"

                            colSpan             = "1"

                            horizontalAlignment = "RIGHT" >

             <thtmlb:label design = "label"

                           id     = "HeaderInput1"

                           for    = "//"

                           text   = "LABLE" />

           </thtmlb:gridCell>

           <thtmlb:gridCell columnIndex = "2"

                            rowIndex    = "1"

                            colSpan     = "5" >

             <thtmlb:inputField id       = "HeaderInput1"

                                value    = "<%= gv_lable %>"

                                width    = "100%"

                                disabled = "true" />

           </thtmlb:gridCell>

</thtmlb:grid>

what my Suggestion is in your case dont fallow thtmlb coding.

just add attribute under context node and move that field from available to display in getter method

fetch the description based on code.

in the above link i have added value attribute under context node fallow the same and display that attribute in getter write your own logic.

Thanks & Regards,

Srinivas.

Answers (0)