1 Reply Latest reply on Nov 12, 2014 8:06 AM by SH_INT

    HS.Entity.Member not responding

    2747306

      Hi Experts,

       

      I have been trying to create custom log files inorder to check the sequential progress of my rules, I was even successful in creating the log file in desired location.

      But I'm unable to print the current pov entity member or any other member function in the log file.

      Here's the rule file I uploaded,

       

      Sub NoInput()

      pov_entity=HS.Entity.Member

      HS.NoInput "A#Travel Exp.S#Actual"

        Call WriteToFile("No Input for "&pov_entity)   

      End Sub

       

      Sub writeToFile(String)

      On Error Resume Next

      Const ForReading = 1,ForWriting = 2,ForAppending = 8

      Dim fso,f

      Set fso=CreateObject("Scripting.FileSystemObject")

      Set f=fso.OpenTextFile("D:\hfmcustomlogs\Hfmlog1.txt",8,True)

      f.WriteLine String & " " & Now()

      f.close

      On Error GoTo 0

      End Sub

       

      Resulted Log file content

      No Input for  11/12/2014 5:18:53 AM

       

      In the resulted log file as you can see the current pov entity member does not appear.

      Am I missing anything in the rule file or do I have to make any changes in the application properties.

       

      Thanks in Advance