All Company Show Only Super-Admin And Show Navigation bar User Company Name



 Step 1 : 

Go to Login From And Create User "Supper-Admin". Don't Any Company Select.

Step 2 :

Create New Page  And Create Two Region
     1- All Company
     2- My Company

👉1- All Company 

Type : Classic Report
SQL Query :
SELECT  ID , NAME , ADDRESS From  SETUP_COMPANY ;

Server-side Condition :
Type : Item is in colon delimited list
Item : GUSER_ID
List : 31 ---- (Supper-Admin User Id Number)

-----> NOTE : This Region Show All Company In the Database. Only for Supper-Admin

 ðŸ‘‰ 2- My Company

Type : Classic Report
SQL Query :
SELECT  ID , NAME , ADDRESS From  SETUP_COMPANY 
where ID=GET_COM_ID(:GUSER_ID)

Server-side Condition :
Type : Item is Not in colon delimited list
Item : GUSER_ID
List : 31 ---- (Supper-Admin Id Number)

-----> NOTE : This Region Show User Wise Company In the Database

Example :


Note : You Must be Select Page Template : Minimal (No Navigation)

-------------------------------------------------------------------------------------------------------------------
Show Navigation bar User Company Name 


Step - 1 :
 Go to Shared Components --> Application Items
 Create --> G_COM_NAME
 Session State Protection --> Unresriected

Step - 2 :
Go to Shared Components -->Navigation Bar List
List Entry Label --> &G_COM_NAME.
Target type ---> Page in this Application
Page --> 150 (Put the page number as you like)

Step - 3 : Go to this page(150). And set Link.

Link Setup ----



Post a Comment

Previous Post Next Post