LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  User name and System ID to pull the input data.

    Employee
    Posted 04-28-2016 04:04

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: Jagdev

    Hi Experts,

    Please let me know if this is possible or not? I have created a graph and it is working fine. We are planning to hand over it to multiple users. They will work simultaneously on it everyday. We have set Parameters to add folder for the input. Ideally they have to create their own set of folders once and the circuit/graph is ready to work. I don't want individual user to have its own/mulitple graph. What I want to know is that can we use one graph as a whole to be used by multiple users. We have our name as a system/log-in ID ex - Jagdev. We will be having the list of folders with names in a common drive. Is it possible for the lavastrom to extract data from my name folder mapping it with my system/Log-in name and run the graph.

    Example - The particular user log-in with its name on the system and saves the file in its folder name on a common drive and run a single agreed and tested graph. The lava storm pulls the required data mapping/matching with user log-in credentials and its respective folder name on a common drive.

    Regards,
    Jagdev


  • 2.  RE: User name and System ID to pull the input data.

    Employee
    Posted 04-28-2016 07:42

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: stonysmith

    This may not answer exactly what you need, but the system parameter {{^con#username^}} would allow you to pick a folder for the current BRE user.

    Note: this only gives you their BRE login name.. there's no "credentials" associated with it.


  • 3.  RE: User name and System ID to pull the input data.

    Employee
    Posted 04-28-2016 09:55

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: Jagdev

    Hi,

    Thanks for the code. This is picking up the username. How can I ask lavastorm to map this name with the folder name saved on a common drive. I will be saving the data in the folder on a common drive with the same name as user name. Please guide me with this.

    Regards,
    Jagdev


  • 4.  RE: User name and System ID to pull the input data.

    Employee
    Posted 05-09-2016 01:40

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: awilliams1024

    Hi,

    as an example, if you were going to use the Output Excel node to save the data from the dataflow the con#username parameter would be included in the path specified in the 'File' property of the node, e.g.

    /home/{{^con#username^}}/Lavastorm_Data/resultsData.xlsx


    If the Lavastorm user was 'jdoe' the parameter in above path would be substituted during compilation of the node, resulting in a run-time path of

    /home/jdoe/Lavastorm_Data/resultsData.xlsx


    Note: The path must exist as the majority of the publishing nodes (Output Excel, Output Delimited, etc) do not create a directory if it does not exist. An exception to this is the Output BRD File node which will create the file structure if it does not exist (subject to the permissions of the user under which the Lavastorm Server is running).

    Regards,
    Adrian


  • 5.  RE: User name and System ID to pull the input data.

    Employee
    Posted 05-11-2016 09:33

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: Jagdev

    Hi Adrian,

    Thanks for the above explanation. I am able to pull the data when I am using it in a Directory list node. I am not sure why I am getting an error when I am trying the same name in my parameter list of the graph. IT throws me an error stating "Parament "con#username"is not defined". Can't I define it in my parameter or there is different way to do it.

    Regards,
    Jagdev


  • 6.  RE: User name and System ID to pull the input data.

    Employee
    Posted 05-11-2016 09:37

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: stonysmith

    Try this:
    {{%graph.username%}}

    You can't get to the password with this type of parameter, but you (should) be able to get to the username.


  • 7.  RE: User name and System ID to pull the input data.

    Employee
    Posted 05-12-2016 02:53

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: awilliams1024

    The {{^con#username^}} would normally be referenced in a node within the dataflow or on a composite within the dataflow. See the attached examples.

    Use_of_Con_Username_Parameter_Examples.zip

    Regards,
    Adrian


  • 8.  RE: User name and System ID to pull the input data.

    Employee
    Posted 05-12-2016 04:27

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: Jagdev

    Hi Adrian,

    Thanks for the explanation. I am able to run it via a node, but I want to know is it possible to call the system/user name via parameter list.

    Hi stonysmith,

    I tired using the {{%graph.username%}} in my parameter list, but when I try to run the graph it is not picking up the respective file and the respective node shows fail sign that is cross on it.

    Regards,
    Jagdev


  • 9.  RE: User name and System ID to pull the input data.

    Employee
    Posted 05-12-2016 06:56

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: stonysmith

    Can you explain what you mean by "parameter list"?

    Also.. sorry for the misdirection on the {{%graph.username%}} - it doesn't seem to work in as many places as I thought it would.


  • 10.  RE: User name and System ID to pull the input data.

    Employee
    Posted 05-12-2016 08:41

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: Jagdev

    Hi Stonysmith,

    I have set default parameters on my graph parameters. I have attached the screen-shot with the thread. I am getting the user name with the code {{^code#username^}} on node basis. I want to know is it possible to get the user name in the parameter list, because when I am trying to add {{^code#username^}} in with the URL in the parameter list, it is throwing an error. The reason for the error I presume is calling {{^con#username^}} which is also a parameter from the Parameter, this is my assumption on the error message. I just want to know the way to call user name within the parameter list.

    Regards,
    Jagdev
    Attachments:
    valodation.jpg