Passing Parameter with a button vs. a Link
I need to pass a variable value from a jsp to an action. When I use a link, it works:
">Delete</a>
But I haven't been able to get the parameter to pass using a button. Stupid, I know, but I'm just blind to it...how do you do this?
hmm ... maybe you just need something like this:
<FORM ACTION="deleteLinkageAction.do" TYPE="POST">
<INPUT TYPE="hidden" NAME="delLinkageNum" VALUE="<c:out value='${Row.LinkageNumber}' />">
<INPUT TYPE="SUBMIT" VALUE="Delete">
</FORM>success
Jan Vervecken
Similar Messages
-
Pass parameter with apostrophe
Hi,
How I can pass parameter with apostrophe to a store procedure.Whats the change i need to make to ' when i am passing.
Thanks in advance.
PramodIf you are using bind variables, the string should be escaped automatically. If you are not using bind variables, you should be using bind variables.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC -
Passing parameter with apostrophe to sp
Hi,
How I can pass parameter with apostrophe to a store procedure.Whats the change i need to make to ' when i am passing.
Thanks in advance.
Pramodjust use double apostrophe
SQL> var x char
SQL> exec :x := '''';
PL/SQL-Prozedur wurde erfolgreich abgeschlossen.
SQL> print x
X
' -
Pass parameter with blank space for report ver 6
Hi,
I face a problem that i willing to pass the acno where it's value with blank space, for example ' 9' as parameter into my report, and assign it as v_acno. Inside the report query i add a where condition, acno >= :v_acno. When i run the report and pass acno without ' , it do not show any record. But when i run the report and pass acno with ' then able to show the records.
for example the value i key in
with ' = ' 9'
without ' = 9
So how i can solve it by pass the acno without ' but the record still able to show?
thks
Message was edited by:
user569740
Message was edited by:
user569740Hi Nick,
It occurs because an argument of the DTExec commands must be enclosed in quotation marks if it contains a space. From the dtexe (SSIS Tool): Syntax Rules section of the
dtexec Utility (SSIS Tool) document, we can see:
All options must start with a slash (/) or a minus sign (-). The options that are shown here start with a slash (/), but the minus sign (-) can be substituted.
An argument must be enclosed in quotation marks if it contains a space. If the argument is not enclosed in quotation marks, the argument cannot contain white space.
Doubled quotation marks within quoted strings represent escaped single quotation marks.
Options and arguments are not case-sensitive, except for passwords.
So, you need to make the value of the variable @QUERY_STRING within double quotes in the value of the variable @Cmd or remove the space within the @QUERY_STRING value.
Regards,
Mike Yin
TechNet Community Support -
Passing parameter with space?
How does java pass parameter value with spaces? e.g. url?param1=value with space .
Is there any built in method like PHP's addslashes?
Thanks.URLEncoder.encode("value with
space","UTF-8")Also the core JSTL tag c:url will encode parameters with spaces, and of course there's the crude way of just using the + sign. -
How to write c# to pass parameter with craxddrt.dll?
any example provided to open crystal report by passing parameter
after add reference craxddrt.dll etc.
for 8.5 report[Samples|https://wiki.sdn.sap.com/wiki/display/BOBJ/ReportDesignerComponentSDKCOM+Samples].
Also check your Developer Help file...
Adn as Don said, unless you have obtained license for craxDDrt.dll, you are breaking your agreement. Use craxDrt.dll...
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports] -
Report with link that pass parameter with comma in it
Hi.
i have a Report and one of the columns is a Link to another page.
i've set that when you click on that link, it redirect you to another page and pass the value of another column on that report to a text item on that page other page.
the problem is that the value i want to pass has a comma in it and APEX split the value.
although it look like a very common question, i could not find a solution for that.
any tip?
Thanks :)Dror,
As a best practice we frequently advise against passing characters in the URL that are not numeric/simple primary key-type values, but you can pass a comma in f?p URL item values by enclosing the value between backslashes, e.g.,
f?p=&APP_ID.:1:&SESSION.::NO::P1_ENAME:\Rejuan,Dror\
Scott -
Pass parameter with fscommand exec
Hi,
I am writing a text file with batch file and this batch file which is called from fscommand.
I need to pass a parameter from fscommand. Is is possible ?
Following is flash and batch file code.
Flash Source
import flash.events.Event;
bt.addEventListener(MouseEvent.CLICK,save);
function save(e:Event){
fscommand("EXEC","write.bat");
Batch file
ECHO This is my new text1 %1 > "temp.txt"
Thanks ------------------- AmitAs mentioned in one of your other posts you could use FileReference.save(...) this does require user interactive however and Flash Player 10.
Alternatively you could create a userId and save the data in an online database (but obviously this isn't local)
If you are using AIR you could create a local database
Otherwise I don't do not know of a way to achieve what you are after -
It is a common and frequent question, but it has not been answered satisfactorily. The question is, how do I pass a parameter from a form in a Portal page to another page?
I have discovered that using a Dynamic Page, I can read parameters passed in by referencing them as bind variables in a PL/SQL block. For example, given a parameter of "bindMe" as in "http://portal_path/object.show?p_arg_names=bindMe&p_arg_values=hello", the following code will display it:
<oracle>
declare
localVar varchar2(50) := :bindMe;
begin
htp.print('bindMe = ' || localVar);
end;
</oracle>
However, I am having trouble sending a form parameter out, in Portal format. By default, it will create the "?bindMe=hello" form, which isn't easily recognizable by Portal. I tried to setup a bind variable for an out-going parameter, but either it doesn't work that way, or I didn't set it up correctly. Any help would be appreciated.
Not interested in the JavaScript approach.I've tried using the wwpro_api_parameters.get_value function, but it doesn't work. I keep getting a "not found" error for the page when trying to pass a parameter.
Here's my code for the page. I'm trying to simply read a parameter that's passed in. Cut and paste it into your Dynamic Page, and see if you can get it to work.
<html>
<head><title>test</title></head>
<body>
You passed in
<oracle>
begin
htp.print(portal.wwpro_api_parameters.get_value('empno','a'));
end;
</oracle>
</body></html>
Now use the URL:
http://....show?empno=10
According to the API documentation (http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/plsql/doc/sdk3gvf.htm), this should work, but it doesn't. I know I shouldn't be surprised that Oracle's documentation is inaccurate, but I'm having trouble finding a solution.
Help! -
How Pass parameter with Activex Viewer
Developper enviroment:
- Crystal Report XI
- Visual Basic 6.3
- Access 2007
Installa library : CRAXDDRT, CrystalActiveXReportViewerLib11_5
I need to pass some Value to the parameter field of my reports.
I use this code that working well to show the report and I need to add the right code to pass some parameter to the Report.
Dim CRXApplication As CRAXDDRT.Application
Dim CRXReport As CRAXDDRT.report
Private Sub Form_Load()
Set CRXApplication = CreateObject("CrystalRuntime.Application")
Set CRXReport = CRXApplication.OpenReport("C:\GR&A_Trend\R1_analisi.rpt", 0)
CrystalActiveXReportViewer4.ReportSource = CRXReport
CrystalActiveXReportViewer4.ViewReport
CrystalActiveXReportViewer4.EnableSearchControl = True
CrystalActiveXReportViewer4.Zoom (100)
End Sub
Can You help me to add the right code to pass some parameter to the Report.
Thank's
Regards
Giovanni RoiGiovanni,
I would love to help you on this however I only work under 2008 environment. Saying that, I am sure if you can re-arrange your coding you will get the desired result.
Here is the code which I used in my VS2008 to set the parameters under VB.net
'declaring all the parameter value fields
Dim crParameterFieldDefinitions As ParameterFieldDefinitions
Dim crParameterFieldDefinition As ParameterFieldDefinition
Dim crParameterValues As New ParameterValues
Dim crParameterDiscreteValue1 As New ParameterDiscreteValue
Dim crParameterDiscreteValue2 As New ParameterDiscreteValue
'the two text boxes which will carry the discrete parameter value
crParameterDiscreteValue1.Value = TextBox1.Text
crParameterDiscreteValue2.Value = TextBox2.Text
crParameterFieldDefinitions = _
cryRpt.DataDefinition.ParameterFields
'Start code parameter value
crParameterFieldDefinition = _
crParameterFieldDefinitions.Item("startcode")
crParameterValues = crParameterFieldDefinition.CurrentValues
crParameterValues.Clear()
crParameterValues.Add(crParameterDiscreteValue1)
crParameterFieldDefinition.ApplyCurrentValues(crParameterValues)
'End code parameter value
crParameterFieldDefinition = _
crParameterFieldDefinitions.Item("endcode")
crParameterValues = crParameterFieldDefinition.CurrentValues
crParameterValues.Clear()
crParameterValues.Add(crParameterDiscreteValue2)
crParameterFieldDefinition.ApplyCurrentValues(crParameterValues)
Hope this helps
Regards
Jehanzeb -
Pass parameter with product to shopping cart
I am creating a checkout for an after school program. I have a page where parents see the list of classes that their children (could be more than one)
are signed up for... I have a button by each class to add it to the shopping cart, and jquery to add a notice next to the button that the class was added to the cart after the button is pressed.
But if a parent has multiple students, I would like to have the shopping cart reflect which student the class is purchased for.
Is there any way to pass this information to the cart and order?There is no field in the order PER item (where the childs name would go I assume)... there is for the order itself, the only idea I could think of would be a summary of the items in the order and which child ordered what class.
Hope that helps. -
Passing parameter with ' ' in perform
what i want to do is this:
PERFORM f_alv USING gt_fieldcat
'F_USER_COMMAND'
gt_display.
This code work, now i want to put the 'f_user_command' into a variable, i've done this:
DATA: lv_usercommand TYPE string VALUE 'F_USER_COMMAND'.
This wont work because lv_usercommand will return me F_USER_COMMAND
while what i want is 'F_USER_COMMAND' (between quote).
help pleaseHi Hassim,
Please try below(use 4 quotes to get single quote) and it works. Pass lv_cmd to your perform.
DATA: lv_usercommand TYPE string VALUE 'F_USER_COMMAND'.
DATA:lv_cmd TYPE string.
CONCATENATE '''' lv_usercommand '''' INTO lv_cmd.
write: lv_cmd.
Output:
Thanks
Sri -
Isn't its possible to pass parameter with timer events
helo every one,
i have a array which i need to plot on the screen. the
plotting should have some delay in between so that we can see the
points being plotted. i tried using timer class but when the event
occurs my loop index has always reached last element. any help...
heres the code i usedi have around 1000 data so the flash chrashes as i run your
code.
any suggestions to handel such case -
Portlet event link to pass parameter between portlets
Ok list, I followed the documentation Adding Parameters and Events to Portlets
PDK Release 2 (9.0.2 and later) and tried to make a portlet that pass parameter to another portlet using event link. I created the supposed parameter in the page and made the correct association to the receiving parameter portlet. The case is: The parameter is not caught in the receiving parameter page.
This is my event link jsp code:
<%
String sImgPath = PropertiesReader.getProperty(PropertiesReader.KEY_IMAGES_PATH);
PortletRenderRequest portletRequest = (PortletRenderRequest)request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
// The portlet definition in provider.xml includes the following:
// - Event "submit" with event parameters "funcionalidade"
String eventSubmit = EventUtils.eventName("submit");
String eventParamFuncionalidade = EventUtils.eventParameter("funcionalidade");
// Build up the list of parameters for the "submit" event
NameValuePair[] eventSubmitParams = new NameValuePair[2];
// Give the 'funcionalidade' event parameter the constant value 'chat'
eventSubmitParams[0] = new NameValuePair(eventParamFuncionalidade, "chat");
// The event name must be passed as a parameter on the URL
eventSubmitParams[1] = new NameValuePair(eventSubmit, "");
%>
<TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0">
<TR><TD><a href="<%=PortletRendererUtil.constructLink(portletRequest, portletRequest.getRenderContext().getEventURL(), eventSubmitParams, true, true)%>"><IMG SRC="<%= sImgPath + "menuButChat.gif" %>" BORDER="0"></a></TD><TR>
</TRABLE>
And this is my receiving parameter jsp code:
<%
String sFuncionalidade = "";
PortletRenderRequest portletRequest = (PortletRenderRequest)request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
// Get the portlet definition - needed to get the public portlet parameters
PortletDefinition portlet = portletRequest.getPortletDefinition();
// Get the public portlet parameters
ParameterDefinition[] parameters = portlet.getInputParameters();
// Display all values for each of the public portlet parameters
for (int currParameter = 0; currParameter < parameters.length; currParameter++)
String name = parameters[currParameter].getName();
out.println(" <p>name = " + name + "</p> ");
// Get the parameter values
String[] values = portletRequest.getParameterValues(name);
// Display the parameter's values.
if ( values == null )
// Null array indicates no values for this parameter.
out.println(" <p>values i null</p> ");
else
out.println(" values nco i null ");
// Loop through each of the values and display non-null values on a separate line.
for ( int j = 0; (values != null) && (j < values.length); j++ )
sFuncionalidade = values[j];
out.println(" <p>" + sFuncionalidade + "</p> ");
%>
And this is my portlet definition in provider.xml:
<portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
<id>3</id>
<name>MenuColaboracao</name>
<title>Menu de Colaboragco</title>
<shortTitle>Menu de Colaboragco</shortTitle>
<description>Portlet de menu para funcionalidade de Comuicagco e Colaboragco.</description>
<timeout>10000</timeout>
<timeoutMessage>Portlet timed out</timeoutMessage>
<showEdit>false</showEdit>
<showEditDefault>false</showEditDefault>
<showPreview>false</showPreview>
<showDetails>false</showDetails>
<hasHelp>false</hasHelp>
<hasAbout>false</hasAbout>
<acceptContentType>text/html</acceptContentType>
<renderer class="oracle.portal.provider.v2.render.RenderManager">
<renderContainer>false</renderContainer>
<contentType>text/html</contentType>
<showPage>/menuColaboracao.jsp</showPage>
<pageParameterName>next_page</pageParameterName>
</renderer>
<event class="oracle.portal.provider.v2.DefaultEventDefinition">
<name>submit</name>
<description>Use this event to submit the form data to a page</description>
<parameter class="oracle.portal.provider.v2.DefaultParameterDefinition">
<name>funcionalidade</name>
<displayName>funcionalidade</displayName>
<description>Parbmetro que indica a funcionalidade a ser apresentada.</description>
</parameter>
</event>
</portlet>
<portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
<id>4</id>
<name>HomeController</name>
<title>Home Controller</title>
<shortTitle>Home Controller</shortTitle>
<description>Portlet que controla a exibigco do jsp correspondente a opgco de menu selecionada.</description>
<timeout>10000</timeout>
<timeoutMessage>Portlet timed out</timeoutMessage>
<showEdit>false</showEdit>
<showEditDefault>false</showEditDefault>
<showPreview>false</showPreview>
<showDetails>false</showDetails>
<hasHelp>false</hasHelp>
<hasAbout>false</hasAbout>
<acceptContentType>text/html</acceptContentType>
<renderer class="oracle.portal.provider.v2.render.RenderManager">
<renderContainer>false</renderContainer>
<contentType>text/html</contentType>
<showPage>/homeController.jsp</showPage>
<pageParameterName>next_page</pageParameterName>
</renderer>
<inputParameter class="oracle.portal.provider.v2.DefaultParameterDefinition">
<name>funcionalidade</name>
<displayName>funcionalidade</displayName>
<description>Parbmetro que indica a funcionalidade a ser apresentada.</description>
</inputParameter>
</portlet>
Where do I miss ???
Any help will be appreciated.
Regards,
Leandro.Leandro,
Few things which you might want to cross check to see if we are
on the right track :
1. Page containing Parameter receiving portlet contains a
paga parameter mapped on to its public parameter.
As per your example, parameter receiving page should have a page
parameter with name - "funcionalidade" - and portlet's corresponding
parmeter should be mapped to this page parameter. This can be
done through "Parameters" tab in the Page Properties screen.
2. Page containing Parameter passing portlet contains proper event
mapping.
As per your example, we have an event called "submit". We should
be able to see "submit" event under "MenuColaboracao" portlet.
When this event is raised, select which page should receive the event
data. As soon as a page is selected, this page's public parameters
are displayed below. Beside that we must be able to see a choice box
which displays four choices one of which would be "Event Output".
Map this output to the event parameter.
Hope it helps.
-AMJAD. -
Having trouble passing a parameter through a button, php
Hello all,
I'm new to the forum and to web design and Dreamweaver, please go a little easy on me!
I'm currently in the process of making a fantasy football website in Dreamweaver and phpmyadmin. When a user visits the site and wants to enter the competition they click register which brings up the register page. There they can fill out the form containing details username, password etc. When they click the register button at the bottom of the form their details are put into the users table in the database and they are passed onto the next page where they are asked to pick their team. The team details are kept in a seperate table in the database.
What i'm trying to do is pass the username that is created in the register form to the pick team page as a parameter.
Currently the code for my button is as follows:
<input type="submit" value="Insert record" />
and the sql for after insert goto is currently?
$insertGoTo = "pickteam.php";
In another section of the site i have passed a parameter with a link as follows:
<a href="editgoalkeeper.php?gkid_gk=<?php echo $row_rs_viewgks['gkid_gk'];?>">
but i'm not sure how to pass a parameter using a submit button, can anyone help me please?Please pardon my ignorance, i'm still very new to web development and Dreamweaver.
Please could you give me an example of how i would go about coding the above?
Maybe you are looking for
-
Restoring iPhoto from Time Machine. However iPhoto albums are not transfer
iPhoto albums are not transferring. I just have a bunch of photos with no albums/details/comments etc. I have done a few searches in support and have found similar problems but nothing like mine, which seems to be that I have a back up of all my phot
-
Incorrect uninstallation of W media player
Hi, After coming to know about flip4mac, I decided to uninstall the Windows media player (WMP) on my mac. To uninstall I deleted the windows media player folder in the applications folder. I now realize that this is incorrect. I should have used the
-
Different Tax condition records picked on sales order and invoice
Dear Expert, I have a scenario where the goods supply from plant to different country sales organization customer. it is a n export order. . sales order has been processed with ship to address in Portugal. We did enter end user VATnumber on the ship
-
Process chain--failed infopackage--urgent....
Hi Experts, can anyone tell me why the process chain when triggered has successfully started but the first infopackages after the start varient did not sucessfully run. the infopackages show in the process chain in yellow status as if the data loadin
-
No volume available in RMAN-default family
Just a green hand with osb. Any suggestion is welcome. Thank you. OSB :10.2.0.3 Oracle: 10.2.0.1 Tape Drive : DELL POWERVAULT 122T DLT VS80 OS:windows server 2003 When i try to access OSB devices and media from EM, it sits without anything or message