---
title: "Arena : sampling point data in expression"
url: "https://openforis.support/questions/4048/arena-sampling-point-data-in-expression"
tags: ["arena"]
status: "answered"
score: 0
answer_count: 3
asked: "2024-07-29T12:32:22"
last_activity: "2024-07-30T09:10:18"
source: "Open Foris Support - Q&A Forum"
license: "Copyright Open Foris, 2026. Some rights reserved under creative commons license."
---

# Arena : sampling point data in expression

Asked by jeromev on 2024-07-29

Hello OF team,

I need to get informations from my sampling point data in an expression.

Is it possible ? 

Ctrl + Space in expression editor don't show me anything helpful.


## Answer (score 0, by Stefano (OF) on 2024-07-29)

Link: https://openforis.support/questions/4048/arena-sampling-point-data-in-expression/4049

Dear user,  
You can define some "Extra properties" in your sampling point data category, then use the function `categoryItemProp` to extract that information. The expression should look like this:   

    categoryItemProp('sampling_point_data', 'extra_prop_name', cluster_id, plot_id)

Please refer to the [Arena manual][1], especially to the section **12. Example of Expressions** and to the online document [Arena Expressions][2] to get some useful examples.  

Many thanks,  
Open Foris Team


  [1]: https://docs.google.com/document/d/1FsD1kARO7wtY-ZYXR84TFTDn2JhRlKsVDJdqPvEXkpk/view
  [2]: https://docs.google.com/document/d/1FsD1kARO7wtY-ZYXR84TFTDn2JhRlKsVDJdqPvEXkpk/view


## Answer (score 0, by jeromev on 2024-07-29)

Link: https://openforis.support/questions/4048/arena-sampling-point-data-in-expression/4050

Not sure it meets my needs :
I need to get max value of the code of my level 2 items for a selected level 1 item.


## Answer (score 0, by Stefano (OF) on 2024-07-30)

Link: https://openforis.support/questions/4048/arena-sampling-point-data-in-expression/4051

Dear user,  
We don't have any functions that can extract such information right now.  
What you could do is to define the "max value of code in level 2" as an extra property of the items in level 1; in this way you could extract that information using the categoryItemProp function, with something like this:  

    categoryItemProp('sampling_point_data', 'max_code_level_2', cluster_id)  

Let us know if this could solve your issue.  
Many thanks,  
Open Foris Team
