Multi-Select Fields on Report
I have a report that includes a few multi-select fields which are associated with LOVs.
On the report, I have the fields with LOVs set up to have a Column Filter Type of Use Named List of Values to Filter Word Contains.
When there is only one value in the field, it shows the display value of the field as I would like. However, if there is more than one value, it continues to show the stored values in a string separated by colons.
For example, the display value for two values might be Smith, Bob and Jones, Julie. (Their stored values are BSMITH and JJONES, respectively.)
When there is only one value selected, the report displays "Smith, Bob" for example. However, if two or more are selected it will show the stored values, such as "BSMITH:JJONES", separating the values by colons. Can this be changed so that the columns with multiple values will show "Smith, Bob:Jones, Julie", for example.
How can I get all of the values to show in the displayed format for multi-select fields on both reports and charts?
O.K.
CREATE OR REPLACE FUNCTION get_consultant_names (
p_consultant_id IN VARCHAR2
RETURN VARCHAR2
IS
v_constultants VARCHAR2 (4000);
BEGIN
FOR c IN (SELECT consultant_name
FROM otd_consultants
WHERE INSTR (':' || p_consultant_id || ':',
':' || consultant_id || ':'
) > 0)
LOOP
v_constultants := v_constultants || ', ' || c.consultant_name;
END LOOP;
v_constultants := LTRIM (v_constultants, ', ');
RETURN v_constultants;
EXCEPTION
WHEN OTHERS
THEN
RETURN v_constultants;
END get_consultant_names;and the SQL would be:
SELECT project_id, start_date,
get_consultant_names (consultant_id) consultant_id
FROM otd_projectDenes Kubicek
http://deneskubicek.blogspot.com/
http://www.apress.com/9781430235125
http://apex.oracle.com/pls/otn/f?p=31517:1
http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
-------------------------------------------------------------------
Similar Messages
-
Settinf selection fields in Report painter
hi,
i need to know how to select fields in report painter as selection fields or input fields?
i just have an idea of library where we select fields.
but how to select selection screen fields?hiiii
refer to following link..it will help you for report painter
http://www.virtuosollc.com/PDF/Get_Reporter.pdf
regards
twinkal -
Workaround for not being able to reference a multi-select field in a calculated field?
Does anyone have a workaround for the fact that SP doesn't allow the use of a multi-select choice field to be used in a calculation in a calculated column? I have a list that WAS a single choice in a Status field with three other calculated columns
that were dependent upon that field. Then I had to change the Status field to be to multi-select (checkboxes). Now of course my calculated columns don't work. In addition, the end user can't fill them in either.
I've got a Status field (multi-select), a Status Date field and Expiration Date field (calc). The expiration date's calculation is shown below. This worked great until I was asked
to change the Status field to multi-select.<o:p></o:p>
=IF(Status="NoI
Review",DATE(YEAR([Status Date]),MONTH([Status Date]),DAY([Status
Date])+21),"")<o:p></o:p>
There are no mistakes; every result tells you something of value about what you are trying to accomplish.Hi run4it,
Since SharePoint calculated column cannot reference the choice field with multiple-select value enabled, a workaround is to use workflow to copy the "Status" column value to another single line text column, then reference this single line text column in
calculated column.
Thanks,
Daniel Yang
Forum Support
If you have feedback for TechNet Subscriber Support, contact [email protected]
Daniel Yang
TechNet Community Support -
Selection Field in Report Painter Report
Dear All,
Could any one tell me the procedure to add new field at selection screen for the report painter report ? To change the report painter selection screen i have to change the Report group or Report of the report group?
Thank in stackIn general data selection, i have already cost center, but it is not apprearing at selection screen. Only three field are appearing (Year + Period + Forecast), and i want to add cost center at the selection screen. How to make cost center field at selection field from General data selection option. Please guide me
Thank in stack
Nilesh Shete -
What is the character max on multi-select fields?
For fields that are set up to use multi-select lists, and can have many values appended to the field, what is the maximum number of characters the field can hold? And, if a field hits the max, will we ever know?
Thanks for any help.
BethHi bmherr,
Small Text fields have a maximum of 100 characters, whereas Large Text fields support up to 32,000 characters. For multi-select list text fields, the limit is 1,000 characters. For Data Cards (Custom Data Objects): 250 for Small Text fields and 32,000 for Large Text.
No,it will not show any error and only First 1000 chars alone will get stored in eloqua!
Thanks & Regards,
P.Gowtham -
Multi-Select LOV for Report Parameters
I have a LOV defined in Oracle Portal as a Multi-Select LOV. When I assign this to an optional report parameter when defining a reports definiton file and run the parameter screen, it comes up as a combo box. Is a combo box the only type of LOV I can use for an Oracle Reports Parameter.
Thanks
JodyWith whatever i could make out is you are trying to change a discovere report to xml; publisher report isnt it?
To answe to your question, directly it is not possible to have In clause but you could use some smart logic like lexical parameters etc to achieve similar things.I guess you cannot do in in EBS Reports too. -
Hello all,
I have a document library and one of the fields is a lookup back to the library itself (title field) to allow users to select references. So a user would upload a document and one of the fields they can populate is a References field which is a multi-select
enabled lookup field.
Two other fields are Dept and Sub Dept.
I am wondering how I could filter the choices in the multi-select reference field.... so if a user selects Dept A and Sub Dept A2 then the multi-select lookup would only show those items that are from Dept A and Sub Dept A2.
Thanks for any suggestions and help!Hi Rybyscye, sounds like you're referring to a cascading lookup. There isn't a way to do that out of the box. If you have access to InfoPath, you can accomplish it using that program. Otherwise I can recommend a third party product-
Kwiz
(Note: I have no affiliation with Kwiz, just vouching for the product)
cameron rautmann -
How to Remove the /Div in a Multi-line Field when reporting in Excel, getting
I am uisng Excel Services to extract data from PS2013. And the Multi-line text fields include the </Div> syntax. I have looked at a lot of the links regarding how to do this. I have even borrowed code that was on someones blog.
When I try and use it I get the following message and cannot not seem to resolve it after reading varous links regarding this issue.
Any ideas? As a work around I have created an Excel Macro to remove it, however would like to solve it in the query
Error Message
The data types
Nvarchar and Ntext are incompatible in the add operator
Here is the syntax
declare @Headxml nvarchar(350)
declare @Footxml nvarchar(50)
set @Headxml = N'<?xml version="1.0"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"
[<!ENTITY nbsp " "><!ENTITY quot """>]><html><body>'
set @Footxml = N'</body></html>'
SELECT ProjectOwner.ProjectUID as [ProjectUID],
ProjectOwner.ProjectName as [Project Name],
ProjectOwner.[Project Number] as [ECP#],
TaskRelated.TaskName as [Task Name],
MSP_WssRiskToTaskLinks_UserView.RiskID as [Risk ID],
MSP_WssRiskToTaskLinks_UserView.Title as [Risk Title],
MSP_WssRiskToTaskLinks_UserView.Status as [Status],
MSP_WssRiskToTaskLinks_UserView.AssignedToResource as [Assigned To],
MSP_WssRiskToTaskLinks_UserView.Owner as [PM],
MSP_WssRiskToTaskLinks_UserView.DueDate as [Due Date],
MSP_WssRiskToTaskLinks_UserView.Probability as [Probability],
MSP_WssRiskToTaskLinks_UserView.Impact as [Impact],
MSP_WssRiskToTaskLinks_UserView.Exposure as [Exposure],
MSP_WssRiskToTaskLinks_UserView.Cost as [Cost],
MSP_WssRiskToTaskLinks_UserView.CostExposure as [Cost Exposure],
MSP_WssRiskToTaskLinks_UserView.Category as [Category],
ISNULL(LTRIM((CONVERT(xml,(@Headxml+MSP_WssRiskToTaskLinks_UserView.[Description]+@Footxml),3)
.value(N'(/)','nvarchar(4000)'))),'') AS [YourMulti-lineCustomFieldNewName],
MSP_WssRiskToTaskLinks_UserView.MitigationPlan as [Mitigation Plan],
MSP_WssRiskToTaskLinks_UserView.ContingencyPlan as [Contingency Plan],
MSP_WssRiskToTaskLinks_UserView.TriggerTask as [Trigger Task],
MSP_WssRiskToTaskLinks_UserView.TriggerDescription as [Trigger Description],
MSP_WssRiskToTaskLinks_UserView.CreatedDate as [Created Date],
MSP_WssRiskToTaskLinks_UserView.CreateByResource as [Create By],
MSP_WssRiskToTaskLinks_UserView.ModifiedByResource as [Modified By],
MSP_WssRiskToTaskLinks_UserView.ModifiedDate as [Modified],
TaskRelated.TaskUID as [TaskUID],
TaskRelated.TaskName as [Task Name],
TaskRelated.TaskStartDate as [Task Start],
TaskRelated.TaskFinishDate as [Task Finish] FROM dbo.MSP_WssRiskToTaskLinks_UserView
LEFT OUTER JOIN dbo.MSP_EpmProject_UserView AS ProjectOwner ON ProjectOwner.ProjectUID = MSP_WssRiskToTaskLinks_UserView.ProjectUID
LEFT OUTER JOIN dbo.MSP_EpmProject_UserView AS ProjectRelated ON ProjectRelated.ProjectUID = MSP_WssRiskToTaskLinks_UserView.RelatedProjectUID
LEFT OUTER JOIN dbo.MSP_EpmTask_UserView AS TaskRelated ON TaskRelated.ProjectUID = MSP_WssRiskToTaskLinks_UserView.RelatedProjectUID
AND TaskRelated.TaskUID = MSP_WssRiskToTaskLinks_UserView.RelatedTaskUID LEFT JOIN dbo.MSP_WssRelationshipType ON
MSP_WssRiskToTaskLinks_UserView.RelationshipTypeID = MSP_WssRelationshipType.RelationshipTypeID
ORDER BY ProjectOwner.ProjectName ASC, MSP_WssRiskToTaskLinks_UserView.RiskID
Andrew PayzeHi Andrew,
We normally create a function to do this. Some examples can be found here:
http://blog.sqlauthority.com/2007/06/16/sql-server-udf-user-defined-function-to-strip-html-parse-html-no-regular-expression/
http://lazycoders.blogspot.co.uk/2007/06/stripping-html-from-text-in-sql-server.html
http://stackoverflow.com/questions/457701/best-way-to-strip-html-tags-from-a-string-in-sql-server
Paul
Paul Mather | Twitter |
http://pwmather.wordpress.com | CPS -
Need help on multi select field
Hi ,
1. I have created a meta datafield which is multiselect. Lets say product list,it lets user to select multiple product.
2. Now, this feature I have created at the check in form, and the meta data field used is of type "memo".
3. This meta data field internally uses a "product_list_V" view which is again "muliselect" with option for multiple names separated by comma.
4. Now when I check in, and uses this meta data field it stores and displays the data in the info page correctly like "product1,product2,product3" in this way.
4. But internally I am using Id to store not the name for the products.
5. Now when i search using the query or using the search builder it doesnot pull up the record.
6. But if i give the same pattern of the value it puuls up the result. For example, if the value(product id) stored is 5,9,12
and I give this in the query like xIndustry <matches> `5` <OR> xIndustry <matches> `9`<OR> xIndustry <matches> `12`----it doesnot pull up the record.
7. But if I give the query as xIndustry <matches> `5,9,12` same pattern it pull up the record.
8. Since the record has the id it should pull up if any match found as per to the id which doesnot happen.
Can any one tell me or guide me on how to implenet this.
Need very urgently.
Thanks,
AbhijitHi Malky,
If we use "contains" UCM throws error line below
Content Server Request Failed
Unable to retrieve search results. Unable to retrieve search results. Unable to create result set for query 'SELECT * FROM (SELECT q.*, RowNum rowIndex FROM (SELECT dDocName, dDocTitle, dDocType, dRevisionID, dSecurityGroup, dDocAuthor, dDocAccount, dRevLabel, dFormat, dOriginalName, dExtension, dWebExtension, dInDate, dOutDate, dPublishType, dRendition1, dRendition2, VaultFileSize, WebFileSize, URL, dFullTextFormat, dFullTextCharset, DocMeta.*
FROM IdcColl2, DocMeta
WHERE IdcColl2.dID=DocMeta.dID AND ((((CONTAINS(xIndustry, '{5}') > 0))) AND (((UPPER(dDocAccount) LIKE UPPER('') AND dDocAccount IS NOT NULL) OR (dDocAccount IS NULL)))) ) q WHERE ROWNUM < 21) WHERE RowIndex >= 1'. ORA-20000: Oracle Text error:
DRG-10599: column is not indexed
As well as "contains" word is not in the UCM search query builder form. Only we have the options are matches, starts, ends, Substring, Not Matches, Not Substring.
Please let me know whether we need to install any component to get the "contains" word.
Thanks
Abhijit -
Crystal Reports 8.5 Multi-Selection Formulas
Let me start by saying that I am fairly new to Crystal Reports design, so I appreciate your patience as I try to describe my issue to you.
I am using Crystal Reports 8.5 with an Oracle database. The database contains a field that I refer to as a multi-selection field, meaning that end-users have the ability to select zero, one, or all values available to them in that field.
I am designing a Crystal Report which has a checkbox for each of the selection values within the multi-selection field. So, if the end-user selects three of the values in that field, then three checkboxes appear checked, while all the others checkboxes remain empty. I have no problem getting the checkboxes to appear; that's not the issue.
I have tried using direct table linking and views, subreports, formulas and running totals in a number of different combinations,
to no avail. The results have been mixed; most of the time, only one of the values gets a checked box, while all the other checkboxes are blank. Other times (with some of the subreports) it returns a full set of checkboxes with only one box checked, for each selection value that is chosen in the record.
My basic formula for the field looks like the following, and the formula is repeated for each checkbox (country).
if {TW_V_COUNTRY.S_VALUE} = "Japan" then chr(253) else chr(168)
The closest I've gotten to this report working correctly is when I link an alias of the view for each country. If I have a view for two countries and select those two values in a record, both checkboxes appear checked. However, if I add more views for additional countries and select those values within the record, only one checkbox appears checked.
Has anyone ever done something like this successfully? I'd appreciate any help I can get. Thank you in advance.Okay, I know I've said this before, but this time it really works!
I saw something online about how crystal processes null fields - that if it reaches a null value, it will stop processing it altogether. Here's what I saw online about null fields: http://publib.boulder.ibm.com/infocenter/iadthelp/v7r0/index.jsp?topic=/com.businessobjects.integration.eclipse.designer.doc/designer/Crystal_Syntax47.html
I have successfully created a report that will display all of the appropriate checkboxes - blank or checked. This method does NOT use custom views.
My report uses a separate subreport for each selection value in the multiselection field. The subreports are located in the Group Footer of the main report. Each subreport has PR.ID left outer linked to the VIEW.PR_ID. Each subreport is grouped by PR.ID. Each subreport contains a formula for the corresponding selection value:
WhilePrintingRecords;
global StringVar VarCH;
If VarCH = "" then
VarCH:= if IsNull({VIEW.S_VALUE}) then chr(168) else
if {VIEW.S_VALUE} = "Swiss Confederation - CH" then chr(253)
else chr(168);
WhilePrintingRecords;
global StringVar VarCH;
VarCH
Each selection value has an abbreviation: AT, BE, BU, CH, CY, CZ, etc. So, in the above formula, the only difference for each selection value is the name of the variable: VarAT, VarBE, VarBU, etc., and the actual selection value itself: Republic of Austria - AT, Swiss Confederation - CH, etc. However, it may work with one universal variable throughout, like VarCountries.
The formula field is placed into the Group Footer within each subreport, formatted with Wingding font. All other subreport sections are suppressed. The subreport is placed next to its corresponding text object on the main report. The subreports are linked to the main report: PR.ID --> VIEW.PR_ID. -
How to view multi-select responses in individual columns
Hi,
I have a multi-select field on my form. Users can check none, one, or many responses. When viewing the resluts, the response are concatenated together by a semi-colon and displayed in one column. I need to be able to sort based on the specific responses. Other form engines put these types of multi-select responses into unique columns for sorting purposes. How do I do this in Adobe Forms?
Thanks,
Doug WardDoug,
Did you try the right click and leftclick on the column letter? I'm pretty sure that addresses the issue.
Here are a couple of screen shots using a multiselect field with choices "AnswerOne AnswerTwo AnswerThree"
Here is what happens when you right click on the column heading:
Here is what happens when you left click on the column's letter (in this case B):
You'll see that in both cases, you can sort first or last by any of the options in the multiselect field. If you sort first by AnswerOne, all the responses that chose "AnswerOne" will show up first. If you sort last by "AnswerOne" all of them will show up last.
Does this solve the issue you're describing?
Another option would to use the filtering functionality. If you open up FormsCentral, go to the Help Menu, and click on FormsCentral Help, then click on "View Responses" and click on "Sort and Filter data", it will walk you through filtering data. Here is the link
You can set up filters to show only the response that answer "AnswerOne" or any number of combinations ("AnswerOne" AND "AnswerThree", "AnswerTwo" OR "AnswerThree").
Hope one of these two methods helps
Anatole -
Sun IdM: How to set a multi-value field on document.mainform via javascript
The following will set variables.variable1 to variables.variable2 when the "Script Link" component is clicked. I would like to modify
this so that el2 references a multi-valued element (e.g. a list generated by a Select Field)
<Field>
<Display class='Javascript'>
<String>
function myScript() {
el=getElement(document.mainform,"variables.variable1");
el2=getElement(document.mainform,"variables.variable2");
el.value=el2.value;
</String>
</Display>
</Field>
<Field name='Script Link'>
<Display class='Link'>
<Property name='URL'>
<String>javascript:myScript();submitCommand(document.mainform,%20'Recalculate');</String>
</Property>
</Display>
</Field>
My issue is, if variables.variable2 is a list / multivalued, i get errors trying to traverse through the "array".
How can i read and set a list element via the javascript function above? I've tried things like get(), put() , as well
as path expressions like variables.variable2[0] .
any help would be appreciated....
is there an API somewhere i can reference?The MultiSelect field-type is a little different than the rest of the fields. If you use the applet version, then selecting/deselecting values cannot be captured by referencing the field directly in javascript.
The way to identify the selections is to use the javascript methods includes/MultiSelect.js file (IDM form submission uses the same method):
fixMultiSelectAppletBeforeSubmit( )
fixMultiSelectNonAppletBeforeSubmit( )
.. and then referencing the "<multiselect-field>_selected" form element.
So in your case, the code should look something like this:
function myScript() {
fixMultiSelectAppletBeforeSubmit(document.mainform,"variables.variable1");
var el1 = getElement(document.mainform,"variables.variable1_selected");
// assign the value to variable2..
el2 = getElement(document.mainform,"variables.variable2");
el2.value = el1.value;
}Just make sure ":variables.variable2" is not a multi-select field, else the value set here will be reset during form submission.
Adi
[www.xpressutils.com|http://www.xpressutils.com] -
Reporting on a Multi-Select list field X:Y:Z
I'm sure someone must have come across this problem but I can't find a reference to it on the forum.
PROBLEM
I have a data entry form with multi-select lists. Users choose a number of display values and the return values are stored in the field in the format
20:30:50
When I create an SQL report on a row, there is no option to Display the column as a "multi-select list" like there is with a standard List of Values.
How do I report the display lookup values rather than the return code?
Is it possible to display the selected values in a report for example
red
orange JOHN 10-JAN-07
green
red
orange MARY 12-FEB-07
orange
green MARK 13-JUL-07
regards
Paul PPaul,
I have several examples on this topic:
http://htmldb.oracle.com/pls/otn/f?p=31517:87
http://htmldb.oracle.com/pls/otn/f?p=31517:84
http://htmldb.oracle.com/pls/otn/f?p=31517:75
Basically, you will need to create a table out of your colon separated values and then
join this table with other tables to be able to display it however you want.
What just comes to my mind is that Dietmar presented a nice workarround for a similar
problem here:
Nested report howto?
Denes Kubicek -
I have connected TABULAR Model to Excel, and in the pivot the filter is on multiple dimensions. When doing the drillthrough action it gives error - Error: Show Details cannot be executed when multiple items are selected in a report filter field or in a slicer
Is there any workaround to this error? so that drillthrough can be done even with multiple selection.Hi Vikas,
The reason behind the error message requires the knowledge on what happens at the backend. When you perform a drill-through action, a query is sent to Analysis Services. This query is expressed in a query language called Multi-Dimensional Expression (MDX).
Since the MDX language doesnot support drill-through command against a set (collection of tuples) an error is persisted.
For now, there is no workaround as it is a limitation of the underlying language that is generating the query.
When multiple items are selected you lose the ability to drill-down on individual metrics. To resolve you must either:
1. Select a single Item.
2. Select all items.
Hope this helps!
Please mark as Answer if this helps! Thanks, Rajasekhar. -
Hope someone can help. I have tried to find the best way to do this and can't seem to make sense of anything. I'm using an Access 2013 Database and I have a report that is based on a query. I've created a Report Criteria Form. I
need the user to be able to select multiple items in a list box and also to enter a Begin Date and End Date. I then need my report to return only the records that meet all selected criteria. It works fine with a ComboBox and 1 selection but can't
get it to work with a List Box so they can select multiple items. Any help is greatly appreciated while I still have hair left.The query should return all records.
Let's say you have the following controls on your report criteria form:
txtStart: text box, formatted as a date.
txtEnd: text box, formatted as a date.
lbxMulti: multi-select list box.
cmdOpenReport: command button used to open the report.
The text boxes are used to filter the date/time field DateField, and the list box to filter the number field SomeField.
The report to be opened is rptReport.
The On Click event procedure for the command button could look like this:
Private Sub cmdOpenReport_Click()
Dim strWhere As String
Dim strIn As String
Dim varItm As Variant
On Error GoTo ErrHandler
If Not IsNull(Me.txtStart) Then
strWhere = strWhere & " AND [DateField]>=#" & Format(Me.txtStart, "yyyy-mm-dd") & "#"
End If
If Not IsNull(Me.txtEnd) Then
strWhere = strWhere & " AND [DateField]<=#" & Format(Me.txtEnd, "yyyy-mm-dd") & "#"
End If
For Each varItm In Me.lbxMulti.ItemsSelected
strIn = strIn & "," & Me.lbxMulti.ItemData(varItm)
Next varItm
If strIn <> "" Then
' Remove initial comma
strIn = Mid(strIn, 2)
strWhere = strWhere & " AND [SomeField] In (" & strWhere & ")"
End If
If strWhere <> "" Then
' Remove initial " AND "
strWhere = Mid(strWhere, 6)
End If
DoCmd.OpenReport ReportName:="rptMyReport", View:=acViewPreview, WhereCondition:=strWhere
Exit Sub
ErrHandler:
If Err = 2501 Then
' Report cancelled - ignore
Else
MsgBox Err.Description, vbExclamation
End If
End Sub
If SomeField is a text field instead of a number field, change the line
strIn = strIn & "," & Me.lbxMulti.ItemData(varItm)
to
strIn = strIn & "," & Chr(34) & Me.lbxMulti.ItemData(varItm) & Chr(34)
Regards, Hans Vogelaar (http://www.eileenslounge.com)
Maybe you are looking for
-
How do i change my Apple ID on my iPhone?
I made a typo when I made my Apple ID on my new iPhone, and as a result can't access anything because i cant verify my account. The incorrect email doen't exsist. I have made a new Apple ID, but the incorrect one keeps coming ap and I cant access it.
-
Getting and MDX Error while refreshing a WEBI Report
Hi, I have a problem in developing/refreshing my Webi Info view report. I have my report like this. It has 15 dimensions and 3 measures. Purpose of the report is to display the purchase order details for a particular state/or all in a Country for a p
-
Maintaining Constant Sender Address in the Email of Batch Job
Hi, I have created a smartform whcih will be sent via Batch job at a partcular time .And everytime the Sender Id is "BATCH.JOB". Actually the businesswants the sender address to be XYZ.com instead of BATCH.JOB Iam using the below FM to send email. C
-
AS3.0 socket script doesn't work with flex coldfusion local server
I am having a real problem using my script in flex coldfusion project. I tried everything I can to get an answer including posting a question in two groups with no success. I created a class that goes and connect through a socket connection and it wo
-
How can I fix the failure 108 at iMovie (MacBook Pro)
Hi, Who can help me/us to solve a iMovie problem? We can´t export a movie in good quality. The system says everytime failure 108!