Skip to main content
Solved

Filter lobby with Default Coordinator


Forum|alt.badge.img+7

Hi,

I remember this parameter USER_DEFAULT_COORDINATOR was working fine when using it as default filter parameter for lobbies:

 

 

USER_DEFAULT_SITE is working fine.

 

Any idea what might be the problem or did I use the wrong parameter to fetch the default coordinator?

Default Coordinator in User per Site has been defined.

 

Thanks!

 

 

Best answer by JohanLindstrom

Hi,

 

These are called Context Substitution Variables and are defined in Solution Manager\User Interface\Context Substitution Variables.

#USER_DEFAULT_COORDINATOR# is not setup as a Context Substitution Variable and will not work as a lobby parameter.


BR

Johan

View original
Did this topic help you find an answer to your question?

4 replies

Forum|alt.badge.img+11

Hi, Can you please provide the steps you used to get to this point? And the issue in details?


Forum|alt.badge.img+7
  • Author
  • Sidekick
  • 19 replies
  • May 9, 2022

Hi @Nalaka Samarasinghe 

I used this setup:

 

The default parameter for coordinator is NOT working, the one for user default site is working perfectly fine.

 

Any idea if there are any other default-parameter I might use for the coordinator?

 

Thank you!

Mattis


Forum|alt.badge.img+8
  • Hero (Customer)
  • 53 replies
  • Answer
  • May 10, 2022

Hi,

 

These are called Context Substitution Variables and are defined in Solution Manager\User Interface\Context Substitution Variables.

#USER_DEFAULT_COORDINATOR# is not setup as a Context Substitution Variable and will not work as a lobby parameter.


BR

Johan


CallumW
Superhero (Partner)
Forum|alt.badge.img+15
  • Superhero (Partner)
  • 128 replies
  • May 25, 2022

Create your own CSV!

My created CSV finds all of the sites the user has access to - After the script is executed, users would need to sign out and back into IFS again to get it to work

 


declare 
  name_ VARCHAR2(32000) := 'USER_ALL_SITE';
  attr_ VARCHAR2(32000);
  info_ varchar2(32000);
  objid_ varchar2(32000);
  objversion_ varchar2(32000);
begin
  client_sys.Clear_Attr(attr_);
          Client_SYS.Add_To_Attr('NAME','USER_ALL_SITE', attr_);

        Client_SYS.Add_To_Attr('SERVER_METHOD','CUSTOM_LOBBY_API.Get_All_Sites', attr_);
      Client_SYS.Add_To_Attr('IMPLEMENTATION_TYPE', 'Server', attr_);
      Client_SYS.Add_To_Attr('FND_DATA_TYPE', 'String', attr_);
      Client_SYS.Add_To_Attr('TRANSIENT',   'False', attr_);
      Client_SYS.Add_To_Attr('MODULE',   'FNDBAS', attr_);

  context_substitution_var_api.new__(info_,
                                     objid_,
                                     objversion_,
                                     attr_ ,
                                     'DO');
end;
FUNCTION Get_All_Sites RETURN VARCHAR2
IS

   FUNCTION Core RETURN VARCHAR2
   IS
      userid_ varchar2(30);
--
      temp_ varchar2(32000);
      CURSOR get_attr IS
         SELECT LISTAGG(contract, ';') WITHIN GROUP (ORDER BY contract)
         FROM USER_ALLOWED_SITE_TAB
         WHERE userid = userid_;
      BEGIN
      userid_ := Fnd_Session_API.Get_Fnd_User;
--
      OPEN get_attr;
      FETCH get_attr INTO temp_;
      CLOSE get_attr;
      RETURN temp_;
   END Core;

BEGIN
   RETURN Core;
END Get_All_Sites;

 

Then in the lobby data source you can use the following regular expression to filter by all sites as found in the CSV:

 

Users can type in their own sites if they wanted to narrow the filter such as: SITE1;SITE2 in the site lobby parameter


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings