Display selected parameter in portal report?
How can one display the parameters, selected in the parameter form on the report?
Thanks I found it
Just select "Show Query Conditions" when creating the report.
Similar Messages
-
Passing value from Portal Form as parameter to portal report
I have a portal form that I have created using the custom form layout editor to build/modify the display of the form. When I run the form and I have a record queried I would like to be able to click a link and pass the value of a field as a parameter to a portal report. For example, lets say I have a field on my portal form called assignment_id, and after I query a record assignment_id equals 1. I would like to use the value 1 from assignment_id as a parameter to a portal report. I am not sure how to reference the value of a form field, can this be done within the header, body or footer of the custom layout editor? Or can I somehow reference the value of a form field from the Additional PL/SQL Code section?
Has anyone tried this with success? Any info is appreciated.
Regards
MarkHi,
You can get the values of the variables from the session variables. Here is an example which gets the value of the field FLIGHT_NO and passes it on to a report.
While accessing the value of a field you should prefix it with "A_" (A_FLIGHT_NO)
declare
flightno number;
blk varchar2(10) := 'DEFAULT';
begin
flightno := p_session.get_value_as_varchar2(
p_block_name => blk,
p_attribute_name => 'A_FLIGHT_NO');
call('SJDEMO30.report1.show?p_arg_names=flightno&p_arg_values='||flightno);
end;
Thanks,
Sharmila -
Incorrect Display of Time by Portal Report
Any assistance would be much appreciated:
Portal report display of a date field using MM-DD-
YYYY:HH24:SS:MI is off by 12 hours. Select of same field and
mask via SQL*Plus looks okay.
Thanks in advance,
- LTGChetan,
Thanks for responding... I'm not sure I follow your suggestion...
Here is some more info about the problem.
I used the Portal "Reports From Query Wizard" to create a
tabular report from a pretty simple db table containing an
Oracle date field. In the Column Formatting window I entered MM-
DD-YYYY:HH24:MI:SS for the format mask for the Oracle date
field. When I run the report, the Oracle date field is
displayed with an incorrect time (18:52:20 is displayed as
06:52:20). An Sql*Plus query using to_char(timestamp,'MM-DD-
YYYYY HH24:MI:SS') displays the correct time.
I attempted to put to_char(timestamp,'MM-DD-YYYYY HH24:MI:SS')
into the format mask for the Oracle date field in the Column
Formatting screen (instead of MM-DD-YYYY HH24:MI:SS). No
apparent effect.
Did I follow your suggestion correctly? Is there something more
to do? Please advise?
Thanks,
Len Greenberg -
Select type_address in Portal report's sql query using remote database
how do i select type_address item from remote database table ?
I've already create the database link called db_link.
I've already execute the sql statement in the specified database, and it works.
for example: ( sql plus in the specified database )
select syk.alamat_syarikat.alamat1 from MCS_SYARIKAT syk
for example: ( sql statement in portal report using database link )
select nama_syarikat, syk.alamat_syarikat.alamat1 from MCS_SYARIKAT@dblink syk
error massage:
Unable to describe SQL statement. Please correct it (WWV-13010)
Invalid SQL statement: select syk.alamat_syarikat.alamat1 from MCS_SYARIKAT@dblink syk (WWV-13005)
ORA-01001: invalid cursor (WWV-11230)
ORA-22804: remote operations not permitted on object tables or user-defined type columns (WWV-11230)
Failed to parse as MCS_PUBLIC - select syk.alamat_syarikat.alamat1 from MCS_SYARIKAT@dblink syk (WWV-08300)Here's the actual query:
SELECT BUILD_EXT_RES_LIST(EXT_FILE.ID) A
FROM EXT_FILE_RES, EXT_FILE
WHERE EXT_FILE_RES.ON_OWNER_PROFILE = 'Y' AND
EXT_FILE.OWNER_ID = :PROFILE AND
EXT_FILE.ID = EXT_FILE_RES.EXT_ID AND
(RES_SUBSCRIBER_YN(EXT_FILE.ID,:CURR_ID) = 'YES' OR
ADMINYESNO(:CURR_ID,:PROFILE) = 'YES')
ORDER BY EXT_FILE.FILE_NAMEAnd here's the actual error message:
1 error has occurred
Query cannot be parsed within the Builder. If you believe your query is syntactically correct, check the ''generic columns'' checkbox below the region source to proceed without parsing. ORA-00904: "SER_IS_ADMINYESNO": invalid identifier -
Show selected value from multi-selected parameter in crystal report
Dear Experts!
i would like to ask how to catch selected value from multi-selected parameter to show in report header section.
Thanks in advance.Hi Dara,
If this is a string prompt then you could simply create a formula with this code and place it on the report header:
Join({?Prompt name},", ")
-Abhilash -
Posting date as selection parameter in COPA report painter report
hi,
we want to include the posting date and document date in selection criterion of COPA report generated through report painter.
we do not want to use period and fiscal yr as selection criterion.
pls suggest.
regards
FLDHi Sashidhar,
First go to the program RHU_HELP and you need to enhance the code using the enhancement technique using implicit enhancement. You can add your new selection criteria at line no 257( need to create an new implicit enhancement).
Hope this is helpful for you.
Regards,
Ramesh. -
Error in multi-select LOV in Portal Report parameter
Hi,
I have a Report from SQL Query that currently has a combo-box parameter that's linked to an LOV. Now the client requires for this parameter to be a multiple select instead of a combo box.
I changed the LOV display to multiple select in Customization Form Display Options, and I changed the where clause of the query to this:
AND CASE WHEN (SUBSTR (pav.name, INSTR (pav.name, '.')-1, 1) BETWEEN '0' AND '9')
OR (UPPER (SUBSTR (pav.name, 1, INSTR (pav.name, '.'))) IN ('TBD.', 'PLCV.', 'EPLCV.'))
THEN SUBSTR (pav.name, INSTR (pav.name, '.') + 1)
ELSE pav.name
END IN (NVL (:p_vacancy_name, pav.name))
It works when I select only one value in the LOV, but gets the following errors when I select more than one:
*** If Output Format selected is HTML:
Failed to parse query
Error: ORA-00933: SQL command not properly ended (WWV-11230)
Critical Error in wwerr_api_error.get_errors! SQL Error Message: ORA-06502: PL/SQL: numeric or value error: character string buffer too small (WWV-)
Error: Unable to execute query (WWV-10201)
No row returned.
*** If Output Format selected is Excel:
ID;ORACLE;N;E P;PGeneral P;P#,##0 P;P#,##0.00 ; ; Global Formatting ; F;C1;FG0R;SM1 ; ; Title Row ;
Error: Unable to perform query (WWV-10202)
ORA-01001: invalid cursor (WWV-11230)
Can anyone help me fix these errors?
Thanks,
LorenaFollow Up:
After some discussions with Steven I tried to move some stuff around. Eventually I found out that if the ViewObjects on which these two table-blocks are based are built on different Entity Objects, then the application works as desired.
So the conclusion seems to be: it is not a good idea to have - probably in the same UIModel - multiple Iterators based on ViewObjects that are based on the same EntityObject.
Note: this is only a work-around: I still do not know exactly what goes wrong and why! It can be in JHeadstart runtime (not so likely), in ADB Binding Layer (very likely) and potentially in ADF BC (quite unlikely).
best regards,
Lucas -
Displaying selection criteria in ALV report output
Hello,
Ive been using REUSE_ALV_GRID_DISPLAY function module to display my report content in ALV.
My reports selection criteria has parameters, select options, checkboxes and radio buttons. As part of the ALV output, I want to display the criteria that the user had selected in the selection screen. I was hoping to do that via parameter "i_callback_top_of_page" and fill the selection criteria in the header area. I'm using REUSE_ALV_COMMENTARY_WRITE to fill the header area.
However, the header area takes too much of view space in the output if I put all the selection screen information in it.
Is there a way to make the header area scrollable? What is a good way of displaying the selection criteria information as part of the report output?
Appreciate your help.
ssHi SS,
1. The purpose of displaying / writring
selection information
in alv is
for identifying what the user has seleccted,
directly from the report (when its printed)
2. So, the option of priting/writing
it on the TOP of alv, is ok.
3. However, U can also choose to WRITE
it at the BOTTOM (instead of top)
4. Try to utilise maximum spacing (horizontally)
field1 : abcd fidl2 = xyz field3 = ppp
field4 : mnc etc. etc.
regards,
amit m. -
Add new field as selection parameter in HUMO report
Dear Experts,
We have arequirement to add a new selection criteria in a standard report HUMO.
We need to add a new filtering field from VEPO table.
How can we do this without going for development.
Please suggest
Regards,
ShashidharHi Sashidhar,
First go to the program RHU_HELP and you need to enhance the code using the enhancement technique using implicit enhancement. You can add your new selection criteria at line no 257( need to create an new implicit enhancement).
Hope this is helpful for you.
Regards,
Ramesh. -
How to Display Parameter set in report ??
Hi all...I have a multi select Parameter in a Report.
Generally we use this statement to initialize parameters in template
<?param@begin: parameter_name?>
and to display that we use: <?parameter_name?>
But this is good for single valued parameters
I have a multi select parameter, I need to show all those values(suppose 3) in title of report. (They cannot be included in the SQL as a column)
How do we achieve this?
Thanks a lot in advance!you can use the same <?param@begin:parameter_name?><?$parameter_name?> for multiselect values also
-
GR55 Report - Need to add Document type in selection parameter
Hi Friends,
Our client needs to have document type in selection parameter for one report group which has 4 reports attached.
Changes have been made and now document type is already there in selection parameter. But irrespective of document type Output is same.
That is if i Give docuement type or not it gives me same output.
This report is bein copies n new report is made.
Can any one help me out with how go proceed further.Hi,
This report is bein copies n new report is made.
You just copied the output from an existing one right....
Inorder to get the report documenmt type wise you also need to change the output format of the report.
Ask your ABAPer to get this tobe done... -
How to create own Selection Parameter for ME2M list
Dear Sir,
We use ME2m tcode for getting list related to Purchase Order . We have been told that we can create our own "SELECTION PARAMETER" for ths report . Kindly guide us as what steps need to be done for this pl .
With Thanks and Regards
Sonia Mittalyou can also set a variant for the existing / default ME2M screen
fill all the required entries then click on GOTO >>Variants >Save as Variant
next time when you run T code ME2M, you can select the variant and run the t code
hope this will help you -
SOLUTION - How to display a BLOB content in Portal Report
Courtesy of Kelly Wong:
1. Every time a record of the file information is inserted into the
PORTAL30.WWDOC_DOCUMENT table while you inserted a record to the blob
field in a portal form that you created.
[The fact that a file uploaded appears in the WWDOC_DOCUMENT table is actually a side-effect of Forms file upload, this may change in a future version. However this example gives a pretty good solution to the problem - Dmitry]
2. If you describe the PORTAL30.WWDOC_DOCUMENT table, you will find
that a few of the columns are: NAME, FILENAME, MIME_TYPE, BLOB_CONTENT,
CREATOR, etc.
3. I created a pl/sql procedure that takes a NAME parameter.
The code of the procedure is as follows:
CREATE OR REPLACE Procedure get_url
(V_FILENAME IN VARCHAR2)
IS
url varchar2(100);
BEGIN
url := '/pls/portal30/docs/'| |v_filename;
portal30.wwv_redirect.url(p_url =>url);
END;
4. I then created a portal report, select NAME, FILENAME, MIMETYPE,
CREATOR fields from PORTAL30.WWDOC_DOCUMENT. (remember, no BLOB_CONTENT
field is selected!) My select statement is:
SELECT '<A
HREF="scott.get_url?v_filename='| |name| |'">'| |filename| |'</A>' filename,
name,mime_type,creator
from portal30.wwdoc_document
where creator = 'KELLY'
You can see that I am passing in "NAME" instead of "FILENAME" into the
get_url procedure because the it needs the "NAME" info to display the
file.
Actually, the content in the NAME column is something like:"563.TXT",
and the content in the FILENAME column is "F15675/IPORTAL_LOCAL.TXT".
The hyperlink can be either on the NAME or FILENAME field, as long as
you pass in the content of "NAME" into the procedure.
And it should be fairly easily to substring the FILENAME to show only
"IPORTAL_LOCAL.TXT" if the client doesn't like to see the number
portion.
That is, when I click on the link, I am able to see my file in a new
browser window.The only drawback in this scenario is if there is a link
from your document to a portal component (form/report), it may not link
to the form/report. If there are links in the document link to other
document (html, txt, etc.), it will be no problem. It just open the
document in another browser window.
Please feel free to give me any comment on this and post it to the forum
if needed. I just don't want to search for the original questions in
the forum and attach the reply to it.
Regards;
Kelly.Is this method working also for portal 3.0.9?
I can't get it to work.
Is there a way do put a link to download the content of a blob field inside a report in version 3.0.9 that comes with iAS 1.0.2.2?
Thank's in advance
Mauro -
How to display the sort value in the selection screen in the report title
Dear All,
How to display the sort value in the selection screen in the report title? I have selected a value in the selection screen for sorting , but i need that values by which i have sorted with in the report title. Can you please throw some light on this!!
Good day,
Thanks and regards
Arun SHi Arun,
Try this.
1, Set one dynamic parameter,
2, Drag and drop that parameter into your report title.
3, Pass the value(sort value) dynamically from your application,
4, Cheers..
Other wise Try with Dataset, create a dataset and fill thev alue into that.. Then set the data source from CR designer. and darg and drop that data column into the report.
Hope this will work,
Regards,
Salah
Edited by: salahudheen muhammed on Mar 25, 2009 11:13 AM -
Need to display the first 5 values of a Multi value parameter in SSRS report
Hi All,
I have SSRS report with multi value parameter. I need to display the parameter selection values in a text box. I've more than 50 records in the multi value parameter list. I've included the code to display "All" if I choose "select
all" option otherwise it will show the selected values. But, I need to change the logic. I have to show only the 1st 5 records if I choose more than 5 records.
How can I implement this?
I have used the below code
=iif(
Parameters!Country.Count = Count(Fields!Country.Value,
"Country")
,"All"
,iif(Parameters!Country.Count>5
,"Display the 1st 5 values"
,Join(Parameters!Country.Value,",")
Regards,
JulieHi Julie,
Per my understanding that you want to always show the first values from the param country to a textbox when you have select more then five values from the dropdown list, if you checked "select all", textbox will display "All", if
you select <=5 amount of values. it will display the selected values, right?
I have tested on my local environment and that you can create an hide parameter(Param2) to display just the first five values from the Country and when you select more then five values from country you will get the Join(Parameters!Param2.Value,",")
to display.
Details information below for your reference:
Create an new DataSet2 which the Param2 will get the values from:
SELECT TOP (5) Country
FROM tablename
Create an new param2 and hide this parameter, Set the "Available values" and "Default values" by select the "Get the values from a query"(DataSet2)
You can also Specify first five value for the "Available values" and "Default values", thus you will not need to follow the step1 to create the dataset2
Modify the expression you have provided as below:
=iif(Parameters!Country.Count = Count(Fields!Country.Value, "DataSet1"),"All" ,iif(Parameters!Country.Count>5 ,Join(Parameters!Param2.Value,","),Join(Parameters!Country.Value,",")))
Preview like below
If you still have any problem, please feel free to ask.
Thanks,
Vicky Liu
If you have any feedback on our support, please click
here.
Vicky Liu
TechNet Community Support
Maybe you are looking for
-
How can I get the printed message of stored procedure in JPA
Hi, I'm using JPA to invoke stored procedure in database, a segment of the sproc is like below: if @create_type != 'a1' and @create_type != 'a' begin print 'create type must be either ''a1'' if you pass in A1 ID, or ''a'' if you pass in Use
-
How can I overwrite the Last Changed Field (AUFK-AENAM)
We have an XI application that updates networks in R3 by calling BAPI_NETWORK_MAINTAIN. The XI RFC Client Parameter has logon user/password that connects to R3, so when a network header is updated by calling the BAPI_NETWORK_MAINTAIN.....then the l
-
Hello everybody, I have a folder based on materialized view (Detailed folder). There is another folder which is based on a table (master folder). i have created a jooin and select option as "outer join on master folder". The join is not working prope
-
How do I make my libary so that I can have mix albums with multiple artist in them and not make itunes show 50 different artist for the same album. At the moment each individual artist is set as the album artist but when i switch the album artist wit
-
Adjustment brush auto mask broken for 32bit TIFF image
Hello, I am using Lightroom 4.2 (updated today) on Windows 7 64bit. I have an issue using the adjustment brush with the option "Auto Mask" within a 32 bit TIFF file: the Auto Mask magic there does not work. I've created 32 bit TIFF files using the "m