How to get values from a table(in jsp) for validation using javascript.
hi,
this is praveen,pls tell me the procedure to get values from a table(in jsp) for validation using javascript.
thank you in advance.
Yes i did try the same ..
BEGIN
select PROD_tYPE into :P185_OFF_CITY from
magcrm_setup where atype = 'CITY' ;
:p185_OFF_CITY := 'XXX';
insert into mtest values ('inside foolter');
END;
When i checked the mtest table it shos me the row inserted...
inside foolter .. Now this means everything did get execute properly
But still the vallue of off_city is null or emtpy...
i check the filed and still its empty..
while mtest had those records..seems like some process is cleaining the values...but cant see such process...
a bit confused..here..I tried on Load after footer...
tried chaning the squence number of process ..but still it doesnt help
some how the session variables gets changed...and it is changed to empty
Edited by: pauljohny on Jan 3, 2012 2:01 AM
Edited by: pauljohny on Jan 3, 2012 2:03 AM
Similar Messages
-
How to get values from Hash Table
Hi all,
I have a hash table "lovResults" craeted with following code -
String lovInputSourceId = pageContext.getParameter(SOURCE_PARAM);
Hashtable lovResults = pageContext.getLovResultsFromSession(lovInputSourceId);
values which I can see through SOP are - ******Value of lovResults is{roleid=1000, domainFV=CREATIVE, Role=Account Director}
How can I get the domain value "domainFV=CREATIVE" from hash table in a variable because I have to set this vaue in another field.
Please help me ASAP
Thanks
AmitHi Amit ,
Since you are successfully printing the values using sop's , please try this code
Capture the value in controller .
if(oapagecontext.getParameter("domainFV") != null)
String formvalue= oapagecontext.getParameter("domainFV") // ensure hashtable id is correct
Keerthi
Edited by: keerthioaf on Nov 26, 2012 8:46 PM -
How to get values from RT table
Hello friends ,
I want to get earned basic from RT table T-code - pc00_m40_clstr
how to get that values for wage types
gauravHi Gaurav,
The Function Module u2018 PYXX_READ_PAYROLL_RESULT u2019 generically reads a complete payroll result, that is for all country versions, from file PCL2 or from the buffer. In doing so, the payroll result is transferred to the PAYROLL_RESULT parameter. In the calling system, this must be classified as a complex structure according to the 'PAYxx_RESULT' dictionary structure. u2018 xx u2018 is the ISO code for the country. Now the payroll result is in the parameter FS_PAY99_RESULT. In this parameter the RT table is considered and the required values are moved into a internal table (say T_RT).
Regards,
Swapna. -
POPUP FM to get values from a table control?
I know about the FM POPUP_GET_VALUES to get one or more values from a popup dialog box. I would like to find a similar FM that allows getting values from a table control or something that allows entry of multiple lines of values. Is there such a thing, or do I need to write my own?
it depends on what values you want to enter, better write your own to have a control on the function.
-
How to get value from list item
Hi all,
How to get value from list item?
I have a problem with the List Item object
in the Oracle forms.
How can I retrieve the selected item from
a list ?
I didn't find any function like 'list.GET_
SELECTED_ITEM()'...
thanks
BalaHello,
You get the value as for any other Forms item:
:value := :block.list_tem ;Francois -
How to retrieve data from catsdb table and convert into xml using BAPI
How to retrieve data from catsdb table and convert into xml using BAPI
Points will be rewarded,
Thank you,
Regards,
Jagrut BharatKumar ShuklaHi,
This is not your requirment but u can try this :
CREATE OR REPLACE DIRECTORY text_file AS 'D:\TEXT_FILE\';
GRANT READ ON DIRECTORY text_file TO fah;
GRANT WRITE ON DIRECTORY text_file TO fah;
DROP TABLE load_a;
CREATE TABLE load_a
(a1 varchar2(20),
a2 varchar2(200))
ORGANIZATION EXTERNAL
(TYPE ORACLE_LOADER
DEFAULT DIRECTORY text_file
ACCESS PARAMETERS
(FIELDS TERMINATED BY ','
LOCATION ('data.txt')
select * from load_a;
CREATE TABLE A AS select * from load_a;
SELECT * FROM A
Regards
Faheem Latif -
How to get value on the table control in infotyp e0008
Dear Freinds
I have written a user exit ZXPADU02 for my requirement
as per the requirement in i have calculated wa-poo8-bet01 = wa_p0008-ansal/12 and i have passed on to the INNNN structure .
Nowe when do a Create or Copy for a rcord in infotype 0008 iam not
getting value on Q0008-betrg field on the SCREEN , since it is table control how to get data on the table Control Cell .
Please let me knlow
regardsHi Syamala,
The try to find the name of the table control and pass the values to it.
Of course you have to loop and endloop, the table control and mofidy it from the work area.
Message was edited by:
Sera -
How to get data from a table in a condition between twomonth
hai friends
I have a query that is i want to get data from a table based on a condition between two months in a format of char column
Ex
I have a column called from_month in the format of 'mon/yyyy'(already converted from date')
then the second column is to_month in the same format 'mon/yyyy'
now i wiil select from_month and to_month like
from month jan/2009
to month mar/2010
how to use between of two months in the format of char.Please tell me how to get two different month between data.Hi,
This may be of help.
Remember Pointless has made a point ;) (worth millions)
If possible , DO NOT store dates as strings or numbers.Let dates be dates.
WITH dat AS
(SELECT ' THIS IS JAN' x,to_char(to_date('01-JAN-2009','DD-MON-YYYY'),'mon/yyyy') y FROM dual UNION
SELECT ' THIS IS FEB' x,to_char(to_date('01-FEB-2009','DD-MON-YYYY'),'mon/yyyy') y FROM dual UNION
SELECT ' THIS IS MAR' x,to_char(to_date('01-MAR-2009','DD-MON-YYYY'),'mon/yyyy') y FROM dual UNION
SELECT ' THIS IS APR' x,to_char(to_date('01-APR-2009','DD-MON-YYYY'),'mon/yyyy') y FROM dual UNION
SELECT ' THIS IS MAY' x,to_char(to_date('01-MAY-2009','DD-MON-YYYY'),'mon/yyyy') y FROM dual UNION
SELECT ' THIS IS JUN' x,to_char(to_date('01-JUN-2009','DD-MON-YYYY'),'mon/yyyy') y FROM dual UNION
SELECT ' THIS IS JUL' x,to_char(to_date('01-JUL-2009','DD-MON-YYYY'),'mon/yyyy') y FROM dual UNION
SELECT ' THIS IS AUG' x,to_char(to_date('01-AUG-2009','DD-MON-YYYY'),'mon/yyyy') y FROM dual UNION
SELECT ' THIS IS SEP' x,to_char(to_date('01-SEP-2009','DD-MON-YYYY'),'mon/yyyy') y FROM dual UNION
SELECT ' THIS IS OCT' x,to_char(to_date('01-OCT-2009','DD-MON-YYYY'),'mon/yyyy') y FROM dual UNION
SELECT ' THIS IS NOV' x,to_char(to_date('01-NOV-2009','DD-MON-YYYY'),'mon/yyyy') y FROM dual)
SELECT * FROM dat
WHERE to_date(y,'mon/yyyy') BETWEEN to_date('01 jan 2009','dd mon yyyy') AND to_date('01 mar 2009','dd mon yyyy')Cheers!!!
Bhushan -
JSF:how to get value from dinamically generated HtmlInputText components�H�H
<h:panelGroup binding="#{dynamicInputGroupBean.group}"/>
public HtmlPanelGroup getGroup() {
if (this.getSelectedComp() == null) {
return this.group;
FacesContext facesContext = FacesContext.getCurrentInstance();
Application application = facesContext.getApplication();
this.group = new HtmlPanelGroup();
Set pSet = this.getSelectedComp().getParameterses();
int size = pSet.size();
this.instanceValue = new String[size];
int i = 0;
for (Iterator it = pSet.iterator(); it.hasNext();) {
Parameters tempP = (Parameters) it.next();
HtmlOutputLabel outputLable = new HtmlOutputLabel();
HtmlInputText inputText = new HtmlInputText();
inputText.setId("p" + i);
String valueBindingExpression = "#{dynamicInputGroupBean.instanceValue["+i+ "]}";
System.out.println(valueBindingExpression);
ValueBinding valueBinding = application
.createValueBinding(valueBindingExpression);
inputText.setValueBinding("value", valueBinding);
outputLable.setFor(inputText.getId());
outputLable.setValue(tempP.getParaname() + ": ");
group.getChildren().add(outputLable);
group.getChildren().add(inputText);
i++;
// group.getChildren().add(new HtmlInputText());
return group;
}as codes show above, i successfully genera HtmlInputText dinamicaly�C
but i got problems while i try to print those values...
after the the jsp page presents in my browser,
i input some words in the input components,
and then click a commandButton hold an action to print their value
action code :
String[] tempArray = this.getInstanceValue();
for (int i = 0; i < tempArray.length; i++) {
System.out.println(tempArray);
only NULL has been printed in the consol ....not the word i inputed!!!
so my question is how can i get values from those
dinamically generated HtmlInputText ????This approach is odd. What's the functional requirement after all? You normally attach the inputtext value to a backing bean property and do the desired command button action which is attached to a backing bean action method. In this method you then use the value for the query.
-
How to get values from resultset when using subquery???
Hi ,
I have a problem in executing sql query from java.
I am executing an sql query which return a intersection of values from 3 tables.
Here is the query I am using
select id from dps_user where id in (select b.id from dps_user b,laserlink c
where c.userid='univ.'||b.login and c.status in(1,3,8,9,10)
intersect
select b.id from dps_user b,laserlink c
where c.userid=b.login and c.status in(1,3,8,9,10)).
this query is working fine from sql .
when I am trying to excute the same query from java nothing is coming into resultset.
String ISP_AND_EMAIL="select id "+
" from dps_user where id in (select b.id from dps_user b,laserlink c "+
"where c.userid='"+"univ.'"+" ||b.login and c.status in(1,3,8,9,10)"+
" intersect "+
" select b.id from dps_user b,laserlink c"+
" where c.userid=b.login and c.status in(1,3,8,9,10))";
System.out.println(ISP_AND_EMAIL);
rs=stmt.executeQuery(ISP_AND_EMAIL);
How to use concatinate string (|| ) in java.
can anyone help to retrieve the values from this resultset...
Thanksconcatnation is done using + in java.
I am doubtful about the following line where there may be error
"where c.userid='"+"univ.'"+" ||b.login and c.status in(1,3,8,9,10)"+
I don't know if the univ. is a string or some variable.I need more clarification on this line,then i may help u.
thx -
How to get values from an IFrame...
Hi everyone. I have come to a complete stop i my project and need to ask the following: How do i get the values from an IFrame.
Situation: I have a main.jsp page that contains an IFrame(data.jsp). Data.jsp is basically made up of a bunch of checkboxes. The state of these boxes(checked or unchecked) is determined and set by a JAVA program and the results are then stored in a StringBuffer. Contents of Stringbuffer could look something like this: <tr><input type='checkbox' name='box0' CHECKED></tr>.
The StringBuffer in then presented in the IFrame(data.jsp) like so: <%=res.getInfo()%>
The user should be able to check or uncheck the boxes from the main.jsp page then when pressing a submit button the changes should be stored in a DBase.
After the submit button have been pressed i go into my Servlet's doPost() method for some basic processing. This is were the problem starts. I usally use HttpServletRequest.getParameter(String param) to get values from the main.jsp page. But these checkboxes are stored in the IFrame, so how do i go about to retrieve the values from data.jsp from the doPost() method or in some other way maybe. This is quite urgent and i hope that i have explained the scenario in enough detail.
Any help would be greatlly apritiated.
Best regards
PeterHello
Just try this link
http://www.faqts.com/knowledge_base/view.phtml/aid/13758/fid/53
HTH -
i have three tables A,B,C. there is one to many relation between A and B. and one to many relation existed between table b and c . how will get data from these three tables
check if this helps:
select * --you can always frame your column set
from tableA a
left join tableB b on a.aid=b.aid
left join tableC c on c.bid=b.bid
This is just a general query. However, we can help you a lot more, if you can post the DDL + sample data and required output.
Thanks,
Jay
<If the post was helpful mark as 'Helpful' and if the post answered your query, mark as 'Answered'> -
How to get values from a stored package variable of type record ?
Sir,
In my JClient form, I need to get values from a database stored package variable of type record. And the values are retained in the JClient form for the whole session. The values are copied only once when the form is started.
What is the best way to do that ?
Thanks
StephenStephen,
not sure what your model is, but if it is Business Components, I think I would expose the properties as a client method on the application module. This way all JClient panels and frames will have access to it. You could use a HashMap to store the data in teh app module.
If JDBC supports the record type, then you should be able to call it via a prepared SQL statement. If not, you may consider writing a PLSQL accessor to your stored procedure that returns something that can be handled.
Steve Muench provides the following examples on his blog page
http://otn.oracle.com/products/jdev/tips/muench/stprocnondbblock/PassUserEnteredValuesToStoredProc.zip
http://otn.oracle.com/products/jdev/tips/muench/multilevelstproc/MultilevelStoredProcExample.zip
Frank -
How to get data from COSP table, field HRKFT as the key to data from PM?
Dear ladies and gentlemen!
I need to get data from COSP table, field HRKFT as the key to data from PM tables (AFKO and AUFK).
The problem is that it is a key field to the COSP, and all non-key fields as an alternative to HRKFT are not suitable for this task.
All this is necessary for the extractor, which loads the data from the R \ 3 systems in the BW-system. I need to perform SELECT from a table COSP and maybe also JOIN, most likely between tables COSP and AUFK.
What should I do in this case?
Thank you very much in advance!From information on help.sap.com I've made a conclusion that one of possible solutions in theory is to modify standard extractor PM_OM_OPA_1 in order to make HRKFT field available for work, because by default it is hidden by SAP and not available for use as a key field.
Of course, it's not a very good solution, but for now I know no other way to solve this problem.
Maybe someone knows better ways? In this case I will be very grateful for any help!
Moderator: You'd better post it on BI forums -
How to get data from large table (more than 9 million rows) by EJB?
I have a giant table, it has more than 9 million rows.
I want to use ejb finders method to get data from this table but always get not enough memory error or time out error,
Can anyone give me solutions?
ThxYour problem may be that you are simply trying to load so many objects (found by your finder) that you are exceeding available memory. For example if each object is 100 bytes and you try to load 1,000,000 objects thats 100Mb of memory gone.
You could try increasing the amount of memory available to OC4J with the appropriate argument on the command line (or in the 10gAS console). For example to make 1Gb available to OC4J you would add the argument:
-Xmx1000m
Of course you need have this available as hard memory on your server or you will incur serious swapping.
Chris
Maybe you are looking for
-
Stock value showing Negative but Qty is Null
Hi Gurus, I am using the Transaction MCBA, where i am getting the details regarding the Received Stock qty, issued stock qty ,Total stock on hand and the Total stock Value. Here i am getting the values Zero for Received stock qty, Issued stock qty an
-
Sound problems when burning a film made in iMovie in iDVD
PLEASE HELP!!! I have upgraded to iLife 09 and for all the bad that people have to say, I actually like it a lot. Anyway, it gave me the encouragement I needed to play with some old home movies I had stored with the aim of producing DVDs to give to m
-
DropdownByKey UI element is giving Classcast exception
Hi In my webdynpro view if i add "DropdownbyKey" UI element and the run the application,it is giving Classcast Exception.i am getting following error The initial exception that caused the request to fail, was: java.lang.ClassCastException at c
-
Hi all, I have about 100 users and many groups. How can i create users and groups quickly? Appreciate any help
-
Windows sensor button on monitor stopped working - Yoga Pro 2
I have had my Yoga Pro 2 all of 3 days, and today the sensor button located on the monitor that brings you to the windows start screen has stopped working. When I purchased the laptop, the sensor worked fine - it vibrated when touched and brought me