| Summary: | Support passing any from an EGL service and casting into a concrete type in RUI | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Will Smythe <smythew> | ||||
| Component: | EDT | Assignee: | Joseph Vincens <jvincens> | ||||
| Status: | NEW --- | QA Contact: | |||||
| Severity: | enhancement | ||||||
| Priority: | P3 | CC: | mheitz, pharmon, svihovec, tww | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Not sure if this enhancement is related/helped by bug 353401, but am noting it just in case. |
Created attachment 208619 [details] Sample project (created in EWDT 0.7) See the attached project. It contains a simple service and RUI handler. The service has 2 functions (getCustomer and getCustomers) that returns a Results record (Results contains some status fields - like 'succeeded' - and also a 'data' field which is of type 'any?'). I am able to construct a Results record, return it from my service functions, and the data (when viewed in the debugger) is getting passed, but I am not able to 'cast' it into a concrete type (in my example: Customer). Regardless of the complexities, I believe a developer - who is building an end-to-end app - with EGL, should be able to set and return an 'any' variable (either as the return type of a service function or as a field in a record) and be able to cast it into its original type on the client. If the developer attempts to cast the Any into a type that cannot be cast into, it should fail (just like any bad cast).