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.  Explorer version is not reading the code "{{^con#username^}}"

    Employee
    Posted 02-13-2017 23:10

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

    Originally posted by: Jagdev

    Hi Experts,

    I have developed a graph in designer/developer version and used the code {{^con#username^}} to read the user credential. When I am trying to run the same graph on the Explorer version it is not reading this {{^con#username^}} in the link. Please let me know how can I fix this in the Explorer version of my graph.

    Regards,
    Jagdev


  • 2.  RE: Explorer version is not reading the code "{{^con#username^}}"

    Employee
    Posted 02-15-2017 09:08

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

    Originally posted by: awilliams1024

    Have you tried "{{%graph.username%}}" instead, it *may* work


  • 3.  RE: Explorer version is not reading the code "{{^con#username^}}"

    Employee
    Posted 02-15-2017 09:49

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

    Originally posted by: awilliams1024

    Hi Jagdev,

    as noted above, that property may not work for you (or indeed me on my local install). As an alternative you could try the following:

    property("graph.username")

    Note that you cannot use (i.e. nest) the property() function within another parameter definition.

    Regards,
    Adrian

    P.S. A big shout-out to stonysmith for his assistance on this - Many thanks


  • 4.  RE: Explorer version is not reading the code "{{^con#username^}}"

    Employee
    Posted 02-15-2017 22:44

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

    Originally posted by: Jagdev

    Hi Adrain,

    This is not working

    Regards,
    Jagdev


  • 5.  RE: Explorer version is not reading the code "{{^con#username^}}"

    Employee
    Posted 02-16-2017 02:30

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

    Originally posted by: awilliams1024

    Hi Jagdev,

    when you say it is not working is the property value not defined or is it returning a default value e.g. "admin"?

    Thanks,
    Adrian


  • 6.  RE: Explorer version is not reading the code "{{^con#username^}}"

    Employee
    Posted 02-16-2017 06:38

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

    Originally posted by: gmullin

    Are you using "{{^con#username^}}" or property("graph.username") in a Filter node? The following for me works fine when I saved as LXA and uploaded to Explorer. The parameters might not be read as well if you're using them in the name of a file or something like that. In Explorer all parameters are just read as text. If you are try to get the value you need as a field and then pass to whatever node is using it.

    Usernames.brg


  • 7.  RE: Explorer version is not reading the code "{{^con#username^}}"

    Employee
    Posted 02-20-2017 21:06

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

    Originally posted by: Jagdev

    Hi All,

    Sorry for the late reply on this. What I am trying to do it pulling the folder which is saved in the drive with user name. I will be using the parameter "{{^con#username^}}" in the directory node in the directory name field Example - C:\Raw Data Validation\{{^con#username^}}\InputData. I already saved a folder in the respective directory with my credential name. In the designer version it is working, but when I load the graph in the explorer, it is throwing an error.

    Please let me know if you need further clarification.

    Regards,
    Jagdev


  • 8.  RE: Explorer version is not reading the code "{{^con#username^}}"

    Employee
    Posted 02-21-2017 05:53

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

    Originally posted by: gmullin

    Since the Directory node can't have an input pin, you'll have to work around it by getting all the files and then filtering. This might become a large list from the Directory node. Here's what I did:

    1. I'm logged into BRE as admin, I later log into Explorer as admin also.
    2. I have a directory named admin in my Downloads directory, C:\Users\gmullin\Downloads.
    3. I set the Directory node's recurse parameter to true (Optional tab).
    4. I get a list of all files in my Downloads directory and any sub directories.
    5. I then use {{^con#username^}} to filter on the files I want.

    directory.brg


  • 9.  RE: Explorer version is not reading the code "{{^con#username^}}"

    Employee
    Posted 02-21-2017 07:26

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

    Originally posted by: stonysmith

    Originally posted by: gmullin
    					

    5. I then use {{^con#username^}} to filter on the files I want.
    In Gerry's example you can use
    filename.strfind(property("graph.username"))
    in place of
    filename.strfind("{{^con#username^}}")