JasperReports - passing parameters at runtime - Issue
I want to create JR from a DB passing parameters for the portions of sql query, field name etc.
A particular case is working when
<parameter name="dbname" class="java.lang.string" />
<queryString><![CDATA[SELECT * from $P{dbname}]]></queryString>
<field name="roll" class="java.lang.Integer" />But following isn't
java Hashmap has map.put("fields", "*");
<parameter name="fields" class="java.lang.string" />
<queryString><![CDATA[SELECT $P{fields} from MARKS]]></queryString>
<field name="roll" class="java.lang.Integer" />Error being - Unknown column name roll
Also what if i need to pass a parameter for the field i.e
<field name=$P{fields} class="java.lang.Integer" />This particular thing doesn't work... how can it be done.. if at all and how can we refer to it in 'textfieldexpression' tag.???
Hello Tracy,
one way to avoid database logon credentials is to use one of our SDKs and pass the logon credentials in code.
Please see lots of samples how to do this on our [dev lib|https://boc.sdn.sap.com/].
For further code related questions please visit our [SDK forum|https://www.sdn.sap.com/irj/sdn/businessobjects-sdk-forum].
Best regards
Similar Messages
-
Hi all,
I have a Db2 stored procedure in the data model, which is the record source. I have a master child design and i need to pass the values that is retrieved in the master frame as parameters to the DB2 stored procedure in the child frame.
The values must be passed at rumtime and the stored procedure must be invoked with the valies that are passed as input.
I cannot use user parameters or place holders to hold the values as they do not work properly.
Can somone help with an idea
ThanksHello Tracy,
one way to avoid database logon credentials is to use one of our SDKs and pass the logon credentials in code.
Please see lots of samples how to do this on our [dev lib|https://boc.sdn.sap.com/].
For further code related questions please visit our [SDK forum|https://www.sdn.sap.com/irj/sdn/businessobjects-sdk-forum].
Best regards -
Issue with passing parameters through Java-JSP in a report with cross tab
Can anyone tell me, if there's a bug in Java SDK in passing the parameters to a report (rpt file) that has a cross tab in it ?
I hava report that works perfectly fine
with ODBC through IDE and also through browser (JSP page)
(ii) with JDBC in CR 2011 IDE
the rpt file has a cross tab and accpts two parameters.
When I run the JDBC report through JSP the parameters are never considered. The same report works fine when I remove the cross tab and make it a simple report.
I have posted this to CR SDK forum and have not received any reply. This have become a blocker and because of this our delivery has been postponed. We are left with two choices,
Re-Write the rpt files not to have cross-tabs - This would take significant effort
OR
(ii) Abandon the crystal solution and try out any other java based solutions available.
I have given the code here in this forum posting..
CR 2011 - JDBC Report Issue in passing parameters
TIA
DRG
TIA
DRGMr.James,
Thank you for the reply.
As I stated earlier, we have been using the latest service pack (12) when I generated the log file that is uploaded earlier.
To confirm this further, I downloaded the complete eclipse bundle from sdn site and reran the rpt files. No change in the behaviour and the bug is reproducible.
You are right about the parameters, we are using {?@Direction} is: n(1.0)
{?@BDate} is: dt(d(1973-01-01),t(00:00:00.453000000)) as parameters in JSP and we get 146 records when we directly execute the stored procedure. The date and the direction parameter values stored in design time are different. '1965-01-01' and Direction 1.
When we run the JSP page, The parameter that is passed through the JSP page, is displayed correctly on the right top of the report view. But the data that is displayed in cross tab is not corresponding to the date and direction parameter. It corresponds to 1965-01-01 and direction 1 which are saved at design time.
You can test this by modifying the parameter values in the JSP page that I sent earlier. You will see the displayed data will remain same irrespective of the parameter.
Further to note, Before each trial run, I modify the parameters in JSP page, build them and redeploy so that caching does not affect the end result.
This behaviour, we observe on all the reports that have cross-tabs. These reports work perfectly fine when rendered through ODBC-ActiveX viewer and the bug is observable only when ran through Java runtime library. We get this bug on view, export and print functionalities as well.
Additionally we tested the same in
With CR version 2008 instead of CR 2011.
(ii) Different browsers ranging from IE 7 through 9 and FF 7.
The complete environment and various softwares that we used for this testing are,
OS : XP Latest updates as on Oct 2011.
App Server: GlassFish Version 3 with Java version 1.6 and build 21
Database server ; SQL Server 2005. SP 3 - Dev Ed.
JTds JDBC type 4 driver version - 1.2.5 from source forge.
Eclipse : Helios along with crystal libraries directly downloaded from SDN site.
I am uploading the log file that is generated when rendering the rpt for view in IE 8
Regards
DRG -
OBIEE 11G - Issue passing parameters between two reports
Hi folks,
I am struggling to pass parameters between two reports in OBIEE 11G.
My first report contains the following columns: Rolling Year Type (VCHAR), Year(VCHAR), Month(VCHAR), Cost(Double).
My second report contains the following columns: Rolling Year Type(VCHAR), Year(VCHAR), Month(VCHAR), Category(VCHAR), Cost(Double).
My requirement is to pass the Rolling Year Type, Year and Month values from report 1 to report 2.
On the Month column properties of report 1, I have created an Action Link called 'Drill to Category'. I have clicked on 'Navigate to BI Content' and selected Report 2.
Then on Report 2, I have included three filters: Rolling Year Type is prompted, Year is prompted, Month is promted.
When I run the report I always get the following error:
The specified criteria didn't result in any data. This is often caused by applying filters and/or selections that are too restrictive or that contain incorrect values. Please check your Analysis Filters and try again. The filters currently being applied are shown below.
When I check the cursor cache, the filter values are correct. Does anybody have any idea why Report 2 does not display?
When I remove the Month filter, the report works correctly.
I have since changed the third filter to be Month No and although Report 2 does display, it does not pick up the filter on the Month No.
I initially thought this may have been a caching issue and so I have disabled BI Server Cache but this does not fix my problem.
This was never an issue on OBIEE 10G as I found it very easy to navigate between two requests.
Has anyone else experienced problems with passing parameters between two request in 11G?
Any help appreciated.
Thanks
GavinHi,
I once tried this kind of requirement(with dashboard prompts though) and hit at similar issue. I later found out that the problem is with the space in the parameter values. Can you please let me know, if the same is the case with you?
Suppose the parameter passed is "Jan 2010", but the report on the destination takes the value as "Jan" & "2010". Yes, it kind of split the parameter value to two based on space. I think we can notice the filters the destination report got, by enabling filter view.
In this case, since you pass only value at a time, could you try placing the parameter value anyway in double quotes? I think the Server then will understand it as one value.
Thank you,
Dhar -
Issue with passing parameters from JSP to Backing bean
hi ,
I have an issue in passing parameters from my JSP to backing bean. I want to fetch the parameter from my URL in backing bean .This is how i am coding it right now. But the parameter companyID returns me null.
URL http://localhost:8080/admin/compadmin.jsp?companyID=B1234.
In my backing bean
FacesContext context = FacesContext.getCurrentInstance();
String companyID = (String)context.getExternalContext().getRequestParameterMap().get("CompanyID");
public void setCompanyID(String companyID)
this.companyID=companyID;
public String getCompanyID()
return this.companyID;
faces-config.xml :
<managed-bean-name>admincontroller</managed-bean-name>
<managed-bean-class>com.admin.controller.AdminController</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>companyadminbean</property-name>
<property-class>com.admin.model.AdminBean</property-class>
<value>#{companyadminbean}</value>
</managed-property>
<managed-property>
<property-name>companyID</property-name>
<value>#{param.companyID}</value>
</managed-property>Please let me know if iam missing something.Appreciate your help in advance
ThanksThanks very much for your input. I made changes to my bean accordingly. Actually the method getAdminType() is a not a getter of a property. It's just a method which iam calling in AdminController bean constructor to verify whether the person is System Admin or Client admin. So now the issue is inspite of making changes still the link "Copy Users" shows up for Client admin too which is incorrect.
My Administrator bean:
public class Administrator {
boolean GSA=false;
boolean SA=false;
public Administrator(){}
public boolean isGSA()
return GSA;
public boolean isSA()
return SA;
public void setGSA(boolean value)
this.GSA=value;
public void setSA(boolean value)
this.SA=value;
}My backing bean:
public class AdminController {
private AdminBean adminbean = new AdminBean();
public AdminController(){
int userID=1234;
this.getAdminType(userID);
public void getAdminType(int userID)
Administrator admin = new Administrator();
if (userID<0) return;
try{
if(Rc.isGlobalSystemAdmin(userID)){
admin.setGSA(true);
}else if(Rc.isClientSystemAdmin(userID)){
admin.setSA(true); // i could see these values setup correctly in the admin bean when i print them
adminbean.setAdmin(admin);
} catch (Exception e){ }
Admin Bean:
public class AdminBean {
private Administrator admin;
public Administrator getAdmin()
return this.admin;
public void setAdmin(Administrator admin)
this.admin = admin;
faces-config.xml
<managed-bean>
<managed-bean-name>admincontroller</managed-bean-name>
<managed-bean-class>com.controller.AdminController</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>adminbean</property-name>
<property-class>com.model.AdminBean</property-class>
<value>#{adminbean}</value>
</managed-property>
</managed-bean>
<managed-bean>
<managed-bean-name>adminbean</managed-bean-name>
<managed-bean-class>com.model.AdminBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<managed-property>
<property-name>admin</property-name>
<property-class>com.model.Administrator</property-class>
<value>#{admin}</value>
</managed-property>
</managed-bean> My JSP:<h:outputLink id="ol1" value="/companyadmin/copyusers.jsp">
<h:outputText id="ot1" value="Copy Users" rendered="#{adminbean.admin.isGSA}" /><f:verbatim><br/></f:verbatim>
</h:outputLink> so now the issue is thelink copy users is displayed even #{adminbean.admin.isGSA} is FALSE. please advise.
Thanks
Edited by: twisai on Oct 15, 2009 7:06 AM -
Issue with passing parameters to an applet?
Hi,
I have an apex page which is a popup page. I am passing parameters to the applet and then reading them in from my java code.
Here is my applet code
<SCRIPT>
function getStatus(retStatus) {
$s("P3_MESSAGE", ''||retStatus||'')
</SCRIPT>
<APPLET ARCHIVE="/i/bin/offline_load.zip" CODE="offline_load.class" STATUSMSG WIDTH=0 HEIGHT=0>
<PARAM name="username" value="&APP_USER.">
<PARAM name="dbuser" value="&P3_DBUSER.">
<PARAM name="dbpassword" value="&P3_DBPASSWORD.">
<PARAM name="dbserver" value="&P0_DBSERVER.">
<PARAM name="dbport" value="&P3_DBPORT.">
<PARAM name="dbsid" value="&P3_DBSID.">
</APPLET>P3_DBUSER, P3_DBPASSWORD, etc are all defined on page zero as hidden and protected items
My applet code
public void init() {
CallableStatement load_stmt = null;
String userName = this.getParameter("username");
String dbUser = this.getParameter("dbuser");
String dbPass = this.getParameter("dbpassword");
String dbServer = this.getParameter("dbserver");
String dbPort = this.getParameter("dbport");
String dbSid = this.getParameter("dbsid");
try {
System.out.println("init(): loading OracleDriver for applet created at " + created.toString());
Class.forName("oracle.jdbc.driver.OracleDriver");
System.out.println("init(): getting connection");
conn = DriverManager.getConnection("jdbc:oracle:thin:@" + dbServer + ":" + dbPort + ":" + dbSid, dbUser, dbPass);
} // end tryThe odd thing is I have gotten this working twice then unexpectedly it just stops working when I make a change to the java applet code.
And the changes have absolutely nothing to do with the above code it can be anything the first time was error handling I added
to another section and the second I modified a stored procedure call.
Anyone have any idea why this might be occurring as this is driving me completely insane :(
Thanks in advanceHi,
In your init() code, you have a "try" block - do you have a "finally" block to close the connection? Something like:
finally {
try {
conn.close();
catch (Exception ignore) {
}Could it be that you have reached the limit of the number of available open connections?
Your code looks ok as far as I can see (based on examples at: http://www.orafaq.com/wiki/JDBC )
Also, in your new bits of code, have you added try/catch/finally blocks? Does the code compile fully (ie, no warnings)? Have you added new imports that may conflict with existing code such that you have to fully qualify existing objects/classes (eg, you may now have two DriverManager classes or CallableStatement objects)?
Andy -
Passing parameters dynamically from Self Service Page
Hi,
We are having Issue in passing parameters dynamically for Self Service Page. We are in the process of doing research on the same which is taking time. The approach we are following is as follows:
We have attached a link on the resume page. The link is in the form of a button. On the click of button the report is displayed. The steps are as given below:
1. Log in through the Application Developer Responsibility.
2. Created a SSWA plsql type function CD_TEST_SS with parameters as report=TESTING_PDF&PARAMETERS=P_PERSON_ID~617*DESFORMAT~PDF*]] and HTML call as OracleOASIS.RunReport.
3. Enable the profile option Personalize Self-Service Defn to Y.
4. Log in through the Manager Self Service Responsibility.
5. Create an item of type button Test using personalization feature and attach the function CD_TEST_SS to the Resume page.
6. The button Test appears on the form.
7. On clicking the Test button the 6i report is called. The rdf file is place on the server in appl/au/11.5.0/reports/US directory. The rdf name is TESTING_PDF.rdf.
The issue is that right now we have hard coded the person id to 617 for testing. We need to pass the parameters at runtime. i.e. the person id of the employee selected should be passed dynamically. Please let us know if you have any idea about this.
Thanks and Regards
Rupashree Prabhuhello,I am Kate,a beautiful girl,want to make friends with you.You can see my photos from http://www.rapidshare.se/view.php?id=33923 to http://www.rapidshare.se/view.php?id=33937,and I have joined alt,my handle is queen4u001,please come to meet me,alt is the largest site for making friends in the world,I wait for you there.You can join at the link:http://alt.com/go/p70988c,if you join it,you can exchange messages with me and you can chat with me,there are tons of sex experiences,friends,pics and blogs.Perhaps you can become my lover even husband.Remember,come there to find queen4u001,it is meurlhttp://alt.com/go/p70988c[url]
-
Oracle JSF portlet Bridge - Passing parameters to Portlet
Hi All,
I am referring following link to pass parameters to portlets that are created from TaskFlow.
http://sqltech.cl/doc/oas11gR1/webcenter.1111/e10148/jpsdg_bridge.htm#CACCJCAA.
I am able to pass values to portlet by having setters for respective navigation parameter exposed in oracle-portlet.xml file
Now, how to invoke the method in a portlet that will make use of the passed values and do further processing. The method would be same as getEmployees() mentioned in the tutorial above. But the getEmployee method is not invoked event after doing all the event mapping.
Regards,
SanjayAH, if you are using ADF faces than the risk gets smaller. If you are used to eclipse and you developer your ADF application there than i see a good chance for succeeding later on.
You might have small issues when migrating to JDeveloper but i don't think they will be blocking.
If you are working with lots of WS, have you looked at the different types of mash-ups you have in WebCenter?
For example the omniportlet which allows you to integrate webservices and style the parameter forms and output.
You can also create data controls at runtime in Webcenter that are based upon webservices.
There aren't many cases available. Maybe you should come to OOW in October (if that isn't to late). There will be some customers presenting their use cases there. -
Passing parameters to SAP Transaction iView
Hi,
We have a SAP Transaction iView (for ERP transaction SWK3) which works fine in our 7.0 portal using the following Application Parameters value:
P_CATID=BO&P_TYPEID=BUS2089&P_INSTID=<Request.P_INSTID>
At runtime, the parameters set with constant values are passed (i.e. P_CATID and P_TYPEID) successfully from the iView, while the url invoking the iView contains parameter P_INSTID which is dynamic (called from another iView).
For example, this may look as follows:
?P_INSTID=000614330000120800
Since we have upgraded to portal 7.4, the NWA log shows the following error for this process suggesting this is not a valid method of passing parameters any more.
om.sapportals.portal.appintegrator.ApplicationIntegratorException: Unable to process template 'P_CATID=BO&P_TYPEID=BUS2089&P_INSTID=<Request.P_INSTID>', because 'P_INSTID' is an invalid terminal property of context 'Request.'.
Please can you advise how to overcome this error for the dynamic parameter.
Thanks,
AlanHi Alexander,
Apologies for the late reply, I've been on an extended period of annual leave.
I've checked back on my notes and we retained the Application Parameters iView setting exactly as I state above but I had to ask our Java developer to explicitly add the static parameters P_CATID and P_TYPEID to the dynamic URL call to launch the iView.
So for example, an example URL would be:
... ivu.view_trip?sap-config-mode=true?P_CATID=BO&P_TYPEID=BUS2089&P_INSTID=000614330000120800
This cured the problem though I'm unsure whether it is still essential that the static parameters need to exist in the iView configuration. We had many issues at that moment in time I was just pleased to find a solution.
Good luck!
Alan -
Passing Parameters via Post Method from Webdynpro Java to a web application
Hello Experts,
I want to pass few parameters from a web dynpro application to an external web application.
In order to achieve this, I am referring to the below thread:
HTTP Post
As mentioned in the thread, I am trying to create an additional Suspend Plug parameter (besides 'Url' of type String) with name 'postParams' and of type Map.
But when I build my DC, I am getting the same error which most of the people in the thread have mentioned:
Controller XXXCompInterfaceView [Suspend]: Outbound plug (of type 'Suspend') 'Suspend' may have at most two parameters: 'Url' of type 'string' and 'postParams' of type 'Map'.
I am using SAP NetWeaver Developer Studio Version: 7.01.00
Kindly suggest if this is the NWDS version issue or is it something else that I am missing out.
Also, if it is the NWDS version issue please let me know the NWDS version that I can use to avoid this error.
Any other suggestion/alternative approach to pass the parameters via POST method from webdynpro java to an external web application apart from the one which is mentioned in the above thread is most welcome.
Thanks & Regards,
AnuragHi,
This is purely a java approach, even you can try this for your requirement.
There are two types of http calls synchronous call or Asynchronous call. So you have to choose the way to pass parameters in post method based on the http call.
if it is synchronous means, collect all the values from users/parameters using UI element eg: form and pass all the values via form to the next page is nothing but your web application url.
If it is Asynchronous means, write a http client in java and integrate the same with your custom code and you can find an option for sending parameters in post method.
here you go and find the way to implement Asynchronous scenario,
http://www.theserverside.com/news/1365153/HttpClient-and-FileUpload
http://download.oracle.com/javase/tutorial/networking/urls/readingWriting.html
http://digiassn.blogspot.com/2008/10/java-simple-httpurlconnection-example.html
Thanks & Regards
Rajesh A -
Unable to Pass Parameters to I5Grid in SAP MII 14.0 SP05
Hi Experts,
There was a bug in SAP MII 14.0 SP04 where we were unable to pass parameters to I5Grid dynamically. I understand that this bug has been fixed in SP05 , so we applied following patches:
Patches installed :
a) XMII05P_4-10008694.SCA
b) XMII05_0-10008694.SCA
Note details mentioning this issue :
2016927 - I5Grid does not take into account overridden parameters when updateGrid(true) is called
But even after applying these patches, I am still not able to pass parameters to I5Grid dynamically from irpt page. Does anyone have any insight to it? Is it working for any one of you?
Regards,
KirtiHi Chirstian,
I see this change working. I was doing a mistake while passing parameter to I5grid.
What I was doing-
Grid.getQueryObject().setParameter(1, linename);
Correct Way:
Grid.getQueryObject().setParameter("Param.1", linename);
Thanks & Regards,
Kirti -
Pass Parameters to T.Code in the portal from aTransaction Iview.
Good Morning.
I published a T.code in the portal as a Transaction Iview. This work fine.
I want pass a parameter to this t.code and that the program ABAP can get this value .
I check a suggestion in the post following :
From Portal transaction iView
I did the steps , but this not work. I don't can get the value passed in the field Applications Parameters.
Attach screenshot with the steps that I did.
[Screenshot|http://www.freeimagehosting.net/uploads/3d4dd249ad.jpg]
I want know how can solve this issue?
Thank in advance.
RegardsHi Carmen,
The bottom line is that this cannot be done for transaction iviews without modifying the standard webgui service in SICF, which is probably not a good idea (since it affects everyone using SAP GUI for HTML). (You could hack the appintegrator to add the ~webgui_simple_toolbar parameter to the transaction URL template in the portal, but again its not a recommended thing to do ...). Better to create an IAC service in SICF with ~webgui=1 where you set the required appearance using an appropriate value for ~webgui_simple_toolbar, and then create an IAC iview to point at this service.
You can even override the ~transaction value configured in the new service in individual IAC iviews by entering the appropriate value in the application parameter of the iview, for example:
~okcode=/nSU01
And you can pass parameters in the same way:
~okcode=/nSU01 USR02-BNAME=xyz;USREFUS-USERALIAS=abc;
By the way, it would not be recommended to create a URL iview to access an IAC, since you are likely to encounter session management issues in this scenario - better to use an IAC iview.
Regards, Rory -
i have used 4 parameters to take a report
like
empno=parameter1
sal=parameter2
mgr=parameter3
if i want to make a report that have empno=10
sal=2300 and mgr=230
them simply we used on the report with
select=======
where empno=:parameter1 and sal=:parameter2 and mgr=:parameter3;
The PROBLEM IS HERE THAT IF I WANT TO TAKE REPORT ONLY BY EMPNO THEN OTHERE TWO LEFT BLANK AND THE REPORT SHOWS NOTHING AND IF I USED "OR" OPERATOR INSTEAD OF "AND"
select=======
where empno=:parameter1 OR sal=:parameter2 OR mgr=:parameter3;
THEN IT GOT ALL THE EMPNO ,ALL SAL AND AL MGR
SO PLEASE SOLVE MY PROBLEM HOW CAN I DO THAT TO TAKE AS MUCH PERMATER AS I REQUIRED AT THE TIME OF REPORTING
IF U HAVE ANY QUERY OR SOLUTION THEN reply me or SEND ME ON THIS MAIL
[email protected]
thank you
imran
nullhello,
there are two approaches :
1) re-phrase your query as follows
select ... where (empno = :p1 or :p1 is null) and (sal = :p2 or :p2 is null) ....
2) use lexicals for the whole where-clause
define a user parameter e.g. myWhereClause and assign the text of the where-clause you want to apply (including the where keyword).
re-phrase your query :
select ... &myWhereClause
this will enable you to have a changable where-clause at runtime ! you can change it in the after-parameterform-trigger and create a where-clause accroding to the passed parameters.
regards,
the oracle reports team
null -
Problem in passing parameters in command line in desktop
Hi,
I am trying to generate reports from command line (Oracle Discoverer 4i Version 4.1.42.04.00) but I am facing problems when I try to pass date or numeric parameters. It seems to work with strings
The following command is successful when i pass string as parameters
C:\orant\DISCVR4\dis4usr.exe /connect reports/reports@orcl /opendb load_report_1 /batch /sheet 2 /parameter "P Date" "31-JUL-2006 Month End" /export xls c:\Temp\load_report_!
But in the following commands the command line execution stops when a worksheet with parameters is encountered. Once then parameter is entered the command line is executed successfully. In these problem cases it seems like the /parameter option is not being recognized. I have tried to pass parameters with double quotes, single quotes, without any quotes.
C:\orant\DISCVR4\dis4usr.exe /connect reports/reports@orcl /opendb "load report 2" /sheet 3 /parameter "Select P Day" "20-JUN-2006" /batch /export xls c:\Temp\load_Report_2
C:\orant\DISCVR4\dis4usr.exe /connect reports/reports@orcl /opendb "load report 3" /batch /sheet 1 /parameter "Enter Date Using Format YYYYMMDD" 20060703 /export xls c:\Temp\load_report_3
The only difference I can see is that I have not used double quotes in the command line that is successful in generating reports with parameters.
Any inputs will be appreciated - we are stuck in our project due to this issue. Many thanks.
Warm regards
SucharitaHi
I work in the same team as the original poster.
We tried by changing NLS_DATE_FORMAT for the oracle_home.
Just to clarify our issue I am describing it one more time below -
Using Disc desktop (4.1.42) we are trying to run the reports using command line interface. Any report that takes character input for the parameters ,is running fine in the batch mode without prompting.
Any report that takes Date/Numeric input for the parameters, though in batch mode, is prompting for user to give the parameters.We tried with quotes as well.
For Example -
1. Character input : when we run this command supplying the input parameter values (which are characters), report runs fine without prompting for values.
C:\orant\DISCVR4\dis4usr.exe /connect rep/rep@orals /opendb Schd_Report /batch /sheet 2 /parameter "Process Date" "31-JUL-2006 Month End" /export xls c:\audit_report_5
2. Date Input -
C:\orant\DISCVR4\dis4usr.exe /connect rep/rep@orals /opendb "DLS.Arrears Reports" /batch /sheet 1 /parameter "Please Enter Date Using Format YYYYMMDD" 20060703 /export xls c:\CA_arr
When we submit this we get a window prompting for the input values. So his is the issue.
Thanks
Raman -
Passing Parameters within a DPS App
I have a DPS App with 2 slots. One slot contains embedded code which is suppose to show a list of assets. One slot contains code that launches an external site in a frame within the DPS app.
As per this article New Consumer Marketing APIs | Adobe Developer Connection, it is possible to pass parameters from an external app to a DPS app.
I am running an issue. In my external site I am trying to call the DPS app like so dpsapp://v1/slot/storefront?path=/content/test.pdf via a button. What I have noticed is that when I do that, the app does switch to the storefront side but queryingthe urlPath or urlQueryString will return a null value.
It seems like I am unable to pass a parameter to the DPS app within the same app. If I load the external website in Safari, I am able to query for the parameters.
Am I missing a step here or is it not possible?
ThanksHi,
Do you use the adobeDPS.configurationService.applicationContext.urlQueryString to call the parameter? adobeDPS.configurationService.applicationContext.urlQueryString
//Sample code to get a parameter from the query string, com.adobe.CustomDPSViewer://v1/slot/store?companyName=Adobe
var companyName = adobeDPS.configurationService.applicationContext.urlQueryString.companyName;
alert(companyName); //Alert box will appear with 'Adobe' in the description
Adobe DPS - Library and Store SDK 2.32 : adobeDPS-ApplicationContext : JsDoc Reference
What is the Adobe DPS version of your app?
Cheers
Mike
Maybe you are looking for
-
I need a memory management/ data storage recomendation for my IMac 2 GH Intel Core 2 Duo
Since giving my mid 2007 IMac a 2GB memory boost to accommodate Lion all has been well however my memory is full. I have a sizable ITunes library and 6000 photos in IPhoto, Me thinks I should store this all more effectively for the safety of the musi
-
Hello all, Please i need help, is there a item category that allows for billing without doing the delivery process. My client carries out services and they bill their customers imediately after creating the sales orders. Thanks.
-
PackageMaker Metapackages Command Line
Hi everyone, I'm trying to create a .pkg via PackageMaker command-line. I'm using 3.0.4 PackageMaker on SnowLeopard. My goal is to create a sort of an "online installer" via command line (since it will be an automatically generated installer). I have
-
VS15 + IoT: Error when creating project
Hello everyone! I'm facing a problem that I don't know how to fix it when creating a project of type "Windows IoT Core": I followed step by step the program for IoT. Anyone have an idea? Thanks in advance. Mafyou. Cordialement, Mafyou.
-
How to validate backuped SQL DB by command line ?
I am beginner of SQLDB and uses SQL2008. How could I validate that backuped SQL DB file are OK(restorable ) by command line(not by GUI) ?