Skip to main content
Question

Macro IFSCLOUD R1

  • September 28, 2021
  • 7 replies
  • 209 views

Franck.G
Sidekick (Employee)
Forum|alt.badge.img+8

Hello 

I would like to make a demo on the management of DOCMAN macros for a prospect, the macros are not executed in IFSCLOUD. Can you help me? 

7 replies

Mathias Dahl
Superhero (Employee)
Forum|alt.badge.img+32
  • Superhero (Employee)
  • 2881 replies
  • September 28, 2021

Hi,

Thanks for posting here. Some questions:

  • Do you know that macros have been enabled for the documents you are working with?
  • What did you try?
  • Did you get any errors?
  • Is the Aurena Agent installed and working?
  • Is there an environment where we can have a look?
     

 


Franck.G
Sidekick (Employee)
Forum|alt.badge.img+8
  • Author
  • Sidekick (Employee)
  • 62 replies
  • September 28, 2021

Thanks mathias


here are the elements 

the database https://ifspsd1-d01.demo.ifs.cloud/landing-page/

document class :CRM_ACTIVIT

document template no : 1201828


Mathias Dahl
Superhero (Employee)
Forum|alt.badge.img+32
  • Superhero (Employee)
  • 2881 replies
  • September 28, 2021

I’ll quote myself:

  • What did you try?
  • Did you get any errors?
  • Is the Aurena Agent installed and working?

 


Mathias Dahl
Superhero (Employee)
Forum|alt.badge.img+32
  • Superhero (Employee)
  • 2881 replies
  • September 28, 2021

I added a super simple macro and it works. You can try the same by viewing the document below and see if you get the message box popping up (it sometimes appear behind the web browser as well, so look for new windows in the Windows task bar):

I needed to enable the aurena agent for the site, of course.

 


Franck.G
Sidekick (Employee)
Forum|alt.badge.img+8
  • Author
  • Sidekick (Employee)
  • 62 replies
  • October 4, 2021

With the document I was able to create a document ... but on IFSCloudR1, I can't do it ... and the macros work ... thanks Mathias 


Mathias Dahl
Superhero (Employee)
Forum|alt.badge.img+32
  • Superhero (Employee)
  • 2881 replies
  • October 4, 2021

Hi,

I don't have the time to debug those macros, sorry. What I do know is that there is one small thing that can be different in Aurena when working with macros and that is how to get the local file name of the file that have been checked out.

I once helped another consultant getting these macros to run in Aurena. I just had a look at some old notes I have from back then. It looks I change this code:

   ' ****** IFS_01_06_GENERAL_FILE_EXIST

   PUBLIC FUNCTION FILE_EXIST(I, APP)
      
      ON ERROR RESUME NEXT
      
      MsgBox "In File_Exist"
      
      SET FSO = CREATEOBJECT("SCRIPTING.FILESYSTEMOBJECT")
      IF I = 0 THEN
         O_FILENAME = SCRIPTVALUES.ITEM("LOCAL_FILE_NAME").VALUE
      ELSE

To this:

   ' ****** IFS_01_06_GENERAL_FILE_EXIST

   PUBLIC FUNCTION FILE_EXIST(I, APP)
      
      ON ERROR RESUME NEXT
      
      MsgBox "In File_Exist"
      
      SET FSO = CREATEOBJECT("SCRIPTING.FILESYSTEMOBJECT")
      IF I = 0 THEN
         O_FILENAME = Replace(ClientScriptValues.Item("LOCAL_FILE_1").Value, "/", "\")
         O_FILENAME = Mid(O_FILENAME, InstrRev(O_FILENAME, "\") + 1)

      ELSE

Perhaps that can help you? Disclaimer: I don't remember if I was able to make these macros working or not, but I think I made the change above for a reason.

If you cannot get it to work, you should contact James G, who wrote those macros. With the above change he might be able to get it to work for you.

/Mathias
 


Franck.G
Sidekick (Employee)
Forum|alt.badge.img+8
  • Author
  • Sidekick (Employee)
  • 62 replies
  • October 4, 2021

thank you for your help Mathias 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings