Passing Display Name to Portlet(report) as a parameter???
Does anyone know if we can pass the Display Name for a report dynamically to the portlets?
For now, I have had to create one page for each report(portlet) by Overwriting the report display
option and using specific Query Option for each portlet. Preferably I would just call the report
with two parameters, one used in the sql to narrow down the query and the second for the Display
Name.
Thanks in advance,
Yahya
null
Yahya -
For Portal specific questions such as this, you might also want to post them to the Portal specific forums we have on OTN.
Members of the Portal development team monitor and answer questions on those forums.
cheers!
-steve-
Similar Messages
-
Passing table name to a report.
I am designing an application that will draw data from any of a number of different tables (all with different data formats, but the same column names), and wish for this data to be displayed in a report. In the table that contains the selection criteria, I have included columns for schema name and table name. How can I pass these values into the report, and in turn, into a graph?
I've tried this, but it doesn't work.
SELECT data_column FROM
:schema_column.:data_column;HI ,
the table name can be easily passed on to the sql use lexicaly parameter as below
SELECT data_column FROM
&table_name where &where_clause
once you write this query it will give you a message that a bind variable was created . Now you can assign value to this through parameter form or write a code in the after parameter form trigger and also generate the where clause if required .
do you have same column name in different tables with different data types ?? if so then i really dont know how to solve this problem other wise it should not be a problem
bye
sudhir -
Get error when passing server name to Crystal Reports in Visual Studio 2012
Hello,
I work on Visual Studio 2012 with Crystal Report 13.0.12 (both developer and run-time). When I pass the name of the server to the Crystal Reports, I get an error -- Failed to open the connection. Database Vendor Code 17. I use SQL OLEDB as the provider. It worked before. Not sure what has happened.
Any help is much appreciated!!!
JohnHi,
See this: Failed to open the connection - database vendor code 17
--dj -
Pass column names dynamically in report
Hello experts,
I am creating an ALV report where i need to pass the column names dynamically. if the current month is March and year is 2009. the column names should be as below
March 2009 April 2009 May 2009 June 2009 ..............till Feb 2010 (total columns are 12)
if the current month is June and year is 2010 it shoud be displayed as
June 2010 July 2010 Aug 2010................till May2011
I am actually calculating the forecast qty for each month and displaying in a report from the current month.
How to write field catelog for this requirement?
Thanks in Advance.
Rajesh.I think in the fieldcat, at the time of declearation, you can alter the field description depending on the present month.
If present_month = January
wa_fieldcat-reptext_ddic = 'January'. " Field description
elseif present month = February.
wa_fieldcat-reptext_ddic = 'February'. " Field description
on so on.....................
Kuntal -
How to pass the variable value to reports as a parameter
hi
i have facing a problem that i want to pass the value of a variable that i had calculate in a procedure like
SELECT nvl(BASIC_PAY,0) INTO v_basic FROM EMP WHERE EMP_ID=P_EMP_ID;
so i want to send the variable value v_basic as a parameter through form to report...and simlarly other variables values which i have calculate in procedure....
need ur help to solve this problem
thanks in advanceit's the exact posting from your last post. Please don't duplicate the postings, so that we can help you in one thread and not so many different threads
-
Presentation Layer - Custom Display Name
We use Oracle Datamarts as Data Source thus in our Repository a lot of information is just routed through. Of course we configured the joins in the physical layer and added some hierarchies, joins and calculated measures to the business model.
The question is now where to set the right column names which the end users will see (translation from technical column names to business column names). Normally I read that the naming should be done in the business model and then can be copied to the presentation model.
Is there any reason why not to leave alle the technical column names through to the presentation model and just to do the naming with the Custom Display Names? This had the advantage that we could rename the column display names and the reports never had to be modified.
Thank you for your thoughts and inputThe main reason could be this:
If the attribute has been used in multiple subject areas, there is no need to go each subject areas and rename them, instead a one time rename in Business Modeling layer will do the work. Eg. Suppose there is a common dimension, say, Supplier/Customer/Time which are used in multiple subject areas. Renaming in Business modeling layer will be easier than going to each subject areas and rename them in presentation.
Hope this helps..
Thanks,
Anilesh -
Passing the database name as a PL/SQL procedure parameter
How do I pass the name of the database as a parameter to a procedure?
If dbs is the variable name to which I pass the database name as shown in the example,
CREATE OR REPLACE PROCEDURE Extract_gl_acct_Tbl(dbs varchar2)
and I use dbs in the code as follows,
SELECT ACCOUNT,
SETID
FROM SYSADM.PS_GL_ACCOUNT_TBL@dbs
It gives me an error saying 'ORA-04054: database link DBS does not exist'.You will need to use dynamic SQL to handle this:
create or replace ...
is
type rc is ref cursor;
v_rc rc;
begin
open v_rc for 'select ... from sysadm.ps_gl_account_tbl@' || dbs;
fetch v_rc into ... -- some variables
-- if multiple rows, you'll need to do the fetch in a loop and exit when v_rc%notfound.
close v_rc;
end; -
Passing multiple parameters between two report portlets on the same page
Hi,
I want to pass multiple parameters between two report portlets on the same page.
I have been succussful passing a single parameter between two portlets. The
following are the steps :
(1) Created first report based on the query
SELECT htf.anchor('http://192.168.0.84:7778/servlet/page?&_pageid=97&_dad=portal30&_schema=portal30&_mode=3&dept_code='||DEPTNO,DEPTNO) Department, ename FROM EMP;
(2) Created 2nd report
select * from EMP where DEPTNO = :dept_code
(3) Added pl/sql code before display page on the 2nd report
portal30.wwv_name_value.replace_value(
l_arg_names, l_arg_values,
p_reference_path||'.dept_code',portal30.wwv_standard_util.string_to_table2(nvl(g
et_value('dept_code'),10)));
(4) Created a page and added these reports as portlets.
Sofar it works fine for one parameter (deptno) . Now I want to add one more
parameter say empno to my first report query and would like to pass both the
parameters deptno and empno to the 2nd report. Please tell me how to pass multiple parameters ?
Thanks
AsimHi,
You will have to do the same thing
The select will be like this
SELECT htf.anchor('http://toolsweb.us.oracle.com:2000/servlet/page?_pageid=97&_dad=mb&_schema=mybugs&_mode=3&dept_code='||DEPTNO||'&empno='||empno,DEPTNO) Department,ename
FROM EMP
In the additional plsql code do the same for empno like this
mybugs.wwv_name_value.replace_value(l_arg_names,l_arg_values, p_reference_path||'.dept_code',mybugs.wwv_standard_util.string_to_table2(nvl(get_value('dept_code'),10)));
mybugs.wwv_name_value.replace_value(l_arg_names,l_arg_values, p_reference_path||'.empno',mybugs.wwv_standard_util.string_to_table2(get_value('empno')));
Thanks,
Sharmila -
A condition to avoid displaying a product with the same Product Name in a report
hello,
Is there a condition to avoid displaying contents of two similar product names in a subreport?
here is the scenario:
Need to display Parent information in a separate List - Good
child Product information in Sub-report,
I'm passing both ProductID and ParentName parameters into Sub-Report to display the contents of the sub-report. If there are no similar Parent name, the sub-report works fine. But if there are similar ParentName, my sub-report
starts listing all Products from the parent name.
example
Parent Product 1 ->
Sulphate
Product_ID -> xx345
child Product1 -> SulPhur (details...) in a SubReport
Parent Product 2 ->
Sulphate
Product_ID -> xx3342
Child Product1 -> Sulphuric Acid (details...) in a SubReportHi xitum,
Per my understanding that both the subreport and the main report contains the field "ProductID" and "ProductName", and some of the ProductID will map the same ProductName which will display some duplicate subreport in the list like below,
right?
I have used some sample data as below and you can see when the different ProductID have the same values of "ProductName" and "Amount" and some other field value, it will display all the duplicate information
in the subreport when add the main report in a list:
ProductID ProductName Amount:
1 ZXITest 220
2 ZXITest 220
3 ZXITest2 100
4 ZXITest3 200
If this is the case, please reference to the similar case in below thread which include details steps about how to do the deduplicate:
how to avoid duplicate displaying a chart in a list
If I have some misunderstanding, please try to provide some snapshot of the unexpect result you have got and more details information about the expect result you want.
Regards,
Vicky Liu
Vicky Liu
TechNet Community Support -
Passing parameters from portlet reports to portlet forms
Hi,
I'm tring to pass parameters between a Report displayed as a portlet in a page ( page 1) and a form displayed in other page ( page 2).
The problem is i can't do this.
I only can pass parameters from a report ( running as normal or in a portlet displayed in a page) to a form running "normal" by using application links. Can i do this between a report that show's me every employees of scott.emp table. Then when i click on each employee, it open's me another page with the portlet form of the specified employee.
I'm not sure i made myself clear. Please send me some feedback.
PedroI have the same problem. Please let me know if this could be done.
In particular my form is a type of "Form on Table/View."
Thanks
Henry -
The portlet name is not displayed in the portlet drop down list ?
Hi,
I use Sun Java System Portal Server 6 2005Q4 for windows 2000 server , use the following command to deployo portlet,
I am not sure if I successfully deploy the portlet?
pdeploy deploy -u amAdmin -w amadmin -p amadmin -d "cn=amldapuser,ou=DSAME Users,dc=icheng,dc=com" C:\Sun\PortalServer\tmp\portlet\portletsamples.war
The message I got after execute the pdeploy command is =>
Deploys the portlet war file and inserts the provider into display profile..
OPTIONS
--help Help message (false)
-u --runasdn UID Bind DN (none)
-w --password Password (none)
-p --wc_password Password for WebContainer's Admin (none)
-i --instance WebContainer's Instance into which the war file is to be deploye
d (*)
-d --dn LDAP DN of the target node (*)
-g --global Global display profile (false)
-r --rolesfile File containing the DSAME and portlet role mapping (*)
-f --userinfofile File containing the user info mapping (*)
-v --verbose Generate debug messages (false)
-V --version Generate version information (false)
-l --locale Locale information (en_US)
OPERAND
Specifies a path to the war location.
Deploying to IWS
Is this mean that successfully deploy the portlet ?
After I deploy the portlet, I login to Access Manager, select the "service" from view, click the portal desktop,
click "Manage Channels and Containers", click the "New Portlet Channel...", then click the portlet drop down list,
the portlet name is not displayed in the portlet list.
How can I make the portlet name displayed in the portlet drop down list ?
Can someone help me ?
Thanks!Hi
According to your description, since this is SQL Server forum, as Olaf Helper’s post, could you get the correct result if you execute the following query in SQL Server Manager Studio (SSMS)?
select UserName from aspnet_Users where UserId in(select FreindId from myFreinds where UserId in(select UserId from aspnet_Users where UserName = '<your typed name>'))
If you cannot get the correct result in SSMS, I recommend to check the Transact-SQL statement. Apart from the error message, we also need to know the table structure, data, join relationships between tables for further analysis.
However if there is no problem in SQL Server query, it will be an issue that regards ASP.NET and website deployment. I suggest you to post the question in the ASP.NET forums at
http://forums.asp.net/ . It is appropriate and more experts will assist you.
In addition, there is detail about listbox control in asp.net. You can review the following links:
How to Bind/Load/Fill ListBox with Sql Server Database in asp.net:http://www.webcodeexpert.com/2013/07/how-to-bindloadfill-listbox-with-sql.html#.U5f75_6KCM9
How to get multiple selected value in ListBox control - ASP.NET using C#:
http://www.dotnetfox.com/articles/how-to-get-multiple-selected-value-in-listbox-control-Asp-Net-using-C-Sharp-1047.aspx
Thanks
Lydia Zhang -
Pass column-name as a parameter to reports
Hello,
the code below calls a report. But now I want to sort the rows in the report. For example I have a text-item in my form-modul. If I type a column-name and press the button then the rows should be sorted in the report. Is it possible tp pass column-names as parameter to reports?
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
BEGIN
repid := find_report_object('STATIONSTOPOLOGIE');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,RUNTIME);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'html');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rep_oracle-dev');
-- SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no pdeptno='||:dept.deptno);
v_rep := RUN_REPORT_OBJECT(repid);
rep_status := REPORT_OBJECT_STATUS(v_rep);
WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
rep_status := report_object_status(v_rep);
END LOOP;
IF rep_status = 'FINISHED' THEN
WEB.SHOW_DOCUMENT('http://oracle-dev:8888/reports/rwservlet/getjobid'||
substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=rep_oracle-dev','_blank');
ELSE
message('Error when running report');
END IF;
END;Hi,
the work has been done in reports. You can use a lexical parameter in reports to add a condition for sorting to the query like:
select .. from .. where ... &p_order.
Then add another parameter to the report (for example p_param). Fill p_param via your interface in forms (SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER, ....) with the column name. Then build a report trigger like:
if :p_param is null
then
:p_order:= null;
else
:p_order:= 'order by '||:p_param;
end if;
But have a look, that p_param can only get correct values.
Rainer -
How can we display the list of Report Names in Dashboard Prompt?
How can we display the list of Report Names in Dashboard Prompt?
Hi,
No its not possible to display list of reports in dashboard prompts.
Can do this using SQl results in prompt(we write query checking out report names manualy),but its not easy thing if you are having many report names to be displayed.
Assign points and close your threads if answered.
Refer : http://forums.oracle.com/forums/ann.jspa?annID=939
Regards,
Srikanth -
Display Vendor name in vendinvoice Report
hi expert i have little query , in ax 2012 R3 there is report vend-invoice Report, actually i want to display vendor name on that report,by default there is no vendor name,for this i just added vendor name(extended data type) in vendinvoice temp table,and
then just reference that field in class of vendinvoice,rebuild the ax,and in vs2012 add that field in report design ,and depolye ,but still the vendor name not does not showed in report...plz guide me..
Regards.Hi Munsifuv,
Is this a question about Power Query? If not, I'd recommend directing your question to a Dynamics Ax forum.
Ehren -
Passing Parameters to a report by only knowing the rdf name fo the report
Hi all,
My requirement is that i konw the rdf name of a report and i want to call that report through form but i dont know the parameters in that report. Is there any way to find the parameters or any other method by which i can identify and pass the parametes to the report.
Thanks in advanceYou don't have the rdf-files? Then i don't know of any way to find that out from the report itself (i guess you only have the rep-files?). Do you have any other forms-modules which already call the report? If so, you could check the calls there.
Maybe you are looking for
-
Multibyte character error in SqlLoader when utf8 file with chars like €Ää
hello, posting from Germany, special charactes like german umlaute and euro sign in UTF8 Textfile, SqlLoader rejecting row with Multibyte character error Oracle Database 11g Release 11.2.0.2.0 - 64bit Production Database Characterset: WE8MSWIN1252 OS
-
How to delete the data from KNVP without using the delete statement
Hello friends, I have a requirement that I have to delete the data from KNVP table without using any delete statement. For it I have to use the Standard BAPI or any standard program. Can you please tell me the name of the standard program or BAPI to
-
Error in IMPORT_ABAP. SAPNTAB fails
Dear all, I am trying to install ECC 6.0 EHP5 on AIX / DB2. Our SID is TRD The IMPORT_ABAP phase fails and the installations halts Below mentioned are the extracts from the log files import_monitor.log INFO: 2011-08-29 22:40:11 Version table 'SVERS'
-
I upgraded my old 3G Iphone to the new 5C and need to transfer the data and number. Is there a procedure to do this or do I just use the USB from the phone to my computer and use the ITUNEs.
-
AEBSn + Alcatel Speed Touch Home ADSL modem
I just bought one of the new Airport Express 802.11n base stations, and I can't get it to connect to the internet through an Alcatel Speed Touch Home ADSL modem. This modem works flawlessly with my Airport Express router (and with previous routers) u