Hi,
I'm building an app where I request for a set of data using a custom API (TestConnection).
I successfully get back data and assign them to collections without knowing the structure in advance.
But is it possible to create dynamically a collection that has the same structure? I can have the same result if I know the structure in advance (I just create the same fields inside a ClearCollect, as the structure of swagger) but what are the chances to get it automatically?
From DataBase
ClearCollect(CollLine, TestConnection.CollLineGetAllCollLines())
Manually:
Collect(CollLine, {Name: LDescriptionInput_2.Text, WorkType: WTDropdown1.Selected.WorkType, StartTime: StartTimeInput_2.Text, EndTime: EndTimeInput_2.Text, TotalTimeH :hours, TotalTimeM : minutes, Project: ProjectDropdown_2.Selected.PName, DayField: DayFieldDropdown_2.Selected.MyDay, WeekField: WeekFieldDropdown_2.Selected.WRName, Comments:NotesTextInput.Text }); UpdateContext({showDialog:true}); UpdateContext({hourflag: ETDropdown.Selected.h, minflag:ETDropdown_.Selected.m});