Uploaded image for project: 'CloverDX'
  1. CloverDX
  2. CLO-18504

Variant record2map and findAllValues functions

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: rel-5-7-0
    • Component/s: None
    • Security Level: Users (General product issues)
    • Story Points:
      5
    • QA Testing:
      UNDECIDED
    • Epic Link:
    • Sprint:
      Green Sprint 111, Green Sprint 112

      Description

      Introduce new / extend existing functions:

      • function variant record2map(<data record>) - converts the passed-in data record into map. Field names become keys, field values are mapped onto values - no conversion happens. So Integer data field become Integer value in map. This can be used to convert record into JSON as there is no direct record2json function.
      • function variant findAllValues(<variant> object, variant key) - deep searches specified object for key, returning list of all references to values found under specified key or empty list if nothing was found. The passed in object itself can be a list or map containing other lists/maps. The search is deep first.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              slamam Martin Slama
              Reporter:
              slamam Martin Slama
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: