on 10-03-2014 11:14 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.