Read force from chatillon
hi everybody
I am using chatillon/ dfs to measure force ( tension), I have succeeded to conect with device and get data
I used n, x, X commands to read force and distance as I read in device manual
the problem is when I use n command , it give me two readings of distance then force like that :-
o.5 in
0.6 in
0.3 lb
sometime give me 3 readings of distance and then force like that:-
o.5 in
0.6 in
0.7 in
0.3 lb
sometime the data is cut in the middle
that mean n command did not give me organize readings , I can not using it to get max , min data
when I used X command to get only force readings, there was delay , I get 18 reading per second while n command give me more than 40 reading per second that what I need
is there any one have experiance to work with this device or have information about chatillon commands
thanks
Suhad
Hello suhad,
We do not have any drivers that support chatillon but you should be able to use VISA commands to do basic opperations. Here is a similar question: http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/how-can-use-chatillon/m-p/1561700?requireLogi...
Sam S
Applications Engineer
National Instruments
Similar Messages
-
my windows(8.1 64bit) partition is read only from the mac(yosemite) side of things. Anybody have a clue on how to fix this? Also, slightly frustrating as well, windows crashes every time I attempt to open a file from the mac partition.
All Office applications will also try to open a temporary work file in the same location as the source file. This implies the source file directory also needs to be writable for this temporary file. Since the default HFS+ driver provides only read-only access, such temporary files will fail to open, and will cause the application to fail.
As a test copy the file you want to edit, say an Excel spreadsheet from the OSX file system to the C: drive on the Windows side and try to open it. If you look in this directory, you should see two files, the source and a temporary file. You may have to force the temporary file to be opened on a read-write file system, by manipulating the folder for temporary files. -
Can the aTV read files from an iTunes library on my nas drive without my computer being on
I have my itunes library on a My Book Live nas drive that contains all of my digital movies and TV shows. I want to be able to watch my movies from the library without a computer running. I understand that Apple has chosen to chain you to the computer and your itunes account through Home Sharing but I can not see why they couldn't allow you to access a nas drive without a computer running because your aTV is tied to your itunes account also so why do they force you to run a computer 24/7 365 in order to access the files you have bought and paid for.
I have a love/hate for Apple because I love the quality of the products they make but I hate how they make all of the digital files you purchase only accessible through a computer running Home Sharing even though the files are not stored on the computer.
I have tried several things to get this to work without a computer but no luck. The only way I have found to be able to do this is to Jailbreak your aTV and install 3rd party software (which I don't want to do) that will allow you to by pass the computer and Home Sharing (which is dumber than ****) because that is all I want to do is eliminate the need of a computer running wasting electricity (I thought Apple was supposed to be an enviro friendly company, guess not). I am not trying to steal or give someone else my purchased movies and using the aTV and an internet connection they could still be able to tie your media to your itunes account so I just don't get there thinking, or lack of thinking I should say.
Is their a way to do this without Jailbreaking or modifying your aTV?
If not is Apple ever going to wake up and allow there customers to actually USE the media they purchase from them without Home Sharing and a computer running?_Skull wrote:
Can the aTV read files from an iTunes library on my nas drive without my computer being on
no it can't. you need itunes open and running -
How to stop gpupdate /force from asking press Y / N to restart computer in cmd?
Each time after gpupdate /force finish to refresh the policy in cmd it popup a message press Y / N to restart computer after pressed Y it popup a dialogbox press O.K to restart PC.
How to prevent gpudate /force from asking press Y / N and then dialogbox popup asking for restart pc?"gpupdate /force /wait:0"
Martin
Mal ein
GUTES Buch über GPOs lesen?
NO THEY ARE NOT EVIL, if you know what you are doing:
Good or bad GPOs?
And if IT bothers me - coke bottle design refreshment :)) -
HTTP-500 Error Reading Data from Client!!
I'm trying to create a page where by clients are able to contact us through the portal. So, it's a pretty basic form where I have a text box for the subject, and a text area for the message body.
My problem is when the message body is over a certain size, I'm getting a "portlet cannot be contacted" on my screen. The Apache log comes up with the error:
[error] mod_plsql: /pls/portal/!PORTAL.wwpob_page.show HTTP-500 Error Reading Data from Client!!
I'm not using a windows OS, so the bug that has been talked about previously talked about shouldn't be the problem.
Also, I am using a POST rather than a GET, so I don't think it has to do with the browser (and I have tested this on Firefox and IE 5.5 and IE 6).
Would appreciate any advise.
Thanks, NickyAre you using SSL? Maybe, it has to do with it. I encountered a similar problem. It turned up that this read error occurred inside Apache and was caused by a nonstandard-SSL-request by Internet Explorer. te remedy was to add this to the Apache configuration:
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
It tells Apache to switch to HTTP/1.0 and to never keep open socket connections with MSIE on SSL connections.
Lycka till! -
TT16060: Failed to read data from the network. select() timed out
hi!
i am working on active standby pair.....i created
[activedsn]
Driver=/d01/oracle/tt70/TimesTen/tt70/lib/libtten.so
DataStore=/d01/oracle/tt70/TimesTen/tt70/info/activedsn
DatabaseCharacterSet=WE8MSWIN1252
PermSize=10
[standbydsn]
Driver=/d01/oracle/tt70/TimesTen/tt70/lib/libtten.so
DataStore=/d01/oracle/tt70/TimesTen/tt70/info/standbydsn
DatabaseCharacterSet=WE8MSWIN1252
PermSize=10
[sub3]
Driver=/d01/oracle/tt70/TimesTen/tt70/lib/libtten.so
DataStore=/d01/oracle/tt70/TimesTen/tt70/info/sub3
DatabaseCharacterSet=WE8MSWIN1252
PermSize=10
replication schemes; .............all are on same hosts..........
activedsn datastore.............
Command> create table readtab(a number not null primary key,b varchar2(31));
Command> insert into readtab values(101,'aaaa');
1 row inserted.
Command> commit;
command>create active standby pair activedsn on "tap2.test3.com",standbydsn on "tap2.test3.com" return receipt subscriber sub3 on "tap2.test3.com";
standbydsn datastore..........
command>ttrepadmin -duplicate -from activedsn -host "tap2.test3.com" -uid adm -pwd adm "dsn=standbydsn";
sub3 datastore..........
command>ttrepadmin -duplicate -from standbydsn -host "tap2.test3.com" -uid adm -pwd adm "dsn=sub3";
now they are working fine when i insert something from activedsn it is replicated to standbydsn and from standbydsn to sub3 ......
problem:
but when i test "Recovering from a failure of the standby master data store"
i ttdestroy standbydsn..............and on activedsn i executed
command>call ttrepstatesave('failed','standbydsn','tap2.test3.com');
after that all updates from activedsn were replicated to sub3....in the meanwhile i again duplicated standbydsn from activedsn
command>ttrepadmin -duplicate -from activedsn -host "tap2.test3.com" -uid adm -pwd adm "dsn=standbydsn";
now what happens updates from activedsn are replicated to standbydsn but no updates are replicated to sub3 it is giving error
15:24:29.29 Warn: REP: 7077: SUB3:receiver.c(1931): TT16060: Failed to read data from the network. select() timed out
15:29:36.09 Warn: REP: 7008: STANDBYDSN:receiver.c(1931): TT16060: Failed to read data from the network. TimesTen replication agent is stopping
replication agents for all are running.............
please helppppp..........
Edited by: Muhammad.Usman on Oct 13, 2009 2:57 AM
Edited by: Muhammad.Usman on Oct 13, 2009 3:08 AM[timesten@tap2 bin]$ ttrepadmin -showconfig activedsn
Self host "TAP2.TEST3.COM", port auto, name "ACTIVEDSN", LSN 0/916688, timeout 120, threshold 0
List of subscribers
Peer name Host name Port State Proto
SUB3 TAP2.TEST3.COM Auto Start 24
Last Msg Sent Last Msg Recv Latency TPS RecordsPS
00:00:03 - -1.00 -1 -1
Peer name Host name Port State Proto
STANDBYDSN TAP2.TEST3.COM Auto Start 24
Last Msg Sent Last Msg Recv Latency TPS RecordsPS
00:00:03 00:00:04 -1.00 -1 -1
List of objects and subscriptions
Table details
Table : ADM.READTAB Timestamp updates : -
Master Name Subscriber name
STANDBYDSN SUB3
STANDBYDSN ACTIVEDSN
Table details
Table : ADM.READTAB Timestamp updates : -
Master Name Subscriber name
ACTIVEDSN SUB3
ACTIVEDSN STANDBYDSN
Datastore details
Master Name Subscriber name
STANDBYDSN SUB3
STANDBYDSN ACTIVEDSN
Datastore details
Master Name Subscriber name
ACTIVEDSN SUB3
ACTIVEDSN STANDBYDSN
[timesten@tap2 bin]$ ttrepadmin -showstatus activedsn
Replication Agent Status as of: 2009-10-13 20:42:02
DSN : activedsn
Process ID : 19000 (Started)
Replication Agent Policy : manual
Host : TAP2.TEST3.COM
RepListener Port : 58698 (AUTO)
Last write LSN : 0.973840
Last LSN forced to disk : 0.973840
Replication hold LSN : 0.968456
Replication Peers:
Name : SUB3
Host : TAP2.TEST3.COM
Port : 58371 (AUTO) (Connected)
Replication State : STARTED
Communication Protocol : 24
Name : STANDBYDSN
Host : TAP2.TEST3.COM
Port : 59000 (AUTO) (Connected)
Replication State : STARTED
Communication Protocol : 24
TRANSMITTER thread(s):
For : SUB3
Start/Restart count : 6
Send LSN : 0.971432
Transactions sent : 2
Total packets sent : 158
Tick packets sent : 112
MIN sent packet size : 48
MAX sent packet size : 568
AVG sent packet size : 59
Last packet sent at : 20:42:00
Total Packets received: 158
MIN rcvd packet size : 48
MAX rcvd packet size : 96
AVG rcvd packet size : 64
Last packet rcvd'd at : 20:42:00
TRANSMITTER thread(s):
For : STANDBYDSN
Start/Restart count : 4
Send LSN : 0.971432
Transactions sent : 2
Total packets sent : 106
Tick packets sent : 84
MIN sent packet size : 48
MAX sent packet size : 560
AVG sent packet size : 63
Last packet sent at : 20:42:00
Total Packets received: 104
MIN rcvd packet size : 48
MAX rcvd packet size : 96
AVG rcvd packet size : 66
Last packet rcvd'd at : 20:42:00
Most recent errors (max 5):
TT16122 in transmitter.c (line 3313) at 20:28:28 on 10-13-2009
TT16121 in transmitter.c (line 3048) at 20:28:28 on 10-13-2009
TT16060 in transmitter.c (line 5028) at 20:33:59 on 10-13-2009
TT16122 in transmitter.c (line 3313) at 20:33:59 on 10-13-2009
TT16121 in transmitter.c (line 3048) at 20:33:59 on 10-13-2009
RECEIVER thread(s):
For : STANDBYDSN
Start/Restart count : 1
Transactions received : 0
Total packets sent : 33
Tick packets sent : 0
MIN sent packet size : 48
MAX sent packet size : 68
AVG sent packet size : 67
Last packet sent at : 20:42:00
Total Packets received: 33
MIN rcvd packet size : 48
MAX rcvd packet size : 135
AVG rcvd packet size : 51
Last packet rcvd'd at : 20:42:00
[timesten@tap2 bin]$
[timesten@tap2 bin]$ ttrepadmin -showstatus standbydsn
Replication Agent Status as of: 2009-10-13 20:42:35
DSN : standbydsn
Process ID : 19102 (Started)
Replication Agent Policy : manual
Host : TAP2.TEST3.COM
RepListener Port : 59000 (AUTO)
Last write LSN : 0.1007904
Last LSN forced to disk : 0.1007904
Replication hold LSN : 0.1002472
Replication Peers:
Name : SUB3
Host : TAP2.TEST3.COM
Port : 58371 (AUTO) (Connected)
Replication State : STARTED
Communication Protocol : 24
Name : ACTIVEDSN
Host : TAP2.TEST3.COM
Port : 58698 (AUTO) (Connected)
Replication State : STARTED
Communication Protocol : 24
TRANSMITTER thread(s):
For : SUB3
Start/Restart count : 2
Send LSN : 0.1005496
Transactions sent : 1
Total packets sent : 48
Tick packets sent : 33
MIN sent packet size : 48
MAX sent packet size : 568
AVG sent packet size : 65
Last packet sent at : 20:42:30
Total Packets received: 48
MIN rcvd packet size : 48
MAX rcvd packet size : 96
AVG rcvd packet size : 64
Last packet rcvd'd at : 20:42:30
Most recent errors (max 5):
TT16229 in transmitter.c (line 6244) at 20:38:01 on 10-13-2009
TRANSMITTER thread(s):
For : ACTIVEDSN
Start/Restart count : 1
Send LSN : 0.1005496
Transactions sent : 0
Total packets sent : 36
Tick packets sent : 34
MIN sent packet size : 48
MAX sent packet size : 135
AVG sent packet size : 50
Last packet sent at : 20:42:30
Total Packets received: 36
MIN rcvd packet size : 48
MAX rcvd packet size : 68
AVG rcvd packet size : 67
Last packet rcvd'd at : 20:42:30
RECEIVER thread(s):
For : ACTIVEDSN
Start/Restart count : 1
Transactions received : 1
Total packets sent : 42
Tick packets sent : 0
MIN sent packet size : 48
MAX sent packet size : 96
AVG sent packet size : 66
Last packet sent at : 20:42:30
Total Packets received: 47
MIN rcvd packet size : 48
MAX rcvd packet size : 190
AVG rcvd packet size : 58
Last packet rcvd'd at : 20:42:30
[timesten@tap2 bin]$
[timesten@tap2 bin]$ ttrepadmin -showstatus sub3
Replication Agent Status as of: 2009-10-13 20:43:05
DSN : sub3
Process ID : 18898 (Started)
Replication Agent Policy : manual
Host : TAP2.TEST3.COM
RepListener Port : 58371 (AUTO)
Last write LSN : 0.707088
Last LSN forced to disk : 0.707088
Replication hold LSN : -1.-1
Replication Peers:
Name : ACTIVEDSN
Host : TAP2.TEST3.COM
Port : 0 (AUTO)
Replication State : STARTED
Communication Protocol : 24
Name : STANDBYDSN
Host : TAP2.TEST3.COM
Port : 0 (AUTO)
Replication State : STARTED
Communication Protocol : 24
RECEIVER thread(s):
For : ACTIVEDSN
Start/Restart count : 1
Transactions received : 0
Total packets sent : 46
Tick packets sent : 0
MIN sent packet size : 48
MAX sent packet size : 96
AVG sent packet size : 65
Last packet sent at : 20:43:00
Total Packets received: 46
MIN rcvd packet size : 48
MAX rcvd packet size : 134
AVG rcvd packet size : 51
Last packet rcvd'd at : 20:43:00
RECEIVER thread(s):
For : STANDBYDSN
Start/Restart count : 1
Transactions received : 1
Total packets sent : 45
Tick packets sent : 0
MIN sent packet size : 48
MAX sent packet size : 96
AVG sent packet size : 66
Last packet sent at : 20:43:00
Total Packets received: 50
MIN rcvd packet size : 48
MAX rcvd packet size : 190
AVG rcvd packet size : 56
Last packet rcvd'd at : 20:43:00
[timesten@tap2 bin]$
[timesten@tap2 bin]$
Edited by: Muhammad.Usman on Oct 13, 2009 9:57 PM -
View Object to read data from a java file
Hi,
I am using JDeveloper 11.1.1.4 and ADF-BC in my application.
For one of my view objects , I want the data to be read from a java file which exposes some method to return a collection.
I cannot use a static view object in this case.
Please suggest the best way to implement this requirement.Basically build a view object that should read data from a java file.
Thanks,
PraveenDepending on your use case you can either use a programmatic VO or directly expose the JV class as a data control.
http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_36/jdtut_11r2_36.html -
Reading items from a list view in SharePoint 2013
I am trying to read items from a Calendar, and have created a view that contains all the items/events that I would like to retrieve to package in a CSV file, specifically the Title, Description, and the Start and End Dates.
The problem with some events is that they are recurring, and rather than use CAML to expand the events and try to query it that way, I thought it would be more elegant to just get the events from the view, and package them with a simpler query.
The problem I am running in to is that I can reference the entire list and package the data, or I can reference the list and get all the data in a specific date range, which does not include the recurring events, but I cannot simply read the data from the
view.
Any pointers would be greatly appreciated. Also, can you recommend any complete-ish texts on PowerShell with SharePoint?Hi,
Based on my understanding, as there is no straight way of using CAML to query all the events(specially for instances of recurring events) by a list view, I would suggest
you separately query the instances of recurring events needed.
A code demo(though in C#) about
how to query events(include recurring events) from Calendar list in this thread for your reference:
http://social.technet.microsoft.com/Forums/en-US/99c3ded6-a8cb-4509-9a74-e93e445d78c7/how-does-calender-list-daterangesoverlap-todaymonthyear-and-week-exactly-work?forum=sharepointdevelopmentprevious
About
how to export to CSV file:
http://www.codeproject.com/Articles/667269/Export-To-CSV-file
http://www.codeproject.com/Articles/685310/Simple-and-fast-CSV-library-in-Csharp
How to export to CSV file using PowerShell:
http://shaiknb.wordpress.com/2013/05/27/powershell-sharepoint-export-list-items-via-view-to-csv/
http://meandmysharepoint.blogspot.com/2012/08/export-sharepoint-list-data-into-csv.html
Thanks
Patrick Liang
Forum Support
Please remember to mark the replies as answers if they
help and unmark them if they provide no help. If you have feedback for TechNet
Subscriber Support, contact [email protected]
Patrick Liang
TechNet Community Support -
Read data from SAP R/3 Class-System
Hello,
first of all sorry when I posted this into the wrong subforum, but I wasn't sure about that. My Question is how to read data from the Classystem I have specified in my ABAP report.
The goal is to read data from my individual class-system as well as data from MM and write them to a table that is to be read by another report. But right now I can't find information about the class system and abap. Maybe you know some tutorials or blogs about right that topic you can suggest?What class system have you specified in your report?
Normally a class can be used by declaring a variable of type of the class in question, if this class can be instantiated this is. If your class can't be instantiated, but it has only class methods, you can call this method directly.
But there is a lot more to this ABAP Object Oriented Programming, than just this short explanation. Search on SDN for some ABAP OO Tutorials.
some links:
http://help.sap.com/saphelp_nw2004s/helpdata/en/c3/225b5654f411d194a60000e8353423/frameset.htm
http://www.sapgenie.com/abap/OO/
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b6cae890-0201-0010-ef8b-f970a9c41d47
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1591ec90-0201-0010-3ba8-cdcd500b17cf
Transacation ABAPDOCU. -
I can not count the data from the module. Can prompt as it to make. It is desirable with examples (data read-out from the module and data transmission between channels. It is in advance grateful.
Hello. Most of the engineers in developer exchange are more familiar
with NI products. Contacting ICS for technical support is a better
course of action. -
Can not read data from URL!
Hello,
I want to read data from URL (http://84.100.130.82:8000/;stream.nsv). But can not do it. Because when try to call function openDataInputStream() shows this error: java.io.IOException: response does not start with HTTP it starts with: ICY. How I can fix this bug?
HttpConnection c = null;
InputStream is = null;
OutputStream os = null;
StringBuffer b = new StringBuffer();
String response,
responseLitle;
c = (HttpConnection)Connector.open(“http://84.100.130.82:8000/;stream.nsv”);
os = c.openOutputStream();
os.flush();
is = c.openDataInputStream(); // ERROR CODE HERE
int ch;
// receive output
while ((ch = is.read()) != -1)
b.append((char) ch);
response = b.toString();Regards, RamunasHi, I�m trying to do the same as above, get MP3 from a Shoutcast server.
I got the same fault ("response does not start with HTTP it starts with: ICY") when I tried to open an HttpConnection as bellow:
============================================
HttpConnection conn = (HttpConnection) Connector.open("http://64.236.34.196/stream/1074");
Then I tried to open a socket connection as bellow:
======================================
SocketConnection conn = (SocketConnection) Connector.open("socket://64.236.34.196:80");
String get = "GET /stream/1074 HTTP/1.1";
DataOutputStream os = conn.openDataOutputStream();
os.writeUTF(get);
InputStream is = conn.openInputStream();
But then I got the following error:
=========================
java.lang.SecurityException: Target port denied to untrusted applications
Could someone help me to find out what is going on?
Thanks a lot! -
How to read vales from dropdownlistbox placed in tableView Cells
Hi,
Thanks for reply.. I got problem of reading values from Dropdownlist box placed in tableView Cells. Please correct me or give some sample to read vales from dropdownlistbox placed in tableView Cells.
TableView column defined as
<htmlb:tableViewColumn columnName = "OT_REASON_CODE"
title = "OT Reason"
type = "User"
width = "6"
edit = "true" >
<htmlb:dropdownListBox id = "rcode"
table = "<%= I_YH008 %>"
nameOfKeyColumn = "OT_REASON_CODE"
nameOfValueColumn = "OT_REASON_DESC" />
</htmlb:tableViewColumn>
OnInput processing I am trying to read dorpdown list values selected.
W_YH022-ENDUZ = TABLE_EVENT->GET_CELL_VALUE(
ROW_INDEX = SY-TABIX
COLUMN_INDEX = 3 ). " Get time
DATA: data TYPE REF TO CL_HTMLB_DROPDOWNLISTBOX.
DATA: value type string.
value = TABLE_EVENT->GET_CELL_ID( row_index = SY-TABIX
column_index = '7'). " get Cell ID
data ?= CL_HTMLB_MANAGER=>GET_DATA(
request = runtime->server->request
name = 'dropdownlistbox'
id = value
IF data IS NOT INITIAL.
W_YH022-OT_REASON_CODE = data->selection. " +Cell Values...I am not getting cell values here+
endif.Hi:
Do like this
Layout
<htmlb:dropdownListBox id="mydropdownlist" >
<htmlb:listBoxItem key = "bpno"
value = "Business Partner Details" />
<htmlb:listBoxItem key = "bpaddress"
value = "Business Partner Address" />
</htmlb:dropdownListBox>
OnInpurProcessing event - >
DATA: lcl_dropdown TYPE REF TO cl_htmlb_dropdownlistbox.
data : selection2 type string.
lcl_dropdown ?= cl_htmlb_manager=>get_data(
request = runtime->server->request
name = 'dropdownListBox'
id = 'mydropdownlist' ).
IF NOT lcl_dropdown->selection IS INITIAL.
selection2 = lcl_dropdown->selection.
ENDIF.
Regards
Shshi -
How to read text from a web page
I want to read text from a web page. Can any body tell me how to do it.
Ok i tell you detail. visit the site " http://seriouswheels.com/" you will a index from A to Z which are basically car name index i want to read each page get car name and its model and store it in data base. I you can provide me the code i will be very thankful.
-
Read data from excel sheet and then perform the required operations.
Hi all
I need to write a procedure which can read data from excel sheet.I have excel sheet in which i have to options one is modification and other is addition.so if it reads modification then i need to read the concerned table name then check its availability in pl-sql datbase.If table exists then reading the realated column in that row to fire the querry. The excel sheet is saved in local disk c.
can anybody help me with this.How i need to start specialy to read the data from excel sheet saved in local disk c.
Edited by: user13334062 on Jun 30, 2010 3:45 AMHi
If you can convert the excel to a csv format, then it can be simply query from DB Creating Oracle External Tables. Best part is that you may still change the CSV using EXCEL.
Following action Points can be adopt;
*1. Convert Excel File to a csv. File Save as CSV*
*2. Create Oracle Directory* ( This has to be the location of your excel file )
SQL> Create directory mydir as 'C:\testdb'; --- "testdb" is the location folder in win for your excel sheet.
*3. Create the External Table*
SQL> create table my_ext_tab (
Field1 Datatype,
Field2 Datatype,
Field3 Datatype,
Field4 Datatype,
Field5 Datatype
Organization external
(type oracle_loader default directory mydir
access parameters (records delimited by newline fields terminated by ',')
location ('my_ext_tab.csv'))
reject limit 100;
*4. Now you can query the table "my_ext_tab"*
Select * from "my_ext_tab";
Please avoid the reformat the data column inside the spreadsheet (CSV). -
Without loops how can i read data from associative Array??
Hi all,
I am facing scenario like...
i need to read data from associative array without using loops is it possible,
CREATE OR REPLACE PACKAGE BODY test_pkg IS
TYPE t1 IS TABLE OF NUMBER INDEX BY BINARY_INTEGER;
-- in array we can expect more than one row or sometimes no data also.
FUNCTION test1(vt1 T1 DEFAULT CAST(NULL AS t1)) RETURN NUMBER IS
BEGIN
-- basically in array we'll get data of column2
-- this loop should satisfies table1.colum2 = nvl(NULL, table2.colum2 )if array is null.
-- if array is not null then only compare with array values
FOR i IN (SELECT t1.colum1,t1.column2
FROM table1 t1, table1 t2
WHERE t1.colum1 = t2.column1
AND t1.colum2 = nvl(vt1, t2.colum2)
LOOP
generateTEXT(i.colum1, i.colum2);
END LOOP;
END test1;
END test_pkg;
in table1 we have date like...
colum1 column2
Jan 1
Feb 2
Mar 3
if i call select test_pkg.test1(1) from dual then output should
be Jan..
and
select test_pkg.test1(null) from dual then it should display all elements from table1.
Jan 1
Feb 2
Mar 3,
Thanks for your quick replay..i need to read data from associative array without using loops is it possible,
No - you would need to create a SQL type and then use the TABLE operator to unnest the collection.
create or replace TYPE my_nums IS TABLE OF INTEGER;
DECLARE
-- TYPE my_nums IS TABLE OF PLS_INTEGER INDEX BY PLS_INTEGER;
v_nums my_nums := my_nums(1, 2, 3);
v_total number;
BEGIN
select sum(column_value) into v_total from table(v_nums);
DBMS_OUTPUT.PUT_LINE
('Sum of the numbers is ' || TO_CHAR(v_total));
END;
Sum of the numbers is 6
Maybe you are looking for
-
We are running Oracle BI Discoverer Viewer version 11.1.1.4.0. When we upgraded to this version we lost some functionality. In the previous version the report displayed the number of rows the query returned. Now the row totals display only under cert
-
I love Siri. It's useful and fun and I love messing with it but why can't I name it? It's sort of a petty thing but I would like to be able to name our phone companions. Also apple kinda needs to fix the location services thing with the other Siri vo
-
Hi, I'm afraid I don't know the jargon as someone else has set this up for me and I just make new pages based on the templates. But I've just uploaded 9 new pages all with 9 small images linked to the corresponding 9 large images. All of them work ex
-
Capture status of E-mail or FAX sent by bursting program
Hi , I want to capture the status of E-mail or Fax sent by bursting program. Are there are any tables which log this data ? Are there any tables where we can check the status of bursting program ? Thanks, Chaitanya
-
I am using lightroom 4 upgraded from three, two , one etc. etc. but, I notice that the lightroom catalog 3.2.2 is still running and seems to slow things down a bit what did I do wrong ?