Forms clause query data source data block in oracle forms
Hello experts,
I am new in oracle forms.I am using oracle forms 11g with weblogic 10.3.5 at windows 7.Through googaling I know how to create a database block,forms clause data block and stored procedure based datablock in oracle forms.I want to know that as in case of Database based datablock, could we commit form either on editing records or on insertion or deletion in data block.
I tried this but got error frm 40501.If we can perform editing and creation in such type of datablock then please tell me how.
Thank You,
regards
aaditya
When I base my datablock on a query using the "From Clause" property of the block query data source in the oracle Forms 6i,
I get the strange error
"ORA-00928: missing SELECT keyword"
The query I see in the Display Error in Help Menu is
SELECT DAY_NUMBER,CONSULTANT_ID,EVENT_ID,EVENT_NUMBER,SESSION_NUMBER,HOURS_UNPAID,HOURS_PAID,PAPERWORK FROM (EVENT_ASSIGNED_CONSULTANT) WHERE (CONSULTANT_ID=:1)
What should I do now?????? Please remove the brackets () from the table name.
Instead of (EVENT_ASSIGNED_CONSULTANT) use
EVENT_ASSIGNED_CONSULTANT
Similar Messages
-
Sorting the data of control block in oracle form 10g
I have two block....both are the control block..
in first block i select the date and in second block the data of that date is populated.but the data is populated
using cursor in when-button-pressed trigger of that first block button...
in cursor the data is selected and placed in field of detail block using into clause.... each field..
.and one item of detail block is srno which is create in post-query of detail block using
:sysyem.trigger_record.
Now i want after populated the detail block the data is sorted desc one of the field of the detail block...
Can this possible using set_block_property() of block although the block is control block if yes where i should do
this??????
Please explian...????but with the cursor of repopulate ...how the block is in desc by one field..because if i use again the same cursor to poulate than whats this benefits???
if i write a cursor in button when-button-trigger in first block like this code....
go_block('');
cursor emp_cur is
select empno,date,sal
from emp;
begin
for i in cur loop
select i.empno,i.date,i.sal
into :empno,:date,:sal
from emp
end loop
end;
this loop populate the block which is controll block..
syntax error should be ignored ...i wana to explain what i want to do...
this is not the actual query i have another query but the concept is that...
how i can do this... -
Displaying Records data as text grid in oracle forms
Hi
I am new to oracle forms. I want to display data from different tables as a text.
And I need to give hyper link for that data.
I am using oracle forms 10g., forms builder.
can anyone tell me the process.. I need it very very soon..
Thnx in advance
~nocOk, you can populate records in 2 ways
1. Using cursor (if your block is a non-database block)
2. Using EXECUTE-QUERY (If your block is a database block)
If you have created a database view as suggested above, then you can simply add a WHERE clause in the property palette of the block,
then in the button's when-button-trigger write EXECUTE_QUERY.
But if you have created a non-database block, (didnt create database view)
in that case you can simply write a cursor in the when-button-pressed trigger as:-
Declare
cursor my_cur is
select col_list....
from table_list....
where......;
Begin
GO_BLOCK('Name of block');
CLEAR_BLOCK(NO_VALIDATE);
First_Record;
For cur in my_cur Loop
:BLOCK_NAME.ITEM_NAME := cur.col1;
Next_Record;
End Loop;
First_Record;
End;
One more point, as suggested above, you can create the button in a non-database control block,
or,
in the same block with the button's Number of Records Displayed set to 1
in either case, I usually keep the button's Mouse Navigable & Keyboard navigable properties to No, -
How adding a data source-data destination inside SSIS 2012-SSDT
Hi,
I need to see inside a SSIS 2012 project a new SSIS installed component but in the SSDT 2010 I cannot see the SSIS Data Flow Items tab for adding data source/data destination respect to the choose toolbox items pane:
It seems a SSIS bug.
Any helps to me, please?
ThanksHi,
In SQL 2012 you are no longer required to manually pick the tasks and components you want to use. You have to select from the new custom SSIS Toolbox to use the additional components you need.
SSIS Tasks Components Scripts Services | http://www.cozyroc.com/ -
How to access a field of an data source w/o binding a form field to it
Hi
This is a query regarding ADOBE print form.
How to access a record field (of an data source.... typical multi row records) where the record is bound to a subform.
Data is something like
(I have used abap parlance for understanding)
data : begin of data_tab occurs 0,
field1 type .....,
field2 type .....,
fieldm type .....,
fieldn type .....,
end of data_tab.
Subform is bound to
$.DATA_TAB.DATA[*]
How to access field1, field2,...... etc without creating subform fields and binding them to field1, field2, .... fieldn.
I know normal approach is to define subform fields and then bind it to $.field1, $.field2 etc
In the calculate event of a field bound to $.fieldm I have tried the following expressions to get the value of column fieldn of the same record but none of them worked.... Note that if I bind the field using $.fieldn data is displayed properly in the print form.
$record.data_tab.fieldn.value
$record.data_tab.data[*].fieldn.value
$record.data_tab.data.fieldn.value
$record.data_tab.fieldn.value
Otherwise I would have to define hidden fields just to use these column values in the event script even though these value are not to be displayed in the ADOBE print form.
Regards
AbapperI can't remember the exact sentence, but do a little search, as that is a common question in this forum....
How about:
$record.data_tab.data[1].fieldn.value
$record.data_tab.data[2].fieldn.value
$record.data_tab.data[2].fieldn.value
$record.data_tab.data[N].fieldn.value
Cheers. -
Upload data from microsoft access to oracle form(in data block)
Hi all,
Any one can help me, how we can upload data from access file to developer form(in data block).
as
we upload data from text file to developer form(in data block) using some packages.
Thank's in advanceHi Zuhair,
If you give details of the problems you are still having then we should be able to get SQL*Developer to work.
However, if you don't want to use SQL*Developer then the following options are taken from note 393760.1 available in Metalink if you have access to that -
1. Use a gateway that supports the non-Oracle database or generic connectivity if a third party ODBC driver is available to do a -
'create Oracle_table as select from non_oracle_table@database_link'
for each table. You would then have to manually create all the other objects (views, indexes, stored procedurs etc) and permissions etc that existed in the non-Oracle database.
2. Use the SQL*Plus COPY command to copy data from the non-Oracle database to the
Oracle database using a gateway or generic connectivity. The syntax is as follows:
COPY FROM username/password@oracle_sid -
INSERT destination_oracle_table -
USING query;
The following example selects all rows from the EMP table in the non-Oracle database and
inserts them into the local Oracle EMP table:
COPY FROM SCOTT/TIGER@ora10 -
INSERT EMP -
USING SELECT * FROM SCOTT.EMP@gateway;
where "gateway" is the database link created for the gateway.
3. Load the non-Oracle data into flat files and use SQL*Loader to put the data into Oracle tables. Again manual
work is required for the other objects.
4. Contact the Oracle Product Technology Services (PTS) group for assistance. See the webpage -
http://www.oracle.com/technology/tech/migration//workbench/index_sqldev_omwb.html
5. Use a third party migration tool. See -
http://www.oracle.com/technology/tech/migration/isv/third_party.html
6. Use JDBC to connect to the non-Oracle database and Java in the Oracle database. This method will work but it is not suppported by the JDBC team.
=========
The amount of work involved will depend on the number and size of Access tables that you want to migrate.
Regards,
Mike -
How to avoid clear data in the block in a form
Hi All
I am using Oracle form 10g and db 10g.
My form i have a list item in my main canvas. It has a value of (EXPENSE,AMOUNT,SUPPLIER,ACCOUNT).
The user used to select the list item one by one and used to enter values in the each canvas assigned to the Item(expense,amount,supplier,account) and go for a save.
For instance when the user enter the value in expense ,amount and supplier and again back when the user navigate back to amount the entered value get cleared.
how to avoid the data get cleared.
Thanks & regards
Srikkanthyou can use EXECUTE_QUERY built-in to populate the data when that canvas or block instance. If it need at block level write this at When New Block Instance. if it a tab page then you can write when tab page change. If need where condition, add block level where condition.
-
Cannot get ODBC data source to talk to Oracle 10g for Windows
Problem description
I recently installed Oracle 10g on my laptop computer, which is running Windows 7. Everything went smoothly except for one crucial item: The ODBC data source I added keeps returning this error when I click the "Test Connection" button:
Testing Connection
Unable to connect
[Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_ENV failed.
I was using the following ODBC driver
Oracle in OraDb10g_home1 (TNS Service Name = ORCL and User ID = scott)
This type of error happened, in one form or another for the three other Oracle drivers I have on my machine
Microsoft ODBC for Oracle
WinSQL Oracle
WinSQL Oracle Wire Protocol
These services are currently running (status = Started)
OractDBConsoleorcl
OracleMTSRecoveryService
OracleOraDb10g_home1iSQL*Plus
OracleOraDb10g_home1TNSListener
OracleServiceORCL
(NOTE: I entered the foregoing information by hand, since I was not able to copy-and-paste it. So be aware that there is a small possibility of a minor typo in case you plan to cut-and-paste it.)
If requested, I can provide the contents of these files
tnsnames.ora
sqlnet.ora
listener.ora
Other installations on the same computer
ODAC (ADO data provider for Oracle)
SQL Server 2009 Express
.NET 4
Visual Studio 2010
Any help would be greatly appreciated!OK, I went ahead and upgraded to Windows 7 Professional and I STILL get the same error messages when trying to get the Oracle ODBC driver to talk to Oracle 10g. Here are some screen shots that show what happened:
1) Select ODBC driver: http://yfrog.com/f3driverselectionp
2) Configure driver: http://yfrog.com/ccoracleodbcfororaclep
3) Test connection: http://yfrog.com/1goracleodbcfororacletestp
I also get the following error when I try to run SQL*Plus from the line command, even with no parameters:
C:\Users\Bruce>sqlplus
SP2-1503: Unable to initialize Oracle call interface
SP2-0152: ORACLE may not be functioning properly
Any suggestions as to how I might to go about diagnosing (and fixing) this problem?
Thanks,
Bruce -
RSA5 busiibes content data source data wen activated
hi dis is anil
my query is when we activate the bussiness conent datasource , in rsa5, the data source will be in ra6, so the activated datasource is having the data with itHi Sreeanil,
If it is FI extractors or generic then you can see data,
If it is LO extractors then you have to fill the setup tables.to get the data in TX : RSA3...
hope this will answer your question.
Thanks,
Vijay.
Edited by: vijay m on Jan 8, 2010 4:05 PM -
Changing the data source from DB2 to ORACLE in SBOP 4.0
Hi Gurus,
We have done SBOP 4.0 SP 2 installation successfully on Linux by choosing DB2 as default Database as suggested by SAP as there is some issue with RH LINUX 5.5 version. Now, we need to change the CMS data source back to ORACLE 11G. For that we have to execute cmsdbsetup.sh and go with the option of "copy" (Copy data from another Data Source). We need to provide the target/destination CMS database in my case ORACLE (TNS & CMS user) details. And also we need to provide the source CMS user (DB2) details. As we went with the bundled/default DB2 installation, we are not able to find the cms user name and password (no where during the installation it prompted to provide cms username and password).
What will be the default cms username /password in DB2?
Thanks,
SandeepHi,
The work around is to create/add an extra node (SIA Node) with default servers option for the existing CMS and provided my ORACLE CMS username/password along with the TNS Names using cmsdbsetup.sh. Make sure that this new node is visible in the Servers section of the CMC console (i.e. http://<webappserver>:8080/BOE/CMC-->servers) and also see that all the servers should be running. Then you can delete the old SIA which was connected to DB2 from the CMC->servers.
Thanks,
Sandeep -
Data Sources , Data Providers to a Single WebI Report
Hi Guru's ,
I am a newbie..!! I am going through the documents related to a creation of WebI Report and got to know that we can combine two or more data sources (or) two data providers(Queries) in creation of a single WebI Report . However,I am still confused with this incoming stuff for creating a WebI Report .
Could some one explain me what type of combinations can give as an input for creating a WebI report ?
For example, one can link two or more queries and create a single report by using merge dimension concept !! If so, Will WebI accept data coming from 2 different universes, data coming from 2 or more different data sources like SQL data and SAP ecc ?
Please explain this as I am new to this !!Hi
Common in the sense relevant data in the two objects with same data type.
See chapter 24 in the attached pdf more on merge dimension and how it will work in webi.
http://help.sap.com/businessobject/product_guides/boexir4/en/xi4sp4_ia_desktop_en.pdf -
Tx Data Sources Target lost when Oracle Database is shutdown
I noticed today a problem that occurred within Weblogic 6.1 console:Services:Tx Data Sources:txNameDataSource were the targeted server was removed from the "chosen" text area do to a database server being shut down. After digging through error logs and searching the weblogic server console I found the target problem. Is there a bug report database that I could search through to see if this is a know error? When I monitor the start-up of weblogic I do not see any notification messages saying DataSourceXYZ has thrown an exception...
Set the target server on the TxDataSource.
The TxDatasource should have a <JDBCTxDataSource/> tag in config.xml.
<JDBCTxDataSource JNDIName="TxDataSourceJndi"
Name="JDBCTxDataSource" PoolName="JDBCConnectionPool" Targets="myserver"/>
Dan <[email protected]> wrote:
I noticed today a problem that occurred within Weblogic 6.1 console:Services:Tx
Data Sources:txNameDataSource were the targeted server was removed from
the "chosen" text area do to a database server being shut down. After
digging through error logs and searching the weblogic server console
I found the target problem. Is there a bug report database that I could
search through to see if this is a know error? When I monitor the start-up
of weblogic I do not see any notification messages saying DataSourceXYZ
has thrown an exception... -
Querying a multi-record block within my form
I have a form where I perform validations of items entered on my main block. I compare the item value entered to an expected value and if they are different then an exception record must be created in a separate, multi-record block within my application. One record on my main block may end up with multiple different exception records in the multi-record block. As a result, part of my validation must include determining whether the user has already created an exception record for the item that I'm validating in the multi-record block.
Is there a way for me to query and uncomitted, multi-record block in my form? Help would be greatly appreciated!Andreas' method is good.
Only several changes:
LOOP... EXIT WHEN :SYSTEM.RECORD_STATUS='NEW';
(Use NEW, not TRUE)
And just before the Raise Form_Trigger_Failure, I would Go_Item to either the item in error, or to a new line in the exceptions block. And also issue an error message.
....By the way...
If your exceptions block has more rows than will fit on the screen, then your search loop function will may cause the rows to jump up or down when the user tries to commit. There is a way to reset the view after the function completes its search -- you just need to store the value of the block's Top_Record property before the First_Record command, and then Go_Record(Top_Rec_value); after the function completes its loop.
Also, there is a way to prompt the user to enter the exception record when you first validate the item in a when-validate-item trigger. But the user might ignore the prompt, so you still need to re-check everything from the key-commit process. To use the WVI prompting, in the WVI trigger you check if an exception is required. If it is, store the item name in a package variable, then start a non-repeating timer. When the timer expires, save the :System.cursor_item value (so you can go_item back to it after calling the function), and then call the function to check for the exception for the item named in the package variable. If not found, prompt the user. If found, go_item back to the cursor_item_value. -
COPA data source data type changed for BUKRS
Hi Exp,
I've created one copa data source with cost based successfully in R/3 system. I've replicated that into BI system bu the problem is for characteristic BUKRS [Company code] the data type showing REF in BI which is non existance and hence i'm unable to activate this data source.
Coudl anyone plese help...........
Thanks & Regards,
AmarnathHi Ramesh,
Thanks for your reply. It is in internal format only. I changed it to external and selected ALPHA conversion also but it's of no use. I don't know why. Is it the error on BI side or R/3 side?
Thanks & Regards,
Amarnath -
Post query trigger problem in master detail oracle forms
Hello experts,
I am new in oracle forms n using Fission middleware 10g with oracle forms 11g at windows 7 platform.
I have made a master detail form using a tab canvas.There is a database column STUDENTID and it is in my student tab with a TBL_STUDENTENTRY data block.Now I Have an another tab named previous_education with TBL_STUDENT_PREVIOU_EDU datablock here there is also a database column STUDENTID and corresponding field in my previous_education TAB under TBL_STUDENT_PREVIOU_EDU datablock.Now i want to add a display item to show student name corresponding to STUDENTID.For this I have tried to make a select query in TBL_STUDENT_PREVIOU_EDU data block POPST_QUERY TRIGGER.
begin
select STUDENTNAME into :TBL_STUDENT_PREVIOU_EDU.STD_NM from TBL_STUDENTENTRY where STUDENTID=:TBL_STUDENTENTRY.STUDENTID;
end;
But, This trigger is not fired at runtime,Please suggest me what is going wrong and give me the solution.
Thank You
AADITYA.http://www.club-oracle.com/forums/post_query-problem-in-oracle-forms-t9751/#post23794 , This is the link at where I have tried to show my problem with the help of an image,Please get the link:
thanx
regards Aaditya.
Maybe you are looking for
-
Having one iTunes music library for multiple computers via TimeCapsule
Hi there, I'm just wondering how to best set-up my iTunes library. I want the library on my TimeCapsule wireless hard drive, and to be able to set this as the library for multiple computers at home. It's a waste of space to have duplicate libraries o
-
Hi There! I would like to put a song I sang on itunes. It is using a karaoke track from "Karaoke #1 hitmakers". And it is Justin Timberlake's version of "hallelujah. I can't find contact info for this karaoke company for starters...ANYWHERE in Googl
-
Distinct clause as part of EJB QL
Hi, I am trying to perform a simple query which looks like following in ejb-jar.xml <query> <query-method> <method-name>findBySecurityNumber</method-name> <method-params> <method-param>int</method-param> </method-params>
-
Hi all, I am facing problem to extract data and insert into another table. I need to fetch part number from all_parts_already and then based on the result I need to extract place from all_parts and insert into all_parts_already. Sample data in the ta
-
Upgrade forms 3.0 to 4.5 (Character Mode)
Our group is doing this conversion because v4.5 is Y2K compliant. The forms will still be run on the server because a) it's faster, and b) user PC's don't have to be upgraded. The following problems have occurred: 1. Canvas-views are not big enough t