曾經用session parameter作為data row security就是不同ID看不同資料在同一張報表簡單說明觀念:fact table schema:org_l3_id, date_id, product_id, amountorg table schema:org_l3_id, org_l3_name, org_l2_id, org_l2_name, org_l1_id, org_l1_namesecurity mapping t...
显示全部曾經用session parameter作為data row security
就是不同ID看不同資料在同一張報表
簡單說明觀念:
fact table schema:
org_l3_id, date_id, product_id, amount
org table schema:
org_l3_id, org_l3_name, org_l2_id, org_l2_name, org_l1_id, org_l1_name
security mapping table schema:
org_l3_id, login_id
此table是另外寫程式從AD取出的
將org table和security mapping table合併成新的org new table:
org_l3_id, org_l3_name, org_l2_id, org_l2_name, org_l1_id, org_l1_name, login_id
並在此query subject下filter:
[org new].[Login_ID] =#sq($account.personalInfo.userName)#
只要你的報表資料有從org new table出來, 這filter就會作用
當然你也可以直接在RS中下此語法
那個sq()就macro function, 意思是:single quotation
##表示你在用macro function
收起