on ‎2011 Jun 28 1:09 PM
Hi,
Can anyone explain me on adding the result columns in the resultField tab while creating a query, I don't understand the actual link between the bundle, resourceid and values that we give as a search criteria while looking up the result columns. I tried to replicate an existing query and it worked fine. But I don understand the actual working. Please help me acquire this understanding.
Also What happens when we say CONTEXTID=CONTEXT(upp.acl). As theory says, it retrives the records relevent to currently logged in user but how.
I am a beginner. Please help me on these.
Request clarification before answering.
Hi Sharmele,
The concept of bundle name, value etc can be understood better by going through the documentation for Localized Resources. Be sure to go through the Field Help section.
For understanding CONTEXT, search for Attribute Substitution (under Query definition) in the documentation.
I am sure you shall get all your answers.
Thanks
Devesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sharmele,
I would say it is partially correct.
In <%CONTEXT(upp.acl)%>, upp.acl is the class ID for a given class.
But the role of CONTEXT attribute is far more important. In a nutshell, we can say that by using the CONTEXT attribute, you ensure that the data users see in a report/query is only the data that they have access to. Here, by access, just the 'write' access in not implied. It also means 'View' access.
And to answer your question : Yes, in order to find the Class ID of a class, you must browse through the Class Reference. Additionally, in the page that opens up on clicking RG on a business document, the value in the Name section is same as the Class ID of that class.
Thanks
Devesh
Hi Devash,
I created a query SELECT <%RESULTS%> FROM <%SCHEMA%>.FCI_UPP_SECURITY_ACL WHERE DISPLAY_NAME = ? AND CONTEXTID=<%CONTEXT(upp.acl)%><%ORDERBY%> adding objectid, classid and displayname in to the result field.
The above query works fine without the filter prompt field. But after adding the display name in both the query and the filter prompt field, I got an Error saying "ACL": invalid identifier. What might be the cause of the error.
Please help. Thanks in Advance.
Sharmele.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.