You can pass the tab name dynamically to component item label name.
1) Create the HTML object ZAM_COMP_LABLE and write the following piece of java code.
2) Create the work record ZAM_COMP_LABEL_WRK along with field HTMLAREA
3) Drage the HTML Area from menu Insert
4) Assing the work record name and field to HTML area
5) Write the code either on Component - Post Build or Page activate
ZAM_COMP_LABEL_WRK.HTMLAREA.value = GetHTMLText(HTML.ZAM_COMP_LABLE, NAME.NAME1);
6) In above example i am passing %bind(:1) value NAME.NAME1 name to the component tab
%bind(:1) = NAME.NAME1
1) Create the HTML object ZAM_COMP_LABLE and write the following piece of java code.
2) Create the work record ZAM_COMP_LABEL_WRK along with field HTMLAREA
3) Drage the HTML Area from menu Insert
4) Assing the work record name and field to HTML area
5) Write the code either on Component - Post Build or Page activate
ZAM_COMP_LABEL_WRK.HTMLAREA.value = GetHTMLText(HTML.ZAM_COMP_LABLE, NAME.NAME1);
6) In above example i am passing %bind(:1) value NAME.NAME1 name to the component tab
%bind(:1) = NAME.NAME1
1 comment:
Post a Comment