on 2021 Feb 04 10:50 AM
Hello Expert,
We have 2 entities BaseEntity and TargetEntity both accepts parameters and there is an association defined between them.
How do we pass the parameters to the TargetEntity in this case?
Is it possible to pass the parameters or is there any alternative in this case.
Regards,
Anthony
Request clarification before answering.
Have you tried something like this the code below? ( Mind you this is written in notepad, so I haven't tested it 🙂 )
define view BASE with parameters
param_base1 : [dataelement],
param_base2 : [dataelement],
as select from ...
association[0..*] to TARGET as _target
on $projection.key = _target.key
{
key base_field_a,
key _target(param_target : :param_base2).target_field_a,
_target(param_target : :param_base2).target_field_b,
..
}
where base_field_key = :param_base1
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Patrick,
Thanks for responding to my query.
I tried exactly the same solution which you posted. view is returning the data but i don't see the association _target in my service binding or in my metadata.
for me it's required since i need to provide the association name for my ALP UI application for facet.
Regards,
Anthony
User | Count |
---|---|
87 | |
9 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.