Query to get Array Values | Adobe Higher Education
Skip to main content
October 16, 2015
解決済み

Query to get Array Values

  • October 16, 2015
  • 2 の返信
  • 1040 ビュー

Hi 

Can anybody gimme  query to get array values using querybuilder api i am typing this in browser 

for example i tried this

http://SERVERNAME:PORT/crx/explorer/repository/crx.default/content/dam/cupp/publisher276627/500600973/2013/416279098/articles/101097155.xml/jcr:content/metadata/name:articlePageRange and i see just one number but there is a list of page numbers here

or this

/bin/querybuilder.json?path=/content/dam/cupp/publisher276627/500600973/2013/416279098/articles/101097155.xml/jcr%3acontent/metadata/name:articlePageRange&type=java.lang.String[]

Am i doing something wrong..? please help i am new to this tool

このトピックへの返信は締め切られました。
ベストアンサー JustinEd3

Hi Kalyan,

If you know the path of the node/property you want, there's no need to query for it. You already know the answer to your query :)

http://SERVERNAME:PORT/content/dam/cupp/publisher276627/500600973/2013/416279098/articles/101097155.xml/jcr:content/metadata/name:articlePageRange.json will return a JSON object with *just* this property in it as an array.

I think this is what you're looking for.

Regards,

Justin

2 の返信

JustinEd3Adobe Employee回答
Adobe Employee
October 16, 2015

Hi Kalyan,

If you know the path of the node/property you want, there's no need to query for it. You already know the answer to your query :)

http://SERVERNAME:PORT/content/dam/cupp/publisher276627/500600973/2013/416279098/articles/101097155.xml/jcr:content/metadata/name:articlePageRange.json will return a JSON object with *just* this property in it as an array.

I think this is what you're looking for.

Regards,

Justin

October 16, 2015

Yes you were right 

i should lose /crx/explorer/repository/crx.default from the url and it worked thanks so much for your help