This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - Help Whit Hidden Properties!!!

jy00882735 - Wednesday, May 5, 2010 2:19 AM:

I had a problem about Item Property columns. In the second development, how can I get the property value when the hidden option is set to TRUE?

My Code:

this.setProperty("assignee",this.getPropertyAttribute("owned_by_id","keyed_name",""));

return this;

Note: "owned_by_id" 's hidden option is True so this result is null. I want to know how can I get "owned_by_id" value.



RobMcAveney - Wednesday, May 5, 2010 7:41 AM:

If owned_by_id is hidden then it will not normally be in the list of properties that is requested from the database.  There are a couple ways to solve this, but the most efficient is probably to add a simple OnBeforeGet method to your ItemType that makes sure owned_by_id is in the select list:

string selList = this.getAttribute("select","");
if (selList!="") this.setAttribute("select",selList+",owned_by_id");
return this;



jy00882735 - Wednesday, May 5, 2010 8:28 AM:

Thank you!!!