• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups
    2 Kudos

    Method to determine if a script was called by another script or by user input

    Status: Under Review
    by Active Contributor ForrestJudd on ‎12-10-2012 04:48 PM

    I'd love to have the ability within a script to determine if the script is running in response to another script, or if it's running in response to user input.

     

    If I could have a conditional like:

     

    if(this.CalledByScript)

    {

       println("I was called by another script!");

    }

     

    I'd be one happy camper.  Better yet, this.CallingScript - null if not called by script, otherwise contains the name of the calling script.  That would make me a happy camper with a cooler full of my favorite beverage.

     

    The Change Log for records shows an icon for actions initiated by script.  I wonder if this is something that's available and just not documented?

    Status: Under Review
    Forrest, this is an interesting idea. Could you elaborate on a use case for this?
    Comments
    by Employee jared.sund on ‎01-27-2013 08:14 PM
    Status changed to: Under Review
    Forrest, this is an interesting idea. Could you elaborate on a use case for this?
    Announcements
    IdeaStation Guidelines
    Review guidelines and best practices
    before posting a new idea


    PLM 360 Survey