Check-in passing primaryFile as URL parameter
Hello everyone!!
I need to auto-complete a check-in form passing parameters in URL.
I've successfully managed to pass every metadata I need except primaryFile specification.
For example this URL with the following parameters:
http://SERVER_IP_ADDRESS:16200/cs/idcplg?IdcService=CHECKIN_NEW_FORM&
dDocAuthor=DOCUMENT_AUTHOR&
dDocTitle=DOCUMENT_TITLE&
xMetadata1=METADATA1&
xMetadata2=METADATA2&
primaryFile=C:\Documents\FILE.txt
Everything works fine except primaryFile which is not recognized since the field is not a textedit but a file chooser.
It's possibile to pass primary file link as a parameter??
Thanks in advance for any reply!
Best Regards.
Hi deepak ;)
Yes I'm trying to load content into UCM from an external software that produces as output a PDF document.
When the PDF is produced I would like to make the software open a pop-up window that contains a check-in form webpage.
The check-in form should also present metadata fields pre-compiled as metadatas are passed by the external software itself.
I've successfully managed to accomplish all these steps passing parameters to the URL that calls the DEFAULT check-in form. (in the way stated in my first post)
The only thing that I can't pass as a parameter is PDF file location.
So my question was if there is a simple way of passing file URL as a parameter instead of having users manually selecting the PDF file from the file chooser.
Anyway at this moment I've created a java adapter that successfully loads documents into UCM, so I'm trying to make a call to this java class from a jsp page that I could call as the check-in.
Regards.
Similar Messages
-
How to pass mysql query id through url parameter to a detail page
Hi there,
I am a newbie to JSP and I am trying to pass a url parameter to a detail page so that it will query a mysql data query to show the details of that query. How can I write the query on the details page so that it will display the query results on the page. eg select * From data Where = "passed_url parameter_ value". Please i need urgent help on this please.<Acknowledged>
which should be strongly cautioned against even for "newbies".
</Acknowledged>
Right, but the code you posted will "work" in a very harmful wayNot always, I used normal Statements last year and I had no problems.
Even with pretty capible code brakers trying to cause $h!t with my application.
Just check for invalid datatypes, and for SQL Injections remove stuff like ' or replace with `
But yes PStat... are the better way. -
Pass Url Parameter To Portlet in a Tab Page
Ciao,
i have a portal page with TABS. I have pl/sql portlets that read the url, then they pass parameters to the url. With "wwpro_api_parameters.get_value" and the session i am able to pass parameters via URL and to know if i have changed tab or not.
My question is: how cai i "CLEAN" the url if i change the tab? As you know, if i change tab, only the "_pageid" parameter change, and not the whole url.
i.e.: http://misun13:7777/servlet/page?_pageid=202,204,217&_dad=portal30&_schema=PORTAL30&par_name=5
I change the tab: http://misun13:7777/servlet/page?_pageid=202,206,217&_dad=portal30&_schema=PORTAL30&par_name=5
But i want to RESET the parameters! That is i want: http://misun13:7777/servlet/page?_pageid=202,206,217&_dad=portal30&_schema=PORTAL30
It seems i can't change the standard behaviour of the TAB.
Does anybody know how to do that?
Thanks in advance,
EttoreHi Ettore,
It is true that when you pass parameters, they show up on the URL and even when you change tabs the messy long URL will show up.
One way to avoid this, is to use the session store instead and save and access the parameter values from the session storage itself.
For more details on using Session Storage, check the PDK documentation for using the session store.
http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/articles/implementing.session.storage.html
Another thing, you may try is using the owa_utl.redirect to specifically redirect to a clean URL. But i suspect that if your parameter values are still active, they will populate the URL in any case.
For further details on parameter passing, check:
http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/articles/guidelines.parameter.passing.html
Hope this helps.
Mohana -
How can I pass empty value in URL Parameter
Hi,
I am passing different URL parameters to one page, to filter
the recordset on that page. How can I pass an empty value in the
URL parameter so that the recordset in unfiltered?
The URL parameter is based on one field of the database:
ContentType. So, the link would be to
default.asp?ContentType=Event
and then all records that have the ContentType field in the
DB as Event are displayed. Is it possible to use this system to
pass an empty parameter so that all records are displayed?
Thanks
Ian?ContentType=All
<% if (ContentType == "All")
Build recordset w/o filtering
ASP is rusty, but those are the basics.
"iandobie" <[email protected]> wrote in
message
news:e8im80$q7m$[email protected]..
> Hi,
> I am passing different URL parameters to one page, to
filter the recordset
> on
> that page. How can I pass an empty value in the URL
parameter so that the
> recordset in unfiltered?
> The URL parameter is based on one field of the database:
ContentType. So,
> the
> link would be to
> default.asp?ContentType=Event
> and then all records that have the ContentType field in
the DB as Event
> are
> displayed. Is it possible to use this system to pass an
empty parameter so
> that
> all records are displayed?
> Thanks
> Ian
> -
Can a url referencing an Application Process pass more than one parameter?
Hello,
I have a page in an application that uses pl/sql to generate a list of links.
The purpose of each link is to call another pl/sql procedure which in turn opens/runs a report external to the APEX application (either a call to Oralce Application Server generate live or pull clob stored in database). If the URL calls the pl/sql procedure directly I lose session state and no longer know who the user is. To maintain session state the URL references an APPLICATION_PROCESS. I would like to pass a number of parameters, but can only seem to pass one, using javascript to pass the value to a hidden item which is then accessed in the procedure called by the APPLICATION_PROCESS.
Can I pass more than one parameter?
My URL:
https://<server>/pls/apex/f?p=V('APP_ID'):0:V('APP_SESSION'):APPLICATION_PROCESS=MY_PROCESS:NO::P1NAME:P1VALUE
I could pass all the parameters in P1VALUE and using a special character delimiter break it up again in the javascript, but would prefer not to.
Thanks for any help,
JockDid you mean something like this?
https://<server>/pls/apex/f?p=V('APP_ID'):0:V('APP_SESSION'):APPLICATION_PROCESS=MY_PROCESS:NO::P1NAME,P2NAME,P3NAME:P1VALUE,P2VALUE,P3VALUE
Best Regards, Kostya Proskudin -
How to pass a querry as a url parameter
Hi Forum
I need to pass an sql query as a url parameter I wrote the following code:
String applicationURL = WDURLGenerator.getApplicationURL("local/AgencyFee_SettlementSummaryReport", "Ko_AgencyFee_PrinterFriendly");
applicationURL="?distACN="wdContext.currentVn_SettlementComp_InputParametersElement().getVa_SettlementComp_PayToACN()"&type="type"&query="strGreportQuery;
but got the following exception:
ecom.sap.tc.webdynpro.services.exceptions.InvalidUrlRuntimeException: Invalid URL=../../local/AgencyFee_SettlementSummaryReport/Ko_AgencyFee_PrinterFriendly?type=1&query=SELECT v.PAY_TO_ACN_NAME PAY_TO_ACN_NAME, v.DIST_ACN DIST_ACN, v.DIST_NAME DIST_NAME, v.AP_CHECK_NBR AP_CHECK_NBR, v.BATCH_NBR BATCH_NBR, TO_DATE(v.TRANS_DATE) TRANS_DATE, TO_DATE(v.AP_CHECK_DATE) SETTLE_DATE, Sum(v.QTY_DELIVERED) QTY_DELIVERED, Sum(v.TOTAL_AMT) TOTAL_AMT, Min(TO_DATE(concat(concat(concat(concat(to_char(v.SHIP_YY),'/'), to_char(v.SHIP_MM)),'/'), to_char(v.SHIP_DD)),'yyyy/mm/dd')) DEL_DATE_BEG, Max(TO_DATE(concat(concat(concat(concat(to_char(v.SHIP_YY),'/'), to_char(v.SHIP_MM)),'/'), to_char(v.SHIP_DD)),'yyyy/mm/dd')) DEL_DATE_END, (select sum(vr.qty_delivered) from VRF_ERR_DETL vr where vr.ccf_acn_nbr=v.dist_acn and to_char(vr.batch_nbr)=v.batch_nbr) TOTAL_ERR_REC From VRF_VOL_DETL v WHERE v.PAY_TO_ACN = 3182 AND v.AP_CHECK_NBR = 0 GROUP BY v.PAY_TO_ACN_NAME, v.DIST_ACN, v.DIST_NAME, v.AP_CHECK_NBR, v.BATCH_NBR, v.TRANS_DATE , v.AP_CHECK_DATE ORDER BY v.DIST_ACN, v.AP_CHECK_NBR, v.BATCH_NBR
Can someone help me out on this?
Thanks & Regards
Jaspreet KaurHi jaspreet,
you can try the following:
HashMap params = new HashMap();
params.put("distACN", wdContext.currentVn_SettlementComp_InputParametersElement().getVa_SettlementComp_PayToACN());
params.put("type","type");
params.put("query",strGreportQuery);
try {
String applicationURL = WDURLGenerator.getApplicationURL("local/AgencyFee_SettlementSummaryReport", "Ko_AgencyFee_PrinterFriendly", params);
} catch (Exception ex) { -
Passing date criteria in url parameter
Hi,
I want to filter a recordset by a given date.
Create the recordset, if I use a runtime value of #27/11/06#
all the records for that date are returned.
However, when I try to pass the same information through an
URL Parameter it doesn't work.
Is there a problem with passing this info in that way?
Thanks, Mark.No, should be absoloutely fine. The prob is most likely to do
with your SQL
statement.
As a test, don't display any records. At the top of your
page, try
outputting the completed SQL statement onto the page to see
what it looks
like. The problem being you may need to add the # symbols
manually. Should
look something like
"SELECT * FROM TableName WHERE DateField = #" &
URLParameter & "#"
HTH,
Piers -
Problem passing Session variable as URL parameter?
Hi,
I am trying to create a multiple page entry form using
coldfusion session. But I am having some problem when passing the
session variable to url parameter. For test purpose I have created
the following code:
<cfif Not IsDefined("SESSION.AE")>
<!--- If structure undefined, create/initialize it
--->
<cfset SESSION.AE = StructNew()>
<!--- Represent current form srep; start at one --->
<cfset SESSION.AE.StepNum = 1>
</cfif>
<cfif IsDefined("Form.GoBack")>
<cfset SESSION.AE.StepNum = #url.StepNum# - 1>
<cfelseif IsDefined("Form.Next")>
<cfset SESSION.AE.StepNum = #url.StepNum# + 1>
</cfif>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>
<body>
<form method="post"
action="/AE/try.cfm?StepNum=#SESSION.AE.StepNum#">
<input type="submit" name="GoBack" value="Back">
<input type="submit" name="Next" value="Next">
</form>
</body>
</html>
When run it I get the following error:
The value "" cannot be converted to a number
The error occurred in C:\CFusionMX\wwwroot\AE\try.cfm: line
11
9 : <cfset SESSION.AE.StepNum = #url.StepNum# - 1>
10 : <cfelseif IsDefined("Form.Next")>
11 : <cfset SESSION.AE.StepNum = #url.StepNum# + 1>
12 : <!---<cfset SESSION.AE.StepNum = #url.StepNum# +
1>--->
13 : </cfif>
I couldn't figure out where is the problem. Any help is
really appreciated.
Thanks in advance.You are mixing up your gets and posts aren't you?
You have your form method set to post which creates form
variables not
url variables. So when you try to use the url variable to set
your
session it does not exist.
Change your SESSION.AE.StepNum = #url.StepNum# to
Session.AE.StepNum =
form.StepNum, note there is no need for the #'s.
OR
change your form method="post" to form method="get"
Nagelia wrote:
> Hi,
>
> I am trying to create a multiple page entry form using
coldfusion session. But
> I am having some problem when passing the session
counter to url parameter. For
> test purpose I have created the following code:
>
> <cfif Not IsDefined("SESSION.AE")>
> <!--- If structure undefined, create/initialize it
--->
> <cfset SESSION.AE = StructNew()>
> <!--- Represent current form srep; start at one
--->
> <cfset SESSION.AE.StepNum = 1>
> </cfif>
> <cfif IsDefined("Form.GoBack")>
> <cfset SESSION.AE.StepNum = #url.StepNum# - 1>
> <cfelseif IsDefined("Form.Next")>
> <cfset SESSION.AE.StepNum = #url.StepNum# + 1>
> </cfif>
>
> <html>
> <head>
> <title>Untitled Document</title>
> <meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
> </head>
> <body>
> <form method="post"
action="/AE/try.cfm?StepNum=#SESSION.AE.StepNum#">
> <input type="submit" name="GoBack" value="Back">
> <input type="submit" name="Next" value="Next">
> </form>
> </body>
> </html>
>
> When run it I get the following error:
>
> The value "" cannot be converted to a number
>
>
> The error occurred in C:\CFusionMX\wwwroot\AE\try.cfm:
line 11
>
> 9 : <cfset SESSION.AE.StepNum = #url.StepNum# - 1>
> 10 : <cfelseif IsDefined("Form.Next")>
> 11 : <cfset SESSION.AE.StepNum = #url.StepNum# +
1>
> 12 : <!---<cfset SESSION.AE.StepNum =
#url.StepNum# + 1>--->
> 13 : </cfif>
>
> I couldn't figure out where is the problem. Any help is
really appreciated.
>
> Thanks in advance.
>
>
>
> -
ADF Faces + ADF BC : how to pass an url parameter to a backend business ser
Hi,
I'm using latest JDev studio version SU 3.
My project is using ADF Faces with BC4J in the service layer.
I have a backend application module which exposes a method taking a String parameter as an input (ex: void setUsername(String username))
I need to have a jspx page which reads a parameter passed in the url (http://localhost/faces/registerUser.jspx?username=john) and send it to the backend service method when a submit is raised on a clicked button.
It's pretty simple when using inputtext for example but not obvious if I want to use urm param instead of inputtext.
How do I do this ?
ThanksHi,
Thanks a lot for your answers.
The link http://www.it-eye.nl/weblog/2006/06/12/passing-a-url-parameter-to-model-using-adf/ is no more reachable.
The following EL expression work for displaying the parameter inside an outputText component :
#{facesContext.externalContext.requestParameterMap[yourParameter′]}
The parameter is not sent to the business service when the button is clicked.
Thanks,
Seb. -
Dynamically passing text and url-based images as an input parameter to cf8 report builder
I'm unsuccessfully trying to dynamically pass text and url-based images to a group footer or the detail section via an input parameter or even hardcoded. The field has the attribute 'XHTML Text Formating' set to True. The following are failed samples of a simplified value:
"<img height=’300’ alt=’Document’ width=’300’ src=’http://www.google.com/intl/en_ALL/images/logo.gif’ />"
or
"<img src=’http://www.google.com/intl/en_ALL/images/logo.gif’ />"
This just results in the above text being output. The end result would have various text and images from a database as input by a user, thus the reason I cannot just use the hyperlink information attribute as I could if it were a single known image. I tried rtf and pdf report types. Ideas?HTH,
Thanks. I'll keep that in mind, although I don't know how many images my user might need or what sizes so that might be tricky.
Since my target output is rtf so that MS Word can be used to edit the result, I added a pagebreak to a MS Word doc and used the resulting html source to replace the rich text editor source code for the page break, but that did not help either. The page break was so a user could add an image later. Something is wrong with the Report Builder related to intepreting XHTML, especially anything that has an attribute, including URL-based image links. I hope they try to provide another update before CF9. I doubt my client will be going to CF9 for some time, since they are just completing the migration to CF8.
BrianO -
Passing URL parameter across Show detail item tabs
Hi
I have developed a sample jsr168 portlet which takes 1 input parameter and deployed it into the stand alone OC4J shipped with Jdev 10.1.3.4.0
In the view controller i created a jspx page and added the portlet to it. The portlet is added under a ShowOnetab->ShowDetailItem component in the jspx page. I mapped the parameter which i pass in the url to the portlet in the pagedef file of the jspx page.
The page works fine when i run it for the first time but if i were to move to another tab (ShowDetailItem) in the page and come back to the first tab the parameter is not registered even though it still exists in the url.
Can somebody please sugget a way to persist URL parameters across tabs (ShowDetailItem) in the page.
Thanks
NikhilHi
I have developed a sample jsr168 portlet which takes 1 input parameter and deployed it into the stand alone OC4J shipped with Jdev 10.1.3.4.0
In the view controller i created a jspx page and added the portlet to it. The portlet is added under a ShowOnetab->ShowDetailItem component in the jspx page. I mapped the parameter which i pass in the url to the portlet in the pagedef file of the jspx page.
The page works fine when i run it for the first time but if i were to move to another tab (ShowDetailItem) in the page and come back to the first tab the parameter is not registered even though it still exists in the url.
Can somebody please sugget a way to persist URL parameters across tabs (ShowDetailItem) in the page.
Thanks
Nikhil -
Hi,
I would like to pass a url parameter, with the following format, to a get method.
http://myserver/send?param-id=1234@5678
I was able to do it using the HTTPService send(parameter) but the characters "-" and "@" are changed. I want to send the parameter as is, can anyone teach me how?
Thanks in advance..rockstar888,
for a GET, you can only use things which are permitted characters in a URL string. Hence some characters won't work just as they are. Now, we all know some browsers are very accommodating with things like this (eg a space character should be sent as %20 but if typing in a URL you can usually get away with it in a browser), but you have to be more strict in this situation. One way is to have some encode/decode stuff at each end. Another (if you are going to use the result simply as a URL at the other end) is just to let the URL encoding go on its way without problems. Another is to use POST rather than GET, since POST variables are passed like entries in an HTML form rather than a querystring, so you have more flexibility. To do this you just use the method property of HTTPService.
Richard -
How to pass url parameter string to a query
I need urgent help please, to pass a mysql query string from a master page to another details jsp page using a url parameter. The master page's url parameter looks like this;
<a href="Details.jsp?jobs=<c:out value="${row.actions_id}"/>"><c:out value="${row.action_title}"/></a>How can I query the mysql database using the url query string to get the query details.
Please help me out with detailed example please.You can get the parameter value using HttpServletRequest#getParameter():String jobs = request.getParameter("jobs");You can interact with databases using the JDBC API. This is a different topic. If you aren't familiar with it yet, then learn it. There is a very good JDBC tutorial here at Sun.com: [http://java.sun.com/docs/books/tutorial/jdbc/index.html]. Once you're familiar with that, create a DAO class which does the all the database interaction tasks. Create a method which takes the jobs value as parameter and let it return result(s) accordingly. You may find this article useful either: [http://balusc.blogspot.com/2008/07/dao-tutorial-data-layer.html].
-
Hi, i'm currently building a back-end for a small site. What
i'm trying to do is enable a user to edit and update an article.
I've got a dynamic table, i'm trying to use a URL form parameter to
pass the unique ID of an article to a form that brings up the
article for editing, but its not working, its just bringing up the
same record whatever link is clicked in the dynamic table. Can
somebody point out whats missing? I'm using PHP & mySQL.
Thanks, any help appreciated.You don't specify what language you're using, or how you're
populating your
form.
If you're using a recordset to populate your form, simply
edit it and then
set the filter to your ID field, and use the URL parameter to
capture your
variable. Make sure in your recordset for your page to
display the records
you put the same variable name as you use on your previous
page with the url
variable.
HTH,
Jon
"MarkAD88" <[email protected]> wrote in
message
news:e4f5s9$4l$[email protected]..
> Hi, i'm currently building a back-end for a small site.
What i'm trying to
> do
> is enable a user to edit and update an article. I've got
a dynamic table,
> i'm
> trying to use a URL form parameter to pass the unique ID
of an article to
> a
> form that brings up the article for editing, but its not
working, its just
> bringing up the same record whatever link is clicked in
the dynamic table.
> Can
> somebody point out whats missing? Thanks, any help
appreciated.
> -
How to pass a value containing & as a URL parameter
Hi every one..
i want to pass 2 parameters with URL string if one consists of & while retrieving its giving error ..
so how can i send a value that consists of & as a url parameter..
thanx in advancehttp://java.sun.com/j2se/1.5.0/docs/api/java/net/URLEncoder.html
When encoding a String, the following rules apply:
* The alphanumeric characters "a" through "z", "A" through "Z" and "0" through "9" remain the same.
* The special characters ".", "-", "*", and "_" remain the same.
* The space character " " is converted into a plus sign "+".
* All other characters are unsafe and are first converted into one or more bytes using some encoding scheme. Then each byte is represented by the 3-character string "%xy", where xy is the two-digit hexadecimal representation of the byte. The recommended encoding scheme to use is UTF-8. However, for compatibility reasons, if an encoding is not specified, then the default encoding of the platform is used.
Maybe you are looking for
-
How to get the document number for a ware house order.
Hello gurus, how to get the document number for a ware house order. [if GI is posted refering that WH order] .. is there any report? Thanks in advance
-
HT1665 Why don't I get FM radio when using lightning adaptor with my ipod?
I've got a 7th generation Nano. Using the Apple Lightning adapter for my dock, I get no radio reception. What's going on?
-
Automate MS Power Point by using JAVA
Dear all, I would like to write a JAVA program that can open the the MS Power Point file and then use the events to ask the power point to show the slide or go to a particular slide. I would like to know is it possible to do so??? Becasue these are 2
-
Hi, Release 11i has a InfoBundle11i.zip file. Does anybody know if Release 12 has a InfoBundle12R.zip? I can't find anything on Metalink. Thanks,
-
There is a constant "Download error" in the apps section of CC
can not download any apps in CC