DB Security & Custom selection script

Hi

has anyone experience with intensive use of the functionality on the title?

 

I'm currently using the dynamic script @user in a couple of cases, but I would extend its use on other cases and on static selections on multiple members / entities.

 

This would allow a better visibility of the selection applied and I expect more stability if the entity is cleared and reloaded.

 

I have some questions:

1) blanks in entity or selected items name may create problems?

2) do the script work on the item code or description?

3) is it possible set a selection on more than one entity?

 

Any information or example is appeciated

thanks!

Accepted Answer

  • Samuele Marchetto
    Samuele Marchetto Active Partner
    Third Anniversary 100 Likes 10 Comments 5 Up Votes
    edited June 2022 Answer ✓

    Hi Daniele Di Lorenzo,

     

    I add an example to Björn Reuber answer.

     

    I created a database profile that makes a selection on two entities: "Category" (aggregation of the product) and "Login (District)" (aggregation of the customer, that contains the login assigned to each District Manager).

    The script is:

    Select Login (District)=@User

    Select Categoria=10,20

     

    As you can see, you have to repeat the command "Select" for each entity and you must separate the elements to select with a comma.

     

    image

     

    Notice that the Data Selection by current script is not signaled with the funnel icon.

     

    Bye

Answers

  • Björn Reuber
    Björn Reuber Employee, Community Captain
    500 Likes Fourth Anniversary 100 Comments 5 Answers

    Hi,

     

    long question, short answer:

    1) no

    2) code (cause it is unique)

    3) yes

     

    Regards

    Björn

  • Jörn Constabel
    Jörn Constabel Customer
    Fourth Anniversary 10 Comments Advocate 5 Up Votes
    edited March 2020

    Dear all,

     

    I have a similar question to this.

    Is it possible to have two @User selections on two different entities (no relation between this two entities) in one custom selection script?

     

    image

     

    Regards,

    Jörn

  • Dietmar Jeschkeit
    Dietmar Jeschkeit Active Partner
    Fourth Anniversary 100 Comments 25 Up Votes 25 Likes

    Hi Jörn,

     

    as Björn said above. Yes it is possible.