473,396 Members | 1,864 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

to create a cursor

Hai

Hai
I need to generate a daily attandence report. My file is in text format so i need to create a cursor and generate these values dynamically in forms6i.

I have create a browse button and from that it will fetch the data and i need to process the data in this format

my data is in this format

000000001234567801012010085

first 16 is barcode no
second 8 is date
third 4 is time

and i need to generate multiple records.

how is it possible.. pls tell the steps to do..

Regards

Srikkanth.M
Jan 15 '10 #1
4 1990
amitpatel66
2,367 Expert 2GB
use UTL_FILE for reading data from a file.
Jan 15 '10 #2
Saii
145 Expert 100+
can you please explain your problem again, it is not clear whether you want to generate a report or a stored procedure writing to file or display the records using forms?
Jan 15 '10 #3
Follow the steps

1) First try to create a directory and in the directory create a file with txt and keep all ur data 000000001234567801012010085
2) These directory is basically for using UTL_FILE concept.
3) Use UTL_FILE.fopen and UTL_FILE.get_line
4) After you get the data 000000001234567801012010085 use substr to get first 16 as barcode ,2nd 8 as date and last as time.
5) Try to loop all these and use plsql table to get the array of data.
6) Try to insert it to a table in three different column and then u can generate the report from that temp table.

Hope you can understand the step.
Feb 25 '10 #4
OraMaster
135 100+
You need to keep your data file on server machine and make sure that you have read/write access on the directory/file full path. After this you need to create reference for that physical directory path.

Best of Lucks
Feb 25 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Wiggy | last post by:
Hi, It's probably easiest if I describe what I'm trying to do: I have several tables I want to base a query on. In addition I have some dynamic data that I want to join against that consists...
1
by: citytroop | last post by:
Hi I am creating a form for vieweing and editing faxes. I read the fax tiff file into the picturebox. And I have two problems: 1.I want to add a function for the users to be able to select an...
2
by: Steegg | last post by:
I am a newcomer to using Python and Qt and the main problem that I have is the dearth of any example code or books describing the use of Python and Qt together. My current problem is that I want...
2
by: db55 | last post by:
I have multiple locations that I want to create views for each individual location. I am using a cursor to create the views for each location. So, the cursor grabs site #1 then <should> create...
8
by: peteh | last post by:
Hi All; I have what I hope is a simple environmental problem. I have some SQL that creates a VERY simple procedure. When the create is executed from Quest (from a Windows client) - no problem. As...
4
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is...
6
by: mcasaurabhsumit | last post by:
Hello Friend, can u send me about cursor? i find it most difficult. What is cursor? How many Types of cursor? how to create each one? what r the benefit of each cursor?
33
by: Stef Mientki | last post by:
hello, I discovered that boolean evaluation in Python is done "fast" (as soon as the condition is ok, the rest of the expression is ignored). Is this standard behavior or is there a compiler...
2
by: Alexander Vasilevsky | last post by:
Hi! How to create the coloured mouse cursor dynamically? -- http://www.alvas.net - Audio tools for C# and VB.Net developers
0
by: ramuygl | last post by:
want to create store procedure that. want to send the table name as argument and retrive the data of that argument. and want to store data in temperary table using the insert query. HERE I AM...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.