Passing an Integer through URL
I have two pages, MasterPG and DetailsPG
both have regions which have a field SerialNo (Number).
in processFormRequest in CO of MasterPG, I'm calling DetailsPG
pageContext.forwardImmediately("OA.jsp?page=/abcd/oracle/apps/per/selfservice/xxTest/webui/DetailsPG&srno={@SerialNo}",
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
null,
true, // retain AM
OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
Below is what I have in CO of DetailsPG
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
if(pageContext.getParameter("srno")!= null){
String srno = pageContext.getParameter("srno");
OAMessageTextInputBean sr =(OAMessageTextInputBean)webBean.findChildRecursive("SerialNo");
sr.setValue(pageContext,srno);
OAApplicationModule am = pageContext.getApplicationModule(webBean);
if (!pageContext.isFormSubmission()) {
am.invokeMethod("createDetailsRecord", null);
The value is not being set. infact, when I hit save button, I get an error rather than DetailsPG
Fine, let me clear it.
On MasterPG, SerialNo is based on a sequence. When I run MasterPG, for example a value 51 appears in SerialNo. I press Save button and go to DetailsPG. There is a field SerialNo. I'm unable to set 51 from SerialNo of MasterPG to SerialNo of DetailsPG.
CO of MasterPG
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule(webBean);
if (pageContext.getParameter("Apply") != null)
String abc = pageContext.getParameter("SerialNo");
pageContext.putParameter("srno", abc);
OAViewObject vo = (OAViewObject)am.findViewObject("MasterVO1");
am.invokeMethod("apply");
pageContext.forwardImmediately("OA.jsp?page=/abc/oracle/apps/per/selfservice/xxTest/webui/DetailsPG",
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
null,
true, // retain AM
OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
CO of DetailsPG
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule(webBean);
if (!pageContext.isFormSubmission()) {
String srno = pageContext.getParameter("srno");
Serializable[] params = { srno };
am.invokeMethod("createDetailsRecord", params);
AMImpl (Using 1 AM for both VOs)
public void createDetailsRecord(String srno){
OAViewObject vod = (OAViewObject)getDetailsVO1();
if (!vod.isPreparedForExecution()) {
vod.executeQuery();
Row row = vod.createRow();
row.setAttribute("SerialNo",srno);
vod.insertRow(row);
row.setNewRowState(Row.STATUS_INITIALIZED);
}
Similar Messages
-
How to pass form value through URL?
I have a page set up so that pressing the submit on a form will execute a certain page. For certain reasons I also have a URL HREF link that performs a different function. I need to get the value of a radio button group (all with the same name) and pass that value through the URL if it is pressed. So if someone clicks on the second radio button in the list which has a value of 2, I need to somehow set that to a variable to pass through a URL link. Each time the user changes the radio button I need to dynamically change the variable too.
Is there any way to do this?Thanks for the suggestions everyone. Here is what I have so far:
I have a cfInput that binds to the radio buttons so the value of the cfinput changes dynamically.
I have a CFDIV that binds to a separate .cfm page that passes the cfinput through as an argument.
The .cfm is very basic:
<cfoutput>
<cfif isdefined("url.InputText") AND url.InputText NEQ "">
<cfset FeedVar = #url.InputText#>
<cfelse>
</cfif>
</cfoutput>
This method appears to work and it sets the Feedvar variable to the appropriate value. However on my first page with the cfdiv tag when I try to pass the #FeedVar# variable through a URL it says it is not defined.
Any clue if I am doing something wrong passing the new variable back?
Here is the CFINPUT and CFDIV tags:
<cfinput type="text" name="update_typeURL" bind="{update_type}" bindonload="true" />
<cfdiv bind="URL:setURlVar.cfm?InputText={update_type}" ID="theDiv" bindonload="true" />
Any ideas on how to read the newly set variable? -
I am having trouble passing a CreateUUID() through a URL
because of the hyphens
Is there a quick and easy way to get around this or do I need
a script that will strip hyphens for the URL, and then add the
hyphens back in once the page has changed locations?
thanks for your comments in advanceAdam Cameron wrote:
>> i pass this
>> &selection=D8660E35-1372-69E5-F732112DB40A7696
>>
>> and get this
>> [Macromedia][SequeLink JDBC Driver][ODBC
Socket][Microsoft][ODBC SQL Server
>> Driver][SQL Server]Invalid column name 'D8660E35'.
>>
>> i guess this is more of a sql problem than a CF
problem
>
> Yeah. Your query sounds screwed, as if you're using the
VALUE (ie: the
> UUID in this case) in place of a column name. Which is
what the error
> suggests.
>
> What's your query SQL?
>
Actually that is the error one gets when one forgets the
quotes around a
string with dashes in it. The SQL parser is trying to
subtract what it
perceives as one column name "D8660E35" from what it
perceives as
another "1372".
Try putting single quotes around your string value. -
Page 404 Error when passing Session values through URL
The current application I'm working on is a 'Targeted Email Communications' application. Bascially, employees at the school at which I'm employed can go in and select services to recieve outage notification emails on.
The problem I'm discussing in this post has to do with our so called 'Notification Summary Screen.' This screen is basically a report region which displays all outage notifications issued by this application. In the left-most column of this report, I have an edit button that when clicked, redirects the user to the 'Create / Update / Send Screen' with the primary key values passed through the URL. When this happens, all other page items query their values based on the NOTIF_ID passed in through the URL. All of this works fine.
The problem is, on the Notification Summary Screen, I also have a button labeled 'Create a new notification.' This button redirects the user to the same page as before, except now all of the values are NULL because this outage notification has not yet been created. The problem is, when I try and do this - I get a page 404 not found error. I'm pretty sure it's because my application is getting confused because earlier all of the values were passed in through a URL. For the 'Create New' button, I clear the page cache for this page - and it still does nothing. I am at a loss for what to do here because I keep getting the error.
Here's the code for the URL button found in the report query in the 'Notification Summary Screen' :
('<a href='
|| 'f?p=&APP_ID.:2:&SESSION.::&DEBUG.::'
|| 'P2_NOTIF_ID,P2_NOTIF_SEQ,P2_INFO_TYPE:'
|| a.notif_id ||','|| b.notif_seq || ',' || 'Update'
|| '>'
|| '<img src="#APP_IMAGES#EditButton.gif" />'
|| '</a>') as "edit",** NOTE, I took out the double quotes after href and before the closing right karat brackets because for some reason the code in the URL wouldn't display...weird.... **
The NOTIF_ID value is the primary key identifier for each outage notification. Additionally, the NOTIF_SEQ value is the sequence number for each (because each notification could have multiple updates). The INFO_TYPE value just references whether this is 'Initial', 'Updated', or 'Closing' information.
Any suggestions would be much appreciated.
Eric
Edited by: user11685190 on Nov 6, 2009 1:12 PM
Edited by: user11685190 on Nov 6, 2009 1:13 PM
Edited by: user11685190 on Nov 6, 2009 1:14 PMHey you guys,
Thanks for your responses. I actually just started working for this academic institution, and have to finish a probationary period before I have access to their VPN (5 Months). Therefore, I cannot access my workspace, nor will they allow me to export my application because it's considered their intellectual property. I believe it may be the &DEBUG portion of it.
Though I cannot state the exact URL the error states, I can tell you that if I go into application builder to the page in question and try and run it before the page that links to it, I get the error. However, when I use the link everything works fine. When I use the 'Create New' button to link to the page with no values passed, I get the error again. I work again on Monday and will have more information then.
Thanks again!
Eric -
Pass variable values between Applications,but not through URL.
Greetings,
My objective is to pass a value from one page in one application to another page in a diferent application.
I am aware through some posts i ahve read in the forum that it is possible to pass the value through URL,
however besides being unable to do so i don't want the user to be able to see the value in the url.
Also it may be a big value and there are URL size limitations as well as not looking pleasant.
I have considered keeping the value in a database field, but i would like to use this only as a last resort since the value is temporary and when it gets to destination page it will disapear.
Anyone is aware of a solution for my problem?
My Homepage
Best RegardsHi Igor,
I don't know if the APEX_UTIL. [SAVEKEY_NUM|http://download.oracle.com/docs/cd/B28359_01/appdev.111/b32258/api.htm#sthref2583] / SAVEKEY_VC2 functions work across apps, but you could try. The other thing you could try is setting a cookie using the [OWA_COOKIE|http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/w_cook.htm] package.
--Jennifer -
Problem in passing Modified date through Go url
Hi All
I am trying to pass parameters through url to report.
Its working fine and passing row id of the record but when i try to pass modified date also, it takes me to no result view where i can see that value has been passed to report but the results are not filtered, instead no result view.
While passing date in url as parameter do we have extra consideration?
Anybody has faced smilar kind of scenario.I am getting the following error when trying to pass modified date for oppty.
Error getting drill information: SELECT Opportunity.Name saw_0, Opportunity."Opportunity ID" saw_1, Opportunity."Sales Type" saw_2, Opportunity.Priority saw_3, Opportunity."Last Modified" saw_4 FROM "Opportunity Lists" WHERE (Opportunity."Opportunity ID" = 'AAPA-6EEC9X') AND (Opportunity."Last Modified" = timestamp '0000-00-00 00:00:00')
Error Details
Error Codes: YQCO4T56:OPR4ONWY:U9IM8TAC:OI2DL65P
Odbc driver returned an error (SQLExecDirectW).
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 46048] Datetime Month value 0 from 0000-00-01 is out of range. (HY000)
SQL Issued: {call NQSGetLevelDrillability('SELECT Opportunity.Name saw_0, Opportunity."Opportunity ID" saw_1, Opportunity."Sales Type" saw_2, Opportunity.Priority saw_3, Opportunity."Last Modified" saw_4 FROM "Opportunity Lists" WHERE (Opportunity."Opportunity ID" = ''AAPA-6EEC9X'') AND (Opportunity."Last Modified" = timestamp ''0000-00-00 00:00:00'')') -
I need to pass double byte character such as Japanese as value in the name value pair through URL to another page. Are there a way to encode the double byte characters in the URL , then decode in the following page.
You help is highly appreciated.
HelpseekerSee the Japanese Character Encoding for Internet Messages,
http://www.faqs.org/rfcs/rfc2237.html
good luck! -
Pass value through URL without setting local page item
Folks,
I have a table where I have created a dummy column with a hyperlink on it to go to another page in the application which runs a report passing through columns on the table
As I am doing this several times (for different pages in my application) - Is there a way of passing a variable through a URL to a report without setting a local variable
i.e.
Click Here
Here I am assigning a local variable on Page 25 which is hidden called P25_TEST1
What I would like to do is pass the value straight to page 25 (which runs the report) without the need to create hidden items on the report pages all the while
Thanks
GarethYou have a plain HTML page that loads with a url with something like ?field=value
And you want "value" to show on your page, correct?
<html>
<body>
<script>
var qsParm = new Array();
function qs() {
var query = window.location.search.substring(1);
var parms = query.split('&');
for (var i=0; i<parms.length; i++) {
var pos = parms<i>.indexOf('=');
if (pos > 0) {
var key = parms<i>.substring(0,pos);
var val = parms<i>.substring(pos+1);
qsParm[key] = val;
qsParm['field'] = null;
qs();
if (qsParm['field'])
document.write('You selected ' + qsParm['field'] );
</script>
</body>
</html>
Call that as test.html?field=Hello
Here's a nice link that explains it in detail: http://www.eggheadcafe.com/articles/20020107.asp -
Passing 2 varibles through a URL
I don't know how to pass 2 variables through a URL. I am
familiar with ASP
but it doesn't work the same. Please help
<cflocation
url="payment.cfm?username=#FORM.username#&email="#FORM.email#"">
Wally Kolcz
Developer / SupportIt looks like you've got an extra set of quotes:
Take out the double quotes around #FORM.email#
I think that will solve the problem you are having with them
not showing up in the hidden form fields as well. -
How to pass arraylist through URL ?
Hi,
Can we pass arraylist through URL using params.put ?
If so then how to access each value?..because pageContext.getParameter with return string...
Any other method can we use ?
ThanksYou should store in on the session or transaction depending on the scope.
-
How to pass PARAMETERS to FORMS while calling them through URL
Hi,
I am working on integrating EBS with OBIEE as per the doc id 552735.1(metalink2)
In the Document, Oracle had given an example for genating the URL in OBIEE as follows,
SELECT
HEADER_ID,
fnd_run_function.get_run_function_url(
CAST(fnd_function.get_function_id('ISC_ORDINF_DETAILS_PMV') AS NUMBER),
CAST( VALUEOF(NQ_SESSION.OLTP_EBS_RESP_APPL_ID) AS NUMBER),
CAST( VALUEOF(NQ_SESSION.OLTP_EBS_RESP_ID) AS NUMBER),
CAST( VALUEOF(NQ_SESSION.OLTP_EBS_SEC_GROUP_ID) AS NUMBER),
'HeaderId='||HEADER_ID||'&pFunctionName=ISC_ORDINF_DETAILS_PMV&pMode=NO
&pageFunctionName=ISC_ORDINF_DETAILS_PMV',
NULL) as ORDER_HEADER_ACTION_LINK_URL
FROM OE_ORDER_HEADERS_ALL
But this one navigates to the JSP page of sales orders. Its working fine,
h3. Problem :_
If i want to navigate to Oracle forms(say Sales Orders),
i'm able to navigate, by giving the 1st param as '5522'(Sales order Form ID(ONT_OEXOEORD)) and 5th parameter as NULL.
The 5th parameter is used to navigate to a particular record.
But i dono how to pass the parameters to this particular Sales Order Form..!
(like here they hav passed HEADER_ID in a particular format)
{I guess, this might not be understood totally with this given data here, but i don want to make this post too big.}
CAN ANYONE PLEASE TELL ME, HOW TO KNOW THE FORMAT OF THE "PARAMETERS" TO PASS(WHILE GENERATING URL)_WHILE CALLING AN ORACLE FORM.._
Thanks in Advance..!!Hi,
In addition to the above...
if i give the 5th parameter as, 'HEADER_ID=||'header_id { in runtime it'll be converted as 'HEADER_ID=5432..}
I'm not getting any error, getting a fresh Sales order page..!! { The given Header ID is ignored }
else if i give something like 'HEADER_ID=||'header_id||'&FunctionName=ONT_OEXOEORD...' { lets say }
its throwing the following errors..
FRM-47023: No such parameter named G_QUERY_FIND exists in form OEXOEORD.
FRM-40105: Unable to resolve reference to item PARAMETER.G_QUERY_FIND
FRM-47023: No such parameter named ORDER_NUMBER exists in form OEXOEORD.
and then it shows up the Navigator.
Requirement :_
How to pass parameter to a form while calling them through URL.
Thank you, -
I have a form where the user has an option of clicking submit
which submits the entire form or select a some abcdefg... which
submits the selected alpha and passes through a URL. The problem
now is that I want the user to select a radio button which tells me
the DB they want to search.
How wiould I pass the value of the radion button through url
to know the users seacr option?
I Need to put the value from the javascript in the URL and pass
the Value to the next form
<a href="/admin/Leadsresult.cfm?search=a" onclick="return
checkradio();">A</a>
This my script which I want to submit the value when user
clicks the above
function checkradio()
var check =document.b.criteria.value;
if (check ==1)
document.b.checkoption.value ='Cp';
else
document.b.checkoption.value ='Cb';
document.form.action="sult.cfm";
document.form.submit();*/
}quote:
Originally posted by:
umuayo
The form fields are not being submitted when you click on the
hyperlinked data.
It only get submitted when you use the Submit button.
Oh, I missed that part. I'm not sure, but I don't think you
can use js to change variables in an anchor tag after the page has
been loaded. Have you considered using two links instead of one? -
Passing parameter through url to report
Hi
I'm sorry if this question already exist anywhere in forum i didnt found it.
so my question is:
CAN I PASS PARAMETER VIA URL TO REPORT USING WEBFORM
i don have RAS(Because in beta version of 2008 is this not included)
I tried
http://localhost/CRWEB/Default.aspx?param0="value" ->here i'm prompt for value instead of showing report with set value
and
http://localhost/CRWEB/DocumentDoc.rpt?param0=krneki&init=html_page -> here i prompt to save rpt file
so But both doesnt work!
OR it is necessery to have RAS to pass parameters through url
thanks for quick answerURL reporting and RAS are not available with CR2008. To view reports over the web you will need to use the Crsytal Reports for .NET runtime engine inside a .NET app. This engine is licensed with CR 2008.
Rob Horne<br /><a href="/blog/10">Rob's blog - http://diamond.businessobjects.com/robhorne</a> -
How to pass parameter through URL to bounded task flow with page fragment
I want to pass parameter to Bounded Task Flow With Page Fragment trough URL
as I start this taks flow with router and according to this Param I will rout the user.
I added input param to taks flow named direction and make the task flow called URL invoke url-invoke-allowed
<input-parameter-definition id="__41">
<name id="__42">direction</name>
<value>#{pageFlowScope.direction}</value>
<class>java.lang.String</class>
</input-parameter-definition>but I don't know how to add this to the JSPX that I will add the bounded task flow Inside.
and How to pass this from URLHi,
url-invoke-allowed is only required if the task flow itself is directly accessible from a browser (which is not the case at all if the task flow uses page fragments). To pass input parameters to a task flow that is embedded in a region and that has input parameters, you define the input parameters on the taskFlow Id that is created in the PageDef file of the containing page. To learn ADF task flows, have a look at the videos below. They also contain a sample for passing parameters to a region
http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/taskflow-overview-p1/taskflow-overview-p1.html
http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/taskflow-overview-p2/taskflow-overview-p2.html
Frank -
Download XML Publisher report through URL
Hi Gurus,
I need to download pdf that which is generated using data template(.xml) and Layout template(.rtf) from XML Publisher through URL by passing required parameter.
Could anyone please help me on this. This is one of our client requirement. Its really very urgent.
Thanks,
Vino.is it ebs?
if yes i can not be sure what it is work for ebs
for ebs related bip you can ask in General EBS Discussion
Maybe you are looking for
-
Getting Invalid Intersection for Account with net 0 balance
Hi FDM Gurus, We are getting an invalid intersection error for an account that nets to zero in the validate step, because the individual amounts that net to zero are coming in from the source system without an ICP member (hence mapping to ICP None).
-
Ever since I downloaded the new Firefox, when I right-click on a link to open it in a different tab, the tab will open but will not load anything, no matter what link I try. The tab will show the website destination in the navigation bar, but will no
-
Why did the top of my message bar go grey an not blue where u press "send" an "contact"
-
Experience w/ invisibleSHIELD?
Can anyone relate experience with the invisibleSHIELD on the MacBook Pro? I am particularly interested in info re: longevity, looks, durability, possible interference w/heat dispersion. Thanks in advance.
-
Failed error#-2096!!!!!
I am trying to open itunes the latest version and I keep getting this message: QuickTime failed to initialize-Error#-2096 QuickTime is required to run itunes. Please reinstall itunes. I've done what the message said but to no avail I still cannot ope