Group the array data as single context
Hi Everybody,
I have R3 data which consists of two fields namely CategoryID and CategoryName as follows:
CatID CatName
0001 AAA
0001 AAA
0001 AAA
0002 BBB
0002 BBB
0003 CCC
and So on... Now I want to take the CatID and map it to a context element for each catID a context element will be created dynamically.
eg:
I need Output as :-
CatID CatName
0001 AAA
0002 BBB
0003 CCC
How to do this...
Regards/Guru
Hi Kumara,
Try something like this
create a value node under this create two value attribute CatID and CatName and then use this code snippet
Collection data = new ArrayList();
int size = <size of your data>
for (int i = 0; i < size; i++) {
// instantiate the new context node element of type QuizData
IPublic<comp name>.I<value node name>Element Element =
wdContext.create<value node name>Element();
// set contained context value attributes
Element.setCatID(CatID value);
Element.setCatName(CatName value);
// add new context node element of the type value node to ArrayList
data.add(Element);
// Bind collection of context node elements to context value node
wdContext.node<value node name>().bind(data);
Do Reward points if it helps
Regards
Sid
Similar Messages
-
Grouping the Records Into One Single Record
Suggest me any function in sql or script which gives me following result.
I have a table in which there are few columns and the data looks like below. I am only concerned about 3 columns
C1 C2 C3
A B Parent
B A Child
My requirement is to club and make it as
C1 C2 C3 C4
A B Parent Child
I need to group in .. If we look into the first 2 records .. c1 of first record is equal to c2 of second record..Hi,
Here's one way to do it:
SELECT p.c1
, p.c2
, p.c3
, c.c3 AS c4
FROM table_x p
JOIN table_x c ON p.c2 = c.c1
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
Point out where the query above is producing the wrong results and explain, using specific examples, how you get those results from the given data in those places.
Always say which version of Oracle you're using.
See the forum FAQ {message:id=9360002} -
How can I remove the "Show Data in Single Pane" button from ui:table?
All I have is paginate selected in table properties.
Hi,
Thank you for explaining it so clearly. After enabling the pagination, go to the properties sheet for the table. Under the Appearance section there is a property called paginateButton. Uncheck this property and you will have pagination enabled but not the Show data in a single pane button.
Cheers
Giri -
Save the input data of single WD4A screen
Hi All,
I am interested to know, whether as in the case of the ABAP report screen where we can save the input data as variant, is it possible for us to save all the input fields into a variant in WD4A.
Thanks,
Selvakumar M.,hi,
Refer the following blogs on Variant in Wd Abap :
/people/sharad.agrawal/blog/2008/08/21/creating-and-using-variant-in-select-options-with-web-dynpro-for-abap-1
/people/sharad.agrawal/blog/2008/08/25/creating-and-using-variant-in-select-options-with-web-dynpro-for-abap-2
I hope it will help you.
Thanx.
Saurav. -
Grouping the chart data on x-axis
Hi,
I am trying to plot some points on the Plot Chart. I want to
show the Text as my x-axis, so I am using
<mx:horizontalAxis>
<mx:CategoryAxis
id="a1"
dataProvider="{expenses}"
categoryField="Month"
/>
</mx:horizontalAxis>
in my code for x-axis. Now I want to plot all y-axis items
under the same x-axis one if they are from the same 'Month' (used
for horizontal axis). If I try to do this, I am getting more values
on the x-axis that have same 'Month' name. Is there any way I can
fix this problem?
Any help would be of great help.
I am also attaching the sample example.I am sorry but the whole thing makes no sense.
What is the effect of x-axis category grouping?
How can I aggregate info by date, i.e. in the same month or same year
count should be added up?
How can I show on the x-axis (time) the aggregate values?
I just made a report with no x-axis categories, data grouped by year
summing, and the graph that came out was with axis showing months but
with only one bar value.
Are there bugs in this or I just don't understand the concepts behind it?
With time series data I would have thought the MOST OBVIOUS thing that
people would want are:
- aggregations over different time periods:
- days
- weeks
- months
- quarters (doesn't seem to be supported)
- half-years (doesn't seem to be supported)
- years
- time axis should be linear in time - just because there are no
values in March 2007 for example it should still have a bar which should
show a 0 value and it should show up (currently at best it leaves a gap)
- time axis should be relevant to the aggregation
- grouped by years, axis should show 2005, 2006, 2007, ...
- grouped by months, axis should show Jan 2005, Feb 2005, ....
- currently it doesn't
A lot of the time people just want to say give a bunch of sales info
which is a date and a number (number of units sold on that date or
whatever) and they want to be able to produce graphs of different
granularity.
Is this possible? I've been playing with this thing for weeks and can't
get it to do this reliably. -
How do I group the responses in a single cell...
Hello,
I have created a form in FormCentral. The form is broken down into several groups of checkboxes. Each group has a heading such as: 5 years old, 6 years old, 7 years old, etc...
With the form created using FormsCentral, exported as a PDF (to add calculations) and then imported back into FormsCentral the grouping remain intact in the 'View Responses' area. Example: The '6 years old' section displays the name of all of the 6 year old selected checkboxes. The '7 years old' section displays the name of all of the 7 year old selected checkboxes, etc...
Because the FormsCentral application doesn't provide a great deal of visual customization I am now trying to create my form using InDesign CC. Now, the items take up their own spreadsheet column and don't group together inside the 'View Responses' area as before. My question is: how do I group together item in the PDF so that they retain their grouping within FormsCentral as before?
My belief is that it has something to do with the naming conventions used on the various checkboxes. Yet, I cannot quite figure out the pattern.
Any help is greatly appreciated.
Thanks!
-DavidHi,
>>My question is: how do I group together item in the PDF so that they retain their grouping within FormsCentral as before?
Please try to rearrange your columns in FormsCentral View Responses table. You can select a column (or columns) and move it next to another column, then select the "T" icon which stands for "Text" formatting in Toolbar, here you can change the title of the Column or the text in each responses to a different color/background color.
Hope this helps,
Thanks,
Lucia -
Identify Different Groups in the Organization (Group the Same data together)
Version : Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
Help me in Identifying the groups(different Sectors) in the Organization
Each Group will have the same Group id if We_org_id , We_addr_id or We_org_id , Ein Matches
In the below Example Row 1 and 2 Are linked with We_org_id , We_addr_id
and row 2 and 3 are linked with We_org_id , Ein so all the three rows has the same groupid
Included Output Required.
Example
311 563 72-1500000 2
311 563 72-1500001 2
311 565 72-1500001 2
-- Table and inserts
CREATE TABLE ORG_MISMATCH
WE_ORG_ID NUMBER,
WE_ADDR_ID NUMBER,
EIN VARCHAR2(30 BYTE)
SET DEFINE OFF;
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 24303142, '31-1700059');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 56381251, '39-1675361');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 56381251, '31-1700059');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 56381251, '26-0060245');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 56381251, '72-1284709');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 121786868, '31-1700059');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 21053495, '72-1355929');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 56381251, '73-1317052');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 56381251, '56-2525845');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 56381251, '72-1355929');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 56381251, '84-1535762');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 56381251, '91-2031795');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 56381251, '84-1487943');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 56381251, '91-2035844');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 56381251, '84-1535753');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 56381251, '72-1501788');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 56381251, '30-0137738');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 563, '72-1500001');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 565, '72-1500001');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(999, 56381251, '72-1355929');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(999, 24303142, '31-1700059');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(999, 56381251, '31-1700059');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(999, 121786868, '31-1700059');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(999, 56381251, '84-1535762');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(999, 56381251, '72-1501788');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(999, 56381251, '91-2031795');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(999, 56381251, '30-0137738');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(999, 56381251, '72-1284709');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(999, 56381251, '56-2525845');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(999, 56381251, '91-2035844');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(999, 21053495, '72-1355929');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(999, 56381251, '39-1675361');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(999, 56381251, '84-1487943');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(999, 56381251, '84-1535753');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(999, 56381251, '26-0060245');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(999, 56381251, '73-1317052');
Insert into ORG_MISMATCH
(WE_ORG_ID, WE_ADDR_ID, EIN)
Values
(311, 563, '72-1500000');
COMMIT;
WE_ORG_ID
WE_ADDR_ID
EIN
GROUPID
OUTPUT REQUIRED --> Create Groupid Column
311
24303142
31-1700059
1
311
56381251
39-1675361
1
311
56381251
31-1700059
1
311
56381251
26-0060245
1
311
56381251
72-1284709
1
311
121786868
31-1700059
1
311
21053495
72-1355929
1
311
56381251
73-1317052
1
311
56381251
56-2525845
1
311
56381251
72-1355929
1
311
56381251
84-1535762
1
311
56381251
91-2031795
1
311
56381251
84-1487943
1
311
56381251
91-2035844
1
311
56381251
84-1535753
1
311
56381251
72-1501788
1
311
56381251
30-0137738
1
311
563
72-1500001
2
311
565
72-1500001
2
311
563
72-1500000
2It would be nice to know the roots. I did assume two with
start with we_addr_id in (
select min(we_addr_id)
from org_mismatch group by we_org_id
Otherwise it could taken a while ...
That below doesnt really work ..
select
WE_ORG_ID
,WE_ADDR_ID
,EIN
,dense_rank() over (partition by WE_ORG_ID order by r) grp
from (
select
WE_ORG_ID
,WE_ADDR_ID
,EIN
,connect_by_root WE_ADDR_ID r
from ORG_MISMATCH
connect by nocycle
prior we_org_id = we_org_id
and (
(prior we_addr_id = we_addr_id and prior ein < ein)
or
(prior ein = ein and prior we_addr_id < we_addr_id)
start with we_addr_id in (
select min(we_addr_id)
from org_mismatch group by we_org_id
group by
WE_ORG_ID
,WE_ADDR_ID
,EIN
,r
order by
WE_ORG_ID
,WE_ADDR_ID
,EIN
,R
WE_ORG_ID
WE_ADDR_ID
EIN
GRP
311
563
72-1500000
1
311
563
72-1500001
1
311
565
72-1500001
1
311
21053495
72-1355929
2
311
56381251
72-1355929
2
311
56381251
72-1501788
2
311
56381251
73-1317052
2
311
56381251
84-1487943
2
311
56381251
84-1535753
2
311
56381251
84-1535762
2
311
56381251
91-2031795
2
311
56381251
91-2035844
2
999
21053495
72-1355929
1
999
56381251
72-1355929
1
999
56381251
72-1501788
1
999
56381251
73-1317052
1
999
56381251
84-1487943
1
999
56381251
84-1535753
1
999
56381251
84-1535762
1
999
56381251
91-2031795
1
999
56381251
91-2035844
1
Message was edited by: chris227 comment -
How can I alter the way Array data displays?
I can trace the Array data and I get each array item
separated by a comma. How can I replace that comma with a dash so I
show "Index0 - index1 - index2" instead of "Index0, index1, index2"
Thanks!var myArray:Array = new Array("item1", "item2", "item3");
var reg:RegExp = /,/g;
var arString:String = myArray.toString();
var newString:String = arString.replace(reg, " - ");
trace(newString); -
Reflection errors in Field Data Edit Scripting context(Line Item class)
Hello Experts,
I have a script that does some validation in the Field Data Edit Scripting context of the "Line Item" class, and I have "MATERIAL" as my target. when i try throwing an Application Exception in this context I get a reflection error message box instead of the message I have passed to the Application Exception constructor.
your help will be greatly appreciated.
kind regards,One thing to be aware of is that no matter how you choose to construct your exception in field, field data edit and collection scripts, the attribute is always set to the be the taget field/collection. Have you noticed that? The script designers made things that way. What's going on here is that the exception raised in the Interprer is caught by the Script Manager and rethrown with the script target as the attribute and your raised exception as the exception.
One other thing I would point out is that scripts set to execute on the Collection Member Lifecycle event tend to be poor performers. You can get a faster result if you edit whole collection and chain the errors onto one ChainException. I can only speculate as to why, but I have seen major improvements in complex scripts if I iterate the whole collection, versus implementing a collection memeber lifecycle validate event. This is counter-intuitive, but there it is.
Finally, exceptions raised in Collection Lifecycle Events that interupt the overall save process in the prescence of parent document Lifecycle Validation events can result in partially saved data. I observed this issue a few years back and it may be resolved now. The only member lifecycle event I use is Created, to lock, default, etc.
So, for your particular problem, you may want to rethink your strategy and see if you can get things to work for you bypassing that reflection issue. If you still can't raise the exception on MATERIAL, maybe you can raise it on another field, because another advantage of this approach is that you have full control to raise any error on any field on the Line Items. -
Inputing array data through JTextFields
Dear All,
I am working on a little programme that will manipulate array variables. However, I will like the array data to be added though a GUI form made of text fields.
I can input the data as part of the code, but I want it flexible. The array is like this
class Friends {
public Friends (String name, String Address, int age) {
thename = name;
theaddress = Address;
theage = age;}
class Main {
Friends[ ] theFriends = new Friends[ ] {
How do I populate the array throug a gui
Thanksthe class name should be Friend (singular)
the variable name for the data structure should be called friends (plural)
the data structure could be an arraylist
List friends = new ArrayList();
then you add
friends.add(new Friend(nameTextfield.getText(),addressTextfield.getText(),ageTextfield.getText()));
and you would probably have some error-handling prior to the add,
to ensure the textfields have data, possibly valid data (what if 'age' = abc, instead of 21) -
StringIndexOutOfBoundsException using ARRAY data type
Hi all.
JDK 1.5.0_03, Oracle 9.2.0.4, 9i thin drivers.
I'm trying to use the ARRAY data type to submit a large amount of data to a stored procedure. Unfortunatley I'm getting an error when using the oracleCAllableStatement.setArray method. I've successfully set up my types in the database, and I can create my StructDescriptor and ArrayDescriptor objects but that's as far as I get.
Here's my code:
connection = ConnectionManager.getRawConnection(DatabaseProperties.CSA_DB);
connection.setAutoCommit(false);
ARRAY array = getDatabaseArray(timeSeriesList, date, connection);
String result = new String();
statement = (OracleCallableStatement)connection.prepareCall("{call DATA_LOAD.ARCHIVE_TIMESERIES(?, ?)");
statement.setARRAY(1, array);
statement.registerOutParameter(2, OracleTypes.VARCHAR, result);
statement.execute();
LOG.info(result);
connection.commit();
The line highlighted is where it fails. The exception is below. Unfortunatley its a Java exception rather than a Oracle one so not much help there.
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 40
at java.lang.String.charAt(Unknown Source)
at oracle.jdbc.driver.OracleSql.handleODBC(OracleSql.java:123)
at oracle.jdbc.driver.OracleSql.parse(OracleSql.java:69)
at oracle.jdbc.driver.OracleConnection.nativeSQL(OracleConnection.java:1181)
at oracle.jdbc.driver.OracleStatement.expandSqlEscapes(OracleStatement.java:6412)
at oracle.jdbc.driver.OracleStatement.parseSqlKind(OracleStatement.java:6401)
at oracle.jdbc.driver.OraclePreparedStatement.<init>(OraclePreparedStatement.java:152)
at oracle.jdbc.driver.OracleCallableStatement.<init>(OracleCallableStatement.java:77)
at oracle.jdbc.driver.OracleCallableStatement.<init>(OracleCallableStatement.java:48)
at oracle.jdbc.driver.OracleConnection.privatePrepareCall(OracleConnection.java:1134)
at oracle.jdbc.driver.OracleConnection.prepareCall(OracleConnection.java:988)
at com.db.csa.systems.csa.timeseries.DataArchivedTimeSeriesProvider.archiveTimeseriesForDate(DataArchivedTimeSeriesProvider.java:46)
at com.db.csa.experiments.TimeseriesArchiver.main(TimeseriesArchiver.java:26)
I'm now completely stuck as short of decompiling the class that's throwing the exception I have no idea what's going on.
Anyone got any ideas?
Thanks, Rob
Message was edited by:
user470390Hi,
Shouldn't:
statement = (OracleCallableStatement)connection.prepareCall("{call DATA_LOAD.ARCHIVE_TIMESERIES(?, ?)");be this:
statement = (OracleCallableStatement)connection.prepareCall("{call DATA_LOAD.ARCHIVE_TIMESERIES(?, ?)}");i.e. have a closing brace?
- Mark -
Hi my name is Dustin,
I am new to labview and teststand... I am trying to right multiple arrays of data to a single xml file. I can do this with a cluster but I have to create a variable for each of those arrays (21 arrays) and I was hoping to use the same variable for each array. Meaning I obtain my array of data write it to an xml file then replace that array in that variable with a new array and then call up my VI that writes that array to an xml file and write it to the same xml file underneath the first array without overwriting it. Attached is my VI I created to write an array to an xml file. Again I am wondering if there is a way to write multiple arrays to a single xml file at different times without overwriting the previous xml file.
Thanks
Solved!
Go to Solution.
Attachments:
Write_to_XML_File.vi 11 KBHi dlovell,
Check the attached example. I think it may help you.
Regards,
Nitz
(Give Kudos to Good Answers, Mark it as a Solution if your problem is Solved)
Attachments:
Write to XML.vi 17 KB -
The suitable LabVIEW data type correspinding to the array of structure in Visual Basic ActiveX DLL
Hi!
I need to call a VB ActiveX DLL from LabVIEW. When I run my LabVIEW code, I always meet an error as:
Error 1 occurred at Incorrect Function in T06.vi
Possible reasons:
LabVIEW: An input parameter is invalid.
I have read the VB DLL code that defines the data type. It fills data to a structure, then puts this structure to the array, and sends the array of structures to the method.
VB Code:
For I = 1 To 31
Set MyInputData(I) = New EM_nkd_DataPoint
Next I
With MyInputData(1)
.Amplitude = 8.44
.DataPointType = R_HW
.DataSource = MEASURED
.Wav
elength = 409.56
End With
With MyInputData(2)
.Amplitude = 91.60113
.DataPointType = T_SUB
.DataSource = MEASURED
.Wavelength = 409.56
End With
~~~
With MyInputData(31)
.Amplitude = 91.96825
.DataPointType = T_SUB
.DataSource = MEASURED
.Wavelength = 657.43
End With
My problem is that I can’t find a suitable kind of data type in LabVIEW which is corresponding to this case
Attached my LabVIEW code for reference.
Many thsnks.
TX
Attachments:
T07.vi 166 KBHi,
if you have a complete source code including EM_nkd_DataPoint class module, take a look inside in order to see data types for Amplitude, DataPointType, DataSource and Wavelength (probably for Amplitude and Wavelength is SINGLE). If this code is not available, maybe the author mentioned a type for T_SUB and MEASURED even if they are constants. -
Alternative way to fetch the data into single row.
we have a query
SELECT COLUMN_NAME FROM USER_TAB_COLUMNS WHERE TABLE_NAME='XXX';
This query will return the data in multiple rows.
May know the alternative way to retrieve all the multiple rows in **single row with each row as a seperate column**.Why specifically an array - and do you want the SQL projection as an array, or collect the SQL projection into an array?
E.g.
SQL> create or replace type TStrings is table of varchar2(4000);
2 /
Type created.
SQL> --// SQL projection casted into an array
SQL> select
2 cast(
3 MultiSet(
4 select column_name from all_tab_columns where table_name = 'KU$_DATAPUMP_MASTER_11_2' and owner = 'SYS'
5 )
6 as TStrings
7 ) as COLUMN_ARRAY
8 from dual
9 /
COLUMN_ARRAY
TSTRINGS('REMOTE_LINK', 'VERSION', 'JOB_VERSION', 'DB_VERSION', 'TIMEZONE', 'STATE', 'PHASE', 'GUID', 'START_TIME', 'BLOCK_SIZE', 'METADATA_BUFFER_SIZE', 'DATA_BUFFER_SIZE', 'DEGREE', 'PLATFORM', 'ABO
RT_STEP', 'INSTANCE', 'CLUSTER_OK', 'SERVICE_NAME', 'OBJECT_INT_OID', 'PROCESS_ORDER', 'DUPLICATE', 'DUMP_FILEID', 'DUMP_POSITION', 'DUMP_LENGTH', 'DUMP_ORIG_LENGTH', 'DUMP_ALLOCATION', 'COMPLETED_ROW
S', 'ERROR_COUNT', 'ELAPSED_TIME', 'OBJECT_TYPE_PATH', 'OBJECT_PATH_SEQNO', 'OBJECT_TYPE', 'IN_PROGRESS', 'OBJECT_NAME', 'OBJECT_LONG_NAME', 'OBJECT_SCHEMA', 'ORIGINAL_OBJECT_SCHEMA', 'ORIGINAL_OBJECT
_NAME', 'PARTITION_NAME', 'SUBPARTITION_NAME', 'DATAOBJ_NUM', 'FLAGS', 'PROPERTY', 'TRIGFLAG', 'CREATION_LEVEL', 'COMPLETION_TIME', 'OBJECT_TABLESPACE', 'SIZE_ESTIMATE', 'OBJECT_ROW', 'PROCESSING_STAT
E', 'PROCESSING_STATUS', 'BASE_PROCESS_ORDER', 'BASE_OBJECT_TYPE', 'BASE_OBJECT_NAME', 'BASE_OBJECT_SCHEMA', 'ANCESTOR_PROCESS_ORDER', 'DOMAIN_PROCESS_ORDER', 'PARALLELIZATION', 'UNLOAD_METHOD', 'LOAD
_METHOD', 'GRANULES', 'SCN', 'GRANTOR', 'XML_CLOB', 'PARENT_PROCESS_ORDER', 'NAME', 'VALUE_T', 'VALUE_N', 'IS_DEFAULT', 'FILE_TYPE', 'USER_DIRECTORY', 'USER_FILE_NAME', 'FILE_NAME', 'EXTEND_SIZE', 'FI
LE_MAX_SIZE', 'PROCESS_NAME', 'LAST_UPDATE', 'WORK_ITEM', 'OBJECT_NUMBER', 'COMPLETED_BYTES', 'TOTAL_BYTES', 'METADATA_IO', 'DATA_IO', 'CUMULATIVE_TIME', 'PACKET_NUMBER', 'INSTANCE_ID', 'OLD_VALUE', '
SEED', 'LAST_FILE', 'USER_NAME', 'OPERATION', 'JOB_MODE', 'QUEUE_TABNUM', 'CONTROL_QUEUE', 'STATUS_QUEUE')
SQL> --// collecting the SQL projection as an array
SQL> declare
2 colArray TStrings;
3 begin
4 select
5 column_name bulk collect into colArray
6 from all_tab_columns
7 where table_name = 'KU$_DATAPUMP_MASTER_11_2'
8 and owner = 'SYS';
9
10 --// process array
11 end;
12 /
PL/SQL procedure successfully completed.
SQL> -
How can I keep all the previous datas in the same array?
I have a problem with keeping the previous datas in my array. The problem is when the iteration loop is executed, I have one or two value(s) stored in the array. The second iteration I have either one or two values (depending on the condition) coming out, but it overwrites my previous value. I want to keep all my data in the same array as the loop is executed.PS. I have attached a simple vi along this message. If anyone can help me out with this, I really appreciate for the help.
Regards,
SonnyIf you iterate several times (N > 100) then I would suggest using the Initialize Array outside of the For Loop and then use the Replace Array Subset inside the Loop to populate the array. The reason for this is because the Build Array utility has to locate a new space in memory for the newly concatenated array -- the Replace Array Element utility uses the same memory space.
If you iterate just a few times with a small array then using the Build Array should be okay.
Chris_Mitchell
Product Development Engineer
Certified LabVIEW Architect
Maybe you are looking for
-
Authentication : SSO & WWV_CUSTOM-F_ security-group _ app_id
Hi, In my application express application a user is authenticated by measn of single sign on. So when a user goes to 'http://myhost/pls/apex/f?p=101:1' he is redirected to the SSO server and when validated is redirected to 'http://myhost/pls/apex/f?p
-
Iphone calendar sync with google?
So is this possible to get the two to sync?
-
Collecting objects in transport request
HI Experts, My development is completed and now i have to collect the objects in transport request. my development is like 1) infoobjects(new infoobjects and some are available in BIP already and some infoobjects have reference infoob
-
InDesign crashing when placing a word doc
I am trying to place a word doc into InDesign and it keeps crashing. Tried restarting. Tried breaking the doc into smaller part. Still not working.
-
MS$ views in 12 c enterprise manger.
Hi All, Please suggest me how to create MS$ views in 12c OMS? What is the use of MS$ views? I need to read some dictionary view from targets database in OMS. How can I achive this one? Thanks, Ganesh