The community of Analytics developers are invited to follow and participate in the developer network.
OpenText technical experts collaborate with supported customers and partners in the Magellan product area.

How to refresh the parameter page on the Scheduler in iHub server?

Hello Team,
Good day!

I have created a Date prompt which shows "Today's Date" by default. But in Scheduler, the date value in the prompt was not getting refreshed it was showing the same date after sometime. Could you please tell me how to refresh that date prompt value in Scheduler (i mean, how to auto refresh the parameter page in IHub Server). Thanks in advance.

Thanks,
Sai
Thanks & Regards,
Sai

Comments

  • Hi Sai,

    The scheduler does not handle dynamic parameters, they are set at schedule time and static moving forward.  This is by design and cannot be changed.

    To get around this, you will need to add scripting to the BIRT report to evaluate the dynamic parameters at run time.  I'll see if we have a snip-it of sample code available.

    Regards,

    Jeffrey Neneman

    OpenText - Analytics: http://www.opentext.com
  • Hi Sai,

    If the parameter is named "startDate", placing the following code in the beforeFactory event of the report body will cause the current date to display as the default for the parameter:

    params["startDate"].value = BirtDateTime.today();


    Regards,
    Jeff F.
    Sr. Technical Support Specialist
    OpenText
  • jneneman said:
    Hi Sai,

    The scheduler does not handle dynamic parameters, they are set at schedule time and static moving forward.  This is by design and cannot be changed.

    To get around this, you will need to add scripting to the BIRT report to evaluate the dynamic parameters at run time.  I'll see if we have a snip-it of sample code available.
    Hello Jeffray,

    Thanks for the reply.
    Thanks & Regards,
    Sai
  • Hello Jeffray,

    Good day!
    Could you please share me if you have found any snip-it of sample code regarding this "Parameter page Auto refresh".

    Thanks,
    Sai
    Thanks & Regards,
    Sai
  • Hi Sai,

    Jeffrey asked me to post a code snippet.  I posted it above.  Set the default parameter value in beforeFactory of the report instead of setting the default value in the parameter expression.  The beforeFactory code will refresh the parameter value each time the report is run.
    Regards,
    Jeff F.
    Sr. Technical Support Specialist
    OpenText
Sign In or Register to comment.