Hi,
i have a adress CDT with all the address fields and Address_Type(Values:"HOME_ADDRESS","MAILING_ADDRESS","EMPLOYER_ADDRESS"). now is it a good design if I can capture all the address in one local variable local!allAddress(map type) and map outside the Interface. or is it okay to construct AddressType inside the interface and taking out as RI.
Discussion posts and replies are publicly visible
Hi, As you have those fields in CDT as a separate field . You can go with ri approach, Where it will get stored to the ri directly when user enters the value in the interface.
You can go with the 2nd approach.
Its better to go with 2nd approach because, the first approach involves extra step to construct from the map while it can be directly constructed once inside the interface (2nd approach).
I see no other major advantage.