How to declare and use a variable in BI Publisher report
Hi Experts ,
I have to groups of serial numbers and both group are put in same table and same row one after another , and i have a condition that if no serial number is present in both group than the line of that table should not be appeared ,i used the condition region ,biut this condition region is working in single group case if i put both groups together ,the blaing line appears with its label ,I think if i will have have variable which can count the total present of serial number than I cant put a single condition ,would you please help me ,how can I declare a variable and how can i count the number of serials in both groups ,please find below the example
<grp1><?SR_NUM1?><end of grp1> <grp2><?SR_NUM2?><end of grp2>
above example is how i am printing now ,now i need a combined condition where if bot group do not contain any value then this blank line should not appear . thanks in advance.
Thanks
Pratap
Hi ,
Decalring the Varible :
<?xdoxslt:set_variable($_XDOCTX, 'var', 0)?>
Do the calculation :
<?xdoxslt:set_variable($_XDOCTX,'var', xdoxslt:get_variable($_XDOCTX,'var‘)+ XML columnname)?>
Display the Variable :
<?xdoxslt:get_variable($_XDOCTX, 'var')?>
Declare the varaible before your loop starts.Do the calculation part inside the loop so for each row it will be updated.
Display the results where you want using the form field and place the display varaible syntax.
Hope this will helpful for you.
Thanks,
Ananth
Similar Messages
-
How to declare and use multi dimensional VARRAYs in PLSQL
Hi All,
I am trying to create and use multidimensional varray in plsql code...
can anyone let me know, how can I do this...
Thanks
KrishnaPlease do not confuse plsql collections with type objects.Well it's possible with persistent types but nested tables and varrays typically need to be explicitly initialized and extended.
Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL> CREATE OR REPLACE TYPE name_type_size IS VARRAY (3) OF VARCHAR2 (50);
2 /
Type created.
SQL> CREATE OR REPLACE TYPE name_type_size_array IS VARRAY (200) OF name_type_size;
2 /
Type created.
SQL> DECLARE
2 i_name_type_size_array name_type_size_array := name_type_size_array ();
3 BEGIN
4 FOR count1 IN 1 .. 200 LOOP
5
6 i_name_type_size_array.EXTEND;
7 i_name_type_size_array (count1) := name_type_size ();
8
9 FOR count2 IN 1 .. 3 LOOP
10
11 i_name_type_size_array (count1).EXTEND;
12 i_name_type_size_array (count1) (count2) := count2;
13
14 END LOOP;
15
16 END LOOP;
17 END;
18 /
PL/SQL procedure successfully completed.
SQL> -
Hi
I need to declare olevar variable and use it. Can anybody kindly help?
ThanksDECLARE
scan_ole oleobj;
edit_ole oleobj;
file_ole oleobj;
ole_filetype olevar := to_variant(1);
ole_pagetype olevar := to_variant(1);
ole_compressiontype olevar :=to_variant(2);
ole_compressioninfo olevar := to_variant(8);
dummy NUMBER;
lst ole2.list_type;
scancomplete BOOLEAN;
a NUMBER;
b VARCHAR2 (2000);
v_error VARCHAR2 (50);
scanerror EXCEPTION;
PRAGMA EXCEPTION_INIT (scanerror, -20010);
BEGIN
forms_ole.ACTIVATE_SERVER ('ocx');
scan_ole := forms_ole.GET_INTERFACE_POINTER ('OCX');
IF imaging_dimgscan.scanneravailable (scan_ole) <> 0
THEN
dummy := imaging_dimgscan.startscan (scan_ole);
scancomplete := TRUE;
ELSE
scancomplete := FALSE;
v_error := 'Scanner not available';
RAISE scanerror;
END IF;
IF scancomplete
THEN
forms_ole.ACTIVATE_SERVER ('EDIT');
edit_ole := forms_ole.GET_INTERFACE_POINTER ('EDIT');
b := imaging_dimgscan.destimagecontrol (edit_ole);
imaging_dimgscan.destimagecontrol (edit_ole, b);
a := imaging_dimgscan.closescanner (scan_ole);
GO_BLOCK ('SCANNED_IMAGES');
:SYSTEM.message_level := 25;
forms_ole.ACTIVATE_SERVER ('FILE');
FILE_ole := forms_ole.GET_INTERFACE_POINTER ('FILE');
IMAGING_DIMGEDIT.SAVEAS(edit_ole,'C:\scan0001.tif');
--IMAGING_DIMGEDIT.SaveAs( edit_ole,'C:\scan0001.tif',ole_filetype,ole_pagetype,ole_compressiontype);
READ_IMAGE_FILE ('C:\scan0001.tif', 'ANY', 'SCANNED_IMAGES.IMAGE_DATA');
IF NOT FORM_SUCCESS
THEN
v_error := ' Could not read image file';
:SYSTEM.message_level := 0;
RETURN;
END IF;
:SYSTEM.message_level := 0;
IF :scanned_documents.zoom_amount IS NOT NULL
THEN
IMAGE_ZOOM ('SCANNED_IMAGES.image_data',
zoom_percent,
:scanned_documents.zoom_amount
END IF;
:scanned_images.page_count := TO_NUMBER (:GLOBAL.pagecount);
:scanned_images.description := 1;
:scanned_images.page_number := 1;
END IF;
EXCEPTION
WHEN scanerror
THEN
a := imaging_dimgscan.closescanner (scan_ole);
MESSAGE (v_error || ' ' || SQLCODE || ' ' || SQLERRM);
WHEN OTHERS
THEN
a := imaging_dimgscan.closescanner (scan_ole);
MESSAGE (v_error || ' ' || SQLCODE || ' ' || SQLERRM);
END;
The called method
/*PROCEDURE SaveAs(interface OleObj, Image VARCHAR2, FileType OleVar := OleVar_Null,
PageType OleVar := OleVar_Null, CompressionType OleVar := OleVar_Null, CompressionInfo OleVar := OleVar_Null,
SaveAtZoom OleVar := OleVar_Null) IS
BEGIN
Init_OleArgs(6);
Add_OleArg(Image);
Add_OleArg(FileType);
Add_OleArg(PageType);
Add_OleArg(CompressionType);
Add_OleArg(CompressionInfo);
Add_OleArg(SaveAtZoom);
Call_Ole(interface, 343);
End;
Where do I go wrong?? The first saveAs works but not the second one!!! -
How to declare and read a variable more than 255 characters
Hi Friends,
Actually i want to declare a variable which can accepts more than 255 characters as input and the same manner i want to read the data and pass the data as a output length more than 255 characters.
So how can i delcare the data as a field in the table.
Thanks & Regards
GuptaHi Raj,
Thanks for your reply, please privide the further clarification actually by declaring a variable as string i can able to pass 1023 characters form selection screen like that i passed the data to the three varibles and i concatenated those three varibles in to single varible now is there any way to pass the result into the smartform.
Please give me some techincal stuff on this
Regards
Gupta -
How to Create and Use Application Variables in Java
I Have this need to have a common variable (Counter) for all the users(Sessions) accessing my Site witch is in JSP.
I think An Application Variable is the solution for my problem...
But I don't know how to use this. Even though I search the web for any tutorials or Examples could not fing any.
Could any one Please tell me or direct me to a site which has good information about this
Thanks In Advance!!!
Badsy.// get the application object
public class myServlet extends HttpServlet
public void doGet(HttpServletRequest req,
HttpServletResponse res)
ServletContext application = getServletContext();
} -
How to Set and Use a global variable within a session?
Dear All,
I'm new to jsp, and would like to ask how to set and use a global variable within a session?
Thanks in advance.
Regards,
CecilWith session.setAttribute("name",object) you can store a Attribute in the session object.
with session.getAttribute("name") you can get it.
That's it.
Regards,
Geri -
Declare, Set, and Use a variable in a SQL Developer Query
I come from the SQL Server world and am trying to do something very simple: Declare, set, and use a variable in a query. For example:
Declare @lastPeriod date;
Set @lastPeriod = (select max(payperiod) from table 1 where payperiod < current_date);
Select field 1,
Field2
From table2
Where payperiod = @lastPeriod
The variable is going to be used in more areas in the query which is why I am simply not using a Sub-query in the where clause. I appreciate any assistance.This forum is for issues with the SQL Developer tool. You'd get more response in the SQL And PL/SQL forum.
That said, read up on bind variables and substitution variables.
Whenever you can you should use Bind variables (e.g. *:lastPeriod* ), as they increase performance. In sqldev, there's no need to declare as you will be prompted to enter them on execution (F9), but you do if you execute as script (F5) (e.g. VARIABLE lastPeriod VARCHAR2(30);).
Alternatively, Substitution variables (e.g. *&lastPeriod* ) will literally be substituted in your statement before the database parses it. In sqldev, there's no need to declare as you will be prompted to enter them on execution (either F9 or F5), but you can (DEF lastPeriod='TEST'; ).
Have fun,
K. -
How to declare and initialize a STRING ARRAY (assign strings to array elements)
How to declare and initialize a STRING ARRAY (assign desired strings to elements of an array, for example "abc", "def", "ghi", "jkl", etc.) in LabVIEW? I saw a "string array" block in help, but could not find it in the function palette. Does a spreadsheet string have to be in a file (or can it be in a string constant block)? Thank you.
Hi,
you can do it in several ways:
1. Direct way: Create string array control on front panel and type strings in its elements
2. Programmatically 1: Create string array indicator (or local variable of control), right click on it in block diagram, select "Create constant" from drop down menu. The array constant will appear. Now type values in this constant's strings
3. Programmatically 1: Use "Build array", "Replace array subset", "Insert into array" or "Initialize array" functions from "Functions->Array" palette.
And of course you can combine all of these methods.
Good luck.
Oleg Chutko. -
Creating variables in Process Flows and using thse variables in the filter
Hi,
I am new to OWB and in learing stage. Need to information.
*1. as to how pass/create/use variables to OWB mapping ?*
*2. Creating variables in Process Flows and using thse variables in the filter operator of the OWB mapping?*
*3. Other mechanisms of how to create/use variables within OWB mapping itself ?*
can you please provide the above details and guide me / help me in this regard.
Thanks,
skms.1. Add parameters to your mapping using the MAPPING INPUT PARAMETER from the pallette.
2. Add parameters to the START operator in the process flow. Bind the process flow parameter to the Mapping parameter.
3. May be appropriate to use CONSTANTS instead of parameters.
Regards
Si -
Best way to declare and use internal table
Hi all,
As per my knoledge there are various techeniques (Methods) to declare and use the internal tables.
Please Suggest me the Best way to declaring and using internal table ( WITH EXAMPLE ).
Please Give the reason as well how the particular method is good ?
What are benefits of particular method ?
Thanks in advance.
Regards
RajHello Raj Ahir,
There are so many methods to declare an internal table.
Mainly I would like to explain 2 of them mostly used.
1. Using Work Area and
2. With header line.
This with header line concept is not suggestable, because, when we shift the code to oops concept.. it doesn't work... Because OOPS doesn't support the Headerline concept...
But it all depends on the situation.
If you are sure that your program doen't make use of the OOPs concept, you can use HEADER LINE concept. If it invols OOPs use WORK AREA concept.
Now I'l explain these two methods with an example each...
1. Using Work area.
TABLES: sflight.
DATA: it_sflight TYPE TABLE OF sflight.
DATA: wa_sflight LIKE LINE OF it_sflight.
SELECT *
FROM sflight
INTO it_sflight
WHERE <condition>.
LOOP AT it_sflight INTO wa_sflight.
WRITE / wa_sflight.
ENDLOOP.
In this case we have to transfer data into work area wa_sflight.
We can't access the data from the internal table direclty without work
area.
*<===============================================
2. Using Header line.
DATA: BEGIN OF it_sflight OCCURS 0,
carrid LIKE sflight-carrid,
connid LIKE sflight-connid,
fldate LIKE sflight-fldate,
END OF it_sflight.
SELECT *
FROM sflight
INTO it_sflight
WHERE <condition>.
LOOP AT it_sflight INTO wa_sflight.
WRITE / wa_sflight.
ENDLOOP.
In this case we can directly access the data from the internal table.
Here the internal table name represents the header. for each and every
interation the header line will get filled with new data. If you want to
represnent the internal table body you can use it_sflight[].
*<======================================================
TYPES: BEGIN OF st_sflight,
carrid LIKE sflight-carrid,
connid LIKE sflight-connid,
fldate LIKE sflight-fldate,
END OF st_sflight.
DATA: it_sflight TYPE TABLE OF st_sflight,
wa_sflight LIKE LINE OF it_sflight.
This is using with work area.
DATA: it_sflight LIKE sflight OCCURS 0 WITH HEADER LINE.
This is using header line.
<b>REWARD THE POINTS IF IT IS HELPFUL.</b>
Regards
Sasidhar Reddy Matli.
Message was edited by: Sasidhar Reddy Matli
Sasidhar Reddy Matli -
How to install and use a plug-in downloaded from the apple site?
how to install and use a plug-in downloaded from the apple site?
Emelie,
which plug-in do you want to install?
some of the plug-ins come with an installer on the disk image, you click the installer and it will install it in its proper location.
For others you move the plug-in into to System Library or your User Library:
Your Hard disk > Library > Application Support >Aperture > Plug-Ins > Edit
or
Your Home Folder > Library > Application Support >Aperture > Plug-Ins > Edit
If it is an "Edit" plug-in, it goes into the "Edit" subfolder, "Export" plug-ins into the "Export" subfolder.
You can tell by the extension, what kind of plug-in it is.
E.G. BorderFX.ApertureExport is an export plug-in, BorderFXEditPlugin.ApertureEdit an edit plug-in.
Regards
Léonie
P.S. In OS Lion the Libraries are hidden by default: To reveal your User Library activate the Finder and select from the main Finder menu:
Finder > Go , then hold down the ⌥-option-key, untill the Library appears in the drop.down menu.
To show the System Library:
Finder > Go > Go to Folder
then enter / Library -
How to create and use mutable array of UInt8
Hello!
If I get it right, UInt8 *buffer, buffer - is a pointer to a start of array?
Then how to create and use mutable array of UInt8 pointers?
The main target is a creation of the module that will store some byte array requests and will send all of them at the propriate moment.I try
- (void) scheduleRequest:(UInt8 *)request {
if (!scheduledRequests) scheduledRequests = [[NSMutableArray array] retain];
[scheduledRequests addObject:request];
But get warning:"passing argument 1 of 'addObject:' from incompatible pointer type" -
HOW TO CREATE and USE EVENTS IN WORKFLOWS .
HOW TO CREATE and USE EVENTS IN WORKFLOWS with the help of classes.
What i am doing is..
open se24
event tab->event name->parameters
method tab->method name->event handler->copy parameters
interface tab->if_workflow->enter
tell me what else to do step by step
Another important thing is that HOW to use these class events to trigger the workflows.
REPLY ASAP
THXS IN ADVANCEHi,
Pl. see this blog...
Raising ABAP OO events for workflow
Regards,
JOy. -
how to Create and use of Coherence servers in weblogic serevr 11g (10.3.6)?
See the below discussion
How to create and use Webservice controls using WSDL in weblogic portal10.3
Thanks,
Venkat Sarvabatla -
How to create and use dynamic queue in JMS
Plz tell me how to create and use a dynamic queue in jms and can reciever file lookup it as it lookup any server configurred queue(written in the server).
Hi,
We can use Azure File services to do this, for more information, please have a look at this article:
http://blogs.msdn.com/b/windowsazurestorage/archive/2014/05/12/introducing-microsoft-azure-file-service.aspx. The Azure File service exposes file shares using the standard SMB 2.1 protocol. Applications running in Azure can now easily share files between
VMs using standard and familiar file system APIs like ReadFile and WriteFile.
Best Regards,
Jambor
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Maybe you are looking for
-
Error 1722 while installing wireless button driver in Windows 8.1 64 bt
Hi Friend , I have a problem while installing the wireless button driver(sp63752), I am getting the error 1722. I searched for the solution . From some solution I got I installed the update BIOS driver sp66772. But even after that I am not able to
-
HT1695 WiFi internet page error on every page... Forbidden
Please can someone help with a WiFi connection issue with an iPad 2 Each page I try to pull up gives a Forbidden error & it shows connected to my Comcast Gateway (Dory Device). Thanks!
-
IPod Touch 4th generation cannot start up...
I have a almost 4-month-old 4th generation iPod Touch which i have not used for about 3 weeks. Unfortunately, the iPod Touch would not START UP. The screen is blank even after i pressed the Home button and Sleep/Wake button for about 5 minutes. I've
-
Ipad Photo - Making File Size Smaller for emailing
How does one make pics smaller (file size) for emailing?
-
How do I delete projects in Aperture?
Aperture has created thousands of projects with cryptic 4 number/letter names. When I try to delete one of these empty projects, it takes a long time. When I try to delete several of these projects, Aperture goes into a spinning wheel hang, and I hav