cancel
Showing results for 
Search instead for 
Did you mean: 

How to populate a custom field in the table view

Former Member
0 Kudos
261

Hi Forum,

I am a newbie to Web UI... Could any one help me with the syntax and way to achieve the below functionality.

I have a table view in which BTAdminI records are populated. I have to add a new column to that table view which needs to populated at runtime.

To achieve this i have enhanced the structure of BTAdminI and appended this new custom field and enabled this field in the configuration.

I need to show the concatenated value of column1 and column2 in the newly displayed custom field/coulmn3.

Where can i write the code and what is the sytax to populate data in the new column.

Thanks for your help in advance.

Regards

M.C

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

In the Get-methode for this field this can be done. Eventually this method needs to be created with a right mouse-click on the attribute name in the component workbench.

It would have been not necessary to extend the structure of BTAdminI if you don't want to save the new value to the database. A new value attribute under the context node would have been enough.

Then you do the following (after current has been set by the standard coding):

1. Determine value of column 1.

value_column1 = current->get_property_as_string( iv_attr_name = '[column1]' ).

2. Determine value of column 2.

value_column2 = current->get_property_as_string( iv_attr_name = '[column2]' ).

3. Do concatenation

concatenate value_column1 value_colum2 into value_column3.

4. Set new value

value = value_column3

5. Ignore the remaining coding

Exit.

Best regards,

Thomas Wagner

Former Member
0 Kudos

Thanks a lot It works.....

Regards,

M.C

Answers (0)