Can execute query be controlled for blocks
Hi,
I've 3 blocks in my form. The first and the second block are in query mode, therefore I cannot update, insert, delete values here.
The third block, I have put on another canvas. So the moment there's data in the second block the third block gets displayed. The user is allowed to enter values only in the third block.
Since the first and second block are in query mode I've put the execute_query in the W-N-F-I.
Due to the execute_query in W-N-F-I the 3rd block also starts showing me values, which it shouldn't. It should be a clear block with no values displayed.
Mainly I want the execute_query to work only for first and second block and not for the third block.
I tried putting the execute query in pre-block trigger. But it showing me error as Illegal operation for join condition and the forms gets hanged.
Kindly if you could help on the same
Thanks for your help in adv.
I'm not sure I completely understand what you are attempting.
I've 3 blocks in my form. The first and the second block are in query mode, therefore I cannot up date, in sert, de lete values here.So, for BLOCK1 and 2 you have set the "Query Only" property for each block item to "yes". BLOCK3 allows all DML operations.
Since the first and second block are in query mode I've put the execute_query in the W-N-F-I.Since, these blocks are Query Only, you automatically query them in the WNFI trigger.
Due to the execute_query in W-N-F-I the 3rd block also starts showing me values, which it shouldn't. It should be a clear block with no values displayed.Here is where I'm a little confused. Do you have a block Relationship created with BLOCK3 or do you call Execute_Query on BLOCK3 in your WNFI trigger?
I tried putting the execute query in pre-block trigger. But it showing me error as Illegal operation for join condition and the forms gets hanged.Which data block did you try the Pre-Block trigger? By definition, the Pre-Block trigger does not allow the execution of Restricted built-ins. The Execute_Query built-in is Restricted.
So the moment there's data in the second block the third block gets displayed. The user is allowed to enter values only in the third block.How did you implement this? What is the code you use to display BLOCK3's canvas?
So, what happens if you have records in BLOCK3 that relate to a record in BLOCK2? How will your user know this if you start with an empty block? I've confused by the description of your requirement...
Craig...
Similar Messages
-
Execute query with non database block
How to execute query with non database block when new form instance trigger.
Hi Kame,
Execute_Query not work with non database block. To do this Make a cursor and then assign values to non database block's items programmatically, see following example,
DECLARE
BEGIN
FOR i IN (SELECT col1, col2 FROM Table) LOOP
:block.item1 := i.col1;
:block.item2 := i.col2;
NEXT_RECORD;
END LOOP;
END;
Please mark if it help you or correct
Regards,
Danish -
Execute query in control block?
I have a non database block which is the control block. In this block i have a button for query/ enter query. My other blocks are all based on a database table. So when i run the form and press the exec query button, on the control block, i want to be able to select something from an lov, or a drop down or even a text item which are located on any of the other blocks. and then hit the exec query button again to query the specific information.
But its not working. i can't seem to get the exec query button to work in the control block and i tried placing it on one of the blocks but i can only select from that block to query on and not any of the other blocks.
how can i get the exec query button to work on any of the other blocks depending on what i want to query up?You will have to build a default where clause in the pre query trigger of the base table block(s)
example shown below.
declare
wh_clause varchar2(1500);
begin
if :qry_blk.item1 is not null then
wh_clause := 'block.item1 like '''||:qry_blk.item1||'%'||'''';
end if;
set_block_property('block', DEFAULT_WHERE, wh_clause);
end;
then in your button, you will say
go_block('block');
execute_query;
I have a non database block which is the control block. In this block i have a button for query/ enter query. My other blocks are all based on a database table. So when i run the form and press the exec query button, on the control block, i want to be able to select something from an lov, or a drop down or even a text item which are located on any of the other blocks. and then hit the exec query button again to query the specific information.
But its not working. i can't seem to get the exec query button to work in the control block and i tried placing it on one of the blocks but i can only select from that block to query on and not any of the other blocks.
how can i get the exec query button to work on any of the other blocks depending on what i want to query up? -
Problem in Execute query on non-database block and database block together
Hi All,
In my form,i have
1. First block is Non-database block with one non-database item.
2. Second and third blocks are database blocks.
Now the problem is that i want to perform execute-query for all the blocks.
If the cursor is on the non-database item of 1st block and i clicks on the "Enter-query" then i am getting message " This function can not be performed here".
If i click on the item of the database block and then clicks on the "Enter-query" and then "execute-query" it's working fine.
But i don't want to do in this way.
My cursor will be on the First block only and then it should perform execute-query.
I am using this non-database item to copy value of this item to the item of the database block item.
I think i make you understand about my problem.
I am using forms 10g on Window xp.
Please help me.Hi!
Simply create a enter-query trigger on the non-database-block:
begin
go_block ( 'database_block' );
enter_query;
end;If your search criteria is in the non-database-item in the first block,
you actually do not need the enter_query build-in.
Just create a execute-query trigger on the first block like:
begin
go_block ( 'database_block' );
execute_query;
go_item ( :System.trigger_item );
end;And in a pre-query trigger on the database-block copy the
value of your seach item into the item you want to search for.
Regards -
How can execute query be delayed.
Hi:
I have an interesting little problem. In our application, we have a screen that our users have been trained to press and hold the key to execute the query in a block. When our users do this the forms performs an average of 12 queries for second. In a lot of cases our users hold the key for as long as 20 seconds resulting in well over 200 queries. To make things more interesting the application is used in our call center where approximately 50 people are answering the phone. Since they are all trained the same, this can add up at time to a lot of queries.
I was wondering if anybody has implemented a mechanism or algorithm by which under these conditions one can make the execute_query function to only execute once per lets say 5 seconds, thus reducing the number of queries significantly.
Any help would be appreciated.
Thanks,
ThomasHow do I catch the user letting go of the KEY-EXEQRY?You don't need to. When the user is holding the key down, the keyboard is continuously repeating the keystroke (like holding down any alphabetic key). The forms runtime catches the repeated strokes, and checks the timer. If it is still running, the forms runtime throws away the keystroke and picks up the next one...until the timer expires.
Then it re-starts the timer and performs a query.
Then checks for the next keystroke.
When the user releases the key, the forms runtime no longer finds any keystrokes to process, so does not do another query. ...unless the user presses (or holds down) the key again. -
Creating a function which you can execute with a parameter for date range
Hi Everyone,
Hope you can help me.
I have specific data that I am looking at that I require to query from a function. This function will require that I specify a parameter for a specific date which will only list the date criteria f my choosing.
Here is the data..
StudentID
FirstName
LastName
ClassName
ClassStartDate
ClassEndDate
GPA
1
John
Davids
Soft Dev
11/1/2013 9:00
11/30/2013 12:00
3.25
2
John
Davids
Database
10/1/2013 9:00
10/30/2013 12:00
3.5
3
John
Davids
Web Design
10/1/2013 9:00
10/30/2013 12:00
4
4
John
Davids
Psychology
10/1/2013 9:00
10/30/2013 12:00
3.25
So here is an example function which will need to be altered. I am hoping someone could help me figure this out. I thought the below may have been correct, but it just errors out.
SET
ANSI_NULLSON
GO
SET
QUOTED_IDENTIFIERON
GO
-- =============================================
-- Author: <Author,,Name>
-- Create date: <Create Date,,>
-- Description: <Description,,>
-- =============================================
CREATE
FUNCTIONStudentGPATimePeriod
@startdate
AS
BEGIN
selectFirstName,LastName,ClassName,ClassStartDate,ClassEndDate,GPA
fromdbo.Students
whereClassStartDate
=@startdate
END
GOHi Saravana,
If I would to execute this function, how would the parameter be entered?
exec dbo.StudentGPATimePeriod
i think what you need is PROCEDURE, try below
--For a single date
Create PROCEDURE StudentGPATimePeriod
( @startdate datetime )
AS
Begin
select FirstName,LastName,ClassName,ClassStartDate,ClassEndDate,GPA
from dbo.Students
where ClassStartDate >=@startdate and ClassStartDate < dateadd(day,1,@startdate)
End
GO
--for multiple dates
CREATE PROCEDURE getStudentGPAMultipledate
( @startdate datetime,@enddate datetime )
AS
BEGIN
select FirstName,LastName,ClassName,ClassStartDate,ClassEndDate,GPA
from dbo.Students
where ClassStartDate >=@startdate and ClassStartDate < dateadd(day,1,@enddate)
END
GO
EXEC StudentGPATimePeriod @startdate='2014-11-12'
GO
EXEC getStudentGPAMultipledate @startdate='2014-11-12',@enddate='2014-11-13' -
Can not find sound controls for Satellite A80?
Hi, Im a very new user of a satellite A80, it only 4 days old, I played a cd and couldnt find any graphic equalizer or sound controls. I did get into the Toshiba assist area, but it wouldnt allow me to change the bass and treble, can anyone help me with this.
The cd automatically plays in window media player, is there a special program already installed on the hard drive for CD's, or is window media player what I should use?
thanks in advance,
debHi Deb,
You don't say which version of Windows Media Player you have. However, there will be a Graphic Equalizer option somewhere but it may be well hidden.
I would recommend downloading the latest version from the Microsoft website.
On WMP V9 the Graphic Equalizer is accessed by clicking on a small window icon at the bottom left corner of the screen (if you hover the pointer over it is called 'Select Now Playing Options')this gives a pulldown menu on which the third item is called ENHANCEMENTS. This will expand to show the Graphic Equalizer.
You can, of course, use other software to play CDs. If you right click on the CD-ROM item in your My Computer
you will be able to set which programme you wish to use to play CDs.
HTH -
How can you hide the controls for the video (faster)
Hi there, I've created a new video player for my client who has bounced the job as the subs are overlaid by the controls of the video - he still wants the full screen option but does not want to see the controls once you play the video.
Here is the work so far: http://www.wecreativ3.com/trust/trust-videoplayer.html
Any way to do this?Hi,
Please check this:
http://css-tricks.com/custom-controls-in-html5-video-full-screen/
Hope that helps!
Regards,
Meenakshi -
Officejet 8100 acts like it has a sleep mode, but I can't find any controls for that.
It will work correctly one day, but then when I try to use it the following day, nothing works, the power button fades in and out, but does nothing. If I unplug the printer and plug it back in, it will work. How do I fix it so it stays online all the time?
I too was looking for something similar.
Found what I needed here
http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03330508&cc=us&dlc=en&lc=en&product=5218794&tmp...
My issue was:
The Printer Turns Off Unexpectedly After Being Idle for a Period of Time
My fix.
Use the following steps if you need to disable the Auto Power Off feature.
Open the HP software for your printer.
Double-click Printer Preferences .
Double-click Maintenance Tasks .
Click the Advanced Settings tab, and then click Change .
Select Never to disable the feature.
Click OK . -
WHEN-TREE-NODE-SELECTED need 2 Execute-Query on Master-Detail data block
I optimize tree using this link
http://andreas.weiden.orcl.over-blog.de/article-29307730.html_+
For huge amount of data (Accountings)
All i need for now is
WHEN-TREE-NODE-SELECTED need 2 Execute-Query on the data block
DECLARE
htree ITEM;
node_value VARCHAR2(100);
BEGIN
IF :SYSTEM.TRIGGER_NODE_SELECTED = 'TRUE' THEN
-- Find the tree itself.
htree := FIND_ITEM ('BL_TREE.IT_TREE');
node_value := FTREE.GET_TREE_NODE_PROPERTY( htree, :SYSTEM.TRIGGER_NODE , ftree.node_value );
GO_BLOCK ('GL_ACCOUNTS');
set_block_property('GL_ACCOUNTS', DEFAULT_WHERE , 'ACCOUNT_ID ='|| node_value );
EXECUTE_QUERY;
END IF;
END;The above code is working fine 4 the detail block which is *'GL_ACCOUNTS'*
when i substitute is Master block which is 'GL_ACCOUNTS_TYPES' it doesn't display all data
Help is Appriciated pls.
Regards,
Abdetu...Hello
In WHEN-TREE-NODE-SELECTED i modified the following code :_
DECLARE
htree ITEM;
node_value VARCHAR2(100);
parent_node FTREE.NODE;
BEGIN
IF :SYSTEM.TRIGGER_NODE_SELECTED = 'TRUE' THEN
-- Find the tree itself.
htree := FIND_ITEM ('BL_TREE.IT_TREE');
-- Get the parent of the node clicked on.
parent_node := FTREE.GET_TREE_NODE_PARENT ( htree, :SYSTEM.TRIGGER_NODE );
GO_BLOCK('GL_TYPES');
set_block_property('GL_TYPES', DEFAULT_WHERE , 'TYPE_ID ='|| parent_node );
EXECUTE_QUERY;
-- Get the detail of the parent node
node_value := FTREE.GET_TREE_NODE_PROPERTY( htree, :SYSTEM.TRIGGER_NODE , ftree.node_value );
GO_BLOCK('GL_ACCOUNTS');
set_block_property('GL_ACCOUNTS', DEFAULT_WHERE , 'ACCOUNT_ID ='|| node_value );
EXECUTE_QUERY;
END IF;
END;
FRM-40350 : Query caused no records to be retrieved but i have records in the data base ...!
Well, Do u think that's because in ur package i retrieve only the detail block ?
Regards,
Abdetu... -
Can't see controls for audio filters
I'm trying to use the high-pass audio filter. When I apply it, it cuts off an arbitrary amount of low frequency sound, actually too much. But can't see the controls for it in the Viewer/Filters tab, so I have no control.
Where do I go to adjust the amount the levels of this filter?In the Viewer select the Filters-tab / double-click the sound-file in the timeline.
Regards
Nolan -
Only one user at the time can execute VE01 (due to blockage of VEIAV)
Hi,
As I understand it only one user at the time can execute VE01 (or MEIS for arrivals). If someone is already executing the VE01 transaction the error-message "Table VEIAV is blocked by user XX" appears. It does not matter if one tries to execute it for different legal entities - no parallel processing seems to be possible.
This is a huge limitation for a global concern with many entities operating in the same SAP instance. Does anyone recognize this problem and are there any ways to get around it? It does not make sense that dispatches (VE01) and arrivals (MEIS) cannot be executed for several organizational units at the same time in parallel?
Thanks in advance,
Mats Hanssonyes I know this problem.
One should not maintain much thru this transaction.
for me it is not more than an emergency transaction, as it is not really more than table maintenance thru SM30
You should investigate what entries/changes the users have to make.
Limit these manual entries by having better data in the system, so that SAP can itself create the entries for this table.
Organize more, less users , maybe just one per company who shall maintain VEFU manually.
Train them to prepare their entries before they start using VEFU.
Explain that they should leave VEFU as soon as possible as the block other users.
assign maintenance windows to the users. -
Hi CRM gurus,
Can anyone advice where can setup the copy control for activities in the IMG. Since the system defaulted lots of transactions in the activity followup, we need to disable some of them from the list.
Thanks in advance.
Rgs. MichelleAs I wrote it in different thread...
1. Activate Copying Control of Activities
CRM - Transactions - Settings for Activities - Activate Copying Control of Activities
This will cause that only transactions defined in your Business Transaction Profile (which is assigned to your Business Role and defined in CRM - Interaction Center Webclient - Business Transaction - Define Business Transaction Profiles) are visible in dropdown list.
2. Define Copying Control of Transaction Types
CRM - Transactions - Basic Settings - Copying Control of Transaction Types - Define Copying Control of Transaction Types
Here select Source Transaction and choose Target Transaction.
Always follow CRM Best Practices documentation as all of the customizing steps are described there...
Link - http://help.sap.com/bp_crmv12007/CRM_DE/HTML/index.htm
Edited by: drabas on Apr 13, 2010 6:40 PM -
How to define print control for TO in wm
hi
can someone help me out explaining how can i configure print control for to in wm.i donno how to set up perameters for it in spro.
thanx in advanceYou have to set Spools, form names, print codes, assigning printers, auto pick list printing, number of
labels printed etc. in OMLV.
http://help.sap.com/saphelp_40b/helpdata/en/77/1939516e36d1118b3f0060b03ca329/content.htm
http://help.sap.com/bp_bblibrary/470/documentation/A09_BB_ConfigGuide_EN_US.doc#_Toc84924701 -
Urgent help please ! Get data after executing query
Hi all
I have stored some data's with labVIEW to mysql by writing query using db tools execute query.vi.
For fetching those data's also wrote a query(select* from....)using the same tool .
the query got executed . What tool i have to use to retrieve the data from mysql to a labview array.( the fetch recordset data.vi tool is not fetching.)
Thanks
Attachments:
db.JPG 11 KBFirst, make sure your query string is correct, no typos, the table and fields exist. If all of this is correct, try using Fetch Next Recordset instead of Fetch Recordset. I've had to do that with some databases. For some reason, the record pointer doesn't advance with the query. Or maybe the record pointer is pointing to empty space and the query places the record found as the next record instead of the current record.
- tbob
Inventor of the WORM Global
Maybe you are looking for
-
Mail application is deleted how can I reinstall it?
The mail aplication is no longer visible on the icon bar and is not in the applications folder in the finder menu. Uner preferences it says that 'mail' was ininstalled or disabled so I was wondering how to reinstall it?
-
i have a existing query which is created one week back.Now i want to create variables for that query.but while opening that query it is directly going to Result area(Excel sheet).how to create variables.can any body throw light on this . Thanx in a
-
Is there a way to insert html code into a slide? I need to place a video on a slide that uses an iframe and a link to a JavaScript file. The video is being delivered from a content management system (Qumu) so I don't have many options. I don't see an
-
Photoshop CS6 stopped saving file extensions
I am running PhotoShop CS6 on Mac Yosemite 10.10.2. Photoshop suddenly stopped saving file extensions. I can open the files saved on my computer, but others cannot because the file extension is missing. Under preferences > file handling > append f
-
Cant open a file made with older aftereffects
i just downloaded this file from the internet it is a aftereffects template. i downloaded the aep file and tried opening with AE cs6. it said that it cant open cuz its made with a old version of AE. I am pretty sure that it should have backwards comp