Pass Dynamic Value to a Grid Label
Now, what if you would like to have a part of the grid label text to be dynamic. For example, you want the grid on the Self Service Phone Numbers page to say "Phone Numbers for some user" instead of just "Phone Numbers". Step one:
Create your message catalog. Mine is (25000, 5) and at the subject line I entered "Phone Number for %1". The %1 will be later substituted with the user name accessing his/her self service.(%1是等待传入参数,可传入多个)
Step two: Open the phone numbers self service page in app designer and double click on the grid > Label tab > click 1st properties button (Header Area - Display title) > Type = Message Catalog > enter your Message Set/Number.
Step three:
Add the following code to your page activate event. (pageactivate事件用于处理page中的控件显示属性之类)
&GRID.Label = MsgGetText(25000, 5, "Message Not Found", &Name);