How to check if a block contains all records in it?
HelloI need to check if there are any records in a block. According to the test result, I then do something else as a result. Is there a system variable or the construction-ins that I use to check this status? I want to do something like:
IF the block is empty then
do action1
ON THE OTHER
do action2
END IF;
Any help or suggestions eraf appreciated.
Michael
You can use a calculated for this item:
Create an IT_COUNT element in a BL_CONTROL control block, set 'calculation mode' to 'Summary' and choose the block to check that 'down the block"and a non-NULL-article in the block as"Summary"as a formula of calcution choose 'Count '.
Now you can use in your code,
IF :BL_CONTROL.IT_COUNT>0 THEN
..
Tags: Oracle Development
Similar Questions
-
How to check the table have are all views in oracle
Hello
How to check the table have are all views in oracleSELECT * FROM user_dependencies WHERE type='VIEW' AND referenced_type='TABLE' AND referenced_name ='Your_Table_Name'
You can use dba_dependencies to find views in the different schema.
-
How to check if this is the first record
Hello..
I have a block with some elements SL, STAFF,..., NAME of several record.
during data entry, I want to check if this record is first record...
If it's trees folder I need to know the SL of the latest entry of DB and based on that generate next SL.
"Let me know how to check if my first record..?
thnx...ManiKanchan wrote:
Hello..
I have a block with some elements SL, STAFF,..., NAME of several record.
during data entry, I want to check if this record is first record...
If it's trees folder I need to know the SL of the latest entry of DB and based on that generate next SL."Let me know how to check if my first record..?
Try this,
if GET_BLOCK_PROPERTY('block_name',CURRENT_RECORD)=1 then your_code; end if;
Hope this helps
-
How to check if a table contains a table
I have an array array1 say array that contains several tables. I have another table say array2. Now, I want to check whether or not arrray1 contains array2. How can I check this?
The way hard and obvious, but as strcmp(), you can move to the table following once you are unable to find a match.
-
How to check if a list contains elements of another list
Hi all
I'm just checking if a text list contains items form another list and do something. I tried:
Tlist contains phrases of the text (for example, test1, test2, test3)
phrases = ["test1", "test2"]
n = phrases.count)
tList.getPos (phrases.item [n])
Alert ("should not be included in the list")
But it does not all ideas, why?There might be a quicker way, but I think you need to loop through at least one of your lists. Maybe something like this:
-
It's my code, but it does not work:
{module_webapps id = "28860" filter = 'all' resultsPerPage = '20' hideEmptyMessage = 'false' template = "" collection = "seeWinners" "}
{% for article on seeWinners.items-%}
{% If items.seeWinners ==""-%}
< p > winning number yet, come back again < /p >
{endif %}
{% endfor}
Please can someone tell me what is the problem?
Thank you.
No need for the loop.
Just get the length of the array.
{module_webapps id = "28860" filter = 'all' resultsPerPage = '20' hideEmptyMessage = 'false' template = "" collection = "seeWinners" "}
{% If seeWinners.items | size == 0-%}
No winners yet, check again
{endif %}
Later edit: and if you are already in the loop, you have the length of the array loop with: {{forloop.length}}
-
in Windows 7 How to check on HP PSC 2210 all-in-one ink levels?
With Win 7 drivers (and), what is the way to check the ink level in a PSC 2210?
Thank you!
[Personal information] HE DIDN'T THERE HAS NO HP PRINT DRIVERS ALLOWED THE WINDOWS PLATFORM 7! No, natta!
Installation of the printer software in Windows 7 for wired USB (to READ)
http://support.HP.com/us-en/document/c01796879
'Introduction '.
The drivers for your HP product are already included in the new Windows 7 operating system. You don't need to download the drivers to use the product . Simply connect the printer to your computer with a USB cable, and Windows Update automatically installs the driver for your product. » -
How to check the text block have overflow?
I am using the code below, the wrong see the text frame have more flow
Content UIDRef = pageItems. GetRef (i) ;
InterfacePtr<IGraphicFrameData> graphicFrameData (content, UseDefaultIID());
UIDRef storyUIDRef is a helper. GetTextModelRef (graphicFrameData);
InterfacePtr<ITextModel> TheTextModel (storyUIDRef, UseDefaultIID());
Executives InterfacePtr<IFrameList> (TheTextModel->QueryFrameList());
Utils<ITextUtils> tUtil;
bool16 overSetted is tUtil->IsOverset(executives);.
and also I try to use
TextFrameColumn InterfacePtr < ITextFrameColumn > (chassis-> QueryNthFrame (0));
bool16 overSetted = IsTextFrameOverset (textFrameColumn); tUtil-> IsOverset (Frames);
I manually changed QueryNthFrame (.), the wrong see the text frame have more flow.
Someone help me, above question.
You will need to recompose all frames.
Try,
InterfacePtr
frameListComposer (frameList, UseDefaultIID()); If (! frameListComposer) break;
frameListComposer-> RecomposeThruLastFrame();
isOverset bool16 is Utils
()-> IsOverset (frameList);. -
How to check null in pl sql values?
Hello
I have a sql query where I read the db column in a number of variables, some columns contain NULL values or empty varchars. How can I check if my variable contains all the data?
Thank you
Jto check to see if your variable contains the value null or use not like that
if v_variable is null
If you are using
if v_variable=NULL
It's just according to the syntax, but it will not give you desired result
SQL> declare 2 v_empname varchar2(20); 3 v_comm number; 4 begin 5 select ename,comm into v_empname,v_comm from emp 6 where empno=7839 and comm is NULL; 7 dbms_output.put_line(v_empname); 8 if v_comm is NULL then 9 dbms_output.put_line(v_empname); 10 end if; 11 end; 12 / KING KING PL/SQL procedure successfully completed.
But if you plan to use = null, then you get no results
SQL> declare 2 v_empname varchar2(20); 3 v_comm number; 4 begin 5 select ename,comm into v_empname,v_comm from emp 6 where empno=7839 and comm is NULL; 7 dbms_output.put_line(v_empname); 8 if v_comm = NULL then 9 dbms_output.put_line(v_empname); 10 end if; 11 end; 12 / KING -------------king will get printed only once. PL/SQL procedure successfully completed.
-
Syntax to check whether an item contains a particular value
Hello
In my rtf model, I'm changing the background color according to the value of a security of people. I am unable to verify the exact values, but all of the titles are the same, but contain the same value in the full title (e.g. Secretary main vs vs Support Secretary Executive Secretary). So instead of checking where TITLE = 'Secretary', I need to know how to check where the TITLE contains "Secretary". I don't understand the syntax.
Any help would be appreciated!
TOne way is to test instring Secretary.
InStr('abcabcabc','a',2)
The instr function returns the location of a substring in a string. The syntax of the instr function is:InStr (string1, string2, [start_position], [nth_appearance])
string1 is the string to search for.
string2 is the substring to search for in string1.
start_position is the position in string1 where the search will begin. The first position in the string is 1. If the start_position is negative, the function account back start_position number of characters from the end of string1, then research toward the start of string1.
nth appearance is the appearance of Nth of string2.
-
How to check, all pdPage contains 3DAnnot or not?
We have only pdPage object and how to check, this page contains a 3DAnnot or not?
And how to remove Page annot?
PDPageCountAnnots().
PDPageGetAnnots()
PDAnnotGetType()
PDPageRemoveAnnot()
-
I use LR 4 and the Ext HD is full that contains all the photos. How to move to a new HD Ext. I can't take any chances, I have a lot of images. Thank you. I am running Mac 10.8
Can be done in Lightroom, but some recommend this method.
1. close Lightroom,
2 COPY the FILE MASTER containing all of your subfolders images for the new HD Ext Finder/Explorer or copy of the software, (using "copy", you can compare files to check that there is no corruption of the files being copied).
3. open Lightroom.
4. in the folder LR Panel-Right click your MASTER FILE and select "update folder location.
5. in Finder/Explorer window opens - choose the new location of HD Ext. LR will then reference your images here.
6. when everything works well from the new HD Ext you can remove the master file of the internal disk images.
7. do you have a second HD Ext to make a "Clone" of the new HD Ext as backup.
Read the chapter in this link-"Location of the update folder"
Adobe Lightroom - find moved or missing folders and files
Congratulations Jim - you just posted first!
-
How to check that the variable 'does not contain' value?
Hello
I use CP 7.0.1.237.
We want to use the widget text box for a custom quiz and verify a response. While we understood how to check the existence of certain key words, we are not able to find a way to check that the content does NOT contain certain keywords. For example, we want to ensure that the text entered in this widget does not contain a "Transformation" and "Non-compliant.
Is this possible at all?
Thank you
Anthony
Anthony, it works perfectly. Created this conditional action with 4 decisions. I used the interaction of training text scrolling in CP8 (because now you can control the variable - which means I might have a Reset button):
First decision:
Second decision (the third is similar to the following)
Fourth and final decision
I put the variable words (v_first... v_fifth), it's a reflex I use since I shared actions that much. The variable associated to the ETB (you can now reset an empty var in CP8) is v_TextArea and the Boolean value that will decide if positive feedback (StarOK) should be shown is v_TA_OK. If you want to display a negative feedback, put this in the ELSE part of the final decision.
FYI: it took 15 minutes, including the creation of assets and the variables and tests. Personally I would have needed more time to do it in JS, but that's just me.
Lieve
-
How to check the slider back row contains data or not
Hi all
How to check whether or not the cursor returned row contains data in one of its field.
Thank you and best regards,
Prakash PUse ROWCOUNT %
Use% NOTFOUND example of
DECLARE id number; desc varchar2(10); CURSOR cursor_one IS SELECT id, desc FROM table; BEGIN OPEN cursor_one; LOOP FETCH cursor_one INTO id, desc; EXIT WHEN cursor_one%ROWCOUNT > 20 OR cursor_one%NOTFOUND; ... END LOOP; CLOSE cursor_one; END;
-
How to check all existence directory in TestStand?
How to check all existence directory in TestStand?
Is there a function TestStand? Or another option without writing my own code in the external program (for example, LabVIEW or C)?
Thanks in advance
Try the Engine.FindPath method. BTW several times when you do file IO, depending on what you're doing exactly, you need to write a code module.
CC
Maybe you are looking for
-
My ipad and icloud are connected using an old apple ID. Unfortunately, that old is no longer valid. So I can't disconnect from icloud on the ipad, and I can not delete the account either, because doing either requires a id valid apple and a password.
-
Tecra M4 stop (hang) after windows is boot
Hello a have a big problem and want to solve itmy laptop is tecra M4 + 1.7 + ram 512 CPUmy lap top was good jobnow I have something strange. Is Hanger of work after starting windows > when i go to run a large program or garguillo its stop (hang) > th
-
need help to download a RESUME on the job bank OR web site to save resumes on desktop. Please help me
-
Problem with desktop experience in Windows Server 2008 R2 with SP2
Hello I have uninstall desktop experience. Some how the server restarted before uninstallation could be completed. Now I'm trying to re - install desktop experience, but the error code is 0x8000FFFF, Catastropic failure (Exception from HRESULT: 0x800
-
IE 8 browser says is not compatible with the streets & trips 2010
Original title: S & T 2010 / SHOW IN BING MAPS WITH VISTA HOME Premium 64 BIT / IE8 SAYS MY BROWSER didn't IS NOT WILL NOT GO to the COIMPATIBLE SITE SAYS I have NEED of YOU INSTALL IE6 OR HIGHER SEE TITLE