Execute query not working in CALL_FORM
Hi,
I am opening FormA from FormB, when clicking a button, and pass the values to Form B,
by using the global variables, and assigned these values in the pre-query of Form B, When clicking button Form B is
opening, but nothing displaying, I need to click on Execute Query to get the data displayed.
I am calling Form B by using CALL_form('FORMB.FMX');
Statment In the WHEN-NEW-FORM-INSTANCE of Form B
EXECUTE_QUERY; << This not working >>
GO_BLOCK('NRT_HEADER');
Oracle & Forms Verison : 10g
Thanks in advance
Rizly
Thanks Francois & Tony.
The problem got solved by using NO_HIDE
CALL_form('POPUP_NRT_FILE_HEADER.FMX',NO_HIDE);
Now the data & form is visible, But when I click on the any other field ( other than the first field), the screen is becoming blank, again I need to click on the Execute Query button, but after that I can click on any other field it wont go invisible.
THanks in advance
Edited by: RizlyFaisal on Sep 25, 2008 2:30 AM
Similar Messages
-
Execute Query not working on custom forms
Hi
After upgrading from 11.5.10.2 and Oracle 9.2.0.5 to ATG6, AD6, oracle 10.2.0.4, Forms 6.0 (Form Compiler) Version 6.0.8.28.0 . The execute query (F11 & CTRL F11) is not working on custom forms. But after tabbing from one column to another column then press CTRL F11 is working.
Please any one help me on this issue.
Thanks
svaHi
I found this error in the trace file. Please help me what is the problem, the data is there in the table.
Out Argument 0 - Type: String Value: ORA-01403: no data found
Executing NAME_IN Built-in:
In Argument 0 - Type: String Value: parameter.G_query_find
Out Argument 0 - Type: String Value: NULL
Executing USER_EXIT Built-in:
In Argument 0 - Type: String Value: FND MESSAGE_CLEAR
MCXQPBULKINVOICEENTER, -1, Built-In, Entry, -1196178744, USER_EXIT
TSE FSERVER_START -1 1407 1279530838565801000
TSE FSERVER_END -1 0 1279530838579778000MCXQPBULKINVOICEENTER, -1, Built-In, Exit, -1196091744, USER_EXIT
Executing COPY Built-in:
In Argument 0 - Type: String Value: Entering app_debug.clear
In Argument 1 - Type: String Value: global.frd_debug
Executing FIND_GROUP Built-in:
In Argument 0 - Type: String Value: APP_DEBUG
Executing COPY Built-in:
In Argument 0 - Type: String Value: Completed app_debug.free.
In Argument 1 - Type: String Value: global.frd_debug
Executing MESSAGE Built-in:
In Argument 0 - Type: String Value: FRM-41003: This function cannot be performed here.
In Argument 1 - Type: Number Value: 121
Unhandled Exception ORA-100501
State Delta:
MCXQPBULKINVOICEENTER, -2, Trigger, Exit, -1190876744, ON-ERROR
##### CTIME STARTS HERE
# 8 - MCXQPBULKINVOICEENTER:BLOCKNAME.RADIO_BUTTON81.1279530839956685000
KEY Execute_query
Error Message: FRM-41003: This function cannot be performed here.
N-ERROR Trigger Fired:
Form: MCXQPBULKINVOICEENTER
State Delta:
MCXQPBULKINVOICEENTER, -2, Trigger, Entry, 181183256, ON-ERROR
MCXQPBULKINVOICEENTER, -1, Prog Unit, Entry, 181304256, /MCXQPBULKINVOICEENTER-3/P58_07_DEC_200909_04_40
Executing COPY Built-in:
In Argument 0 - Type: String Value: Entering app_standard.event. Event is ON-ERROR.
In Argument 1 - Type: String Value: global.frd_debug
Executing ERROR_TYPE Built-in:
Out Argument 0 - Type: String Value: FRM
Executing ERROR_CODE Built-in:
Out Argument 0 - Type: Number Value: 41003
Executing ERROR_TEXT Built-in:
Out Argument 0 - Type: String Value: This function cannot be performed here
Thanks
sva -
Why is my executable VI not working with a PCI-6259?
I have bought a PCI-6259 which has referencing trigger capability. I wrote a VI for acquiring the data and tested the VI on my PC that has the full developmental LabView 8.2.1 package installed. The trigger is a 1 volt level that is triggered by a potentiometer ranging from 0-5 volts that I control manually. The VI works exactly how I want it to, however, now I want to use the Application Builder to create an executable to distribute the VI to the testing station PC. I then removed the PCI-6259 from the developmental PC and installed it in the testing station PC and loaded the executable VI along with the LabView 8.2.1 Run Time Engine. I open the program and it runs but I cannot get the program to trigger using the same potentiometer so it runs in an infinite loop. I'm pretty sure everything is loaded correctly and the only difference between the two stations is that one has the full developmental LabView package and the other is an executable. Would anyone know why my executable is not working?
Thanks,
Matt KostyalHey Matt,
Thanks for contacting National Instruments support. One thing I'd like to see you try in the DAQ diagnostic utility. I do not suspect a bad card, but it is an executable that we can try that we know was properly built. If it doesn't work that will give us some more insight into the problem if it is truly hardware or software.
Let me know what you find.
Regards,
Kenn North
Senior Product Manager - Search, Product Data
http://ni.com/search -
Webutil.host.HostBean not found WEBUTIL_HOST.execute will not work
Hi everyone:
I've got a form. I've attached webtill.pll and subclassed webutil.olb.
In the WHEN-NEW-FORM-INSTANCE trigger it does:
client_host('cmd /c cd > arch.txt');
When I execute my form I got the errror:
webutil.host.HostBean not found
WEBUTIL_HOST.execute will not work
Could anyone give me some help on it?
Thanks!
CarolinaHi!
this is what I got in the Java console
JInitiator: Versión 1.3.1.22
Usar versión JRE 1.3.1.22-internal Java HotSpot(TM) Client VM
Directorio local del usuario = C:\Documents and Settings\Administrador
Configuración del delegado: sin delegado
JAR cache enabled
Location: C:\Documents and Settings\Administrador\Oracle Jar Cache
Maximum size: 50 MB
Compression level: 0
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
q: hide console
s: dump system properties
t: dump thread list
x: clear classloader cache
0-5: set trace level to <n>
Loading http://rx26201:7778/forms/java/frmall_jinit.jar from JAR cache
Loading http://rx26201:7778/forms/java/frmwebutil.jar from JAR cache
Loading http://rx26201:7778/forms/java/jacob.jar from JAR cache
Loading http://rx26201:7778/forms/java/dgrImages.jar from JAR cache
proxyHost=null
proxyPort=0
connectMode=HTTP, native.
La versión del applet Forms es: 10.1.2.0
thanks! -
Problem Summary
Cancel Query not working on 11.5.10
Problem Description
While finding orders, window pops up the cancel query but when user tries to click the cancel button, query does not cancel.jemar98 wrote:
Problem Summary
Cancel Query not working on 11.5.10
Problem Description
While finding orders, window pops up the cancel query but when user tries to click the cancel button, query does not cancel.Please post the details of the application release, database version and OS.
Was this working before? If yes, any changes been done recently?
Please review (Canceling Long Running Queries in Oracle Applications 11i [ID 138159.1]) and make sure you complete all the steps.
Thanks,
Hussein -
Oracle date parameter query not working?
http://stackoverflow.com/questions/14539489/oracle-date-parameter-query-not-working
Trying to run the below query, but always fails even though the parameter values matches. I'm thinking there is a precision issue for :xRowVersion_prev parameter. I want too keep as much precision as possible.
Delete
from CONCURRENCYTESTITEMS
where ITEMID = :xItemId
and ROWVERSION = :xRowVersion_prev
The Oracle Rowversion is a TimestampLTZ and so is the oracle parameter type.
The same code & query works in Sql Server, but not Oracle.
Public Function CreateConnection() As IDbConnection
Dim sl As New SettingsLoader
Dim cs As String = sl.ObtainConnectionString
Dim cn As OracleConnection = New OracleConnection(cs)
cn.Open()
Return cn
End Function
Public Function CreateCommand(connection As IDbConnection) As IDbCommand
Dim cmd As OracleCommand = DirectCast(connection.CreateCommand, OracleCommand)
cmd.BindByName = True
Return cmd
End Function
<TestMethod()>
<TestCategory("Oracle")> _
Public Sub Test_POC_Delete()
Dim connection As IDbConnection = CreateConnection()
Dim rowver As DateTime = DateTime.Now
Dim id As Decimal
Using cmd As IDbCommand = CreateCommand(connection)
cmd.CommandText = "insert into CONCURRENCYTESTITEMS values(SEQ_CONCURRENCYTESTITEMS.nextval,'bla bla bla',:xRowVersion) returning ITEMID into :myOutputParameter"
Dim p As OracleParameter = New OracleParameter
p.Direction = ParameterDirection.ReturnValue
p.DbType = DbType.Decimal
p.ParameterName = "myOutputParameter"
cmd.Parameters.Add(p)
Dim v As OracleParameter = New OracleParameter
v.Direction = ParameterDirection.Input
v.OracleDbType = OracleDbType.TimeStampLTZ
v.ParameterName = "xRowVersion"
v.Value = rowver
cmd.Parameters.Add(v)
cmd.ExecuteNonQuery()
id = CType(p.Value, Decimal)
End Using
Using cmd As IDbCommand = m_DBTypesFactory.CreateCommand(connection)
cmd.CommandText = " Delete from CONCURRENCYTESTITEMS where ITEMID = :xItemId and ROWVERSION = :xRowVersion_prev"
Dim p As OracleParameter = New OracleParameter
p.Direction = ParameterDirection.Input
p.DbType = DbType.Decimal
p.ParameterName = "xItemId"
p.Value = id
cmd.Parameters.Add(p)
Dim v As OracleParameter = New OracleParameter
v.Direction = ParameterDirection.Input
v.OracleDbType = OracleDbType.TimeStampLTZ
v.ParameterName = "xRowVersion_prev"
v.Value = rowver
v.Precision = 6 '????
cmd.Parameters.Add(v)
Dim cnt As Integer = cmd.ExecuteNonQuery()
If cnt = 0 Then Assert.Fail() 'should delete
End Using
connection.Close()
End Sub
Schema:
-- ****** Object: Table SYSTEM.CONCURRENCYTESTITEMS Script Date: 1/26/2013 11:56:50 AM ******
CREATE TABLE "CONCURRENCYTESTITEMS" (
"ITEMID" NUMBER(19,0) NOT NULL,
"NOTES" NCHAR(200) NOT NULL,
"ROWVERSION" TIMESTAMP(6) WITH LOCAL TIME ZONE NOT NULL)
STORAGE (
NEXT 1048576 )
Sequence:
-- ****** Object: Sequence SYSTEM.SEQ_CONCURRENCYTESTITEMS Script Date: 1/26/2013 12:12:48 PM ******
CREATE SEQUENCE "SEQ_CONCURRENCYTESTITEMS"
START WITH 1
CACHE 20
MAXVALUE 9999999999999999999999999999still not comming...
i have one table each entry is having only one fromdata and one todate only
i am running below in sql it is showing two rows. ok.
select t1.U_frmdate,t1.U_todate ,ISNULL(t2.firstName,'')+ ',' +ISNULL(t2.middleName ,'')+','+ISNULL(t2.lastName,'') AS NAME, T2.empID AS EMPID, T2.U_emp AS Empticket,t2.U_PFAcc,t0.U_pf
from [@PR_PRCSAL1] t0 inner join [@PR_OPRCSAL] t1
on t0.DocEntry = t1.DocEntry
inner join ohem t2
on t2.empID = t0.U_empid where t0.U_empid between '830' and '850' and t1.U_frmdate ='20160801' and t1.u_todate='20160830'
in commond promt
select t1.U_frmdate,t1.U_todate ,ISNULL(t2.firstName,'')+ ',' +ISNULL(t2.middleName ,'')+','+ISNULL(t2.lastName,'') AS NAME, T2.empID AS EMPID, T2.U_emp AS Empticket,t2.U_PFAcc,t0.U_pf
from [@PR_PRCSAL1] t0 inner join [@PR_OPRCSAL] t1
on t0.DocEntry = t1.DocEntry
inner join ohem t2
on t2.empID = t0.U_empid where t0.U_empid between {?FromEmid} and {?ToEmid} and t1.U_frmdate ={?FDate} and t1.u_todate={?TDate}
still not showing any results.. -
Update query not working in the JDBC sender Communication channel
Hi,
We are working on JDBC to File scenario. As per the configuration, XI should pick the data from SQL database every 20 secs and should update the corresponding flag. We are using subquery in the select and update statement as both header and detail tables are involved.
Now the issue is, select query is working fine but update statement is not working as expected. It is somehow updating some other records rather than doing for the ones selected by the adapter.
Moreover logSQLstatement is also not working. Hence we are unable to identify the records which are getting updated.
Please advise.Hi Rumi,
See Question 8. Transaction Handling (Sender) in [SAP Note 831162 - FAQ: XI 3.0 / PI 7.0 / PI 7.1 JDBC Adapter|https://websmp130.sap-ag.de/sap(bD1wdCZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=831162].
8. Transaction Handling (Sender)
Q: If I have the following configured in a JDBC Sender:
Select Query:
SELECT column FROM TABLENAME WHERE FLAG = "TRUE"
Update Query:
UPDATE TABLENAME SET FLAG = "FALSE" WHERE FLAG = "TRUE"
How do I know that the JDBC adapter will not update newly added rows (rows that were
added between the time that the SELECT and UPDATE queries were executed) that were
not read in the initial SELECT query?
A: The SELECT and the UPDATE are run in the same DB transaction, i.e. both statements
have the same view on the database.
Make sure that both statements use the same WHERE clause. An additional
requirement for the correct operation of this scenario is the configuration of
an appropriate transaction isolation level on the database
(i.e., repeatable_read or serializable). You might also consider using a
"SELECT FOR UPDATE" statement instead of a plain SELECT statement to
ensure proper locking on the database. "SELECT FOR UPDATE"
is not supported in MS SQL database. In this case please make use of an
appropriate transaction isolation level on the database. For more details
please contact your DB vendors.
After, see Transaction Handling Issues in [SAP Note 1039779 - JDBC Adapter issues(Escape character,Transaction handling)|https://websmp130.sap-ag.de/sap(bD1wdCZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1039779].
Best Regards.
Pedro Baroni -
Delete query not working ?
hi all,
this delete query is not working for me. Could you please help me and tell me ho to resolve this ? The error i get when executing this query is "ORA-00903: invalid table name". The table name is correct I fail to understand why does it show invalid table name.
Thanking you all.
RegardsObviously the table name isn't correct. Either that, or the user that the query is running under doesn't have permissions to view it, so it's getting the response that the table does not exist.
Look at the user you are connecting as. Log in to sqlplus and make sure that user has select perms on the table.
Check your spelling of the table name. Typos happen. -
Hi,
I am facing problem with SAP Query. My query is not working for one particular date. Its giving timeout error when i just give date as input. I tried executing it by giving some particular document as input, then its giving "no data" message but when i check the table data, there are some records for that input condition.
I debugged it, i found that the statement "FETCH NEXT CURSOR cursorname" is throwing sy-subrc eq 4. I couldn't understand the problem.
Any inputs will be very helpful.
Regards,
Mahidhar.Hi Azeem,
There are more than 10 tables that were used in this query with different types joins like inner join, left outer, right outer join. So i wasnt able to decode the select query that was present in open cursor command.
I have given the date and executed the same in background. It ran in 19min. But when i add one more input parameter, then its running more than a day(still running ). Didn't get the exact problem still.
Regards,
Mahidhar. -
SELECT BUKRS HKONT DMBTR FROM BSIS
INTO TABLE IT_BSIS
WHERE HKONT = '511125'
AND BUKRS = P_VKORG.
this query not giving any data.. and in bsis table already i found this data..
if u remove hkont condition it's working fine but with hkont condition giving me 0 data...
and in table actully data exist for this selection..
Edited by: Julius Bussche on Sep 10, 2008 10:10 AMHi,
Check carefully in the BSIS table.
1. U have to pass the hkont field with leading zeros.
2. is p_bukrs has some value???
3. is it p_vkorg or p_bukrs???
I think second one is causing the problem.
While executing table u might not be entering BUKRS. But since it is parameter in select query it compares with blank.
Pass some value to p_bukrs and check. u should get the data.
another way is instead of parameter declare p_bukrs as below.
SELECT-OPTIONS so_bukrs FOR bsis-bukrs NO INTERVALS NO-EXTENTION.
In select query instead of = operator use IN operator
SELECT .....
INTO TABLE...
FROM ...
WHERE....
AND bukrs IN so_bukrs.
Hope it solves ur issue.
Check this and get back in case of any issues.
thanks,
Vinod. -
Execute Query - Not finding data
I have a form with a Master-Detail-Detail (I will refer to them as Master, Detail_1, Detail_2) relationship between blocks.
There is a WHEN_NEW_FORM_INSTANCE trigger that populates a record group and then sets a list item in Detail_1 to the record group values. All other behavior is default forms.
When I perform an execute query using the default toolbar buttons, no data is returned even though data exists in the corresponding tables.
I am thinking that the setting of the list item may be causing the query to fail but I'm not sure. I have commented out the working code in the WNFI trigger and just have a NULL; statement as a test, but the default query still returns no data.
Do I need to clear the list item of its values? If so, at what point should I do this (enter-query)?
My Forms version is 10.1.2.
I appreciate guidance on this matter.The query may be failing because you are retrieving a record that has a value that is not listed in the list item's list of values. Use the list item's Mapping of Other Values property to tell Forms what to do when it retrieves a value not found in the list of values. Also see the CONVERT_OTHER_VALUE built-in.
-
Execute query not workin on application server
i have upgraded my form to 10.1.2.0.2 successfully and can host them using the application server ....
in the form i have got various tab canvas,stacked canvas,contect canvas.....
but my execute query function is not working ...dont know why@abdetu...
hey buddy every thing is working fine now ....
according to your suggestion i checked the errors...
and found that some of the columns were not exported properly from the targer database ...
after adding the database everything started to work perfectly fine
once again thnx a lot for ur help and time -
*Currency Conversion created in BW BEX query not working in BO report:*
Hi,
We have created a key figure with currency conversion and working fine in BEX when I execute that query.
But when created a BO universe and WEBI report on that query, I am getting following error.
"MDX query failed to execute with Error".
Can anyone please help.
Thanks
DhanaHi
Thanks. But new problem.
When I pulled OCURRENCY to free area now it is working in BO also.
But now another problem is --> for Currency translation am getting prompt in BO also to select target currency. There , all values (all currency types) are not displayed , only USD is coming. WEBI report is fine for USD conversion.
But when I want to convert into AUD , its not there in LOVs .
Some time back this problem exists in Bex also, but when we changed cube level setting as below:
Infocube : display-> OCURRENCY right click and go to "provider specific properties"..and then
go to "object specific properties " and then for "Query Exec Filter Val" selected "M Values in Master data table".
Now when executing query in Bex for target currency selection values it is taking from master data and displaying all types like USD, AUD, INR ..etc. in drop down list.
Now created new BO universe and new WEBI report but only USD is coming in selection LOVs not all types.
Please help us.
Thanks
Dhana. -
Why is this FMS query not working for me?
There is already a FMS query that works in Delivery Pane. The FMS field there is a user defined field called U_NWR_Bin, rom table DLN1. This works fine and it is alpha numeric 10 characters. This FMS is defined in Marketing Documents rows.
I created another user defined field called U_Bin in table PKL1 for picklist row level. This user defined field shows up in FMS in PickList Pane.
I created a query - SELECT $[DLN1.U_NWR_Bin].
I then assigned above query through Shift F2 to Picklist Pane field U_Bin.
The above query is not executed on clicking the lens it gives the error - Internal error -1004 occured message 131-183.
What am I doing wrong? Please help. Thanks.Hi,
FMS query can only access the current form. $[DLN1.U_NWR_Bin\] is not valid for PickList Pane.
Thanks,
Gordon -
Hi master
Sir lets suppose I have emp form and I put under blow code in when button press event
When_Button_press
go_block('emp');
enter_query;
:emp.deptno := 10;
execute_query;
but
when I press button then no result no data in any field and curser present in first column or form.
It is my idea the execute query are not run or these command are not run
:emp.deptno := 10;
execute_query;
system not replace data and no run execute_query
please give me idea
Thanking you
Muhammad Fahim AamirHi master
Sir when I use this code with numeric data work fine
DECLARE
DD VARCHAR2(15);
BEGIN
DD:=10;
set_block_property('emp', default_where, 'where
DEPTNO='||DD);
go_block('emp');
execute_query;
set_block_property('emp', default_where, '');
END;
But When use with string data then not give result I
press f8 and show all record
With character not give any result
DECLARE
DD VARCHAR2(15);
BEGIN
DD:='SALESMAN';
set_block_property('emp', default_where, 'where
RTRIM(EMPNO)='||DD);
go_block('emp');
execute_query;
set_block_property('emp', default_where, '');
END;
Please give me any ideaYour problem is in your where clause you do not put the word where in the where clause as it is assumed
I usually declare a variable v_where VARCHAR2(200);
and then assign it my new where clause
v_where := ' RTRIM(EMPNO)='||DD;
GO_BLOCK ('emp');
SET_BLOCK_PROPERTY('emp',default_where, v_where);
EXECUTE_QUERY;
v_where := null; ---clean up
This allows you to easily put your where clause into a message
message(v_where);
so you can see what is really being queried. This is very useful when you are using multiple values to make sure you have all the apostrophes that you need
eg: v_where := v_where := 'item_type <> ''CAT'''||' and user_id = '''||:login.user_id||'''';
Maybe you are looking for
-
Dears,, I wrote the following code but received ORA-00600 error as following . . . declare num_corrupt int; begin dbms_repair.check_object schema_name => 'SYS', object_name => 'LOGMNRT_TS$', repair_table_name => 'REPAIR_PROBLEM', corrupt_count => num
-
Hi, people In transaction MIGO there is error: message M7001 "Check table YMBUZ: entry 0001 x does not exist" How is it possible to correct this error? This problem was already discussed in the forum but there is still no solution. Regards, Vladimir
-
The sign-in graphic changed on my macbook air for no apparent reason. what's up?
The sign-in graphic changed on my macbook air for no apparent reason. What's up? How do I get it back to my chosen graphic and why did this happen?
-
Hi, How to handle flat file dissembler in biz-talk from getting spited into multiple files according to number of transaction sets??? where the Map flow is from Flat file to X12 Standard files. Please advise...
-
Internal DVD -R/RW DL is no longer recognized
My Lacie Lightscribe DVD-R/RW DL is no longer being recognized by my Mac running 10.3.9. Please Help!! Thank You