Updating data in input filed
Hi Iam new to WD java i have one issue ie,
I have one input field name is FIRST in that I will select one value u2026.. and I have other input filed that is SECOND I will select one value Based on this two fields I have one more filed called THIRD. when ever I select the above values the related account number will be coming from backend u2026..
Now the problem after entering the data atlast when we update the filed with new data in First filed automatically the THIRD filed which consists of data should be blank
can you please tell me the logic of this how to do in terms of coding pls ....
Thanks in Advance
There is "onEnter" event for Input UI element. Write an action and set this action for "onEnter" event of the FIRST input field . In this action, set the context attribute for the THIRD Input field to empty string "".
Hope this helps. If possible, give more details so that someone else may have a better answer.
Similar Messages
-
How to get the default date as current date in input filed in VC
Hi
In my VC application i have two date fields. we are allowing the end user to select the From Data and Todate though Data pickers, But the client asking to make the today's date as default date in Todate field , rather picking up from the data picker,
Unless the user wants change the todate from the current date. It should display today's date as default date.
can any body tell me how to do it.
Regards
VijayHi All,
I have an issue an implementing the "Exporting the Table data to Excel."
My VC version is 7.0
Portal version NW 2004s.
By refering the following link, i have implemented Export To Excell functionality in VC.
2) Another one that's in the Visual Composer WIKI:
https://wiki.sdn.sap.com/wiki/display/VC/Exportingdatafrom+VC
By refering to 7th page in the document. It is explained to add the data source object from the 'info' port and add the field called 'RAPTNAME'to the DATA source object.
But the RFC object which i added to the story board, i havent find any 'info' port in my added RFC. But still i have added the data store object and added field. then
copied the following given formula in the document in respective formula window ,Formula showin as valid. when i click on check button.
copied formula :
"pcd!3aportal_content!2fcom.sap.pct!2fplatform_a
dd_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.b
ex?QUERY=" & STORE@REPTNAME &
"&BI_COMMAND_1-
BI_COMMAND_TYPE=EXPORT&BI_COMMAND
1-EXPORTFORMAT=XLS&BI_COMMAND_1-
null="
i am able to run the application. After i run the application . once i click on the button 'ExportToExcel' i am getting the following error.
Portal Runtime Error
An exception occurred while processing a request for :
iView : N/A
Component Name : N/A
Could not find portal application com.sap.ip.bi.service.generic.
Exception id: 05:32_01/05/07_0001_18800950
See the details for the exception ID in the log file
Can u please tell me what is the problem
Regards
Vijay -
Does endeca support update data now or in the future?
The question is like this kind of scenario: Now the endeca page retrieves data from a oracle database's table. I just want to know if endeca has the functionality to update a piece of record. For example endeca page can have input filed and submit button, when user enter the new data in the input field and click submit button this piece of record in the database is updated. Does endeca support this functionality now or in the future?
If you are genuinely syncing to 4 webmail accounts you will only hold copies of the last 7 days of emails and folder contents in Playbook (or 14 or 30 days if you set it). All the archive material over that age resides only on the web.
You need to go to webmail to clean them up. -
How to update data in a xml file.
I am able to retrieve data from a xml file but not able to update data. Also how can i add or delete node from a xml file.
Hi,
For some time I have also been trying to do the same thing with no success. So far I have tried a few approaches like $.post functions $.ajax post functions and HTML5 fileWriter functions. I am not well aware of the web development techniques but as fas as I understand the post or update of the json file should be done on the serverside mainly because of security issues. I am not sure how appbuilder works entirely and if there is any way to do this.
Have you managed to find a solution ?
(P.S. my goal is to update my chart data which is of course json file. So the idea here is to get some values from the user input and update the json file values then refresh the chart and display it with the new values).
Best Regards,
A.Dyankov. -
How to trigger pop-up window in report and update data base from report
Hi All,
I have a requirement, in a report output list to trigger a pop up window with some rejection codes corresponding to each sales order when i select from the output list. Also i need to update data base by selecting one of the rejection code in the pop-up window list for that sales order. Can any one please let me know how to achive this.
Also, i have check boxes for each record in the output list. Also, i have added one more check box as "Select All'. When select 'Sleect All' check box , all check boxes need to be checked, how to achieve this. PLease let me know.
Thanks in advance.
Regards,
RajeshHi check this code of editable ALV report... I updated the data base with the changes made..in the editable ALV
*& Report ZJAY_EDIT_ALV
REPORT zjay_edit_alv.
* TYPE-POOLS *
TYPE-POOLS: slis.
* INTERNAL TABLES/WORK AREAS/VARIABLES
DATA: i_fieldcat TYPE slis_t_fieldcat_alv,
i_index TYPE STANDARD TABLE OF i WITH HEADER LINE,
w_field TYPE slis_fieldcat_alv,
p_table LIKE dd02l-tabname,
dy_table TYPE REF TO data,
dy_tab TYPE REF TO data,
dy_line TYPE REF TO data.
* FIELD-SYMBOLS *
FIELD-SYMBOLS: <dyn_table> TYPE STANDARD TABLE,
<dyn_wa> TYPE ANY,
<dyn_field> TYPE ANY,
<dyn_tab_temp> TYPE STANDARD TABLE.
* SELECTION SCREEN *
PARAMETERS: tabname(30) TYPE c DEFAULT 'MARA',
lines(5) TYPE n DEFAULT 7.
* START-OF-SELECTION *
START-OF-SELECTION.
* Storing table name
p_table = tabname.
* Create internal table dynamically with the stucture of table name
* entered in the selection screen
CREATE DATA dy_table TYPE STANDARD TABLE OF (p_table).
ASSIGN dy_table->* TO <dyn_table>.
IF sy-subrc <> 0.
MESSAGE i000(z_zzz_ca_messages) WITH ' No table found'.
LEAVE TO LIST-PROCESSING.
ENDIF.
* Create workarea for the table
CREATE DATA dy_line LIKE LINE OF <dyn_table>.
ASSIGN dy_line->* TO <dyn_wa>.
* Create another temp. table
CREATE DATA dy_tab TYPE STANDARD TABLE OF (p_table).
ASSIGN dy_tab->* TO <dyn_tab_temp>.
SORT i_fieldcat BY col_pos.
* Select data from table
SELECT * FROM (p_table)
INTO TABLE <dyn_table>
UP TO lines ROWS.
REFRESH <dyn_tab_temp>.
* Display report
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_structure_name = p_table
i_callback_user_command = 'USER_COMMAND'
i_callback_pf_status_set = 'SET_PF_STATUS'
TABLES
t_outtab = <dyn_table>
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
*& Form SET_PF_STATUS
* Setting custom PF-Status
* -->RT_EXTAB Excluding table
FORM set_pf_status USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'ZSTANDARD'. "copy it from SALV func group standard
ENDFORM. "SET_PF_STATUS
*& Form user_command
* Handling custom function codes
* -->R_UCOMM Function code value
* -->RS_SELFIELD Info. of cursor position in ALV
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
* Local data declaration
DATA: li_tab TYPE REF TO data,
l_line TYPE REF TO data.
* Local field-symbols
FIELD-SYMBOLS:<l_tab> TYPE table,
<l_wa> TYPE ANY.
* Create table
CREATE DATA li_tab TYPE STANDARD TABLE OF (p_table).
ASSIGN li_tab->* TO <l_tab>.
* Create workarea
CREATE DATA l_line LIKE LINE OF <l_tab>.
ASSIGN l_line->* TO <l_wa>.
CASE r_ucomm.
* When a record is selected
WHEN '&IC1'.
* Read the selected record
READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX
rs_selfield-tabindex.
IF sy-subrc = 0.
* Store the record in an internal table
APPEND <dyn_wa> TO <l_tab>.
* Fetch the field catalog info
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = sy-repid
i_structure_name = p_table
CHANGING
ct_fieldcat = i_fieldcat
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
IF sy-subrc = 0.
* Make all the fields input enabled except key fields
w_field-input = 'X'.
MODIFY i_fieldcat FROM w_field TRANSPORTING input
WHERE key IS INITIAL.
ENDIF.
* Display the record for editing purpose
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_structure_name = p_table
it_fieldcat = i_fieldcat
i_screen_start_column = 10
i_screen_start_line = 15
i_screen_end_column = 200
i_screen_end_line = 20
TABLES
t_outtab = <l_tab>
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc = 0.
* Read the modified data
READ TABLE <l_tab> INDEX 1 INTO <l_wa>.
* If the record is changed then track its index no.
* and populate it in an internal table for future
* action
IF sy-subrc = 0 AND <dyn_wa> <> <l_wa>.
<dyn_wa> = <l_wa>.
i_index = rs_selfield-tabindex.
APPEND i_index.
ENDIF.
ENDIF.
ENDIF.
* When save button is pressed
WHEN 'SAVE'.
* Sort the index table
SORT i_index.
* Delete all duplicate records
DELETE ADJACENT DUPLICATES FROM i_index.
LOOP AT i_index.
* Find out the changes in the internal table
* and populate these changes in another internal table
READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX i_index.
IF sy-subrc = 0.
APPEND <dyn_wa> TO <dyn_tab_temp>.
ENDIF.
ENDLOOP.
* Lock the table
CALL FUNCTION 'ENQUEUE_E_TABLE'
EXPORTING
mode_rstable = 'E'
tabname = p_table
EXCEPTIONS
foreign_lock = 1
system_failure = 2
OTHERS = 3.
IF sy-subrc = 0.
* Modify the database table with these changes
MODIFY (p_table) FROM TABLE <dyn_tab_temp>.
REFRESH <dyn_tab_temp>.
* Unlock the table
CALL FUNCTION 'DEQUEUE_E_TABLE'
EXPORTING
mode_rstable = 'E'
tabname = p_table.
ENDIF.
ENDCASE.
rs_selfield-refresh = 'X'.
ENDFORM. "user_command -
Need to automatically display update date and user in update form field
Hi all,
Hopefully someone can help me with this... I am using dreamweaver cs4 and php/mysql. I have a database table that will be updated by 1-5 different people at random times. I have everything set up and working, as far as the update function, delete function, add new, etc. In my update form the last two fields are Last Updated and Last Updated By. There are fields in the table called 'last_updated' (formatted in PHPmyadmin as timestamp) and 'last_updated_by'. But how do I get them to update on their own? Right now it is showing the first entry into the field which I did in the PHPmyadmin table, but it is not updating automatically. It would be a nice field to have so that we know who has worked on the table and when it was last updated, without the user manually typing that in, which I am sure they would forget to do. By the way, users will login to this with a username and password before editing the records.
This is the code for the last row in the update form with those two fields. It is pulling the fields from the database table, but they do not update automatically...
<tr>
<th class="blackfont" scope="row">
<div align="right">
<label for="last_updated">Last Updated Date:</label></div>
</th>
<td colspan="3" class="blackfont"><input name="last_updated" type="text" id="last_updated" tabindex="47" value="<?php echo $row_getMember['last_updated']; ?>" size="15" />
<label for="last_updated_by">Last Updated By:</label>
<input name="last_updated_by" type="text" id="last_updated_by"tabindex="48" value="<?php echo $row_getMember['last_updated_by']; ?>" size="15" /></td>
</tr>
Thanks!
KathyHere is all the code the the Admin Login page...
<?php session_start(); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/TherapyPetsTemplate2.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>TPGC Administrative Login Page</title>
<!-- InstanceEndEditable -->
<link href="css/twoColFixLtHdr.css" rel="stylesheet" type="text/css" /><!--[if IE 5]>
<style type="text/css">
/* place css box model fixes for IE 5* in this conditional comment */
.twoColFixLtHdr #sidebar1 { width: 230px; }
</style>
<![endif]--><!--[if IE]>
<style type="text/css">
/* place css fixes for all versions of IE in this conditional comment */
.twoColFixLtHdr #sidebar1 { padding-top: 30px; }
.twoColFixLtHdr #mainContent { zoom: 1; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]-->
<script src="JavascriptFiles/mootools.js" type="text/javascript"></script>
<style type="text/css">
<!--
body {
background-color: #FFF;
margin-top: 25px;
margin-bottom: 25px;
margin-left: 25px;
margin-right: 25px;
background-image: url(Images/images-2.jpg);
background-repeat: repeat;
.twoColFixLtHdr #container #webstunning_video_player {
margin-top: 15px;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
-->
</style>
<script src="ajxmenu.js" type="text/javascript"></script>
<style type="text/css">
<!--
body,td,th {
color: #FFF;
font-size: 100%;
font-family: Trebuchet MS, Arial, Helvetica, sans-serif;
.Italic {
font-style: italic;
-->
</style><link rel="stylesheet" href="ajxmenu1.css" type="text/css" />
<script src="ajxmenu1.js" type="text/javascript"></script>
<link rel="stylesheet" href="ajxmenu2.css" type="text/css" />
<script src="ajxmenu2.js" type="text/javascript"></script>
<link rel="stylesheet" href="ajxmenu4.css" type="text/css" />
<script src="ajxmenu4.js" type="text/javascript"></script>
<!-- InstanceBeginEditable name="head" -->
<script language='JavaScript' type='text/javascript' src='HDWRegistrationAndLogin/validatescripts.js.php'></script>
<!-- InstanceEndEditable -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-28303973-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
</script>
</head>
<body class="twoColFixLtHdr">
<div id="container">
<div id="header">
<!-- end #header -->
</div>
<div class="AJXCSSMenuScYdSZA"><!-- AJXFILE:../ajxmenu4.css -->
<ul>
<li><a href="Index.html">Home</a></li>
<li><a class="ajxsub" href="AboutUs.html">About Us</a>
<ul>
<li><a href="AboutUs.html">About Our Group</a></li>
<li><a href="Board%20of%20Directors.html">Board of Directors</a></li>
<li><a href="ServicesWeProvide.html">Services We Provide</a></li>
<li><a href="TPGCintheNews.html">TPGC in the News</a></li>
</ul>
</li>
<li><a href="Facilities.html">Facilities</a></li>
<li><a class="ajxsub" href="GetStarted.html">Get Involved</a>
<ul>
<li><a href="DoesYourPetHaveWhatItTakes.html">Does Your Pet Have What it Takes?</a></li>
<li><a class="ajxsub" href="GetStarted.html">Get Started</a>
<ul>
<li><a href="Training.html">Training</a></li>
<li><a href="Testing.html">Testing</a></li>
</ul>
</li>
</ul>
</li>
<li><a class="ajxsub" href="HowYouCanHelp.html">How You Can Help</a>
<ul>
<li><a href="HowYouCanHelp.html">Ways to Help</a></li>
<li><a href="DonorsList.html">Our Donors and Sponsors</a></li>
</ul>
</li>
<li><a class="ajxsub" href="MemberProfiles.html">Happy Tales</a>
<ul>
<li><a href="MemberProfiles.html">Member Profiles</a></li>
<li><a href="MemberStories.html">Member Stories</a></li>
<li><a href="Testimonials.html">Testimonials</a></li>
<li><a href="PhotoGalleries.html">Photo Gallery</a></li>
</ul>
</li>
<li><a href="FAQs.html">FAQs</a></li>
<li><a href="Links.html">Links</a></li>
<li><a href="Form-ContactUs.html">Contact Us</a></li>
<li><a class="ajxsub" href="#">Login</a>
<ul>
<li><a href="MemberLogin.php">Member Login</a></li>
<li><a href="BoardLogin.php">Board Login</a></li>
<li><a href="AdminLogin.php">Admin Login</a></li>
</ul>
</li>
</ul>
<br />
</div>
<div id="sidebar1">
<div>
<div align="center">
<br />
<br />
<div id="Events">
<br />
<div class="EventsHeading" id="EventsHeading">Upcoming Events</div>
<br />
<span class="EventsText">
<!--Date-->
</span>
<span class="EventsDate">March 11th</span>
<span class="EventsText">
<!--Event Name--> Members Meeting
<!--Time-->
</span>
<span class="EventsTextDescription"><!--Description-->
<strong class="MemberPageItemFont">CANCELLED! </strong></span>
<br />
<span class="EventsDate">March 25th</span>
<span class="EventsText">
<!--Event Name-->Testing
<!--Time-->
</span>
<span class="EventsTextDescription"><!--Description-->
12-3 pm At Bethesda North Hospital. Please contact <a href="mailto:[email protected]?Subject=Sign up for Testing March 25th">Elaine Waxler</a> to sign up for testing, or <a href="mailto:[email protected]?Subject=Question about Testing March 25th">Glenna Mockbee</a> for more details.</span>
<br />
<span class="EventsDate">April 15th</span>
<span class="EventsText">
<!--Event Name--> Board Meeting
<!--Time-->
</span>
<span class="EventsTextDescription"><!--Description-->
12-3 pm At Bethesda North Hospital. Please contact <a href="mailto:[email protected]?Subject=Delta Testing Question">Glenna Mockbee</a> for details.</span>
<br />
<span class="EventsDate">May 20th</span>
<span class="EventsText">
<!--Event Name--> Member Luncheon
<!--Time-->
</span>
<span class="EventsTextDescription"><!--Description-->
10-4 pm At Bethesda North Hospital. More details to come.</span>
<br />
</div>
</div>
<br />
<hr align="center" width="200" />
<div align="center"><a href="http://www.facebook.com/pages/Therapy-Pets-of-Greater-Cincinnati/324108054289534?skip_nax_ wizard=true#!/pages/Therapy-Pets-of-Greater-Cincinnati/324108054289534?sk=wall" target="_blank"><img src="Images/Facebook.jpg" alt="Facebook" width="144" height="44" border="0" /></a><br />
<br />
</div>
<hr align="center" width="200" />
<div align="center">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="TB844UZWVAUVU"><br />
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
<br />
<br />
<hr align="center" width="200" />
<!-- InstanceBeginEditable name="SideBar" -->
<div>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
</div>
<!-- InstanceEndEditable --><br />
<br />
<br />
</div>
</div>
</div>
<!-- InstanceBeginEditable name="MainContent" -->
<div id="mainContent">
<span class="GreenHeadingH2">Admin Login</span>
<br />
<br />
<br />
<br />
<div align="center">
<p><span class="UnderConstructionFont"><em><strong>***UNDER CONSTRUCTION - PLEASE DO NOT USE YET!</strong></em></span>***</p>
<p> </p>
<p><span class="UnderConstructionFont"><em>Please login to manage TPGC lists and information.</em></span><em></em></p>
<p> </p>
<p>
<?php if (!$_SESSION["logged_3"]) { ?>
</p>
<form id="hdwlogin" name="hdwlogin" method="post" action="http://www.therapypetsofgreatercincinnati.org/AdminPage.php" onsubmit="return HDW_verify_Login(this)">
<div id="hdwdivlogin">Enter your username:<br />
<input type="text" name="username" id="username" />
<br />
Enter your password:<br />
<input type="password" name="password" id="password" />
</div>
<div id="hdwdivILMP" style="display:none;"> Enter your email:<br />
<input type="text" name="hdwILMPemail" id="hdwILMPemail" />
<br />
<input type="button" onclick="javascript:HDW_submitILMP()" value="Submit" />
<a href="javascript:HDW_showLogin()">Login Again</a></div>
<input type="hidden" name="hdwtable" id="hdwtable" value="3" />
<input type="hidden" name="hdwokurl" id="hdwokurl" value="http://www.therapypetsofgreatercincinnati.org/AdminPage.php" />
<br />
<div id="hdwdivLink" >
<p>
<input type="submit" name="subbtn" id="subbtn" value="Submit" />
</p>
<p><a href="javascript:HDW_showILMP()">I lost my password</a></p>
</div>
</form>
<p>
<?php } else { ?>
Logged as <?php echo $_SESSION["logged_username"]; ?>.
<br />
<br />
<a href="javascript:HDW_logout()">Click here to logout</a>.
<?php } ?>
</p>
<p> </p>
<p><span class="Caption">To change your password, contact <a href="mailto:[email protected]?Subject=Change my TPGC board password">webmaster</a></span><br />
</div>
</div>
<!-- InstanceEndEditable --><br />
<br class="clearfloat" />
<div id="footer">
<p><img src="Images/x-knead[1].gif" width="98" height="47" align="absmiddle" /> Copyright 2012 Therapy Pets of Greater Cincinnati, a 501(c)(3) organization Last Updated
<!-- #BeginDate format:Am3 -->02/25/2012<!-- #EndDate --> Website by <a href="mailto:[email protected]?Subject=Question or Comment for Webmaster">Kathy McRoberts</a> <img src="Images/terrier15.gif" width="63" height="60" align="absmiddle" />
<!-- end #footer -->
<br />
</p>
</div>
<!-- end #container --></div>
</body>
<!-- InstanceEnd --></html> -
How to get the refreshed data from Input schedule while using evsnd
Hi Experts,
I am using EvSnd function for sending the data from a Input schedule.
Acc Value
xx----
xy------ 10
xz------- 20
these above cell value 10,20 are getting sent by evsnd function which is written in different cell.
Now after successfully sending, how I can see these are also getting refreshed, like in Evdre
Acc Value
xx----
30
xy------ 10
xz------- 20
Thanks
AnupamThanks my friend.
But the point is I need to show the updated data for all the cells (for xx, xy,xz). The point is if I use the evsnd then after the data has been sent, those two cells xy & xz will be blank once again. And so if the user will not be able to check what the data they have sent for these member from that sheet.
They have to get a report which will show the figures.
And we can't even use the evgts in the xy/xz cell as the formula is going to be erased as soon as the user enter the data in that.
so how we can do the sheet similar to evdre ip schedule..where after every data send the cell range shows latest data. -
Error while updating Date Field on Process Form.
Hi,
I am using java code to pre-pop date on the process form.First I used a java code whic took java.sql.date as input and returned the same java.sql.date.But it gave an error that:java.lang.String cannot be converted to java.sql.date.......
So I changed the java code and now it takes string as input and returns java.sql.date. This code works fine for Pre-pop adapter and the date is populated on the process form.
But when i use the same code in a Process Task adapter to update the date, then it gives the following error:
ERROR [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' XELLERATE.ADAPTERS - Class/Method: tcAdpEvent/updateDataSetValuePost encounter some problems: Adapter Execution Error: updateDataObjFieldValuePost: error updating UD_OID_USR_DATE_OF_BIRTH
ERROR [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' XELLERATE.ADAPTERS - Class/Method: tcAdpEvent/updateDataSetValuePost encounter some problems: {1}
Can anyone suggest any method to update date field on process form?Hi Abhi,
Can you tell me how you have implemented populating an UDF based on Prepopulation of another UDF. I have a similar kind of requirement. It would be great if you share your code or relevant part of it.
Regards,
Sunny Ajmera -
Problem updating data into ms access database
Hi! I need to update a database based on user's entries. But I have a problem with the updating code. Can some1 help? Here is my whole servlet's code :
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
public class editstaff extends HttpServlet
static Connection link;
static Statement statement;
static ResultSet results;
public void doPost(HttpServletRequest request,HttpServletResponse response) throws IOException,ServletException
response.setContentType("text/HTML");
PrintWriter out = response.getWriter();
out.println("<HTML>");
out.println("<HEAD>");
out.println("<TITLE>Edit Staff Particulars</TITLE>");
out.println("</HEAD>");
out.println("<BR><BR>");
out.println("<BODY>");
String staff = request.getParameter("name");
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
link = DriverManager.getConnection("jdbc:odbc:occ","","");
catch(ClassNotFoundException e)
System.out.println("Sorry! Unable to load driver. Pls try again later.");
System.exit(1);
catch(SQLException e)
System.out.println("Sorry! Unable to connect to the database. Pls try again later.");
System.exit(1);
try
statement=link.createStatement();
String select = "SELECT * FROM Staff WHERE Name = '" + staff+"'";//name taken from html page
results = statement.executeQuery(select);
out.println("<table border=1>");
out.println("<tr>");
out.println("<th bgcolor=orchid>Name</th>");
out.println("<th bgcolor=orchid>IC</th>");
out.println("<th bgcolor=orchid>Staff_ID</th>");
out.println("<th bgcolor=orchid>Date_Joined</th>");
out.println("<th bgcolor=orchid>Address</th>");
out.println("<th bgcolor=orchid>Date_of_Birth</th>");
out.println("<th bgcolor=orchid>Designation</th>");
out.println("<th bgcolor=orchid>Driving_License</th>");
out.println("<th bgcolor=orchid>Mobile</th>");
out.println("<th bgcolor=orchid>Home_Tel</th>");
out.println("<th bgcolor=orchid>E-mail</th>");
out.println("<th bgcolor=orchid>Section</th>");
out.println("<th bgcolor=orchid>Department</th>");
out.println("<th bgcolor=orchid>Course</th>");
out.println("<th bgcolor=orchid>Date_Trained</th>");
out.println("<th bgcolor=orchid>Recurrent_Date</th>");
out.println("<th bgcolor=orchid>Proficiency</th>");
while (results.next())
out.println("<tr>");
out.println("<td>");
out.println(results.getString(1));
out.println("</td>");
out.println("<td>");
out.println(results.getString(8));
out.println("</td>");
out.println("<td>");
out.println(results.getString(9));
out.println("</td>");
out.println("<td>");
out.println(results.getString(16));
out.println("</td>");
out.println("<td>");
out.println(results.getString(4));
out.println("</td>");
out.println("<td>");
out.println(results.getString(6));
out.println("</td>");
out.println("<td>");
out.println(results.getString(10));
out.println("</td>");
out.println("<td>");
out.println(results.getString(7));
out.println("</td>");
out.println("<td>");
out.println(new Integer(results.getString(2)));
out.println("</td>");
out.println("<td>");
out.println(new Integer(results.getString(3)));
out.println("</td>");
out.println("<td>");
out.println(results.getString(5));
out.println("</td>");
out.println("<td>");
out.println(results.getString(17));
out.println("</td>");
out.println("<td>");
out.println(results.getString(11));
out.println("</td>");
out.println("<td>");
out.println(results.getString(12));
out.println("</td>");
out.println("<td>");
out.println(results.getString(13));
out.println("</td>");
out.println("<td>");
out.println(results.getString(14));
out.println("</td>");
out.println("<td>");
out.println(results.getString(15));
out.println("</td>");
out.println("</tr>");
out.println("</table>");
out.println("<BR><BR><BR>");
out.println("<table border=1>");
out.println("<tr>");
out.println("<th>Name</th>");
out.println("<td><input name=nam type=text id=nam></td>");
out.println("</tr>");
out.println("<tr>");
out.println("<th>IC number</th>");
out.println("<td><input name=ic type=text id=ic></td>");
out.println("</tr>");
out.println("<tr>");
out.println("<th>Staff ID</th>");
out.println("<td><input name=ID type=text id=ID></td>");
out.println("</tr>");
out.println("<tr>");
out.println("<th>Date Joined</th>");
out.println("<td>");
out.println("<select name=jday size=1 id=jday>");
out.println("<option>1</option>");
out.println("<option>2</option>");
out.println("<option>3</option>");
out.println("<option>4</option>");
out.println("<option>5</option>");
out.println("<option>6</option>");
out.println("<option>7</option>");
out.println("<option>8</option>");
out.println("<option>9</option>");
out.println("<option>10</option>");
out.println("<option>11</option>");
out.println("<option>12</option>");
out.println("<option>13</option>");
out.println("<option>14</option>");
out.println("<option>15</option>");
out.println("<option>16</option>");
out.println("<option>17</option>");
out.println("<option>18</option>");
out.println("<option>19</option>");
out.println("<option>20</option>");
out.println("<option>21</option>");
out.println("<option>22</option>");
out.println("<option>23</option>");
out.println("<option>24</option>");
out.println("<option>25</option>");
out.println("<option>26</option>");
out.println("<option>27</option>");
out.println("<option>28</option>");
out.println("<option>29</option>");
out.println("<option>30</option>");
out.println("<option>31</option>");
out.println("</select>");
out.println("<select name=jmth size=1 id-jmth>");
out.println("<option>January</option>");
out.println("<option>February</option>");
out.println("<option>March</option>");
out.println("<option>April</option>");
out.println("<option>May</option>");
out.println("<option>June</option>");
out.println("<option>July</option>");
out.println("<option>August</option>");
out.println("<option>September</option>");
out.println("<option>October</option>");
out.println("<option>November</option>");
out.println("<option>December</option>");
out.println("</select>");
out.println("<select name=jyear size=1 id=jyear");
out.println("<option>2004</option>");
out.println("<option>2005</option>");
out.println("<option>2006</option>");
out.println("<option>2007</option>");
out.println("<option>2008</option>");
out.println("<option>2009</option>");
out.println("<option>2010</option>");
out.println("<option>2011</option>");
out.println("<option>2012</option>");
out.println("<option>2013</option>");
out.println("<option>2014</option>");
out.println("</select></td></tr>");
out.println("<tr><th>Address</th>");
out.println("<td><textarea name=add id=add></textarea></td></tr>");
out.println("<tr><th>Date of Birth");
out.println("<td>");
out.println("<select name=bday size=1 id=bday>");
out.println("<option>1</option>");
out.println("<option>2</option>");
out.println("<option>3</option>");
out.println("<option>4</option>");
out.println("<option>5</option>");
out.println("<option>6</option>");
out.println("<option>7</option>");
out.println("<option>8</option>");
out.println("<option>9</option>");
out.println("<option>10</option>");
out.println("<option>11</option>");
out.println("<option>12</option>");
out.println("<option>13</option>");
out.println("<option>14</option>");
out.println("<option>15</option>");
out.println("<option>16</option>");
out.println("<option>17</option>");
out.println("<option>18</option>");
out.println("<option>19</option>");
out.println("<option>20</option>");
out.println("<option>21</option>");
out.println("<option>22</option>");
out.println("<option>23</option>");
out.println("<option>24</option>");
out.println("<option>25</option>");
out.println("<option>26</option>");
out.println("<option>27</option>");
out.println("<option>28</option>");
out.println("<option>29</option>");
out.println("<option>30</option>");
out.println("<option>31</option>");
out.println("</select>");
out.println("<select name=bmth size=1 id=bmth>");
out.println("<option>January</option>");
out.println("<option>February</option>");
out.println("<option>March</option>");
out.println("<option>April</option>");
out.println("<option>May</option>");
out.println("<option>June</option>");
out.println("<option>July</option>");
out.println("<option>August</option>");
out.println("<option>September</option>");
out.println("<option>October</option>");
out.println("<option>November</option>");
out.println("<option>December</option>");
out.println("</select>");
out.println("<select name=byear size=1 id=byear>");
out.println("<option>1946</option>");
out.println("<option>1947</option>");
out.println("<option>1948</option>");
out.println("<option>1949</option>");
out.println("<option>1950</option>");
out.println("<option>1951</option>");
out.println("<option>1952</option>");
out.println("<option>1953</option>");
out.println("<option>1954</option>");
out.println("<option>1955</option>");
out.println("<option>1956</option>");
out.println("<option>1957</option>");
out.println("<option>1958</option>");
out.println("<option>1959</option>");
out.println("<option>1960</option>");
out.println("<option>1961</option>");
out.println("<option>1962</option>");
out.println("<option>1963</option>");
out.println("<option>1964</option>");
out.println("<option>1965</option>");
out.println("<option>1966</option>");
out.println("<option>1967</option>");
out.println("<option>1968</option>");
out.println("<option>1969</option>");
out.println("<option>1970</option>");
out.println("<option>1980</option>");
out.println("<option>1981</option>");
out.println("<option>1982</option>");
out.println("<option>1983</option>");
out.println("<option>1984</option>");
out.println("<option>1985</option>");
out.println("<option>1986</option>");
out.println("<option>1989</option>");
out.println("<option>1990</option>");
out.println("</select></td></tr>");
out.println("<tr><th>Designation</th>");
out.println("<td><input name=designation type=text id=designation></td></tr>");
out.println("<tr><th>Driving License</th>");
out.println("<td>");
out.println("<select name=license size=1 multiple=multiple id=license>");
out.println("<option>Class 3</option>");
out.println("<option>Class 4</option>");
out.println("<option>Class 5</option>");
out.println("</select></td></tr>");
out.println("<tr><th>Mobile</th>");
out.println("<td><input name=mobile type=text id=mobile></td></tr>");
out.println("<tr><th>Home Tel</th>");
out.println("<td><input name=home type=text id=home></td></tr>");
out.println("<tr><th>E-mail Address</th>");
out.println("<td><input name=email type=text id=email</td></tr>");
out.println("</tr><th>Section</th>");
out.println("<td>");
out.println("<select name=section size=1 id=section>");
out.println("<option>Ramp</option>");
out.println("<option>Baggage</option>");
out.println("<option>Service Asisstants</option>");
out.println("<option>Flight Coordinators</option>");
out.println("</select></td>");
out.println("<th>Department</th>");
out.println("<td>");
out.println("<select name=dept size=1 id=dept>");
out.println("<option>PAX</option>");
out.println("<option>Ramp</option>");
out.println("<option>Cargo</option>");
out.println("</select></td>");
out.println("<th>Course</th>");
out.println("<td>");
out.println("<select name=course size=1 multiple=multiple id=course>");
out.println("<option>Ramp Safety</option>");
out.println("<option>Dangerous Goods</option>");
out.println("<option>Security Training</option>");
out.println("</select></td></tr>");
out.println("<tr><th>Date Trained</th>");
out.println("<td>");
out.println("<select name=tday size=1 id=tday>");
out.println("<option>1</option>");
out.println("<option>2</option>");
out.println("<option>3</option>");
out.println("<option>4</option>");
out.println("<option>5</option>");
out.println("<option>6</option>");
out.println("<option>7</option>");
out.println("<option>8</option>");
out.println("<option>9</option>");
out.println("<option>10</option>");
out.println("<option>11</option>");
out.println("<option>12</option>");
out.println("<option>13</option>");
out.println("<option>14</option>");
out.println("<option>15</option>");
out.println("<option>16</option>");
out.println("<option>17</option>");
out.println("<option>18</option>");
out.println("<option>19</option>");
out.println("<option>20</option>");
out.println("<option>21</option>");
out.println("<option>22</option>");
out.println("<option>23</option>");
out.println("<option>24</option>");
out.println("<option>25</option>");
out.println("<option>26</option>");
out.println("<option>27</option>");
out.println("<option>28</option>");
out.println("<option>29</option>");
out.println("<option>30</option>");
out.println("<option>31</option>");
out.println("</select>");
out.println("<select name=tmth size=1 id=tmth>");
out.println("<option>January</option>");
out.println("<option>February</option>");
out.println("<option>March</option>");
out.println("<option>April</option>");
out.println("<option>May</option>");
out.println("<option>June</option>");
out.println("<option>July</option>");
out.println("<option>August</option>");
out.println("<option>September</option>");
out.println("<option>October</option>");
out.println("<option>November</option>");
out.println("<option>December</option>");
out.println("</select>");
out.println("<select name=tyear size=1 id=tyear>");
out.println("<option>2005</option>");
out.println("<option>2006</option>");
out.println("<option>2007</option>");
out.println("<option>2008</option>");
out.println("<option>2009</option>");
out.println("<option>2010</option>");
out.println("<option>2011</option>");
out.println("<option>2012</option>");
out.println("<option>2013</option>");
out.println("<option>2014</option>");
out.println("<option>2015</option>");
out.println("</select></td></tr>");
out.println("<tr><th>Recurrent Date</th>");
out.println("<td>");
out.println("<select name=rday size=1 id=rday>");
out.println("<option>1</option>");
out.println("<option>2</option>");
out.println("<option>3</option>");
out.println("<option>4</option>");
out.println("<option>5</option>");
out.println("<option>6</option>");
out.println("<option>7</option>");
out.println("<option>8</option>");
out.println("<option>9</option>");
out.println("<option>10</option>");
out.println("<option>11</option>");
out.println("<option>12</option>");
out.println("<option>13</option>");
out.println("<option>14</option>");
out.println("<option>15</option>");
out.println("<option>16</option>");
out.println("<option>17</option>");
out.println("<option>18</option>");
out.println("<option>19</option>");
out.println("<option>20</option>");
out.println("<option>21</option>");
out.println("<option>22</option>");
out.println("<option>23</option>");
out.println("<option>24</option>");
out.println("<option>25</option>");
out.println("<option>26</option>");
out.println("<option>27</option>");
out.println("<option>28</option>");
out.println("<option>29</option>");
out.println("<option>30</option>");
out.println("<option>31</option>");
out.println("</select>");
out.println("<select name=rmth size=1 id=rmth>");
out.println("<option>January</option>");
out.println("<option>February</option>");
out.println("<option>March</option>");
out.println("<option>April</option>");
out.println("<option>May</option>");
out.println("<option>June</option>");
out.println("<option>July</option>");
out.println("<option>August</option>");
out.println("<option>September</option>");
out.println("<option>October</option>");
out.println("<option>November</option>");
out.println("<option>December</option>");
out.println("</select>");
out.println("<select name=ryear size=1 id=ryear>");
out.println("<option>2005</option>");
out.println("<option>2006</option>");
out.println("<option>2007</option>");
out.println("<option>2008</option>");
out.println("<option>2009</option>");
out.println("<option>2010</option>");
out.println("<option>2011</option>");
out.println("<option>2012</option>");
out.println("<option>2013</option>");
out.println("<option>2014</option>");
out.println("<option>2015</option>");
out.println("</select></td></tr>");
out.println("<tr><th>Proficiency</th>");
out.println("<td><input name=prof type=text id=prof</td></tr>");
out.println("</table>");
out.println("<p align=right>");
out.println("<input type=submit name=submit value=Submit>");
out.println("<input type=reset name=reset value=Reset>");
out.println("</p>");
String nam = request.getParameter("nam");
String ic = request.getParameter("IC");
String jday = request.getParameter("jday");
String jmth = request.getParameter("jmth");
String jyear = request.getParameter("jyear");
String mobile = request.getParameter("mobile");
String home = request.getParameter("home");
String add = request.getParameter("add");
String email = request.getParameter("email");
String day = request.getParameter("day");
String mth = request.getParameter("mth");
String year = request.getParameter("year");
String designation = request.getParameter("designation");
String dept = request.getParameter("dept");
String ID = request.getParameter("ID");
String license = request.getParameter("license");
String course = request.getParameter("course");
String tday = request.getParameter("tday");
String tmth = request.getParameter("tmth");
String tyear = request.getParameter("tyear");
String rday = request.getParameter("rday");
String rmth = request.getParameter("rmth");
String ryear = request.getParameter("ryear");
String prof = request.getParameter("prof");
String sect = request.getParameter("job");
String dob = ""+day+"-"+mth+"-"+year+"";
String train = ""+tday+"-"+tmth+"-"+tyear+"";
String date = ""+jday+"-"+jmth+"-"+jyear+"";
String recurrent = ""+rday+"-"+rmth+"-"+ryear+"";
String name = request.getParameter("name");
String change = "UPDATE Staff SET Name='"+nam+"',Mobile='"+mobile+"',Home='"+home+"',"
+"Address='"+add+"',E-mail='"+email+"',DOB='"+dob+"',Driving License='"+license+"',IC='"+ic+"',"
+"Staff ID='"+ID+"',Designation='"+designation+"',Department='"+dept+"',Course='"+course+"',"
+"Date Trained='"+train+"',Recurrent Date='"+recurrent+"',Proficiency='"+prof+"',"
+"Date Joined='"+date+"',Section'"+sect+"' WHERE Name='"+name+"'";//name taken from html page
results = statement.executeQuery(change);
catch(SQLException e)
System.out.println("Sorry! Unable to update data. Pls try again later.");
e.printStackTrace();
System.exit(1);
try
out.println("<br />");
out.println("</font></BODY>");
out.println("</HTML>");
out.flush();
link.close();
catch(SQLException e)
System.out.println("Sorry! Unable to execute query. Pls try again later.");
e.printStackTrace();
System.exit(1);
hi,
For Select Query there is Method executeQuery();
For insert, update, delete executeUpdate() is use
so try with executeUpdate()
and it will return how much row are updated. -
How to create an IDoc just with the updated data.
Hello I have a question regarding IDocs.
In case I updated an existing material.
Is there a transaction where I can put a matnr in, that reads the change pointer table and creates an IDOC with just the updated fields for an existing material.
Like the transaction BD21, for example. But there I just have the possibility to enter a message type and not a material number.
If there is no standard transaction. What steps do I have to do to achieve this goal?
Kind regards,
Tobiasthanks a lot for your fast answers. but I want to decide weather I want to create a idoc that includes all data for a material (using transaction bd10) or create an idoc that includes just the updated data.
The program logic should be the following:
Select all materials in the change pointer table (that have been changed or new created).
Check what value has been changed.
If it is value YSAPSYSTEMXX (extension of mara) then create a idoc with all data for the material.
If not YSAPSYSTEMXX has been changed create an idoc that includes just the updated data.
For Idocs that include all material data I would use sap standard transaction BD10 and batch-input.
For Idoc that should only include the changed/updated data I am searching for a corresponding transaction .
Kind regards,
Tobias -
Using CRUD procedures to update data and ref cursors to return data
Hi:
I am currently evaluating Apex 3.x to replace an existing app that uses lots of procedures to update and return data.
1. Is it possible to return data from a function that returns a cursor (or from a procedure that has an input/output ref cursor parameter for that matter) ? Example: Let's say I have the following function in a package:
function get_data return sys_refcursor
is
l_cursor sys_refcursor;
begin
open l_cursor for select sysdate as field from sys.dual;
return l_cursor;
end;
Can I add a page with a table that is populated based on this function? Based on my research it is not possible, but I want an APEX expert to confirm it
2. The old application uses CRUD procedures to update date, that is for each table there are 3 procedures, insert update and delete. Question: is it possible to channel all the update, inserts and deletes through these procedures? Furthermore, in lots of cases I use sequences to populate the primary keys, and the new value is returned as output parameter. Can I retrieve the output value and use it maybe in the next page I am branching to?
In the samples that I've seen the same form is used for insert and update. How do I distinguish between the two modes?
3. Can you please point me to some samples that show how to do 1 & 2. The standard samples that I've seen use the automatic row processing.
4. Could you please recommend some good books about Apex or HTML db? I found the documentation unintuitive. It is hard to picture quickly how things tie together by reading this documention. I wish the documentation was more task oriented and presented 'how to...' implement generic patterns used in web apps.
Thank you in advanceHi guys
Check out the last 2 posts in this thread for ideas on how to implement 1.
Report on user data from LDAP
Varad -
I want to update date field in oracle table using database adaptor
Hi Guys,
I want to update date in oracle table field which is 'DATE' type , but i am getting following error.
Pure SQL Exception.
Pure SQL Execute of update crp3apps.IFACE_SO_DATE_CHANGES set PROCESSED_DATE=? where CTRL_ID=? failed. Caused by java.sql.SQLException: ORA-01830: date format picture ends before converting entire input string
The Pure SQL option is for border use cases only and provides simple yet minimal functionality. Possibly try the "Perform an operation on a table" option instead.
</summary>
</part>
- <part name="detail">
<detail>
ORA-01830: date format picture ends before converting entire input string
</detail>
i am formated the date using following code and assigned to one variable.
ora:formatDate(ora:getCurrentDateTime(),'dd-MMM-yyyy hh:mm:ss ')
this is update query
update crp3apps.IFACE_SO_DATE_CHANGES set PROCESSED_DATE=#date where CTRL_ID=#id
Please provide solution.
regards
janardhanThe thing is that XSLT often doesn't deliver the functionality required when it comes to times.
You suggest appening "Z" to the time but this means that the time is now in UTC time. What if the system from where the date is being converted is running in NZ using local time? Other systems that recieve the date (and correctly handle the time zone) will now have a time that is out by a number of hours.
You often can't ignore the time zone (drop the 'Z') as if you send the time to a system it has to either assume the time is local to it (which may not be the case... the other system coudl be in a different time zone) or assume the time is UTC (I think crossfire does this by default).
Typically can't just append a time zone (e.g. +11:00) either as many places have daylight savings so the value to appended is variable (you then need some way of determining what the value is... either Java Embedding or a Service).
As you mention it does depend on the use case but in many circumstances using Jaba Embedding, not as suggested above but with the appropriate Java.util.Calendar classes, is the best way to handle date and time in BPEL. Even still you need to ascertain the format of times external to the system and ensure you parse them correctly.
ANd even if you do all this you can still run into problems. I've seen a real world example where two systems which both handled time zones correctly and had previously been working together for quite a while, satrted reporting different times. It turns out that only one of them had had the most recent Java Time Zone patches applied and there had been a change in the dates for daylight savings here (Australia). Be warned! -
Best practice how to retrieve & update data w/o any jsf-lifecycle-overhead
I have a request scoped jsf managed bean called "ManagedBean". This bean has a method annotated with "@PostConstruct" that retrieves data from a database. The data is shown in a jsp "showAndEditData.jsp" in <h:inputText /> components - so the data is editable.
The workflow is as follows:
First, when navigating to "showAndEditData.jsp", the ManagedBean is created, the "@PostConstruct"-method is invoked, and the data retrieved from the database is shown to the user.
Second, the user changes the data.
Third, the user presses the submit button, the ManagedBean is created again, the "@PostConstruct"-method is invoked again, and the data is retrieved from the database again. Then the data is overridden by the changes the user made and passed to the business-tier (where it will be saved to the database).
Every step that i marked with "*again*" is completely unneccessary and a huge overhead.
Is there a way to prevent these unneccessary steps.
Or asking in other words: Is there a best practice how to retrieve and update data efficently and without any overhead using JSF?
I do not want to use session scoped managed beans, because this would be a huge overhead as well.The first "again" is neccessary, because after successfull validation, you need new object in request to store the submitted value.
I agree to the second and third, really unneccessary and does not make sense.
Additionally I think it�s bad practice putting data in session beansTotal agree, its a disadvantage of JSF that we often must use session.
Think there is also an bigger problem with this.
Dont know how your apps are working, my apps start an new database transaction per commit on every new request.
So in this case, if you do an second query on postback, which uses an different database transaction, it could get different data as for the inital request.
But user did his changes <b>accordingly</b> to values of the first snapshot during the inital request.
If these values would be queried again on postback, and they have been changed meanwhile, it becomes inconsistent, because values of snapshot two, do not fit to user input.
In my opionion zebhed has posted an major mistake in JSF.
Dont now, where to store the data, perhaps page scope could solve this.
Not very knowledge of that section, but still ask myself, if this data perhaps could be stored in the components and on an postback the data are rendered from components + submittedvalues instead of model. -
Facing a problem in rendering updated data
Hi All,
Am pretty new to JSF and I have a problem. Any help is much appreciated. Thanks.
I have a page called LicenseSearch.jsp which is tied to a LicenseSearch.java backing bean. The LicenseSearch.jsp has lot of input components which are populated by appropriate methods in the bean by fetching data from the database.
When the page is loaded initially things work fine and data is displayed properly. When I navigate to another page and change some data and come back to LicenseSearch.jsp, the updated data is not visible in the UI components.
Please help.Here is the code
<h:outputLabel for="companies" value="Companies" styleClass="formFieldLabel"/>
<h:selectManyListbox id="companies" value="#{backing_LicenseSearch.selectedCompanies}" size="5">
<f:selectItems value="#{backing_LicenseSearch.companies}"/>
</h:selectManyListbox>
<h:message for="companies" styleClass="error"/>
public List getCompanies() throws IOException
try
logger.info("getCompanies called");
this.companyMenuItems = createMenuItems(EntityFactory.getInstance().getAll("Company"));
catch (Exception e)
logger.error("Exception in License Search", e);
ErrorPage.getInstance().addError(new ErrorMessage("License Search Failed: " + e.getMessage(), e));
FacesContext.getCurrentInstance().getExternalContext().redirect("Error.jsp");
return this.companyMenuItems;
<managed-bean>
<managed-bean-name>backing_LicenseSearch</managed-bean-name>
<managed-bean-class>com.entuity.view.backing.LicenseSearch</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean> -
Camera Raw updates Date Taken in JPG Files
Hi,
I have CS6/CR 7.2. I have had this issue where my file dates became changed (8000 odd files) so I had to restore 23000 files from backup .
When investigating trying to find out what happened. when I open a JPG from Windows Explorer, photoshop is set to use Camera Raw for jpg files on open (ok). If I cancel the dialog, nothing happens (ok). If I click Done or Open Image, the file itself has the "Date Taken" time updated - 7 hours ahead of the original correct time.
This pretty much matches the date issue I have on the 8000 files. Is this expected behaviour? Why would Camera Raw update Date Taken and did it choose 8 hours because I am in the PST timezone (GMT-8 or currently GMT-7 with daylight savings)?
I have reproduced this on 4 or file random files - taking copies and comparing afterwards.
Thanks!
Mark.Camera Raw writes your JPEG files back out with updated metadata no matter what settings you choose, because Adobe feels they understand the format of metadata in the files well enough to be confident they will not corrupt the files.
I've asked them for years to avoid doing that, to no avail. I don't want my original files re-written. It sounds as though you are of a like mind.
It is for this reason that I *never* open a JPEG file through Camera Raw.
It's possible there is a time zone problem or something, but that's not the point. What, specifically, is corrupted is less important than Adobe believing it's okay to write back to your JPEG files. That you have actually seen something corrupted is testament to it not being unfounded paranoia.
Generally I'm supportive of Adobe's design decisions, but absolutely not on this issue. All I ask is that Adobe honor the "keep settings in the central database" preference choice for ALL input files, not just those for which they would otherwise write an XMP file. I don't think it's too much to ask.
By the way, you might want to visit the Camera Raw-specific forum and make note of your issue there:
http://forums.adobe.com/community/cameraraw
-Noel
Maybe you are looking for
-
HowTo Install Oracle8i (8.1.7) on RedHat 7.0
Hello all, Im trying to install Oracle 8i (8.1.7) on RedHat 7.0, after change the header file in linux system (/usr/src/linux/include/linux/sem.h and /usr/src/linux/include/asm/shmparam.h). i compile the kernel. I start for the very first time instal
-
Synchronous scenario - File - RFC
Hi, We are doing a file to RFc to File scenario. Since the receiver File name has to be populated at run time i am using a UDF in message mapping. The code in UDF is below : try{ String FILENAME = " "; DynamicConfiguration conf = (DynamicConfigurat
-
Metadata View User Presets NOT Plugin Author Tagsets
Sorry, but I really don't like how the metadata viewing options work. Metadata viewing presets should be definable by users, instead of the plugin author defining tagsets. In my opinion, plugin authors should be able to give structure to their meta
-
Clearing configuration FIFO on PCI-6013
I am writing a driver for a PCI-6013 for a legacy DOS based system. Everything I need is working except that I cannot clear the configuration FIFO so I can change the channel setup during use. According to the E-Series RLPM writing a 1 to the Write_S
-
i have submitted for review an in app purchase product. However, it got rejected without any notification and under the languages section, there is a label 'rejected'. I have absolutely no idea why it got rejected and do not know how to move on from