Skip to main content
Question

Background task - calling a procedure with no parameter


Forum|alt.badge.img+10
  • Hero (Customer)
  • 118 replies

Hello.

I need to create a new background task, but strangely, procedures with no parameter are not listed.

Is that a bug or is that tricky to select such a procedure?

5 replies

dsj
Superhero (Partner)
Forum|alt.badge.img+22
  • Superhero (Partner)
  • 828 replies
  • January 15, 2024

Hi @romsar,

Methods without parameters can be added as database tasks. Argument type should be set to No Parameter.

 

What’s the method you are trying to ad as a database task?


Forum|alt.badge.img+10
  • Author
  • Hero (Customer)
  • 118 replies
  • January 15, 2024

Hello @dsj 

Still, by selecting the no parameter element from the combobox, I can’t find my method, which is present in the following path :

IFS applications > IFS Customer runtime configuration component >  my custom package

Should I select a component in first?

EDIT : I selected the component (CONFIG), still no sucess...


dsj
Superhero (Partner)
Forum|alt.badge.img+22
  • Superhero (Partner)
  • 828 replies
  • January 15, 2024
romsar wrote:

Hello @dsj 

Still, by selecting the no parameter element from the combobox, I can’t find my method, which is present in the following path :

IFS applications > IFS Customer runtime configuration component >  my custom package

Should I select a component in first?

EDIT : I selected the component (CONFIG), still no sucess...

 

ahh, it’s a custom method :)

Have you added the custom package and method according to IFS standards?

Make sure you refreshed the dictionary cache.

 

Hope these topics will guide you to achieve what you need

Is there a way to run Custom APIs as scheduled database tasks ? | IFS Community

Custom Package within Schedule DB Task | IFS Community

 

Hope it helps!

Damith


Forum|alt.badge.img+10
  • Author
  • Hero (Customer)
  • 118 replies
  • January 15, 2024

it’s a custom method, exactly.

Have you added the custom package and method according to IFS standards?

I can see my other custom procedures which requiere parameters, so, what’s the method to add to IFS standards for a method with no parameter?

Make sure you refreshed the dictionary cache.

I did it but still, no success :/ 


dsj
Superhero (Partner)
Forum|alt.badge.img+22
  • Superhero (Partner)
  • 828 replies
  • January 15, 2024

Hi @romsar 

 

Check your method is listed with this query

 select * from dictionary_sys_method where package_name = 'YOUT_CUSTOM_API'

 

If it’s not listed, then the method is not added to Dictionary.

One of the common cause for not updating the dictionary cache is the method name is longer than 30 characters. Check if that’s the cause.

 

Hope it helps!

Damith


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