cancel
Showing results for 
Search instead for 
Did you mean: 

AET : How do I enhance a table structure

Former Member
0 Kudos
203

How do I enhance a table structure (not just one field), using the AET. Is this possible?

All I have seen so far from you and other blogs (demos) is adding single fields to a header view like that. Now, I would like to add a add custom field (column) to a item list (for eg in a service order) which is a table structure.

Please advise.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Satish.

This will depend on the object you will select to create your field.

So if you select the object ORDERADM_I for you extension, the custom field will be available in the object BTAdminI so you will have it in your items table.

Regards,

Helder

Former Member
0 Kudos

Dear Helder,

Many thanks for your reply

It works this Item list.

But I would like to add custom field (column) to the Object list ( UI ComponentBTORDPRPOBJ ) which is in the details of the item list in the Service Order. Ofcourse, I tried in the similar way choosing the ORDERADM_I as part of BO, after field is generated, its not displayed in the available fields for this view.

Request you to kindly advise on this.

Many thanks again.

nisha_vinod
Advisor
Advisor
0 Kudos

Hi Satish,

I had tried a similar flow while extending SERVICE_I and after I finish generation and save via AET, the field was automatically available in the list of "Available fields" in the view config.

Are you getting any error after the field is generated?

Regards,

Nisha

Former Member
0 Kudos

Hi Satish,

You mean you want to add additional column in result list right?

Please make sure you have below things in place:

1. Add a custom filed to object you want using AET.

2. This field would be added to your structure for context of this view. Make sure that this field is added in view context (In case it is not automatically added)

3. Make sure that this field in present in GET_TABLE_LINE_SAMPLE of your context(which is displayed as table). If not then please enhance this method and add this field.

Your custom field would be displayed in available fields in view configuration. In case it is not then have a look at design layer of the object you want to enhance. This field should be present there (Your functional consultant should help you in adding this field in design layer). Please find my responses on below forum to add field in design layer:

Please let me know if you face any difficulties.

Regards,

Bhushan

Former Member
0 Kudos

Hi Satish.

You can you the AET to add the field to the object you mentioned.

Then if you want to add it to the items table, you may need to add a new attribute to your context node BTAdminI. Use the wizard, and navigate through the model to retrieve your object and then select the correct attribute.

Your getters and setters should be automaticly defined.

You can take as example the field quantity wich is available in most table of items.

This field doesn't belong to the object BTAdminI. Have a look at the the get method, it may help you to understand how the standard works.

Hope this helps,

Regards,

Helder

Former Member
0 Kudos

Dear Experts,

Custom field to the Object List (UI Component BTORDPRPOBJ ) (exists in the Service Contract -> Item list -> Edit Item List item -> Object list assignment block) cannot be added using AET i guess, Because i could not find any BO for this UI component in AXTREG.

So, I thought, enhancing the Component in the BSP_WD_CMPWB is the only way, Created an enhancement for the UI component BTORDPRPOBJ. Added a new field to Context node (identification field choosen as model field referred to Ibase component Id)

Then, i also enhanced the GET_TABLE_LINE_SAMPLE.

But still, the new custom field is not shown in the available fields in the UI Configuration.

Please kindly help me.

Thanks a lot in advance.

Former Member
0 Kudos

Hi,

Please find my responses on below forum to add field in design layer:

Once you add this field to design layer it will be displayed in configuration. Please let me know in case you face any issues.

Regards,

Bhushan

Former Member
0 Kudos

Dear Helder,

You metioned, I can use AET for UI Component BTORDPRPOBJ. (exists in the Service Contract -> Item list -> Edit Item List item -> Object list assignment block). I am not able to use AET here. Because i could not find any BO for this UI component in AXTREG.

I kindly request you to throw some light on this.

Thanks a lot in advance.

nisha_vinod
Advisor
Advisor
0 Kudos

Hi Satish

If the field is not available for enhancement via AET, you can try to add custom field via "Append Structure". For the object

" BTOrdPrpObj ", the corresponding attribute structure is CRMST_ORDPRPOBJLID_BTIL . You can see this in the BOL model browser under Dependent Object BTOrdPrpObj .

Regards,

Nisha

Former Member
0 Kudos

HI Nisha/Bhushan,

Thanks a lot for your inputs. Its helpful.

Would you mind to explain me what happens in the assignment of Design layer, I think without this assignment the custom field will not be appear in the list of available fields whether we add through append fields or directly enhance in the Context node.

Thanks again .

expecting your reply.

Former Member
0 Kudos

Hi Satish,

When you add a field on UI using append structure and then add it to context node, you are actually adding a field on UI layer of an architecture.

While configuration is loaded it reads all the fields available for that object from design time repository (design layer). Hence once you add field there and on both the places above it is shown in configuration.

Hope this helps.

Regards,

Bhushan

Answers (0)