Components' Dynamic state for dynamic dashboard
Hello,
I am trying to get my dynamically created buttons to execute a server task.
I can create all the buttons I need in my dynamic dashboard, but as soon as I try to get them to execute a dashboard business rule, I get an error message :
I have checked my services, and Everything gets validated.
My WsDynamiccomponentCollection is as follow :
Dim currentcomps As WsDynamiccomponentCollection = api.GetDynamicComponentsForDynamicDashboard(si, workspace, dynamicDashboardEx, string.empty, Nothing, tristatebool.TrueValue, wsdynamicitemstatetype.EntireObject)
I am also using the functions SaveDynamicDashboardState and SaveDynamicComponentState :
api.SaveDynamicDashboardState(si,dyncomp2,dynamicDashboardEx,wsdynamicitemstatetype.EntireObject)
api.SaveDynamicComponentState(si,dynamicDashboardEx.DynamicDashboard,dyncompex2,wsdynamicitemstatetype.EntireObject)
(dyncomp2 and dyncomp2ex being the button I am creating).
--> It seems that it creates a list of dashboard and/or components in a new table called "wsDynamicItemState", but that's it. The ID code that I have in the error message exist in the table, under the "itemID" column:
Any insights on how to resolve this issue, as well as this "component state", are welcome :)
Regards,