Passin values dynamically
<table width="995" height="82" border="0">
<tr>
<th width="989" bgcolor="#CCCC99"><h1>Update Form</h1></th>
</tr>
</table>
<%@page language="java" import="java.sql.*" session="true" %>
<form id="form1" name="form1" method="post" action="cu.jsp">
<table width="990" border="1">
<%! String r1,r2,check;%>
<%
String EName= request.getParameter("EName");
String Designation= request.getParameter("Designation");
session.setAttribute("Name",EName);
%>
<%
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con = DriverManager.getConnection("jdbc:odbc:prince","","");
PreparedStatement stmt = con.prepareStatement("select * from creative where EName=? AND Designation=?");
stmt.setString(1,EName);
stmt.setString(2,Designation);
int i=0;
String[] set={"null"};
ResultSet rs = stmt.executeQuery();
while(rs.next())
{ i=0;
r2=rs.getString(5);
out.print("<tr>");
out.print("<td align=\"center\">"+r2+"</td>");
out.print("<td align=\"center\">"+rs.getString(6)+"</td>");%>
<td align="center">
<input type = "checkbox" name = "set" value ="<%=rs.getString(1)%>" >
</td>
<% set=request.getParameterValues("set");
out.print("</tr>");
}%>
<table width="990" >
<td align="center">
<p> </p><p> </p><p> </p>
</td>
</table>
<% session.setAttribute("set1",set); con.close();
} catch(Exception e) { e.printStackTrace();}
%>
<table width="995" height="82" border="0">
<tr>
<td align="center"> <input type="submit" name="Submit" value="Submit"></td>
</tr>
In the above code when iam trying to set values in session its not working can any one can help reg it.
What? Do you think anyone wants to readt that?
Kaj
Similar Messages
-
In Drop Down by Index how can i pass default value Dynamically
Hi Friends,
In Drop Down by Index how can i pass default value Dynamically.Please help me.
Thanks in advance.
Regards,
Kumar.hi,
if you want the value to be defaulted only the first time you execute the program then write the code which suman has mentioned in the views method
wddoinit.
Regards
Sajid -
Pass values dynamically to the WHERE clause in SFAPI
Hi there
We have a requirement to pass values dynamically (in the run-time of the interface) to the WHERE condition to our SFAPI query.
Eg -
SELECT person, personal_information, address_information, phone_information, email_information, employment_information, job_information, compensation_information, paycompensation_recurring, paycompensation_non_recurring, job_relation, accompanying_dependent, global_assignment_information, direct_deposit, national_id_card, person_relation
FROM CompoundEmployee
WHERE last_modified_on >= to_date('LAST_RUN_DATE') AND
last_modified_on <= to_date('CURRENT_RUN_TIME')
LAST_RUN_DATE is stored in a custom entity for which we execute another OData query. The custom entity is updated with the CURRENT_RUN_TIME once the interface has been executed successfully. So the next time the interface is run it picks up the LAST_RUN_DATE from the custom OData entity.
SAP PO has the functionality to run a dynamic query for OData adapters. Refer to Note 2051137 - PI Successfactors adapter : Dynamic odata query and single synchronous sfapi query
Eg - select fields from position (this is what you state in OData query path in the comms channel; this is static); and you have an advanced tab in comms channel where you mention dynamicquery and set it to true (this points to a XSD which has the keyword TOP, SKIP & FILTER in it).
This gets the filter values passed from the BPM from another query (from a OData cust_table).
So the whole query is - select fields from position filter field a = x field b = y etc. Field a field b are fields in position that are you passing values x and y in run time of the interface.
SAP PO also has the advanced tab feature for SFAPI for dynamic query.
Question is -
how to use it?
has anyone implemented this before?
What does XSD will look like?
How do we pass values to the fields to the Where clause for SFAPI.
Any ideas are welcome!
Regards
Arijit DasAfter you have added a new where clause on the detail VO, try re-executing VO's query by DetailVO.executeQuery()
If it doesn't work try re-executing the MasterVO's query after you have added the where clause on the detail -
How to pass tag name and value dynamically in the output of PCo notification?
Hi,
I have a requirement to develop such a scenario where there can be multiple no of tags in PCo (Say 10) but there will be single notification to push the tag name when the value got changed and the changed value to MII. for any value change for any of the tag, the notification will be trigger. So As per my knowledge I have to pass the tag name and value dynamically in the "output" tab of the notification. But need your support to find out how to pass them dynamically.
Thanks in advance.
Regards,
SumanHi Suman/Jeedesh,
As per Pco notification, it will trigger whenever any of the tag value changes in Agent instance subscription items.
For above issue, My suggestion
1. Create DB table name TAGLIST with 200 tags as rows in columns (Tagname, TagValue)
2. Based on notification trigger, create a transaction and update values w.r.t TagNames in above table
3. Next time, when notification trigger with fresh value for any of the tag, cross check with existing TagName with Value and update in DB table.
4. And in the mean time, send those Tag details vie mail trigger or as per requirement
Instead of creating 200 notification, above is a just alternate way suggestion to achieve dynamic tag value change notification.
Hope it might solve your problem
Regards,
Praveen Reddy -
Passing values dynamically Froman 'INLINE Query' to a 'SUB QUERY'
If I am using an line query which uses a SELF JOIN subquery
how can I pass the values from the Inline Query to Subquery ?
Is this possible?
SQL...Code
and Inline Queries..
(select count(*) 'PrimaryISIN'
from instrument ins,
instrument_xref insx
where ins.id_inst = insx.id_inst
and insx.flg_active = 'Y'
and ins.id_source ='MF'
and ins.flg_primary_listing = 'Y'
and ins.flg_active = 'Y'
and insx.id_inst_xref = ( select DISTINCT a.id_inst_xref
from instrument_xref a,
instrument_xref b
where b.id_inst_xref ='B0DV8Y9'
and b.id_inst = a.id_inst
and b.id_inst_xref_type in ('SE','IS')
and a.id_inst_xref = 'GB00B03MLX29'
)PISIN2
I am hardcoding the id_inst_xref is the SELF JOIN? Can these be passed dynamically from
the INLINE Query which is invoking the SUB QUERY?Hi, The hardcoded values entered in the SELF JOIN run fine.
Now,I need to pass values dynamically from the INLINE query.
How do I do that?
Thanks -
Assign values dynamically to radio button
I am creating an online test. I will need to display answer choices from the table. I created radio buttons for these answer choices and I could put the labels dynamically by using
Set_Radio_Button_Property('block_name.radio_group_name', 'radio_button1',LABEL,cursor_name.field_name);
Now I have problem to set radio button values dynamically. Should I use when_radio_changed event?
Any help would be appreciated.I really appreciate your help.
My intention is to display the test on the screen.
That means I need to display all questions and answer
choices for each one dynamically. Based on the answer
choice type (radio button or checkbox or drop down
etc) I will need to assign the values to them and
display on the screen. So far I could display
questions and answer choices on the screen and set
the label property for each radio button.
Do you know what is the syntax to assign value to
each radio button? First I will need to store user's
answers in a table. For that I need to know what
answer they selected. I wasn't sure how to do that.
ThanksAs I said, the values cannot be assigned dynamically. Thus you will store the answers in code (perhaps in an array?) and your radio buttons will be 1,2,3,4 etc.
In WHEN-RADIO-CHANGED you can retrieve the value from the array using the radio button value. Then store that value.
e.g. Your screen shows
What is the sound of one hand clapping?
o Blue
o Yes
o 12
These labels will be set dynamically, but the values for the radio buttons will be 1,2,3. If they pick "Yes", your radio button will be 2. You then get the value you really want from answer_array(2), where you put it when you retrieved the question details. Then you insert that into your users_answers table. -
Is it possible to pass the property value dynamically to composite.xml
Hi,
Is it possible to pass the property value dynamically to composite.xml from bpel?
For ex:
<property name="bpel.config.auditLevel">$variable</property>
I will get a different $variable value every time to bpel.
Also, when I included the following code inside .bpel
invoke name="InvokeListFileFTPAdapter-ListFiles"
partnerLink="ListFilesFTPAdapter"
portType="ns3:FileListing_ptt" operation="FileListing"
inputVariable="listfilesRequest"
outputVariable="listfilesResponse" bpelx:invokeAsDetail="no">
<bpelx:toProperties>
<bpelx:toProperty name="bpel.auditLevel"
variable="AuditVariable"/>
</bpelx:toProperties>
</invoke>
where auditvariable='Off'
I don't see any change in em. The invoke activity is showing full payload, Can't we turn off the audit level from .bpel not from composite.xmlHi,
You can use bpel preferences for that:
1.
In the composite add a property, for ex:
<component name="test">
<implementation.bpel src="test.bpel"/>
<property name="bpel.preference.exam">abc</property>
</component>
2.
To get the value within your bpel process use: ora:getPreference(exam)
3.
Then, you can change the value in the EM:
Under Farm_soa_domain>weblogic domain>your_domain>soa_server1
Right click on menu>system Mbean browser>oracle.soa.config>server:soa_server1>SCAComposite>your project>SCAComposite.SCAComponent>processName>
Now, click on the properties attribute : you can see the exam property and change the value.
Arik -
Pass Parameter Value Dynamically in Pivot
Hi All,
I have sql Query and I am filtering the query based on two dates in Sql editor.
Now I want to pass values to this two dates from PowerPivot dynamically and fetch the data.
Can any one help me how can I pass the date values dynamically to the query and fetch the data in Power Pivot or Power Query
Thanks,
SidPlease have a look at these links:
Implement Parameters using Slicers in #powerpivot #dax #tabular
PowerPivot and query parameters
Dynamically filtering data before importing from SQL Server in Excel
“Drill Across” in PowerPivot – Live Demo
sqldevelop.wordpress.com -
Pass Container Element Value Dynamically
Hi Experts,
We are facing an issue with Workflows. Whenever I restart a WF that has already ended up in Error, I need to pass it Certain Container Element Values Dynamically as it restarts the same WF again with the same Container values and it again ends up in Error. Is it possible that I can change these values during Runtime.
I have searched few SAPNotes also but could not find some Solution. Is anyone has worked on this Scenario before please respond.
Is this Possible.. Because this is the only way how we can allow that background Process to work.
Regards,
Kanikahi,
>In SWIA select a work item that will prompts you to next window.
>In the next window select technical details -> that will opens other window
This works fine.
>in that window select edit -> change
that will display some containers like
Logically delete
change container
deadline monitoring
This is not happening... Unable to fins anything known as "Edit/Change"..
Hope i could attach screen-shots...to know where im missing this link
regards,
kanika -
Passing the property values dynamically
Hi All,
We have requirement that we need to invoke the Webservice by passing the crdentilas and for that i am using the BasicHeaders,Basicusername and Basicpassowrd and i am hardcoruing the values now i need to pass the values dynamically.
How can i acheive this situation.
Thanks an dRegards,
Nagaraju .Dhttp://soa-howto.blogspot.com/2008/09/how-to-set-security-credentials.html
-
Assigning values dynamically to drop down
Hi,
I have drop down for which i have to assign values dynamically, I am getting values as a form of Array list.Hi Venki,
Say your ArrayList is al . Create a value attribute under the root node. Say test. Bind this test to the DropdownByKey UI element. You can populate test attribute like this.
IWDAttributeInfo attributeInfo =
wdContext.getNodeInfo().getAttribute(IPrivate<viewname>View.IContextElement.TEST);
ISimpleTypeModifiable valuesType =
attributeInfo.getModifiableSimpleType();
IModifiableSimpleValueSet VS=
valuesType.getSVServices().getModifiableSimpleValueSet();
for (int i = 0; i < al.size(); i++) {
VS.put(al.get(i),""+al.get(i));
Regards
Siva -
SSRS - Expression to color column value dynamically in Matrix
Hi ,
I have a matrix which looks like :
The <<Expr>> value can be 1 /0 /"-" .
The Expr value is being calculated dynamically.
The data set query I am using has a column called due_days.
In the color expression of the <<Exp>> box I am using the expression as :
=IIf(Fields!Due_Days.Value>14 and Fields!Notes_Count.Value>0,"Blue",(Iif(Sum(Fields!Notes_Count.Value)=0 ,"Red","Black")))
My requirement is if the Due_Days column value is >14 then I need to highlight the value as blue else black and if value is 0 then red. When I use the above query it is just highlighting the color blue for 1st column only. Eg: 4th row . Due days for month
of Oct and Nov is > 14 but it shows blue only for month of oct.
How can i resolve the issue?In select query i have 5 columns:
Due days(Which is difference between 2 dates) ,
Notes count (Which is just a count of notes entered or not having value 0/1 and value '-' if another column CRD is greater than the matrix month and year.)Eg: below date 11/12/2014 is greater than Oct 2014 hence Oct 2014 should have "-"
Month Name , Year , Month Nbr (last 6 months which I cross joined with the table to get counts for each month)
The matrix has year and last 6 month as column groups
Color coding should be if notes count is 0 then red ,if notes count is 1 and due_days> 14 then blue else black . When i try to use expression for color as i mentioned above, it colors only 1st colum.eg: 2nd row
Nov 2014 is blue but for jan 2014 also it should show blue as due days>14 .
Is there any way i can do that ??
Eg: data set returns value as :
Due Days CRD Month
Month_Nbr Year Notes _Count
5 2014-11-28 00:00:00.000 December 12 2014
0
5 2014-11-28 00:00:00.000 February 2 2015
0
5 2014-11-28 00:00:00.000 January 1 2015
0
5 2014-11-28 00:00:00.000 November 11 2014 1
5 2014-11-28 00:00:00.000 October 10 2014 0
5 2014-11-28 00:00:00.000 September 9 2014 0
Matrix is of the form :
YEAR
MONTH
CRD Notes_count -
How to get all the ID value dynamically in javascript
Hi,
Please let me know how to read all the id of the components dynamically from the *.jspx page in adf.
i want to store all the values in the array of the javascript.
Thanksjdev version -11.1.1.4
use case:- we are capturing all value entered by the user on screen and storing it in the cookie like (key,value) pair where key is id and value is value of the component keyed-in.
Later when there is browser close or transaction faliure we are retreiving back all the values from cookie on load of page.
Now the point is when the screen loads back it is not getting the component id dynamically, we are storing manually the id's of the components to retrieve the value.
But we want to read all the id of all the components dyanamically once page load and store it in javascript array variable.
Let me know if there is any method to read all the id of the page in ADF javascript.
Or any other alternative method.
Please help.
Thanks, -
Hello Experts,
I am trying to test usage of f4 help function module.
We want to dynamically pass values from remote machines into the given input parameters of a Given Search help and receive the output into a table (no dialogs required .. so no pop ups )
I wrote a test program to just test if we can really do that at runtime ?
This program pops up the window of search help First I want to surpress that window and Second I have no clue
( How to pass the input parameters as value eg. 20 to a given field as we pass manually )
Can some one suggest something here ?
REPORT ZTEST_F4_TEST.
data lt_return TYPE TABLE OF DDSHRETVAL.
data ls_return TYPE DDSHRETVAL.
data lt_return_ddic TYPE TABLE OF zDDSHRETVAL.
data ls_return_ddic TYPE zDDSHRETVAL.
PARAMETERS ptable type tabname.
PARAMETERS pfield type fieldname.
PARAMETERS pshelp type SHLPNAMe.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = ptable
fieldname = pfield
SEARCHHELP = pshelp
* SHLPPARAM = ' '
* DYNPPROG = ' '
* DYNPNR = ' '
* DYNPROFIELD = ' '
* STEPL = 0
* VALUE = ' '
MULTIPLE_CHOICE = 'X'
DISPLAY = 'F'
SUPPRESS_RECORDLIST = 'X'
* CALLBACK_PROGRAM = ' '
* CALLBACK_FORM = ' '
* SELECTION_SCREEN = ' '
* IMPORTING
* USER_RESET =
TABLES
RETURN_TAB = lt_return
* EXCEPTIONS
* FIELD_NOT_FOUND = 1
* NO_HELP_FOR_FIELD = 2
* INCONSISTENT_HELP = 3
* NO_VALUES_FOUND = 4
* OTHERS = 5
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
data lv_count type i.
delete lt_return where fieldname <> pfield.
sort lt_return by fieldval.
delete ADJACENT DUPLICATES FROM lt_return COMPARING fieldval.Hello Sim,
We will be exposing the Input parameters and Output lists of the SAP Search helps (simple search helps only) as input output of a Webservice.
So I need to understand how can we exploit the SAP Search Helps ?
What function modules can take these inputs as structures and can provide the output in form of a table ?
Regards,
Ravi -
Pass Multiple Prompt Values Dynamically in a Publication
Hello
I have a dynamic list for list for my Publications of a Web Intelligence Document. The dynamic list has the following columns names
ID
Name
Email
Zone
and the Web Intelligence document has the columns:
Zone
Sales Value
I can't use Profiles because some of the recipients in the dynamic list do not have a BOE account
Lets say I use the following values
ID = 1
Name = Sally
Email = [email protected]
Zone = USA
This works fine and if I change the value of the Zone to another single value, (maybe Sally has been reallocated to a different Sales Region) for example:
ID = 1
Name = Sally
Email = [email protected]
Zone = UK
then this also works fine and the output from the Publication shows the correct value.
However, when I try and do the following, I run into problems:
ID = 1
Name = Sally
Email = [email protected]
Zone = USA;UK
The resultant output is blank!!! The prompt that is in my document that I want to burst is set to optional. I've tried using:
semicolons: for example USA;UK
commas: for example USA,UK
brackets and semicolons: for example (USA;UK)
brackets and commas: for example (USA,UK)
but nothing works and the resultant output is empty
Also, passing in a blank value for the optional prompt to return everything but this does not work either and the resultant output is empty.
I can't believe that this is not possible and would welcome any suggestions.
Thanks in advance.
JulianZHello Arijit
Because that is just 2 individual values I know that would work, but its not going to be suitable for my needs. In reality, my dynamic list will look more like below and will contain a lot more people too.
ID
Name
Email
Zone
Region
Item
1
Sally
Sally@mytown
USA
2
Mary
[email protected]
USA
California
3
Jim
[email protected]
UK
North
Coats
4
Bill
[email protected]
Coats
5
Fred
[email protected]
USA;UK
Jeans;Belts
My Web Intelligence Report that needs to be burst/published has the columns
Zone
Region
Item
Sales
Zone, Region and Item are also Optional Prompts so, in the case of "Sally" above, she should get all items for all regions in USA, Bill should get Coats in all Zones and all regions etc etc
Thanks
Julian
Maybe you are looking for
-
Is this the only way to file a complaint?
I upgraded my Verizon internet service a few months ago, because my connection speed was very slow. I observed that it wasn't getting better and today it was actually worse it's ever been. While Verizon seems to be putting all their efforts into FiOS
-
I'm looking for a music player with the following features:
Hi everyone, I'm setting up a linux desktop for the first time. I'd like some directions on finding a music player. Here are my criteria, in order of importance: - Can play (at least) ogg, mp3 and wav - Prefers a 'playlist approach' (m3u) to a 'm
-
Variable to hold the value at run time
Dear Friends, I have a requirement in customer ageing report to select a particluar record from the cube based on the record selected by the query. Is there any option for holding a value of the dimension selected by the query in to a variable a
-
How to transfer data between planning functions in BPS
Hi All, I have requirement, where user will enter the sales qty plan in manual planning function and need to read the zinfo object to distribute the sales qty accordingly to manufacturing plant and push into infocube. To fulfill above requirement, i'
-
How to intercept clickToEdit action in af table?
Hello, I am using EditingMode: clickToEdit in af table. The functionality i am trying to achieve is when user clicks on table row then he can change some values. It is straight forward. What is tricky is that i am looking to show LOV (af:selectOneCho