Comma Separated Checkboxes.... select all?
How do you set up a button to select all of the check boxes created by the widget. I know how to do this using a javascript with normal html checkboxes but the widget type apparently doesn't have a checked field? What am i missing?
How do you set up a button to select all of the check boxes created by the widget. I know how to do this using a javascript with normal html checkboxes but the widget type apparently doesn't have a checked field? What am i missing?
Similar Messages
-
Datagrid Checkbox - Select All Headerrenderer
i have a datagrid that utilizes an itemrenderer and headerrender for the same column to have checkboxes and also a select all checkbox in the column header...as such:
<mx:DataGrid width="100%" height="100%" id="dg" dataProvider="{employees}" sortableColumns="false"
draggableColumns="false">
<mx:columns>
<mx:DataGridColumn width="30" textAlign="center">
<mx:headerRenderer>
<mx:Component>
<mx:CheckBox/>
</mx:Component>
</mx:headerRenderer>
<mx:itemRenderer>
<mx:Component>
<mx:CheckBox selected="{(data.@isSelected == 'true')?true:false}" click="{data.@isSelected = (data.@isSelected != 'true') ? 'true' : 'false';}"/>
</mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
<mx:DataGridColumn headerText="Item ID" dataField="@id" width="60"/>
<mx:DataGridColumn headerText="Date" dataField="@date" width="85"/>
</mx:columns>
</mx:DataGrid>
my XMLList is as follows (that populates the datagrid):
<mx:XMLList id="employees">
<request id="720" date="Aug 21 09" isSelected="false"/>
<request id="721" date="Aug 21 09" isSelected="false"/>
<request id="722" date="Aug 21 09" isSelected="false"/>
<request id="723" date="Aug 21 09" isSelected="false"/>
</mx:XMLList>
Now, if I select a rows checkbox, it works fine and updates the XMLList with the new value of isSelected for that row.
My question is this: how do I make it so that clicking on the checkbox inside the headerrenderer selects all the checkboxes in the itemrenderer? I know that Flex doesn't build rows that are not in view yet, so what needs to happen here in order to a) select the itemrenderer checkboxes and b) update the related XMLList so all isSelected update to either true/false.
Thanks!Thanks for putting me on the right track for this...quick question:
My arrayCollection looks like this:
[Bindable]
private var myAC:ArrayCollection = new ArrayCollection([
{id:1, date: 'Bob Jones', isSelected: true},
{id:2, date: 'Jane Smith', isSelected: true},
{id:3, date: 'Doug Johnson', isSelected: false},
{id:4, date: 'Bob Jones', isSelected: true},
{id:5, date: 'Jane Smith', isSelected: true},
{id:6, date: 'Doug Johnson', isSelected: false},
{id:7, date: 'Bob Jones', isSelected: true},
{id:8, date: 'Jane Smith', isSelected: true},
{id:9, date: 'Doug Johnson', isSelected: false},
And the datagrid displays this correctly, so no problems there.
Now, I have a function that gets called when the checkbox in the header is selected, but am stuck here as to how to update all of the isSelected values in myAC to true.
This is what I tried with no success...any thoughts?
public function checkAll():void {
for(var i:int=0; i < myAC.length; i++){
myAC.itemUpdated(myAC.getItemAt(i).isSelected, false, true);
Thanks! -
MODEL clause to process a comma separated string
Hi,
I'm trying to parse a comma separated string using SQL so that it will return the parsed values as rows;
eg. 'ABC,DEF GHI,JKL' would return 3 rows;
'ABC'
'DEF GHI'
'JKL'
I'm thinking that I could possibily use the MODEL clause combined with REGULAR expressions to solve this as I've already got a bit of SQL which does the opposite ie. turning the rows into 1 comma separated string;
select id, substr( concat_string, 2 ) as string
from (select 1 id, 'ABC' string from dual union all select 1, 'DEF GHI' from dual union all select 1, 'JKL' from dual)
model
return updated rows
partition by ( id )
dimension by ( row_number() over (partition by id order by string) as position )
measures ( cast(string as varchar2(4000) ) as concat_string )
rules
upsert
iterate( 1000 )
until ( presentv(concat_string[iteration_number+2],1,0) = 0 )
( concat_string[0] = concat_string[0] || ',' || concat_string[iteration_number+1] )
order by id;
Can anyone give me some pointers how to parse the comma separated string using regexp and create as many rows as needed using the MODEL clause?Yes, you could do it without using ITERATE, but FOR ... INCREMENT is pretty much same loop. Couple of improvements:
a) there is no need for CHAINE measure
b) there is no need for CASE in RULES clause
c) NVL can be applies on measures level
with t as (select 1 id, 'ABC,DEF GHI,JKL,DEF GHI,JKL,DEF GHI,JKL,DEF,GHI,JKL' string from dual
union all
select 2,'MNO' string from dual
union all
select 3,null string from dual
SELECT id,
string
FROM T
MODEL
RETURN UPDATED ROWS
partition by (id)
DIMENSION BY (0 POSITION)
MEASURES(
string,
NVL(LENGTH(REGEXP_REPLACE(string,'[^,]+','')),0)+1 NB_MOT
RULES
string[FOR POSITION FROM 1 TO NB_MOT[0] INCREMENT 1] = REGEXP_SUBSTR(string[0],'[^,]+',1,CV(POSITION))
SQL> with t as (select 1 id, 'ABC,DEF GHI,JKL,DEF GHI,JKL,DEF GHI,JKL,DEF,GHI,JKL' string from dual
2 union all
3 select 2,'MNO' string from dual
4 union all
5 select 3,null string from dual
6 )
7 SELECT id,
8 string
9 FROM T
10 MODEL
11 RETURN UPDATED ROWS
12 partition by (id)
13 DIMENSION BY (0 POSITION)
14 MEASURES(
15 string,
16 NVL(LENGTH(REGEXP_REPLACE(string,'[^,]+','')),0)+1 NB_MOT
17 )
18 RULES
19 (
20 string[FOR POSITION FROM 1 TO NB_MOT[0] INCREMENT 1] = REGEXP_SUBSTR(string[0],'[^,]+',1,CV(POSITION))
21 )
22 /
ID STRING
1 ABC
1 DEF GHI
1 JKL
1 DEF GHI
1 JKL
1 DEF GHI
1 JKL
1 DEF
1 GHI
1 JKL
2 MNO
ID STRING
3
12 rows selected.
SQL> SY. -
How can i get all these values in single row with comma separated?
I have a table "abxx" with column "absg" Number(3)
which is having following rows
absg
1
3
56
232
43
436
23
677
545
367
xxxxxx No of rows
How can i get all these values in single row with comma separated?
Like
output_absg
1,3,56,232,43,436,23,677,545,367,..,..,...............
Can you send the query Plz!These all will do the same
create or replace type string_agg_type as object
2 (
3 total varchar2(4000),
4
5 static function
6 ODCIAggregateInitialize(sctx IN OUT string_agg_type )
7 return number,
8
9 member function
10 ODCIAggregateIterate(self IN OUT string_agg_type ,
11 value IN varchar2 )
12 return number,
13
14 member function
15 ODCIAggregateTerminate(self IN string_agg_type,
16 returnValue OUT varchar2,
17 flags IN number)
18 return number,
19
20 member function
21 ODCIAggregateMerge(self IN OUT string_agg_type,
22 ctx2 IN string_agg_type)
23 return number
24 );
25 /
create or replace type body string_agg_type
2 is
3
4 static function ODCIAggregateInitialize(sctx IN OUT string_agg_type)
5 return number
6 is
7 begin
8 sctx := string_agg_type( null );
9 return ODCIConst.Success;
10 end;
11
12 member function ODCIAggregateIterate(self IN OUT string_agg_type,
13 value IN varchar2 )
14 return number
15 is
16 begin
17 self.total := self.total || ',' || value;
18 return ODCIConst.Success;
19 end;
20
21 member function ODCIAggregateTerminate(self IN string_agg_type,
22 returnValue OUT varchar2,
23 flags IN number)
24 return number
25 is
26 begin
27 returnValue := ltrim(self.total,',');
28 return ODCIConst.Success;
29 end;
30
31 member function ODCIAggregateMerge(self IN OUT string_agg_type,
32 ctx2 IN string_agg_type)
33 return number
34 is
35 begin
36 self.total := self.total || ctx2.total;
37 return ODCIConst.Success;
38 end;
39
40
41 end;
42 /
Type body created.
[email protected]>
[email protected]> CREATE or replace
2 FUNCTION stragg(input varchar2 )
3 RETURN varchar2
4 PARALLEL_ENABLE AGGREGATE USING string_agg_type;
5 /
CREATE OR REPLACE FUNCTION get_employees (p_deptno in emp.deptno%TYPE)
RETURN VARCHAR2
IS
l_text VARCHAR2(32767) := NULL;
BEGIN
FOR cur_rec IN (SELECT ename FROM emp WHERE deptno = p_deptno) LOOP
l_text := l_text || ',' || cur_rec.ename;
END LOOP;
RETURN LTRIM(l_text, ',');
END;
SHOW ERRORS
The function can then be incorporated into a query as follows.
COLUMN employees FORMAT A50
SELECT deptno,
get_employees(deptno) AS employees
FROM emp
GROUP by deptno;
###########################################3
SELECT SUBSTR(STR,2) FROM
(SELECT SYS_CONNECT_BY_PATH(n,',')
STR ,LENGTH(SYS_CONNECT_BY_PATH(n,',')) LN
FROM
SELECT N,rownum rn from t )
CONNECT BY rn = PRIOR RN+1
ORDER BY LN desc )
WHERE ROWNUM=1
declare
str varchar2(32767);
begin
for i in (select sal from emp) loop
str:= str || i.sal ||',' ;
end loop;
dbms_output.put_line(str);
end;
COLUMN employees FORMAT A50
SELECT e.deptno,
get_employees(e.deptno) AS employees
FROM (SELECT DISTINCT deptno
FROM emp) e;
DEPTNO EMPLOYEES
10 CLARK,KING,MILLER
20 SMITH,JONES,SCOTT,ADAMS,FORD
30 ALLEN,WARD,MARTIN,BLAKE,TURNER,JAMES
CREATE OR REPLACE FUNCTION concatenate_list (p_cursor IN SYS_REFCURSOR)
RETURN VARCHAR2
IS
l_return VARCHAR2(32767);
l_temp VARCHAR2(32767);
BEGIN
LOOP
FETCH p_cursor
INTO l_temp;
EXIT WHEN p_cursor%NOTFOUND;
l_return := l_return || ',' || l_temp;
END LOOP;
RETURN LTRIM(l_return, ',');
END;
COLUMN employees FORMAT A50
SELECT e1.deptno,
concatenate_list(CURSOR(SELECT e2.ename FROM emp e2 WHERE e2.deptno = e1.deptno)) employees
FROM emp e1
GROUP BY e1.deptno;
DEPTNO EMPLOYEES
10 CLARK,KING,MILLER
20 SMITH,JONES,SCOTT,ADAMS,FORD
30 ALLEN,WARD,MARTIN,BLAKE,TURNER,JAMES
CREATE OR REPLACE TYPE t_string_agg AS OBJECT
g_string VARCHAR2(32767),
STATIC FUNCTION ODCIAggregateInitialize(sctx IN OUT t_string_agg)
RETURN NUMBER,
MEMBER FUNCTION ODCIAggregateIterate(self IN OUT t_string_agg,
value IN VARCHAR2 )
RETURN NUMBER,
MEMBER FUNCTION ODCIAggregateTerminate(self IN t_string_agg,
returnValue OUT VARCHAR2,
flags IN NUMBER)
RETURN NUMBER,
MEMBER FUNCTION ODCIAggregateMerge(self IN OUT t_string_agg,
ctx2 IN t_string_agg)
RETURN NUMBER
SHOW ERRORS
CREATE OR REPLACE TYPE BODY t_string_agg IS
STATIC FUNCTION ODCIAggregateInitialize(sctx IN OUT t_string_agg)
RETURN NUMBER IS
BEGIN
sctx := t_string_agg(NULL);
RETURN ODCIConst.Success;
END;
MEMBER FUNCTION ODCIAggregateIterate(self IN OUT t_string_agg,
value IN VARCHAR2 )
RETURN NUMBER IS
BEGIN
SELF.g_string := self.g_string || ',' || value;
RETURN ODCIConst.Success;
END;
MEMBER FUNCTION ODCIAggregateTerminate(self IN t_string_agg,
returnValue OUT VARCHAR2,
flags IN NUMBER)
RETURN NUMBER IS
BEGIN
returnValue := RTRIM(LTRIM(SELF.g_string, ','), ',');
RETURN ODCIConst.Success;
END;
MEMBER FUNCTION ODCIAggregateMerge(self IN OUT t_string_agg,
ctx2 IN t_string_agg)
RETURN NUMBER IS
BEGIN
SELF.g_string := SELF.g_string || ',' || ctx2.g_string;
RETURN ODCIConst.Success;
END;
END;
SHOW ERRORS
CREATE OR REPLACE FUNCTION string_agg (p_input VARCHAR2)
RETURN VARCHAR2
PARALLEL_ENABLE AGGREGATE USING t_string_agg;
/ -
SQL Select with comma separated column value
Hi All
ASP VBScript
I have a DB column named allowed_contracts that stores a
comma separated
list of of values e.g. 3, 5, 19, 44, 52
I need to select records based on a variable called
varContractList that
contains another comma separated list i.e. 5, 44, 52
I only want to select records where the allowed_contracts
column contains
each of the varContractList,
For example only return records that have 5 or 44 or 52 in
thier
allowed_contracts column.
My brain is now in a persistant vegetive state trying to work
this out so
any ideas would be much appreciated.
Regards
BrenHi Jules
Cheers for this.
I was trying to be a bit cute (lazy even) by storing the
project ID's as a
comma delimted string but as we see it doesn't always pay to
be lazy. Serves
me right for destroying brain cells by drinking the Welshpool
beer the other
week whilst visiting mates down that neck of the woods. :-))
Time for another table me thinks.
Rgds
Bren
"Julian Roberts" <[email protected]> wrote in message
news:e7i13f$mup$[email protected]..
> Fatal flaw here Bren. In a relational database, one
shouldn't really store
> foreign keys as a comma delimted string. One should have
a 3 table
> structure. eg
>
> Products:
> ProductID
> Product
>
> Categories:
> CategoryID
> Category
>
> ProductCategories:
> ProductID
> CategoryID
>
> So, from the table ProductCategories, a product can
belong to many
> categories. When doing a front end search to find
products in multiple
> categories, products can be shown thus:
>
> select * from Products where ProductID in (select
ProductID from
> ProductCategories where CategoryID in (5,44))
>
> --
> Jules
>
http://www.charon.co.uk/charoncart
> Charon Cart 3
> Shopping Cart Extension for Dreamweaver MX/MX 2004
>
>
>
>
> -
To select all the checkbox using valuechangelistner
Hi ,
I have a jsp where the check boxes are populated dynamically.
i have one more check box to select all the check boxes. (like Select all)
i have written a method in a bean and i have bound that as value changelistner. when i check values in console the check box value is true but the same is not reflected in UI and also when i click delete button the value of the checkbox will be false..
The value change listner methid is "toggleCheck"
Please do needfull in this regard..
here is my code....
Bean code :
package com.dyna;
import java.util.ArrayList;
import java.util.List;
import javax.faces.component.UIData;
import javax.faces.component.UISelectBoolean;
import javax.faces.event.ValueChangeEvent;
* @author Bharathk
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
public class Output {
static ArrayList list = new ArrayList();
private UIData table;
private UISelectBoolean sb=null ;
private UISelectBoolean sbAll=null;
static int count = 0;
* @return Returns the list.
public ArrayList getList() {
return list;
* @param list The list to set.
public void setList(ArrayList list) {
Output.list = list;
* @return Returns the sb.
public UISelectBoolean getSb() {
return sb;
* @param sb The sb to set.
public void setSb(UISelectBoolean sb) {
this.sb = sb;
* @return Returns the sbAll.
public UISelectBoolean getSbAll() {
return sbAll;
* @param sbAll The sbAll to set.
public void setSbAll(UISelectBoolean sbAll) {
this.sbAll = sbAll;
* @return Returns the table.
public UIData getTable() {
return table;
* @param table The table to set.
public void setTable(UIData table) {
this.table = table;
public List add(Input obj) {
Input in = new Input();
in.setId(obj.getId());
in.setName(obj.getName());
list.add(in);
return list;
public List add(Input obj, int index) {
Input in = (Input)list.get(index);
in.setId(obj.getId());
in.setName(obj.getName());
list.set(index, in);
return list;
public void deleteobj(Output obj){
int Rc = table.getRowCount();
System.out.println("THIS IS IN DELETE");
for (int i=0; i<Rc; i++) {
table.setRowIndex(i);
System.out.println("FROM DELETE------" +obj.sb.isSelected());
if(obj.sb.isSelected()) {
System.out.println("FROM DELETE");
list.remove(i);
public void toggleCheck(ValueChangeEvent event){
int rc = table.getRowCount();
System.out.println("THIS IS IN TOGGLE");
if (sbAll.isSelected()){
System.out.println("THIS IS IN TOGGLE--IN IF");
for (int i = 0; i< rc;i++) {
table.setRowIndex(i);
// table.setRows(rc);
sb.setSelected(true);
System.out.println("THIS IS IN TOGGLE--CHECK--- "+this.sb.isSelected());
else {
System.out.println("THIS IS IN TOGGLE--In ELSE");
for (int i = 0; i< rc;i++) {
table.setRowIndex(i);
sb.setSelected(false);
/*for (int i = 0; i< rc;i++) {
table.setRowIndex(i);
System.out.println("THIS IS IN TOGGLE--CHECK--- "+this.sb.isSelected());
// FacesContext.getCurrentInstance( ).renderResponse( );
"Here is my jsp code........."
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://www.ibm.com/jsf/html_extended" prefix="hx"%>
<%@page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1" session="false"%>
<portlet:defineObjects />
<LINK rel="stylesheet" type="text/css"
href='<%= renderResponse.encodeURL(renderRequest.getContextPath() + "/theme/stylesheet.css") %>'
title="Style">
<f:view>
<hx:scriptCollector id="scriptCollector1">
<%-- jsf:pagecode language="java" location="/JavaSource/pagecode/Sample.java" --%><%-- /jsf:pagecode --%>
<P>Place content here.</P>
<h:form styleClass="form" id="form1">
<TABLE>
<TBODY>
<TR>
<TD align="left">Id:</TD>
<TD style="width:5px"> </TD>
<TD><h:inputText id="text1" value="#{inp.id}"
styleClass="inputText">
</h:inputText></TD>
</TR>
<TR>
<TD align="left">Name:</TD>
<TD style="width:5px"> </TD>
<TD><h:inputText id="text2" value="#{inp.name}"
styleClass="inputText">
</h:inputText></TD>
</TR>
</TBODY>
</TABLE>
<h:messages styleClass="messages" id="messages1"></h:messages>
<BR>
<hx:commandExButton id="button1" styleClass="commandExButton"
type="submit" value="Submit" action="#{pc_Sample.doButton1Action}">
</hx:commandExButton>
<h:selectBooleanCheckbox styleClass="selectBooleanCheckbox"
id="checkbox1" binding="#{op.sbAll}"
valueChangeListner="#{pc_Sample.op.toggleCheck}" onCleck="this.form.submit();"></h:selectBooleanCheckbox>
<BR>
<hx:commandExButton type="submit" value="Delete"
styleClass="commandExButton" id="button2" action="#{pc_Sample.doButton2Action}"></hx:commandExButton>
<BR>
<BR>
<h:dataTable id="table1" value="#{op.list}" binding="#{op.table}" var="varlist" styleClass="dataTable" headerClass="headerClass"
footerClass="footerClass" rowClasses="rowClass1"
columnClasses="columnClass1" border="0" cellpadding="2"
cellspacing="0">
<h:column id="column4">
<f:facet name="header">
<h:outputText styleClass="outputText" value="Select" id="text13"></h:outputText>
</f:facet>
<h:selectBooleanCheckbox styleClass="selectBooleanCheckbox"
id="checkbox12" binding="#{op.sb}" ></h:selectBooleanCheckbox>
</h:column>
<h:column id="column3">
<f:facet name="header">
<h:outputText styleClass="outputText" value="SlNo" id="text10"></h:outputText>
</f:facet>
<h:commandLink styleClass="commandLink" id="link1" action="#{pc_Sample.doLink1Action}">
<h:outputText id="text20"
value="#{op.table.rowIndex+1}"
styleClass="outputText">
</h:outputText>
<f:param name="Id" value="#{varlist.id}"></f:param>
<f:param name="Name" value="#{varlist.name}"></f:param>
</h:commandLink>
</h:column>
<h:column id="column1">
<f:facet name="header">
<h:outputText styleClass="outputText" value="Id" id="text31"></h:outputText>
</f:facet>
<h:outputText id="text4" value="#{varlist.id}"
styleClass="outputText">
</h:outputText>
</h:column>
<h:column id="column2">
<f:facet name="header">
<h:outputText styleClass="outputText" value="Name" id="text5"></h:outputText>
</f:facet>
<h:outputText id="text6" value="#{varlist.name}"
styleClass="outputText">
</h:outputText>
</h:column>
</h:dataTable>
</h:form>
</hx:scriptCollector>
</f:view>http://forums.ni.com/ni/board/message?board.id=60&message.id=8565&query.id=128811#M8565
-
When I import a text file(comma separated) into a numbers spreadsheet all the data goes into one column instead of individual columns based on the comma separators. Excel allows you to do this during the import.. Is there a way to accomplish this in numbers without opening it in Excel and the importing into Numbers.
Your user info says iPad. This is the OS X Numbers forum. Assuming you are using OS X… Be sure the file is named with a .csv suffix.
(I don't have an iPad, so I don't know the iOS answer.) -
Select all checkbox in ALV tree
Hi There,
I have developed a report using ALV tree with 3 level nodes. I have introduced checkbox in one of the column in the node..
By this I can select the checkbox individually. I have got the requirement to select all the checkboxes simultaneously using a button. I tried several things but no help..
Please help me with this..I have used class 'cl_gui_alv_tree' for designing the Tree.Hi,
You need to add a button to the toolbar manually, when the button is pressed loop at all the nodes that have a checkbox and update the checkbox field.
Something like....
data: go_tree1 type ref to cl_gui_alv_tree,
go_toolbar type ref to cl_gui_toolbar
* Add buttons to the toolbar
call method go_tree1->get_toolbar_object
importing
er_toolbar = go_toolbar.
check go_toolbar is not initial.
call method go_toolbar->add_button
exporting
fcode = 'SELALL'
icon = icon_select_all
butn_type = cntb_btype_button
text = ''
quickinfo = 'Select All'.
* Define an event handler
data: go_receiver type ref to lcl_event_receiver.
class lcl_event_receiver definition.
public section.
methods:
function_selected for event function_selected of cl_gui_toolbar
importing fcode.
endclass.
class lcl_event_receiver implementation.
method function_selected.
case fcode.
when 'SELALL'.
perform select_all.
endmethod.
* Register the event
create object go_receiver.
set handler go_receiver->function_selected for go_toolbar.
form select_all.
data: lv_field type lvc_fname.
* Update the checkbox on each node of the ALV tree
lv_field = 'CHECK'. "Whatever you've called the checkbox
call method go_tree1->change_item
exporting
i_node_key = node_key "<-- loop at the nodes and repeat for each one with a checkbox
i_fieldname = lv_field
i_data = ' '
exceptions
node_not_found = 1
others = 2.
call method go_tree1->frontend_update. "call this onces all updates have been made
endform.
Regards,
Darren -
How to set selected all checkboxes in all dataTable's rows?
Hi there,
I'm trying to perform this simple task: having a dataTable with a column containing checkboxes, how can I allow (with a button, a "super" checkbox or so) to simultaneously set selected all checkboxes in all rows?
And - is it possible to do so without calling the submit of the page?
Thanks to everyone!Yes, the paging for <h:dataTable> works pretty good, it manages the task through four methods created in the java code -- DataTable1_firstPageAction(), DataTable1_previousPageAction(), DataTable1_nextPageAction(), DataTable1_lastPageAction() -- without adding any javascript in the jsp page.
Maybe I could test if a java script similar to the <ui:table>'s one fit also the dataTable...
thanks -
The selected file does not appear to be a valid comma separated values (csv) file or a valid tab delimited file. Choose a different file.
I guess your question is, "what's wrong with the file?"
You're going to have to figure that out yourself, as we cannot see the file.
Importing into Address book requires either a tab-delimited or a comma-delimited file. You can export out of most spreadsheets into a csv file. However, you need to make sure you clean up the file first. If you have a field that has commas in the field, they will create new fields at the comma. So, some lines will have more fields than the others, causing issues like the error you saw. -
Revision: 15983
Revision: 15983
Author: [email protected]
Date: 2010-05-10 04:47:46 -0700 (Mon, 10 May 2010)
Log Message:
Updating VideoQoSPluginMetadataSynthesizer to create comma separated string values for all of the available keys.
Modified Paths:
osmf/trunk/apps/samples/plugins/VideoQoSPlugin/src/org/osmf/qos/VideoQoSPluginMetadataSyn thesizer.asRob:
"but the sad thing is, that managers will most likely respond with a "This used to be fast in MSSQL, but now it isn't any more in Oracle. Oracle is so slow ...""
On the bright side, it sounds like most of the database calls are implemented as stored procedures, so there is an opportunity to do it right (in Oracle terms) in the stored procedures.
I did a similar conversion a while back, converting bad SQLServer procedures to good Oracle procedures. Everyone said "Oracle is much faster that SQLServer"
John -
End User SPAM Quarantine checkbox to select all messages not working
We are running SPAM Quarantine on M670 running 8.1.0-476 and accessing with Internet Explorer 9.0. After logging into the SPAM Quarantine there is a top row check box that normally we can check to select all messages. This stopped working in IE for us, any idea what setting/option we could adjust to enable it again?
In Chrome 29, FireFox 23 it works as expected.
JasonI think this is a know bug in 8.0, see below:
CSCuj42166
Selecting all messages in ISQ at once not possible with IE 8.0/7.0/6.0
Symptom:
When accessing the spam quarantine on ESA using IE 8.0/7.0/6.0 and trying to select all messages at once, an error occurs and no message is checked. At the bottom of the browser we see an "Error on page"
Conditions:
ESA running 8.0.0-671 and Internet Explorer 8.0 (same valid for 6.0 and 7.0)
Workaround:
Using a different browser to access the Centralized Spam Quarantine like for example Safari, Mozilla Firefox, Google Chrome, Internet Explorer 9
Further Problem Description:
Details
Known Affected Releases: (2)
8.0.0(Venetian)-671 | 8.5.0(FourQueens)-0
Known Fixed Releases: 0
Release Pending
Product: Cisco Email Security Appliance -
How to get distinct values in a comma separated list of email addresses?
Hi Friends,
I have a cursor which fetches email address along with some other columns. More than one record can have same email address.
Ex
CURSOR C1 IS
SELECT 1 Buyer,'XX123' PO, '[email protected]' Buyer_email from dual
UNION ALL
SELECT 2 Buyer,'XX223' PO, '[email protected]' Buyer_email from dual
UNION ALL
SELECT 1 Buyer,'XX124' PO, '[email protected]' Buyer_email from dual
UNION ALL
SELECT 2 Buyer,'XX224' PO, '[email protected]' Buyer_email from dualNow, i open the cursor write the contents into a file and also form a comma separated list of buyer emails as follows
for cur_rec in c1
LOOP
--write contents into a file
l_buyer_email_list := l_buyer_email_list||cur_rec.buyer_email||',';
END LOOP
l_buyer_email_list := RTRIM(l_buyer_email_list,',');
The buyer email list will be like: '[email protected],[email protected],[email protected],[email protected]'
Inorder to avoid duplicate email address in the list, i can store each of this value is a table type variable and compare in each iteration whether the email already exist in the list or not.
Is there any other simpler way to achieve this?
Regards,
Sreekanth Munagala.If you are using oracle version 11, you can use listagg function
with c as
(SELECT 1 Buyer,'XX123' PO, '[email protected]' Buyer_email from dual
UNION ALL
SELECT 2 Buyer,'XX223' PO, '[email protected]' Buyer_email from dual
UNION ALL
SELECT 1 Buyer,'XX124' PO, '[email protected]' Buyer_email from dual
UNION ALL
SELECT 2 Buyer,'XX224' PO, '[email protected]' Buyer_email from dual
select buyer, listagg(buyer_email,',') within group (order by buyer)
from c
group by buyer
order by buyerFor prior versions
{cod}
with c as
(SELECT 1 Buyer,'XX123' PO, '[email protected]' Buyer_email from dual
UNION ALL
SELECT 2 Buyer,'XX223' PO, '[email protected]' Buyer_email from dual
UNION ALL
SELECT 1 Buyer,'XX124' PO, '[email protected]' Buyer_email from dual
UNION ALL
SELECT 2 Buyer,'XX224' PO, '[email protected]' Buyer_email from dual
select buyer, rtrim(xmlagg(xmlelement(e,buyer_email||',').extract('//text()')),',')
from c
group by buyer
order by buyer -
How to get the values entered in parameter as comma separated
Hi friends,
I need to capture the values entered in the parameter which is entered as comma separated in the srs window o
for ex in the parameter : 1234,4586,356,.....
now i need to capture all the values to select in my list of
employee numbers as
employee number in(1234,4586,356...)
how to do this
pls helpPlease refer to SQL and PL/SQL FAQ
Sybrand Bakker
Senior Oracle DBA -
SSRS Report : Comma Separated Hyperlinks
Hello,
I want to display Comma Separated Hyperlinks in SSRS Report. I am not sure what should I change here to get this working.
Below is the flow of data.
1. Extracting value from the SharePoint List using SSIS Package Script component and filling data in SQL Table.
I have used this Table and created below view to stuff all these three links together.
SELECT ID, STUFF
((SELECT ', ' + BCM.BCMProgramDocument
FROM BCMProgramDocumentation BCM
WHERE BCM.Risk = R.ID FOR XML PATH('')), 1, 1, '') AS BCMDoc
FROM Risk R
which gives me below output, not sure why.
"<a href='http://yahoo.com'>YAHOO</a>", "<a href='http://gmail.com'>GMAIL</a>", "<a href='http://hotmail.com'>HOTMAIL</a>"
Then in the SSRS Reporting, I have placed a PlaceHolder with HTML View selected and gave above field value in the expression.
They are not appearing as comma separated Hyperlinks.
Can anyone please help me on this ? What are the changes required in above steps ?
Thank you,
Mittal.Hi Mittal,
According to your description, you want to show three links together with comma separated from BCMProgramDocument column to a report table. After testing the issue in my environment, we can refer to the following steps to achieve your requirement:
Use the following query create a dataset:
select * from BCMProgramDocumentation
Click Fields in the left pane, add a Calculated Field as below:
Field Name: ID2 Field Source: 1
Drag a table to design surface, then insert the expression below in the detail row:
=JOIN(lookupset(Fields!ID2.Value,Fields!ID2.Value,Fields!BCMProgramDocument.Value,"DataSet1"),",")
Right-click the Placeholder to open Placeholder Properties, then select ‘HTML-Interpret HTML tags as styles’ as Markup type.
The following screenshot is for your reference:
If there are any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support
Maybe you are looking for
-
I have created a Web Service Proxy project in Jdev using BI Publisher 11.1.1.5.0 WSDL (ReportService). Generated ReportService_Service method uses following QName to get the port: namespaceURI = "http://xmlns.oracle.com/oxp/service/v2" localPart = "*
-
I upgraged my macbook 2.4 GHz ram to 4g and now lower slot shows empty
I have recently upgraged my ram to 4g and now the lower memory slot always shows empty. Any suggestions?
-
'Scheduler' link in Oracle Database Control
Hi all, In Oracle Database Control, I cannot see link to "Scheduler" under Administration tab page as described in the documentation or a link to "Manage Current Backups" How can I obtain those links? Please note that I'm speaking about Oracle EM Dat
-
Recently purchased the 3GS and after some other teething problems (where the letter 'o' would not type) were fixed with a full system restore, now occasionally I get the situation where when I hover my thumb over the screen, it all shakes, and random
-
IPAD MINI WAS TAKEN & APPLE PASSWORD WAS CHANGED
!!! BOYFRIEND HAS TAKEN MY IPAD MINI AND CHANGED MY APPLE ID PASSWORD!!! IS THERE ANY WAY THAT SOMEONE CAN GUIDE ME THROUGH WHAT I NEED TO DO??