Skip to main content
Solved

Is there anyway to call a get function in VBScript or something Similar?


Forum|alt.badge.img+2
  • Do Gooder (Employee)
  • 1 reply

Hi All,

 

Is it possible to call a get function in VBScript or something similar?
 

Because I want to get a value which is getting calculated from a method/function and use it in a VBScript block.
Is there any way to achieve it?

Thank you in advance for any insight on this.

Best answer by Amila Samarasinghe

Hi @CAPALK 

If you read the Docman Macros documentation, it mentions below

If these attributes (or the values they contain) are not enough for your needs there are a couple of ways to fix this:

  1. Customize the Get_Document_Data function in Doc_Issue_API
  2. Make a macro that calls the IFS Foundation Gateway and do the necessary database calls yourself. This is unsupported, but might work.
    Retrieve the values from some other place such as files or windows registry, using available functions in VBScript.

I guess the option 1 would be the safest since you can define the attribute you want and set the value for it inside Get_Document_Data function.

Option 2 should be possible with basic authentication, but with IFS cloud I am not sure it will work

View original
Did this topic help you find an answer to your question?

4 replies

Amila Samarasinghe
Superhero (Partner)
Forum|alt.badge.img+14

Hi @CAPALK 

If you read the Docman Macros documentation, it mentions below

If these attributes (or the values they contain) are not enough for your needs there are a couple of ways to fix this:

  1. Customize the Get_Document_Data function in Doc_Issue_API
  2. Make a macro that calls the IFS Foundation Gateway and do the necessary database calls yourself. This is unsupported, but might work.
    Retrieve the values from some other place such as files or windows registry, using available functions in VBScript.

I guess the option 1 would be the safest since you can define the attribute you want and set the value for it inside Get_Document_Data function.

Option 2 should be possible with basic authentication, but with IFS cloud I am not sure it will work


Forum|alt.badge.img+2
  • Author
  • Do Gooder (Employee)
  • 1 reply
  • April 3, 2024

Hi @Amila Samarasinghe ,
 

Many thanks for your valuable input.

Using the option 1, I was able to achieve my requirement easily.


But one thing to point out that, Customize API name should be ‘Doc_Issue_Attribute_Custom_API

Thank you very much for your input.

\
Chathun


Amila Samarasinghe
Superhero (Partner)
Forum|alt.badge.img+14

Hi @CAPALK  It is great that you got it to work out and thanks for pointing out the new API name. I was referring to the old APPS10 documentation and the new IFS Cloud documentation has the updated API and method name

Document Macro (ifs.com)


Mathias Dahl
Superhero (Employee)
Forum|alt.badge.img+32
  • Superhero (Employee)
  • 2890 replies
  • April 3, 2024

The context of the question was not clear, can you explain more? Was it a document macro that you needed? There is no other way that I know of to execute VBScript.


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