Needs to write a function which generates Barcode in Oracle Forms 6i
Hi
We have Oracle 6i application built as an interface to Edox Archiving System. This application records all the details of the Mailing Department like Incoming, outgoing and misceleneous mails with attachment. Attachments (images of scanned copies are stored in Edox database). Scan and View buttons use Edox system for uploading and downloading images from to edox database.
In the interface appication, our company wants to add Barcoding feature. For example when a record entry is committed to the database, it should generate barcode for that particular record.
I tried this on the Oracle Report 6i, it is working. But in forms, i tried to add button which is OLE Container.During the runtime, when i click the button, it liks to Agrobuilder which is used to barcode. But the problem, how to pass the values from oracle databse to agrobuilder?
Could anybody put some light on this?
ARIZUDDIN
[email protected]
To suppress the Parameter Form and have the report assign a default value to DESTYPE, do either of the following:
1) In forms: Create a list parameter to explicitly pass the values of DESTYPE and PARAMFORM.
2) In reports: In the Preferences dialog box (EditPreferences), on the Runtime Settings page, clear the Parameter Form check box to specify a value of No for the PARAMFORM keyw
I hope this helps...
Similar Messages
-
HELP needed to write a function returning 1 record from join tables
Hi,
I would like to have some help to write a function so It can return 1 result.
I post my question in the APEX Express sextion but I think it's belong here.
Mount Points and Home Directory
Also, can I move a thread in another forum?
thanks
Roseline
Edited by: user8772975 on 2009-09-19 21:43ok, I think I started to understand the functions. But I still can't figured out
CONTEXT
We are scanning pages and images from different newspaper. All the .tif, .jpg are on DVDs.
I'm trying to build a search page who will allow for all DVDs and All images name related to the search result. Let say I search for:
FIGARO
I have this SQL query and I want to make a function that will return the same thing as:
select
"DOSSIER"."ID" as "DOSSIERID",
"DOSSIER"."TITLE" as "TITLE",
"DVD"."ID" as "DVDID",
"DVD"."NAME" as "DVDNAME",
"DVD"."ID_DOSSIER" as "DVD_ID_DOSSIER",
"ELEMENTS"."ID" as "ELEMENTSID",
"ELEMENTS"."NAME" as "ELEMENTSNAME",
"ELEMENTS"."ID_DVD" as "ELEMENTS_ID_DVD"
from "DOSSIER" "DOSSIER",
"DVD" "DVD",
"ELEMENTS" "ELEMENTS"
where "DVD"."ID_DOSSIER"="DOSSIER"."ID"
and "ELEMENTS"."ID_DVD"="DVD"."ID"
and "DOSSIER"."TITLE" = :P3_SEARCH
ORDER BY "DVD".NAMEBasiccly, We are scanning pages and images from different newspaper. All the .tif, .jpg are on DVDs.
So we have someting like that:
TITLE: FIGARO
DVD: C2008-203
Elements: 12l10201.tif, 12l10202.tif, 12l11101.tif, 12l11102.tif, 12l11201.tif
12l11202.tif, 12l12101.tif, 12l12102.tif
DVD C2008-204
Elements: 12l12202.tif, 12l13101.tif, 12l13102.tif, 12l13201.tif, 12l13202.tif,
12l14101.tif, 12l14102.tif, 12l14201.tif, 12l14202.tif, 12l15101.tif,
12l15102.tif, 12l15201.tif
DVD: C2008-205
Elements: 12l15202.tif, 12l16101.tif, 12l16102.tif, 12l16201.tif, 12l16202.tif,
12m01101.tif, 12m01102.tif, 12m01201.tifBased on what people on the forum told me, I now know that I have to use Pl/SQL so I have to write a function that will return the same thing as the prvious query.
Is that exact?
Based on this example,
[http://plsql-tutorial.com/plsql-functions.htm|http://plsql-tutorial.com/plsql-functions.htm]
I would write something like:
CREATE FUNCTION my_super_function
RETURN VARCHAR(2000);
IS
details VARCHAR(2000);
BEGIN
select
"DOSSIER"."ID" as "DOSSIERID",
"DOSSIER"."TITLE" as "TITLE",
"DVD"."ID" as "DVDID",
"DVD"."NAME" as "DVDNAME",
"DVD"."ID_DOSSIER" as "DVD_ID_DOSSIER",
"ELEMENTS"."ID" as "ELEMENTSID",
"ELEMENTS"."NAME" as "ELEMENTSNAME",
"ELEMENTS"."ID_DVD" as "ELEMENTS_ID_DVD"
from "DOSSIER" "DOSSIER",
"DVD" "DVD",
"ELEMENTS" "ELEMENTS"
where "DVD"."ID_DOSSIER"="DOSSIER"."ID"
and "ELEMENTS"."ID_DVD"="DVD"."ID"
and "DOSSIER"."TITLE" = :P3_SEARCH
RETURN details;
END;
/ And then, use soemthing like:
select my_super_function("DOSSIER"."ID") from "DOSSIER" "DOSSIER" where "DOSSIER"."TITLE" = :P3_SEARCHI'm kinda of lost. I spent the last 6 hours but I think that programming is a working progress.
Any hint would be appreciated,
thanks
Roseline -
PDF generated report in Oracle Forms
Hi folks,
I'm new in this forum and I want help on how can I generate a report in PDF format just using Oracle Forms (not Oracle Reports).
This report will be assembled using some parameters that the user will fill in a form when the program starts. When the user click on a button on the form, based on that information, the program will go to the database to recover some data, and then will assemble the report to be shown to the user in a Adobe Reader screen.
Is it necessary to use the built in CLIENT_OLE2 or anything else?
Thanks
RicardoWelcome to the Oracle Forums. Please take a few minutes to review the following:
<ul>
<li>Oracle Forums FAQ
<li>Before posting on this forum please read
<li>10 Commandments for the OTN Forums Member
<li>How to ask questions the smart way
</ul>
Following these simple guidelines will ensure you have a positive experience in any forum; not just this one! ;-)
Lets start with some of the basics. What is your Forms version, Client OS version; if web deployed, your browser and Java versions and any error messages you might be receiving.
...how can I generate a report in PDF format just using Oracle Forms (not Oracle Reports).What's wrong with using Oracle Reports to produce the PDF file? Manually generating a PDF file means you have to manually format your output and then write it to a PDF file. Oracle Reports is a whole lot easier than this and not prone to the errors you are going to have by manually generating the output.
If you absolutely have to create your report this way, then I recommend you let the database handle the creation of the file and then simply use Forms to transfer the output file to the client. For this, you would use the WEBUTIL_FILE_TRANSFER.DB_TO_CLIENT or DB_TO_CLIENT_WITH_PROGRESS fucntions to send the file to the client. We need to know the information I request above before we could give you assistance with this.
Craig... -
Need some more fields displayed in record history of oracle forms
Hi ,
I am using oracle forms 6.0.8.8.0 . My requirement is to display PROGRAM_ID , PROGRAM_APPLICATION_ID , PROGRAM_UPDATE_DATE , REQUEST_ID in the record history of the forms along with CREATION DATE , CREATED BY , LAST UPDATE DATE , LAST UPDATE LOGIN , TABLE which are already being displayed .
Please help .Actually when the record history is to be brought , we need to make it database fields or write code to post query . So I think I can get a solution in this forum as we need to make changes in form only in order to show in record history .
-
Master/Detail/Lookup functionality - ApEx and AJAX vs Oracle Forms
I'd like to build a master detail form with some lookup functionality and have some of the fields automatically populated. I come from an Oracle Forms and PL/SQL background so I was hoping for some guidance in ApEx and Javascript for how to achieve the same effect.
If you look at the default Sample Application (DEMO_APP), page 29 has the master record and the corresponding details on the same page.
The functionality I'd like is:
1) when a new product is chosen from the Product Name select list, I'd like the Unit Price to be populated.
2) when the Quantity is updated, I'd like
a) the Extended Price to be recalculated and
b) the Order Total to be recalculated
all before submitting the page. This is pretty trivial in Oracle Forms but I've had limited success with ApEx.
I've been able to achieve 1) in a single record form but not a tabular form using the techniques from Scott's AJAX generator http://htmldb.oracle.com/pls/otn/f?p=33867:2.
I've been able to achieve 2a) in a tabular form using the techniques from Vikas in this thread Tabular form with Ajax
I haven't had any luck getting 2b) to work.
So, is my wish list possible?
If it is, I'd appreciate some pointers and/or code. I don't speak Javascript but I can copy and paste ;)
Cheers,
Bryan.Hi Carl,
Ok, thanks for the tip - take a look at http://htmldb.oracle.com/pls/otn/f?p=24745 login as demo/demo and edit one of the top orders. This will take you to page 29.
I've changed the 2.0 Sample Application to allow both the unit_price and the quantity to be overtyped. Each column has the 'Element Attributes' property set to onChange="calcTotal(this)" to call the javascript code.
This recalculates the extended_price (feature 2a above) but the order total (or the report total) is not affected (feature 2b) - how can I change the code to achieve this?
If I change an existing line item and choose another product from the select list, I'd like the unit_price and the extended_price to change appropriately (feature 1 above) - having to wait until after the form is submitted is not acceptable to my users.
Thanks for taking the time to look at this - I really appreciate it.
Cheers,
Bryan. -
Hi experts,
I have an requirement , when I change any infotype record from pa30 or pa40, i.e
suppose I am changing the infotype 0002 in pa30 , the idoc only generated for that changed infotype only,
but I need it to generate the idoc for some other infotypes also I.e(0000,0002,t528t, 0016).
So please give me some help to generate idoc when I run a rbdmidoc(bd21).
Thanks in advance.
Venkatyes, visible bounds is reading the non-visible masked objects too.
you're going to have to do it the hard way, loop through all your objects to get your bounds manually, and while you're at it, test for clipping masks and use the masking path instead. -
Generate barcode in oracle Report 10g
hi all,
i want to generate some of my ID's number in barcode. i have searched and followed the idautomation.com i want to download the font file.
is there any freeware solution available ?
or any one has simple solutoin. i need very simple barcode generation.
Thanks,
SuhaibYou could use the java-library barbecue to generate an image from your number and then include that image in your report.
-
Possible to write a function that takes any type as parameter ?
I need to write a function that will take 2 parameters ( of any type - VARCHAR etc ) and return a boolean.
( Im trying to write a function that will do NULL processing.
something like..
if ( P1=P2 OR ( P1 IS NULL AND P2 IS NULL ) ) then
return true ;
end if;
return false ;
the function simply compares its parameters P1 & P2 and returns true if they are equal - including if both are NULL
Is this possible to write at all.
My code looks very ugly without this being wrapped in a function.You may be able to use SYS.AnyData for this. However, dealing with the data would be confusing, so overloading the FUNCTION would most likely be a better idea.
This doesn't work, but it looked like fun, so i tried:
CREATE OR REPLACE FUNCTION Equal_Or_NULL(A SYS.AnyData, B SYS.AnyData)
RETURN PLS_INTEGER
AS
Local_A VARCHAR2(4000);
Local_B VARCHAR2(4000);
Junk PLS_INTEGER;
BEGIN
IF A IS NULL AND B IS NULL THEN RETURN 1; END IF;
CASE A.GetTypeName
WHEN 'SYS.NUMBER' THEN Junk := A.GetNumber(Local_A); Junk := B.GetNumber(Local_B);
WHEN 'SYS.DATE' THEN Junk := A.GetDate(Local_A); Junk := B.GetDate(Local_B);
WHEN 'SYS.CHAR' THEN Junk := A.GetCHAR(Local_A); Junk := B.GetCHAR(Local_B);
WHEN 'SYS.VARCHAR' THEN Junk := A.GetVARCHAR(Local_A); Junk := B.GetVARCHAR(Local_B);
WHEN 'SYS.VARCHAR2' THEN Junk := A.GetVARCHAR2(Local_A); Junk := B.GetVARCHAR2(Local_B);
END CASE;
RETURN CASE WHEN Local_A = Local_B THEN 1 ELSE 0 END;
END Equal_Or_NULL;
/Overloading would be much simpler, as the arguments could be directly compared.
IMO, Do not do this. Hiding logic in a FUNCTION it for cosmetic purposes is a bad idea. -
A function for generate a actual tree select
hi,
i tried to write a function that generate a actual tree select and i think this is very helpful
Create Or Replace Function Generate_Tree_Fun(p_Path Varchar2,
p_Delimiter Varchar2,
p_Level Integer,
p_Tbl_Name Varchar2,
p_Parent_Field Varchar2,
p_Child_Filed Varchar2)
Return Varchar2 Is
v_Txt Varchar2(5000) := '';
v_Row_Num Number;
v_Max_Count Number;
v_Child Varchar2(100);
v_Parent Varchar2(100);
v_Level Number := p_Level;
Begin
If (v_Level = 1) Then
Return '';
End If;
If (v_Level > 1) Then
v_Txt := '|' || Lpad('_', 6, '_');
End If;
If (v_Level > 2) Then
For i In 1 .. p_Level - 2 Loop
v_Level := v_Level - 1;
v_Child := Ltrim(Regexp_Replace(p_Path,
Ltrim(Replace(p_Path,
p_Delimiter,
')(' || p_Delimiter) || ')',
'\' || v_Level),
p_Delimiter);
Execute Immediate 'Select t.' || p_Parent_Field || '
From ' || p_Tbl_Name || ' t
Where t.' || p_Child_Filed || ' = :1'
Into v_Parent
Using v_Child;
Execute Immediate 'Select a, b From (Select Row_Number() Over(Order By t.' ||
p_Child_Filed ||
') a,Count(1) Over(Partition By t.' ||
p_Parent_Field || ') b,t.' || p_Child_Filed ||
',t.' || p_Parent_Field || ' From ' || p_Tbl_Name ||
' t Where t.' || p_Parent_Field ||
' = :1 Order By t.' || p_Child_Filed || ') Where ' ||
p_Child_Filed || ' = :2 '
Into v_Row_Num, v_Max_Count
Using v_Parent, v_Child;
If (v_Row_Num <> v_Max_Count) Then
v_Txt := Rpad('|', 20, ' ') || v_Txt;
Else
v_Txt := Rpad(' ', 20, ' ') || v_Txt;
End If;
End Loop;
End If;
Return v_Txt;
End;
select Generate_Tree_Fun(sys_connect_by_path(e.empno,','),',',level,'emp','mgr','empno') || e.ename
from emp e
start with mgr is null
connect by e.mgr=prior e.empno
enjoy itArash wrote:
hi,
i tried to write a function that generate a actual tree select and i think this is very helpful
We are so proud of you! -
Need to write a report to show who is using SAP and to what extent
Hi Experts,
I need to write a report which should display who are using SAP and to what extent to forcast future SAP license needs...
and to ensure the compliance by allocating license types correctly.
My report should helpfull to organization to reduce the current license requirements and costs.
Actually my problem is where can i get all these details in SAP, means from which tables.
in which table can we get the sap user ids using mail id...
Thanks in advance........
RamHi gajeramesh ,
Goto transaction 'SU10'
Here you have all the data selection regarding a particular user id, so what you can do is do F1 on any of the fields and see the technical help in that for the table names.
some of the tables are :
1) 'USUSERS'(User: Transfer structure for lists of users),
2) 'USER_ADDR' (Users by address data)
3) 'USUSERALL' (Users with All Data for List Output)
I hope this helps you !! -
Best way to write a function that returns query texts
Hi, I need to write a function that will take a parameter containing table name and based upon it returns the text of a query. Here is what I am thinking of doing it but would like to get feedback whether there is a better way to do it.
For example:
FUNCTION getSQL(p_1 VARCHAR2, p_2 VARCHAR2) RETURN VARCHAR2
IS
sql varchar2(2000);
BEGIN
--Here i want IF THEN ELSE part and thes based upon it return a desired sql. There will be more than a dozen sqls that the function will return.
IF p_1='Employee' Then
sql:='Select * from employee Where employee_id=p_2;'
Else If p_1='Departement' Then
sql:='Select col1, col2, col3,';
sql:=sql || ' col4, col5, col6';
sql:=sql || ' Where dept_id=p_2';
Else If.....
Else If.....
Else If.....
Else If.....
End IF;
return sql;
END;Edited by: dreporter on Sep 20, 2010 8:43 AMI'm never sure I understand the desire to put lots of cursors into a single stored procedure, given that they are inherently different things.
However, assuming you have made the above decision, you should almost certainly look at using the overload of dbms_xmlgen.newcontext that accepts a cursor parameter rather than a string. This would allow you to return cursors from your function rather than strings, giving you the option to use bind variables (and prevent associated SQL injection) and perhaps not even do dynamic SQL at all, something like this perhaps...
FUNCTION get_cursor (
p_cursor_type VARCHAR2,
p_cursor_parameter VARCHAR2)
RETURN sys_refcursor
IS
v_sys_cursor sys_refcursor;
BEGIN
CASE p_cursor_type
WHEN 'Employee' THEN
OPEN v_cursor FOR
SELECT empno, ename
FROM emp
WHERE empno = TO_NUMBER (p_cursor_parameter);
WHEN 'Department' THEN
OPEN v_cursor FOR
SELECT deptno, dname
FROM dept
WHERE deptno = TO_NUMBER (p_cursor_parameter);
END CASE;
RETURN v_sys_cursor;
END get_cursor;
/ -
Oracle Forms: Technical Documentation Generator Tool (FoReDoclet, HTML)
Dear Oracle Forms Developers,
Nostran Computing has released FoReDoclet, our technical documentation generator tool for Oracle Forms:
Technical features:
- Generates HTML documentation about form, menu, PL/SQL library and object library source files similarly to JavaDoc.
- Uses the Comment property of internal objects (blocks, parameters, alerts)
- Parses pl/sql elements (procedures, functions, packages, triggers) as well as standard internal elements.
- The generated HTML documentation is highly customizable by style sheets or direct template modification.
- Accepts HTML codes in Comments property fields and PL/SQL comment blocks.
Business benefits:
- Eliminates the need of writing separate technical documentation, works directly from the source.
- Provides a low-cost and efficient way of producing high-quality technical documentation for Oracle Forms based applications.
For details, see: http://www.nostran.com/products/foredocletHI Arun
where can we get this forms documentation?
Thankyou
Sasi -
Is there any software in Adobe Creative Cloud which will let me generate barcodes?
Hi
Is there any software in Adobe Creative Cloud which will let me generate barcodes?- Do I have 40 10-second clips each with 1.9 GB of unwanted video behind it??
Not to worry. When we Copy and Paste within a project, iMovie HD creates a new clip thumbnail for the Timeline/Clips pane, then simply adds a new pointer to the source video. The source material is not duplicated.
When you Copy a clip and Paste a clip to a DIFFERENT project then Yes, the clip's entire source video file is duplicated. (When Copying between projects, be sure to Copy and Paste all the clips together so iMovie duplicates the source files just one time.)
Next time, you might consider setting your iMovie 6 preferences to limit the length of imported clips to 3 minutes — or whatever duration you want. Then each imported clip will have its own source file. When you discard an entire clip its file will be discarded too, shrinking the size of the project.
If you have no need to preserve the clips as clips you could export the project to a Full Quality movie that you import to a new project. Everything will arrive as a single clip, which may be okay here. Then discard your old project. The project will be smaller, containing just the stuff on the Timeline.
If the Timeline contains most of the source material — just split into small clips — there may not be a lot of "extra" material in the project. To get an estimate of how large the Timeline really is, open the "Timeline Movie.mov" that's inside the Cache folder of the project in QuickTime Player. QT Player's Show Movie Info window will show the size of the material it represents.
Karl -
I need to create RFC function module which creates the IDOC
Hi-
Any idea how to create RFC function module which creates the outbound IDOC. If you have any sample code please forward to me.
Thanks,
SonyMy Problem is
Whenever they create Invoice using T-code's like FV65(Parked Document), automatically should create IDOC's...
I have used message type FIDCC1 but this message type is usefull only for Posting documents.
1. Whenever they create parked document, entries will be stored in BKPF(Parked Document-Filed-BKPF-BSTAT = 'V') and Bseg....
2. I have to read entries from those tables and should create IDOC...
3. I checked FM's(FI_IDOC_CREATE_FIDCC1, FI_IDOC_PREPARE) but are not useful...
4. Now I need to write one RFC function module and that FM should create the IDOC's....
Can anyone please help me out?
Thanks,
Sony -
Urgent: Need to know a Program name which generates Numbers automatically
Hi Peers,
We all know that there are 2 kinds of Numbering :
1. Internal Numbering
2. External Numbering
For eg: When we create an Sales Order a new SO number is generated automatically which is called Internal number generation.
There is an Object which generates this number I would like to know that Program. If any Idea please let me know.
The reason why I need is , Thru a transaction when we are create entries for an Z table , the number should be generated automatically.
Points will be suitably rewarded.
Thanks a Lot.
DanielHi,
1) Goto Tcode SNRO
2) select ur concerned OBJECT there.
3) Click on Number Ranges Push Button.
4) then click on Display Interval Button over there.
*****************************************************Other code
Create number range object using OYSN.
Then call the following function modules.
FORM get_next_id CHANGING p_discrep.
DATA: last_id LIKE zrecaudit-discrep,
quant LIKE inri-quantity, "dummy
code LIKE inri-returncode. "returncode
CALL FUNCTION 'NUMBER_RANGE_ENQUEUE'
EXPORTING
object = 'ZRECAUDIT'
EXCEPTIONS
foreign_lock = 1
object_not_found = 2
system_failure = 3
OTHERS = 4.
IF sy-subrc = 0.
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = '01'
object = 'ZRECAUDIT'
IMPORTING
number = last_id
quantity = quant
returncode = code
EXCEPTIONS
interval_not_found = 1
number_range_not_intern = 2
object_not_found = 3
quantity_is_0 = 4
quantity_is_not_1 = 5
interval_overflow = 6
buffer_overflow = 7
OTHERS = 8.
CALL FUNCTION 'NUMBER_RANGE_DEQUEUE'
EXPORTING
object = 'ZRECAUDIT'
EXCEPTIONS
object_not_found = 1
OTHERS = 2.
ENDIF.
ENDFORM. " get_next_id
Don't forget to reward if useful..
Vasanth
Maybe you are looking for
-
How do I get a large mp4 file off of my phone?
1--Its too big to upload to GDrive (presumably because it can't create a swap file) 2--I can no longer mount the phone as a USB Mass storage device in order to just drag it off to my desktop (thanks to one of Verizon's later Android updates). 3--Veri
-
Loading ImageView with in-memory bitmap
I am new to JavaFX, and I have search all over the internet but I cannot find the answer. My Java code is creating an in-memory bitmap image and I would like to display it in JavaFX ImageView class (without saving it to a file). ImageView can load an
-
FLV movie not playing in webpage
Hi, I need help here as I'm completely baffled. I have created a. FLV movie which is placed in a webpage created in Dreamweaver 8. I created the FLV in Flash 8 by importing the Video and creating the Controls etc and placing all the files in the same
-
Is it possibly to use apple tv to connect my computer to my tv so I can use my tv as a monitor?
-
What is syntax for inner join of Select statement with Secondary Index
Hi Genies, Here i have created the Secondary index for table COEP and also used for select query but there is no improvement in runtime . taking same time for select query without index as well as with index. my code is SELECT * INTO