How to use TABLE_FROM_BLOCK in forms 10g ??????
i have use the procedure below code in when-validate of a database item in forms6i its working fine ,but the same form i have compiled in forms10g and then when the when validate is fired it gives following error
frm-40933 Cannot populate table because datatype is incorrect.
CODE :-
PROCEDURE CHK_DISB_DT(RECNO NUMBER) IS
LOAN_DISB_TBL_TYPE ITEMS_IN_BLOCK;--DECLARE A VAIRIABLE OF TYPE ITEMS_IN_BLOCK
TYPE LOAN_DISB_REC IS RECORD(LNA_DISB_DATE DATE);
TYPE LOAN_DISB_TABLE IS TABLE OF LOAN_DISB_REC INDEX BY BINARY_INTEGER;
LOAN_DISB_TBL LOAN_DISB_TABLE;
I NUMBER;
DT DATE;
BEGIN
LOAN_DISB_TBL_TYPE(2):='LNA_DISB_DATE';
TABLE_FROM_BLOCK(LOAN_DISB_TBL,'PT_EMP_LOAN_ADV_DISB',1,ALL_RECORDS,LOAN_DISB_TBL_TYPE);
DT:=TRUNC(LOAN_DISB_TBL(RECNO).LNA_DISB_DATE);
END LOOP;
You've specified the lna_disb_date item to be the stored in the second field in the record but only 1 field has been defined for the record.
TryLOAN_DISB_TBL_TYPE(1):='LNA_DISB_DATE';Since you're only using the data from 1 record in the table you could make the code more efficient by using "recno, recno" instead of "1, all_records" and then reference the date as "dt := trunc(loan_disb_tbl(1).lna_disb_date)". Note that doing this might give a different error message to what you previously may have seen when recno is greater than the number of records in the block. So if recno could ever be too large then you should test to find the error which is generated.
Similar Messages
-
how can i use datepicker in forms 10g for date data type items.
<p>Oracle Forms 11.1.2.0.0 Date Picker</p>
-
EAV modelling approach on database tables and how to use it in Forms Dvl
Hello,
I am dealing with two tables in data modell which are structured on EAV ( Entity-Attribute-Value ) modelling approach.
Survey( Survey# number not null,
Start_Date_Of_Survey date not null ,
End_Date_Of_Survey date null,
Sts_Of_Survey varchar2( 4 ) not null ,
Contractor_Partner# number not null, -- reference foreign key, to Partner's Table
Survey_Report CLOB ) ;
Survey# primary key of Survey.
Meta_Survey_Parameter_Register( Parameter# varchar2( 40 ) not null,
Additional_Parameter_Desc varchar2( 240 ) null,
Type_Of_Value varchar2( 60 ) not null,
Data_Type varchar2( 10 ) not null,
Unit varchar2( 10 ) null,
High_Value varchar2( 20 ) null,
Low_Value varchar2( 20 ) null );
Type_Of_Value Is restricted to : ATOMIC_VALUE, INTERVAL_VALUE_FROM_TO
Data_Type is restricted to: Date, time, number( X,Y ), varchar2,
Unit is varchar2 value not resstricted: for example: %, kg as kilo, m as meter, m/s as meter per second, null
This table is meta table so it suppose to be used as some register - static part of the schema.
Then I have table which attaches Parameters to the Survey as the association table
Survey_Parameters( Survey#, Parameter#, Value, Comment );
Primary key( Survey#, Parameter# );
I need to implement this in Forms and Reports.
My question is how to implement it to maximally make good use of Oracle forms 10g or 11g features and Oracle Reports 10g:
a) when fulfilling the survey and use of parsing rules supplied in Meta_Survey_Parameter_Register
b) at the producing as the survey report with reports
c) in data analyisis in data warehouse impementations.Hello Craig,
Thank you Craig for your answer.
I must confess that I am also not familiar with EAV theoretical background and concept. Till recently I even did not know that this kind of problem could be placed
in theoretical background called EAV. This put smile nad releive on my mind. Because since this moment I do not feel this kind of problem as some exception or
some exceptional tools or data design ( object modelling and object databases ) suppose to be used. This way I can still counted on concepts in RDBMS databases
and applications. Well I guess so.
Let me comment and answer on your text between your lines.
I am only conceptually familiar with EAV modeling, so I don't claim to be an expert! ;-) Given the abstract way in which data is stored with EAV, I would suggest that you first create a SQL Query that will produce the desired record set.
Ok. But I guess you have in mind to transform vertical set of values to horizontal ( pivoting, transposing )?
View has cast operator that transform data type of each parameter from general ( e.g. varchar2 ) to the one that is registered in the
Meta_Parameter_Register. This way it is provided to get the survey with the list of assigned parameters in horizontal shape?
Once you have this, you can either use the Query as the source of a Database View and then base your Forms data block on this view or you can use the query in a Procedure and base your Forms data block on the procedure or lastely, you could use the query directly and base your Forms data block on the query using the "From Clause" option.
Ok, I think I understand it.
So When I have horizontal list there is challenge during
- insert
- delete
- update
operations how to handle these operations to transform to vertical operation.
This could only be done with Forms data block based on procedure and instead of triggers?
The simplest option would be to create a DB view and base your block on the view. You will not be able to update the data however. If you need to be able to change or add new data, I would suggest you use a Procedure based block. Take a look at these links for additional information on using Procedure and From Clause based blocks.
Ok Craig, sounds like it makes sense.
IT seems your suggestion is caling for some simpler example with the same characteristic of the problem.
Like two tables:
Master( Master#, ..... )
Detail( Master#, Detail#, value_low_or_just_value, value_high, data_type )
Forms: How to base a block on a FROM clause Query
Forms: How to base a data block on a Procedure
Ok,
Hope this helps,
I see your point and it makes sense , it is only the challenge to see how much of flexibility I can reach and how cheap workarounds are to preserve
the level of flexibility in the tools that are not naturally supporting EAV ( like forms and reports ).
If someone's response is helpful or correct, please mark it accordingly.
Sure...
We are on the line.
I am sure there is someone else in the community that experienced this kind of challenge. -
How to make the oracle forms 10g applet or runtime the size of 1024x768?
Hi,
Can anyone tell me
How to make the oracle forms 10g applet or runtime the size of 1024x768?
Thanks in advans..Please post your question in Forms Topic
Kamran Agayev A. (10g OCP)
http://kamranagayev.wordpress.com
[Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/] -
Hello,
I am using FormsGraph in forms 10g.
Now I need additional options - more visualized graph and dynamic graph - like in Flash.
Is there a way to achieve that using a java bean?
Is it possible to use flash inside a form window?
Thank you,
NinaJava Plug-in 1.6.0_14
Using JRE version 1.6.0_14-b08 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\nina_n
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
Reading certificates from 141303 http://pc10-060.jer.ad.malam.com:8889/forms/java/frmall.jar | C:\Documents and Settings\nina_n\Application Data\Sun\Java\Deployment\cache\6.0\25\373de359-57e5f745.idx
load: class oracle.forms.webutil.common.RegisterWebUtil not found.
java.lang.ClassNotFoundException: oracle.forms.webutil.common.RegisterWebUtil
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
proxyHost=null
proxyPort=0
connectMode=HTTP, native.
Reading certificates from 141303 http://pc10-060.jer.ad.malam.com:8889/forms/java/frmall.jar | C:\Documents and Settings\nina_n\Application Data\Sun\Java\Deployment\cache\6.0\25\373de359-57e5f745.idx
גרסת Forms Applet היא : 10.1.2.3
Reading certificates from 1990 http://pc10-060.jer.ad.malam.com:8889/forms/java/eHTMLBrowser.jar | C:\Documents and Settings\nina_n\Application Data\Sun\Java\Deployment\cache\6.0\9\603b1b09-2844393f.idx
Reading certificates from 6718 http://pc10-060.jer.ad.malam.com:8889/forms/java/jdic.jar | C:\Documents and Settings\nina_n\Application Data\Sun\Java\Deployment\cache\6.0\51\2a47f033-52581ebc.idx
org.jdesktop.jdic.init.JdicInitException: java.io.IOException: The filename, directory name, or volume label syntax is incorrect
at org.jdesktop.jdic.init.JdicManager.initShareNative(Unknown Source)
at org.jdesktop.jdic.browser.WebBrowser.<clinit>(Unknown Source)
at oracle.forms.fd.EnhancedHTMLBrowser.<init>(EnhancedHTMLBrowser.java:56)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at oracle.forms.handler.UICommon.instantiate(Unknown Source)
at oracle.forms.handler.UICommon.onCreate(Unknown Source)
at oracle.forms.handler.JavaContainer.onCreate(Unknown Source)
at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
at oracle.forms.engine.Runform.processMessage(Unknown Source)
at oracle.forms.engine.Runform.processSet(Unknown Source)
at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
at oracle.forms.engine.Runform.onMessage(Unknown Source)
at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
at oracle.forms.engine.Runform.startRunform(Unknown Source)
at oracle.forms.engine.Main.createRunform(Unknown Source)
at oracle.forms.engine.Main.start(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: The filename, directory name, or volume label syntax is incorrect
at java.io.WinNTFileSystem.canonicalize0(Native Method)
at java.io.Win32FileSystem.canonicalize(Unknown Source)
at java.io.File.getCanonicalPath(Unknown Source)
... 23 more
------> ExtendedFrame title : Enhanced Web Browser
Set Border=false
Reading certificates from 141303 http://pc10-060.jer.ad.malam.com:8889/forms/java/frmall.jar | C:\Documents and Settings\nina_n\Application Data\Sun\Java\Deployment\cache\6.0\25\373de359-57e5f745.idx -
Hi,
I'm using webutil for viewing files(doc,pdf,txt).These files are stored in FTP server.
But my requirement is i have to link that files with BFILE. means those file paths store in bfile. how to use bfile in forms.1. \forms\server\formsweb.cfg
archive_jini=frmall_jinit.jar,FormsProperties.jar
2. regedit
HKEY_LOCAL_MACHINE => FORMS_BUILDER_CLASSPATH
C:\DevSuiteHome_1\forms\java\frmbld.jar;C:\DevSuiteHome_1\jlib\importer.jar;
C:\DevSuiteHome_1\jlib\debugger.jar;C:\DevSuiteHome_1\jlib\utj.jar;
C:\DevSuiteHome_1\jlib\dfc.jar;C:\DevSuiteHome_1\jlib\help4.jar;
C:\DevSuiteHome_1\jlib\oracle_ice.jar;C:\DevSuiteHome_1\jlib\jewt4.jar;
C:\DevSuiteHome_1\jlib\ewt3.jar;C:\DevSuiteHome_1\jlib\share.jar;
C:\DevSuiteHome_1\forms\java\frmwebutil.jar;C:\DevSuiteHome_1\forms\java\frmall.jar;
C:\DevSuiteHome_1\forms\java\FormsProperties.jar;
3. Untuk Jdev.. include..Libraries [THE WAY I AM CREATING A BEAN..NO NEED TO READ THIS]
ORacle Forms
C:\DevSuiteHome_1\jdev\lib\ext\frmjdev_pjc.jar -
How to use alerts in Form Portlet
Hi I m new to portal..
Plz suggest me how to use alerts in Form Portlet...
If possible give me some sample code...I think I already answered this question in the main Portal forum.
Mick. -
How to use standard Smart forms
hi All,
Pls give me the detail for smartform ie how to use standard smart forms and how to modify them in SAP 4.7EE
Thanks,
NitinHi,
first u copy the standrad smartform to z and then modify it,
SOME STANDARD SMARTFORMS
SF_EXAMPLE_01,
SF_EXAMPLE_02,
SF_EXAMPLE_03,
LB_BILL_INVOICE,
ENETR SMARTFORMS TCODE
PRESS F4 HERE U FIND ALL STANDARD SMARTFORMS
OR
U GO TO TRANSACTION CODE NACE
SAMPLE PROGRAM FOR SMARTFORM,
. Create a new smartforms
Transaction code SMARTFORMS
Create new smartforms call ZSMART
2. Define looping process for internal table
Pages and windows
First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
Here, you can specify your title and page numbering
&SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
Main windows -> TABLE -> DATA
In the Loop section, tick Internal table and fill in
ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
3. Define table in smartforms
Global settings :
Form interface
Variable name Type assignment Reference type
ITAB1 TYPE Table Structure
Global definitions
Variable name Type assignment Reference type
ITAB2 TYPE Table Structure
4. To display the data in the form
Make used of the Table Painter and declare the Line Type in Tabstrips Table
e.g. HD_GEN for printing header details,
IT_GEN for printing data details.
You have to specify the Line Type in your Text elements in the Tabstrips Output options.
Tick the New Line and specify the Line Type for outputting the data.
Declare your output fields in Text elements
Tabstrips - Output Options
For different fonts use this Style : IDWTCERTSTYLE
For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
5. Calling SMARTFORMS from your ABAP program
REPORT ZSMARTFORM.
Calling SMARTFORMS from your ABAP program.
Collecting all the table data in your program, and pass once to SMARTFORMS
SMARTFORMS
Declare your table type in :-
Global Settings -> Form Interface
Global Definintions -> Global Data
Main Window -> Table -> DATA
Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
http://sapr3.tripod.com
TABLES: MKPF.
DATA: FM_NAME TYPE RS38L_FNAM.
DATA: BEGIN OF INT_MKPF OCCURS 0.
INCLUDE STRUCTURE MKPF.
DATA: END OF INT_MKPF.
SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
MOVE-CORRESPONDING MKPF TO INT_MKPF.
APPEND INT_MKPF.
ENDSELECT.
At the end of your program.
Passing data to SMARTFORMS
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZSMARTFORM'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
if sy-subrc <> 0.
WRITE: / 'ERROR 1'.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
call function FM_NAME
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
GS_MKPF = INT_MKPF
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
Thanks&Regards,
Phani
POINTS HELPFUL -
hi
i want to ask how to use java in form 9i, can any one plz. give me an example
thanks & best regards!
SoftDesireFrom an earlier posting:
"Have a look in the online help for "Java Importer", PJC and "Java Bean".
There are also some paper on otn.oracle.com/products/forms
Click to view the papers and you will see a couple which should how to integrate Forms and Java.
Hope this helps.
Grant Ronald
Forms Product Management"
HOpe this helps.
Grant -
How to use JavaBean in Form Builder 6i
Hi,
How to use JavaBean in Form Builder 6i (Oracle Developer 6i)?.
i'am using Oracle Sever 8.0.4 and Oracle Developer 6i.
Please give your valuable suggestion
Regards
SeemaI would suggest you start with the sample Java bean code we have
on otn.
http://otn.oracle.com/products/forms
go to the sample code section. -
How to use iframes in oracle 10g
I have to load two jsp pages in a single html . I have done that thru iframes. But i have to dynamically load the second jsp page in the frame 2 , when the user clicks upon certain details in the frame 1 jsp page. I have wriiten the code of document.iframe in format trigger attribute. It doesn't work. Is there any other way to achieve this. I want to load the frame 2 jsp page dynamically , according to the input i get from frame 1 jsp page.
Hi,
>>Anybody know how to use profiler in oracle 10g
What do you mean "profiler". About Resource Limits/Create Profiles ?
>>i couldn't able to install the enterprise manager console.
What OS ?
>>because i need to trace the execution of a stored procedure.waiting the reply.
Debug ? You can use SQL Developer, TOAD, PLSQL Developer for this purpose.
Cheers -
How to Use Profiler in ORACLE 10g
Hi all,
Anybody know how to use profiler in oracle 10g and also i couldn't able to install the enterprise manager console.is there any tools available for that.because i need to trace the execution of a stored procedure.waiting the reply.
SathishHi,
>>Anybody know how to use profiler in oracle 10g
What do you mean "profiler". About Resource Limits/Create Profiles ?
>>i couldn't able to install the enterprise manager console.
What OS ?
>>because i need to trace the execution of a stored procedure.waiting the reply.
Debug ? You can use SQL Developer, TOAD, PLSQL Developer for this purpose.
Cheers -
How to use sys_context in form
i would like to need info about
how to use sys_context in form
for getting value in variableI don't know what you mean by "terminal name". If you want to get the user's IP address, you can create a stored function (or create a package, and include the function there), that returns the USERENV sys_context variable. Here is how you create a function on the database:Create or replace Function IP_Address return varchar2 is begin
Return sys_context('USERENV','IP_ADDRESS');
End;
/Now, you can use the function from a SQL select, another procedure, or a form. Here are several examples:
In SQL:Select IP_Address from dual;In a form:Message('IP Address='||IP_Address); -
How to Create Graph In forms 10g
Dear All
How to create a graph in Forms10G ?
Can you please give a small full example step by step ?This is a fairly common question in the Forum. Searching the forum would have given you your answer. Graphing data in a form is now handled through a Java Bean. You will need to download and install the Forms 10g Demo's to get an example (which includes the JavaBean) and the instructions on how to use the bean.
Craig... -
How To Use Recursion In Forms?
I have the following table
Table name: Project_Details:
Coulmns:
Project_num Number(6) PK
Project_Title
Project_status
Parent_project_Number Number(6) FK (It’s a foreign key for the project
number in the same table)
Am using the Oracle Forms Builder to develop the following screen with the following data
Project Number: ……….
Parent Project Number: ……..
Childs Projects:
I have the following case that I don’t know how to implement:
Example:
The user create the following Project Numbers
Project number: 100 >>> Original or parent
New project 105 >>> Child of 100
New project 107 >>> Child of 105
New project 109 >>> Child of 107
So when the user re query 100 the Childs project filed should have 105,107 and 109 as a recursion of parents as shown below.
Screen Result:
Project Number: 100
Parent Project Number :
Childs Projects:
105
107
109
Another query with project number =107
Screen Result:
Project Number: 107
Parent Project Number : 105
Childs Projects:
105
100
If any body has any idea in how to implement this idea using oracle forms and SQL please help me. Its urgent..
Thanks in advanced..Hmmm, looks like you can't update a connect by prior view. That's a shame.
Anyway, here's what you need:
CREATE TABLE test
(child number
,parent number);
INSERT INTO test VALUES (1, null);
INSERT INTO test VALUES (2, 1);
INSERT INTO test VALUES (3, 1);
INSERT INTO test VALUES (4, 2);
INSERT INTO test VALUES (5, null);
INSERT INTO test VALUES (6, 5);
INSERT INTO test VALUES (7, 6);
INSERT INTO test VALUES (8, 5);
CREATE OR REPLACE VIEW test_hier_vw
AS
select lpad(' ',2*(level-1)) || to_char(child) hier
from test
start with parent is null
connect by prior child = parent;
SQL> select hier from test_hier_vw
2 /
HIER
1
2
4
3
5
6
7
8
8 rows selected.
Maybe you are looking for
-
Hard Drive failed trying to restore music
Lost power and hard drive. I had a new hard drive installed and am now trying to reinstall everything!!! All my music was on my hard drive. I did back up my hard drive some time ago, but can I put the music from my ipod onto the new hard drive?
-
Exception handling in workflow
I've read few forums on exception handling in workflow, and tried working accordingly. Created a block and on normal branch, ive added "user decision" step, mail step... On the other (exception) branch, ive sent a mail to HR informin tht workflow wen
-
I am in the testing phase of the AnyConnect client. The network access manager will not start. In the system tray console, i see "service unavailable" for network:. When i try to start the nam service it says "the operation could not be completed. Ac
-
Hi, Planning to implement PI 7.3 & EP 7.3 in our landscape..we need to size these products & give it to our Implemenattion partner. When I am going through SAP Quicksizer for PI 7.3 I have been asked to fill : 1. XMLSize(KB) 2. Messages(KB) But not g
-
A project here has the following requirement. Want to use multiple schemas in the same database instance with identical structure. That is, from one login we want to determine the schema name to use at runtime and access it using the same mapping des