jkalten Posted July 30, 2009 Share Posted July 30, 2009 Hi!When defining an input control as a single select query and forcing the user to select values from the drop-down list, I also want him to know, what the content of these columns are. f.eg. in the drop down list there are data like:Bühler 1400 ID12345Idra 3412 BUI1390...For a user, who has no experience in the content of the table, it would be quitehelpful to have the column header displayed, so that the drop down list would for example appear as the following:decription name // <-- bold, can't be selected by the userBühler 1400 ID12345Idra 3412 BUI1390...Is this somehow possible? (except to write this in the Label of the input control)Thanks in advance!Julia Link to comment Share on other sites More sharing options...
jkalten Posted July 30, 2009 Author Share Posted July 30, 2009 And is it also possible (regarding to the question above) not only to display the value column in the report, but also to display the visible query columns being set?f.eg.: 1)create input control "Machines" --> single select query, value column: "id", + visible query columns: "name", "description" 2) name + description are also Input Controls in the report 3) If the user is asked to select a value for the Input-control "Machines" (see also step 1), can this selection automatically affect the Input-controls of step 2). Moreover, these Inputcontrols shouldn't be changed by the user. The aim is, also to be able to use id and description in the report. Is this somehow possible? Thanks! Julia Post Edited by jkalten at 07/30/2009 10:39 Link to comment Share on other sites More sharing options...
leeyuiwah Posted August 2, 2009 Share Posted August 2, 2009 I think you can only return one value column, but this column can be a concatenation of multiple columns, and it does not have to be the same as the "visible" column. So, you may do something like select concat(id, "|", name, "|" , description) value_column, name, descriptionfrom ... In your input control, define "value_column" to be the "value" column, and "name" and "description" to be your "visible" column When you get the return value in your prompt, you can use scriptlet to parse the string (delimited by "|") using something like java.util.StringTokenizer and get back id, name, description. Link to comment Share on other sites More sharing options...
yashdeep Posted August 3, 2009 Share Posted August 3, 2009 hi!u can concate the multiple colum in Query and give some name ,then use this as Visible Column..... Thanks & Regards,Yash Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now