Skip to main content
Participating Frequently
Nov 9, 2022 3:33 AM UTC
Solved

using index,wherecontains() need to fetch only rajini details

a!localVariables(
local!x:{{name:"rajini",marks:25},{name:"vamshi",marks:30},{name:"rajini",marks:40},{name:"venkatesh",marks:88}},
/*using index,wherecontains() need to fetch only rajini details*/
)

    Participating Frequently
    Nov 9, 2022 3:58 AM UTC

    Can try this?

    a!localVariables(
      local!x: {
        { name: "rajini", marks: 25 },
        { name: "vamshi", marks: 30 },
        { name: "rajini", marks: 40 },
        { name: "venkatesh", marks: 88 }
      },
      index(
        local!x,
        wherecontains(
          "rajini",
          touniformstring(local!x.name)
        ),
        {}
      )
    )

    2 replies

    Participating Frequently
    Nov 9, 2022 3:58 AM UTC

    Can try this?

    a!localVariables(
      local!x: {
        { name: "rajini", marks: 25 },
        { name: "vamshi", marks: 30 },
        { name: "rajini", marks: 40 },
        { name: "venkatesh", marks: 88 }
      },
      index(
        local!x,
        wherecontains(
          "rajini",
          touniformstring(local!x.name)
        ),
        {}
      )
    )

    Participating Frequently
    Nov 9, 2022 4:57 AM UTC

    Thank you Rahul