How to assign the pl/sql variable to a variable of the page element?
I want to select count (*) in the emp table.assign this count (*) total to a pl/sql variable.
How can I assign this varialbe pl/sql variable of page element?
: p2_test = pl_total;
Thank you.
Good afternoon
Try this:
1. create a process Page:
Declare
pl_total number;
Begin
select count(*)
into pl_total
from emp_table;
:P2_test := pl_total;
End;
Or a simpler approach:
Begin
select count(1)
into :P2_test
from emp_table;
End;
If you use count (1) rather that count (*), you do the inventory column 1 and not the entire file. Oracle then reads just column 1 instead of the whole of the record, speed up your query, if the table can have a large number of columns AND a lot of files.
Good luck
Don.
You can reward this answer by marking as being useful or correct :)
Tags: Database
Similar Questions
-
How to position the page element?
Hello
I created a report in the same region, has also created a page element in the same region. The page element is now on the top of the report, but I need to show in the report. How can I achieve that?
Thank you
Victor
Depends on your version of the apex. 4.1/4.2ish there is an attribute on the region of the "Position of the display element.
Enter this below content.
-
How to assign the next value in the sequence directly in a variable?
How to assign the next value in the sequence directly in a variable without using a table TWICE in PL/SQL.
BluShadow wrote:
How about a quick test on 11g, just to see if you directly select a sequence in a variable is significantly better than the mark of DOUBLE.
...
Nope... no obvious difference.
This is because there is none: Oracle's SELECT sequence. NEXTVAL FROM DUAL under the covers. The direct assignment is just a convenient encoding for us, but it does not change the work that accomplishes Oracle.
create sequence s; alter system flush shared_pool; declare l_num number; begin l_num := s.nextval; end; / select sql_text from v$sql where parsing_schema_name = user;
SQL_TEXT Report the number of l_num; begin l_num: = s.nextval; end; Select sql_text from v$ sql where parsing_schema_name = user Select double S.NEXTVAL -
How to assign the temporary tablespace to a table
How to assign the temporary tablespace to a tabletemporary tablespace can be attributed to the user.
-
Result passage of PL/SQL code for the page element
Hello
I have created a process in after the header to fill data to the page of the form elements. The pl/sql code is like bellows. Then I got the error message:
ORA-06502: PL/SQL: digital or value error: character number conversion
My question is that I do not see the difference in format between the page element and block pl/sql variables (e.g. : P31_STUDY_ID vs v_P31_STUDY_ID), they are either numeric or text field (in fact I have hidden field, but don't see conversion back to the digital field solved the problem). And don't see needs to set the format mask. Is there another way to detect the column that causes the problem, or if there is a syntax error with my assignment (from the variable element on the page)? Thank you very much!
============================
Declare
number of v_P31_STUDY_ID;
number of v_P31_STUDY_SITE_ID;
v_P31_STUDY_SITE_NAME VARCHAR2 (255);
v_P31_STUDY_SITE_NUM varchar2 (10);
number of v_P31_STUDY_SITE_NAME_NUM_ID;
number of v_P31_STUDY_SITE_OPEN_STATUS;
v_p31_comments VARCHAR2 (255);
Start
Select
tbl_study_site.study_id,
tbl_study_site.study_site_id,
study_site_name,
study_site_num,
STUDY_SITE_NAME_NUM_ID,
STUDY_SITE_OPEN_STATUS,
Comments
in
v_P31_STUDY_ID,
v_P31_STUDY_SITE_ID,
v_P31_STUDY_SITE_NAME,
v_P31_STUDY_SITE_NUM,
v_P31_STUDY_SITE_NAME_NUM_ID,
v_P31_STUDY_SITE_OPEN_STATUS,
v_p31_comments
of tbl_study_site, tbl_study_site_attrib
where tbl_study_site.study_id =: p30_study_name
and tbl_study_site.study_site_id = tbl_study_site_attrib. STUDY_SITE_ID
and tbl_study_site_attrib. STUDY_SITE_ATTRIB_ID =: P31_STUDY_SITE_ATTRIB_ID;
: P31_STUDY_ID: = v_P31_STUDY_ID;
: P31_STUDY_SITE_ID: = v_P31_STUDY_SITE_ID;
: P31_STUDY_SITE_NAME: = v_P31_STUDY_SITE_NAME;
: P31_STUDY_SITE_NUM: = v_P31_STUDY_SITE_NUM;
: P31_STUDY_SITE_NAME_NUM_ID: = v_P31_STUDY_SITE_NAME_NUM_ID;
: P31_STUDY_SITE_OPEN_STATUS: = v_P31_STUDY_SITE_OPEN_STATUS;
: P31_COMMENTS: = v_p31_comments;
end;
=============================
Identify the root cause. He's always on the format of the column, there is an error. Thanks for your help.
-
How to reorder the pages in boat launch
How to reorder the pages in boat launch?
Hello Bob,
Thank you for being part of the community of Apple!
Looks like you want to change the order of the pages both in Launchpad. If it is not possible to change whole pages at a time, you can click and hold on an application and drag it to where you want it to be. If you want to move it to another page, drag the app to the edge of the screen, and the page will change which allows you to place it on another page.
You can find more information about Launchpad here:
The basics of the Mac: Launchpad is the quick way to find and open your applications
Have a great day!
-
I deleted pages by error, anyone know how to reinstall the pages? Thank you!
I deleted pages by mistake with mackeeper, anyone know how to reinstall the pages? Thank you!
First - get rid of MacKeeper - it will wreak havoc with your Mac. This is an absolute piece of garbageware. See this link for full instructions:
How can I remove mackeeper to my macbook pro
For re - download pages to your Mac, open the Mac App Store, and then click "buy". You should see that pages listed there with the button download beside him.
Good luck
GB
-
How to print the page on WiFi printer using ideapad a1
How to print the page on wifi printer using ideapad a1
Cloud Print (available in the game store) use Google chrome to print from the A1 motorway. You must have Chrome installed on your computer. If not connected to Google (required) or your PC/Mac/Linux computer is turned off, it will be printed when you log-n.
-
How to count the page that is provided on page element
How to count the page that is provided on page element
Hi durgeshj41842015,
the kDocBoss has an IPageList interface with GetPageCount() function.
Markus
-
How to change the page numbers after you add and save the page numbers in the pdf document - need to change the existing page printed on the upper right in the header numbers.
These page numbers were initially created using Acrobat PDF header and footer.
I have a 750 page pdf document that I've created.
I have to sometimes the pages up and down after that I added the page numbers in the document by using the Header_Footer tool on the right column of tools.
But after you save the document, if I get a few pages around, I can't go back and change the page numbers.
I thought that the page numbers, as indicated in the header and footer must have changed automatically, but I guess that once its print, that it cannot be edited - is that, as what is?
So I guess we should always first get a copy without numbers of pages before confirming the documents and the creation of an index.
A way to remove these page numbers already there and add new page numbers.
Its a lot of work to align 750 court documents and then realize that you must move some and then realize the page numbers cannot be changed and thus begin to do this all over again to compile which can take about 10 hours.
My question is quite simple, but I hope that overall, I got my point. Sorry if I made it is too complex.
If no simple way, want to know if anyone has another different tool or a few recommendations to better highlight what I'm doing wrong.
Thank you for your review and response.
You should be able to update with tools - Pages - header & foot-
Update... It not work for you?
If this isn't the case, then try to remove from this menu and then re - adding them.
Tuesday, June 23, 2015 23:55, Fortune Mile [email protected]>
-
How to use the value of the page element in other pages too?
Hi all
How to pass the value of the item P26_NO from 26 to all other pages (such as 1, 2, 3... 25) using the & P26_NO. ???
I set the default for this item.but I can't able to find value in the session state itself?
Please post your suggestion here!
Thank you and best regards,
Robette.Robette wrote:
Hi Amelia,.Through application process only we can able to save the page element value in session state? is there another way?
Since my requirement is like I need to display footer text in all the pages, I have the version number included in this text, so I created a table and my intention to create an item and passing the point value for all other pages and see that point value & P26_NO. in the text. Version number is dynamic, it will change at each deployment.
Is another way simple, other than my approach?Thank you best regards &,.
Robette.You should use point demand for it and an application process to fill
IF :APP_ITEM_NAME IS NULL THEN APEX_UTIL.SET_SESSION_STATE('APP_ITEM_NAME','myvalue'); END IF;
Published by: VC on June 25, 2012 13:48
-
How to resize the window elements 11 photoshop on mac? no green +.
How to resize the window elements 11 photoshop on mac? No button green + out of the screen. cannot resize monitor - no option on macpro
Go to System Preferences > displays and your descent of resolution. Let the OS X to open with the new resolution. Place it back up to the highest available resolution and the window should position themselves correctly.
-
How to reorder the pages?
How to reorder the pages?
Hi tredfg
Please visit: http://help.adobe.com/en_US/acrobat/X/pro/using/WS58a04a822e3e50102bd615109794195ff-7ec9.w .html
-
How to customize the pages of Self Service
Hi all
How to customize the pages of Self Service. Guide kindly emergency.
Thank you
Mr. BilalYou can take these steps
==============-> Profile set Customize option % Self Serv % Def % Yes at the user level (you use to customize the user).
-> Go to the page you want to customize
-> Page-click Customize in global top menu of the page.
-> Click on the button Choose context and select the responsibility for which you want to customize the element (clear, all other fields such as site, organization, location, function, industry)
-> Button click on apply. You will get the hierarichy page.
-> Now the identity of the item, you need to customize and click Customize (pencil icon).
-> True/false property rendered set (if you want to hide the item to false to show true set) and apply.
Back at the request of->You can see more information on these links
http://apps2fusion.com/at/43-SS/453-OAF-extension-case-study
-
How to find the page contains the indesign sdk?
PLS, someone help me, how to find the page contains the indesign sdk?
Thank you
screen410099
Don't know, if you find a shorter way, but it works:
UIDRef language = YOUR_TABLE;
Error result code.
do
{
InterfacePtr
textModel; TextIndex beginning;
Len Int32;
result = table_get_text_model (read, 0, 0, textModel, start, len);
If (result! = kSuccess) break;
If (! textModel) break;
UIDRef frameRef = text_query_frame (textModel, start);
If (! frameRef) break;
Int32 pnum = - 1;
PageRef UIDRef = page_getref (frameRef, &pnum);)
If (! pageRef) break;
:
:
} While (false);
//***************************************************************************
Error code (Table_get_text_model)
Language UIDRef,
Int32 left,
top of Int32,
InterfacePtr
& textModel, TextIndex & start,
Int32 & len)
{
Result ErrorCode = kFailure;
do
{
Inits
textModel = InterfacePtr
(Nile); Start = 0;
Len = text::kTextLen;
Make sure that we have a valid table model
InterfacePtr
tableModel (label, UseDefaultIID()); if(!tableModel) break;
convert the network to a network ID address
GridAddress gridAddress (top, left);
get the container text table so we could make the text template.
InterfacePtr
tableTextContainer (tableModel, UseDefaultIID()); if(!tableTextContainer) break;
textModel = InterfacePtr
(tableTextContainer-> QueryTextModel()); if(!textModel) break;
InterfacePtr
tableTextContent (tableModel, UseDefaultIID()); if(!tableTextContent) break;
GA GridArea (up, left, top + 1, left + 1);
Len = tableTextContent-> GetTextChunk (ga, start);
If (! len) break;
result = kSuccess;
} While (false);
return the result;
}
//***************************************************************************
#if (csversion_<>
# define ITextFrameC_ ITextFrame
#else
# define ITextFrameC_ ITextFrameColumn
#endif
UIDRef text_query_frame (InterfacePtr
txt, TextIndex istartPos) {
UID uid = kInvalidUID;
TextIndex startPos = istartPos;
do
{
If (! txt) break;
INNERE Textrahmen of the items
InterfacePtr
frameList (txt-> QueryFrameList ()); If (! frameList | frameList-> GetFrameCount ())<= 0)="">=>
First INNERER Textrahmen of the items
InterfacePtr
textFrame (frameList-> QueryNthFrame (0) / * QUF,: UseDefaultIID () * /); #ifndef (csversion_<>
Location of RangeData (startPos, startPos);
#else
TextIndex location = startPos;
#endif
Int32 frameIndex = - 1;
InterfacePtr
tf = InterfacePtr (Nile); If (startPos < txt-=""> tf TotalLength ()) = InterfacePtr
(frameList-> QueryFrameContaining (location, & frameIndex)); of other tf = InterfacePtr
(frameList-> QueryNthFrame (frameList-> GetFrameCount () - 1)); If textFrame (tf) tf =;
If (! textFrame) break;
//
Aus dem first inner Textrahmen bilden wir jetzt eine hierarchy.
In der Ebene uber hierarchy suchen wir jetzt nach nach einem dieser
Objekt, das ein Graphicrahmen ist. Dieses element ist der gesuchte
ÄUßERE Rahmen.
//
InterfacePtr
child (textFrame, UseDefaultIID()); If (! child) break;
do
{
InterfacePtr
parent (child-> QueryParent()); If (parent == nil) break;
InterfacePtr
graphicFrameData (parent, UseDefaultIID()); If (graphicFrameData! = nil)
{
We have a regular text frame.
UID =: GetUID (graphicFrameData);
break;
}
child = parent;
} While (child! = nil);
} While (false);
If (uid == kInvalidUID) return UIDRef (Nile, kInvalidUID);
Return UIDRef (: GetDataBase (txt), uid);
}
//***************************************************************************
#if (csversion_<>
# define GLayout_:
#else
# define GLayout_ Utils
()-> #endif
UIDRef page_getref (const UIDRef & frameRef, int32 * pgNum)
{
UIDRef result = UIDRef::gNull;
do
{
If (pgNum) * pgNum = 0;
If (! frameRef) break;
InterfacePtr
itemHier (frameRef, IID_IHIERARCHY); If (! itemHier) break;
If (! pause frameRef.ExistsInDB ());
ES more like evil EIB GetOwnerPageUID AB. ICH denke badly, at least
Ein muss ein Rahmen wohl schon haben Parent. Wenn wir da keinen find,.
tschüss Dann.
InterfacePtr
parent (itemHier-> QueryParent()); If (! parent) break;
PageUID UID = GLayout_ GetOwnerPageUID (itemHier);
If (pageUID == kInvalidUID) break;
result = UIDRef (frameRef.GetDataBase (), pageUID);
If (pgNum)
{
IDataBase * db = frameRef.GetDataBase ();
If (! db) break;
UIDRef docRef (db, db-> GetRootUID ());
InterfacePtr
PageList (docRef, IID_IPAGELIST); If (!.) (Break from PageList);
Int32 pageIndex is PageList-> GetPageIndex (pageUID);.
* pgNum = pageIndex;
}
} While (false);
return the result;
}
//***************************************************************************
-
How to create the page zero in the apex oracle 4.0?
Hi all
How to create the page zero in the apex oracle 4.0?
Concerning
ManiHello
Home > Application Builder > Application xxx > create Page
There are down to the Center on Wizard Page zeroKind regards
JariPublished by: jarola 25 August 2010 19:28
And here's the chapter on literature
http://download.Oracle.com/docs/CD/E17556_01/doc/user.40/e15517/UI.htm#BGBFFFGH
Maybe you are looking for
-
I've got premium windows 7 in my system. My HP 6720 s Notebook PC model. Check out the link http://h20564.www2.HP.com/hpsc/SWD/public/readIndex?sp4ts.Oid=3442838 is - can anyone provide the Bluetooth HP driver that will support with my system?
-
HP Pavilion N208TX 15: backlit keyboard for N208TX
I want to know if I can improve my keyboard to a backlit keyboard or not for my HP Pavilion N208TX 15.
-
Updated Inspiron 1545 from Win 7 to win 10
Hello Thinking about upgrading my laptop Inspiron 1545 Windows 10. Successfully, I did an upgrade N5010 last week and only lost the bluetooth (for a driver not supported). Anyone know of any compatibility issues with the 1545? In my view, it has not
-
Hello I upgrade my windows 7 to windows 10 (build) 9926 so my question is, I can delete the old folder on my c drive windows or do I have to keep this file in order to use the restore function. in the case where if I want to go back to windows 7. Ty
-
command prompt "CMD. EXE' & 'WINDOWS INSTALLER' are missing!
Please help me,My ' CMD. EXE' is missing.I find only "WOW64" command.I tried the SYSTEM RESTORE, but no point of restoration.I CAN'T INSTALL MY NEW KASPERSKY ANTIVIRUS, THE PROBLEM STARTED AFTER UNINSTALLING OF KASPERSKY ANTIVIRUS. Has done the same