Hi,
As subject says, I'm trying to retrieve the last distance of specific raport dynamically. The reports are scheduled and that part is currently working well. But the problem comes when there are more than one instance because my .asp retrieves only the first and oldest one.
I'm using the following simple script:
Dim iStore
Set iStore = Sess.Service (\"\", \"InfoStore\"
Dim result
Set result=iStore.Query(\"Select SI_ID, SI_NAME From CI_INFOOBJEcTS Where SI_NAME='$reportid' And SI_INSTANCE_OBJECT=1\"
Dim reportID
reportID=result(1).ID
Do you have any ideas? I know there is a parameter for my purpose but what it might be.. I didn't manage to make it work with SI_LAST_SUCCESSFUL_INSTANCE_ID either. But I hope you can help me...
Thanks for advance,
-Duckie
As subject says, I'm trying to retrieve the last distance of specific raport dynamically. The reports are scheduled and that part is currently working well. But the problem comes when there are more than one instance because my .asp retrieves only the first and oldest one.
I'm using the following simple script:
Dim iStore
Set iStore = Sess.Service (\"\", \"InfoStore\"
Dim result
Set result=iStore.Query(\"Select SI_ID, SI_NAME From CI_INFOOBJEcTS Where SI_NAME='$reportid' And SI_INSTANCE_OBJECT=1\"
Dim reportID
reportID=result(1).ID
Do you have any ideas? I know there is a parameter for my purpose but what it might be.. I didn't manage to make it work with SI_LAST_SUCCESSFUL_INSTANCE_ID either. But I hope you can help me...
Thanks for advance,
-Duckie