User bio
404 bio not found
Member since Oct 27, 2020
Replies:

Eduard,

Thanks for the reply.

The challenge is that I cannot find a way to use the Python interface to pass a properties object to ClassMethodValue, and I don't see another appropriate function.  
 

  • iris.classMethodValue() — calls a user defined ObjectScript method and gets the returned value.
  • iris.classMethodVoid() — calls a user defined ObjectScript method, ignoring any returned value.
  • iris.function() — calls a function of a user defined ObjectScript routine and gets the returned value.
  • iris.procedure() — calls a procedure of a user defined ObjectScript routine.

Thanks Eduard,

I think I finally found the answer, use the correct class.  Using %SYS.Journal.System instead of Config.Journal updating and reading the setting is very easy.

 returnValue = dbnative.classMethodValue("%SYS.Journal.System","SetPrimaryDirectory","/iris/journal/")

 print("Set Primary Directory: ", returnValue )

  returnValue = dbnative.classMethodValue("%SYS.Journal.System","GetPrimaryDirectory")

  print("Get Primary Directory: ", returnValue )

Thanks for your reply.

Certifications & Credly badges:
Scott has no Certifications & Credly badges yet.
Global Masters badges:
Followers:
Scott has no followers yet.
Following:
Scott has not followed anybody yet.