cancel
Showing results for 
Search instead for 
Did you mean: 

Bind fields in AddressInformation in Customer

former_member200925
Active Participant
0 Kudos

Hi all,

I need to insert the fields "Cidade" and "Estado", created in the AddressInformation node in the Customer XBO, to select in each address node the different values for these fields.

These fields was created in the Address node like below:

import AP.Common.GDT;

import AP.FO.BusinessPartner.Global;

[Extension] businessobject AP.FO.BusinessPartner.Global:Customer {

        // You must activate this business object before you can access the extension fields

        // or messages in script files, forms, and screens.

            

             node AddressInformation {

                    [Label("Estado")] element Estado:DEVESTADOCode;

                    [Label("Cidade")] element Cidade:DEVCIDADECode;

           }

   

             node Common {

           }

   

             node CurrentEmployeeResponsible {

           }  

}

And the modeldata stay like below:

I create a "Embedded Component", but I don't know how can I create the "InPort" field to bind then in the Screen.

Anyone can tell me how can I create parameters in ModelData in EmbeddedComponent ? and what is the Outport can I use to Bind parameters in the DataModel:

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member200925
Active Participant
0 Kudos

Can anyone help, I need to create these two fields in the Address tab for the Customer extended object and create a "1....n" relationship of customer and these two fields (address).

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Anderson,

It would be easier if you find a tab on the Customer UI which already displays data from the AdressInformation node. Here you can add (if this tab supports this) any (extension) field from this node.

Otherwise did you read the documentation at section 9.3.2.11. Model an Embedded Component?

HTH,

   Horst

victorsilva
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Anderson,

Option from is the most recommended.

If you really need an EC, check this post.

Best regards,

Victor Silva

former_member200925
Active Participant
0 Kudos

Hi Horst and Victor,

I´m already using the tab Address in the Customer object, but I can't find nothing Outport to link with the node Address with my Embedded Component.

When I saved the fields in the Address, the two field are saved only to one register (usually first), address and not for specific address selected.

Do you know if exist somehow to link the Customer with and EC Address ?

victorsilva
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Anderson,

The initial idea was not to use an EC, but using extension fields into the standard Address tab.

Secondary option, you'll have to create an EC based on Account root and then use the Address node with a table, for example.

Best regards,

Victor Silva

former_member200925
Active Participant
0 Kudos

Hi Victor thanks for the feedback and I agree with you.

But we need to fill the dependent dropdown of field "Cidade" based in the value of field "Estado". I made it through the Context Mapping, because it is not possible to carry out this procedure direct in the standard screen.


So, is possible apply the fill dinamically like your explanation in the post but apply in the AddressInformation in the XBO of Customer ?


Remembering that these fields should be changed and writeable for each address that the customer has.

victorsilva
Product and Topic Expert
Product and Topic Expert
0 Kudos

You'll have to check if there is anchor for extensibility on the Address area and if there is an Outport for that. If you cannot find the anchor or Outport, it won't be possible to bind your EC there.

You may need to replicate the standard behavior in a different tab via EC.

Best regards,

Victor Silva

former_member200925
Active Participant
0 Kudos

Victor, there are no Anchor or Outport to this object, so the time to replicate the same behavior of standard is large, do you know any alternative to do this with less time ?

victorsilva
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Anderson,

Those are the possible options

As there is no anchor on the Address tab, you should create a new tab. Or use the extension field with limited features.

Best regards,

Victor Silva