So, this is the problem I am working on :
I have a custom Form XYZ. I need to attach a LOV to an attribute A on this form, which lists all the remote sites.
Now, depending on whether it is Production Env or Test env, attribute A should list different values(i.e List Of Dev remotes site in Dev env and List of Prod remote sites in Prod Env).
So, basically if Site = (*_Prod) -> Attach LOV Prod to Attribute A
if Site = (*_Dev) -> attach LOV Dev to attribute
Can this be done through configuration.
I tried creating a condition to check the Site Name before attaching the LOV. But the UserSession does not have sitename. It has site but it is an untyped reference.
I could create a compound property on the UserSession BO which would hold the sitename and use that in the condition. But where can I get the sitename from.
Or is there any other way of doing this.
Thanks in advance.
The class is POM_IMC and the attribute is Name.
In the database the table name is PPOM_IMC and the column is pname.