1. James Beck
  2. SnapDevelop
  3. Tuesday, 15 August 2023 16:59 PM UTC

Does anyone have an example of how you can use a Report inside of a Freeform Datawindow using  .net.   For the Freeform datawindow, we are using a RestClient object and calling Retrieve.   we have all of the datawindow objects imported into snapdevelop 

Here is how we are retrieving:

ls_url = gs_host +"/api/"+ls_dddwName +"/retrieve"
gnv_RestClient.Retrieve(dw_1, ls_URL)

but the Report inside of the Freeform Datawindow is not retrieving any data.

in the model, it is declared as such:
[JsonIgnore]
[IgnoreDataMember]
[DwReport(typeof(D_Defendant_Courtevents), ParamValues = "pd_case_file_sysid")]
public IList<D_Defendant_Courtevents> Dw_1 { get; set; }

 

Thanks
Jim Beck

 

Francisco Martinez @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 22 August 2023 15:20 PM UTC
  2. SnapDevelop
  3. # 1

Hi James,

 

A colleague let me know that retrieving reports inside a DW is a separate process and is accomplished by using this function:

https://docs.appeon.com/net_datastore/4.x/api_reference/DWNet.Data/DataStore/IDataStore/Method/GetReport.html

Please let me know if this helps you.

 

Regards,
Francisco

Comment
There are no comments made yet.
Francisco Martinez @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 15 August 2023 17:52 PM UTC
  2. SnapDevelop
  3. # 2

Hi James,

 

Try removing the [JsonIgnore] attribute and see if that works.

 

Regards,
Francisco

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.