How to populate a hidden form field with a value passed from another page
I'm using PHP/MySQL and DW CS4.
I am trying to obtain the external key for a table, and include it as a hidden field in a form for a second table.
The user selects a "need" from a list and is taken to a new page which displays the need selected in the prior page and a form the user can fill out with details of his offer, there should also be a hidden field in this form that contains the index to the needs table, this hidden field holds the external key. Most of the code is working, except for populating the hidden field with the external key. I have proven(by printing it to the screen) that I have obtained the external key and stored it in a variable ($saveNeedId) . What I'm unable to do is assign this variable to the hidden field in the form I'm about to store in a table. Sometimes I get zero and sometimes I get the index to the first need in the table. This ought to be simple but I can't get it to work, I must be missing something obvious - still very new to PHP.
Here's the code that sets up the variable and prints it to the screen for test purposes
$saveNeedId = "-1";
if (isset($_GET['needId'])) {
$saveNeedId = $_GET['needId'];
print $saveNeedId;
Here's the code that sets up the hidden fields in the form, the one I'm trying to set up is the first one, needId
<input type="hidden" name="needId" value="<?php echo $row_rsNeedsUnmet['needId']; ?>" />
<input type="hidden" name="offerId" value="" />
<input type="hidden" name="MM_insert" value="form1" />
The page where the user sees the list of needs is here www.hollisterairshow.com/weneed.php
I'd really appreciate sone help with this, I've tried all combinations of double quotes, percent signs and nothing works...sigh.
Tony
Here's the code that sets up the variable and prints it to the screen for test purposes
$saveNeedId = "-1";
if (isset($_GET['needId'])) {
$saveNeedId = $_GET['needId'];
print $saveNeedId;
Here's the code that sets up the hidden fields in the form, the one I'm trying to set up is the first one, needId
<input type="hidden" name="needId" value="<?php echo $row_rsNeedsUnmet['needId']; ?>" />
<input type="hidden" name="offerId" value="" />
<input type="hidden" name="MM_insert" value="form1" />
<input type="hidden" name="needId" value="<?php echo $_GET['needId']; ?>" />
I looked at your page. It looks like you figured it out.
Similar Messages
-
Creating a Tabular Form based on Input Parameters passed from another page?
Hello,
APEX version 3.2
DB version 9.2
Internet Explorer 6
I created a tabular form, but do not want to return all the records from the table.
Is it possible to create a parameter page for the user to enter a string of values that will be submitted to create a tabular form, only displaying those records from the table?
Thanks.Why not use an instr with your data in a bind variable in your where clause for the select?? Page 1 sets an item called P2_Parameter with your value string slightly modified ('12345','345632','645534534','3434344')
Select a,b,c,d,e from some_table where INSTR(TO_CHAR(Lookup_column,'099999999'),:P2_Parameter)
Maybe that will work? Its off the top of my head, but should get you what you want.. (But to agree with one of the other posters, it is a BAD Design..) I would try like an interactive report to allow them to enter in acct #'s or whatever these are and let them access the rows that way..
Thank you,
Tony Miller
Webster, TX -
FormsCentral - design form : Initialize form field with default value
Hello,
My customer asks me to initialize text fields with default values. Example , Name , email , phone number etc to be displayed by default till it is overwritten by values entered. Could you please guide me how to achieve this ?
Many Thanks,
SreeHi,
see Re: sequencing problem-Forms
Regards Michael -
Target Spry RowID on page with Multiple data sets from another page
Hi all,
I am trying to target a specific data item, on a page with
multiple data sets, from a link on another page. (I also have to
pass the link through Flash, but lets start with the simple
part...)
You can take a look at the site in progress here:
http://www.3andband.com/TestSite/iframeTest3.html
From the Home page I want to link to specific news or concert
items on the News page
I have been trying to get SpryURLUtils to do it but I can't
seem to get it working.
Any help would be greatly appreciated.
Thanks!
Bendid u try if it even passes the row value?? with a simple
alert? alert(params.row)
Also maby u need to reorder the scripts to this;
<script src="../SpryAssets/SpryURLUtils.js"
type="text/javascript"></script>
<script src="../SpryAssets/xpath.js"
type="text/javascript"></script>
<script src="../SpryAssets/SpryData.js"
type="text/javascript"></script>
<script src="../SpryAssets/SpryCollapsiblePanel.js"
type="text/javascript"></script>
<script src="../SpryAssets/SpryEffects.js"
type="text/javascript"></script>
<script src="../SpryAssets/SpryAccordion.js"
type="text/javascript"></script>
and your js script
var params = Spry.Utils.getLocationParamsAsObject();
var dsConcerts = new
Spry.Data.XMLDataSet("includes/concerts.xml", "Concerts/concert");
dsConcerts.setColumnType("image", "image");
var dsNews = new Spry.Data.XMLDataSet("includes/news.xml",
"News/item");
//Set an observer so that when the data is loaded, we update
the current row to the url param value
dsNews.addObserver({ onPostLoad: function(ds, type) {
dsNews.setCurrentRow(params.row); }
function MM_effectBlind(targetElement, duration, from, to,
toggle)
Spry.Effect.DoBlind(targetElement, {duration: duration,
from: from, to: to, toggle: toggle});
So url params get loaded before the data -
How to populate dynamic internal table fields with data??
Hi Folks,
How to assign a particular internal table field to a dynamically assigned internal table?
I have an excel sheet, and i upload the excel sheet data into an internal IT_EXLOAD table using FM ALSM_EXCEL_TO_INTERNAL_TABLE
Now i created a dynamic internal table which has the same column as in my DB table.
I have to fill the dynamically created Internal table with the IT_EXLOAD data dynamically.
Suppose in future if i add some field in DB table and for that field if i add some column in excel sheet there is no need to change in the program.
Looking for reply...
Best Regards,
Sayakhi,
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
filename = p_path
i_begin_col = '1'
i_begin_row = '2'
i_end_col = '2'
i_end_row = '1000'
TABLES
intern = intern
EXCEPTIONS
inconsistent_parameters = 1
upload_ole = 2
OTHERS = 3.
*declare intern_tmp as internal table tb_data in wich you want the data
*and declare a field symbol <fs_123>
LOOP AT intern.
ASSIGN COMPONENT intern-col OF STRUCTURE
intern_tmp TO <fs_123>.
IF NOT <fs_123> IS ASSIGNED.
CLEAR intern.
CLEAR intern_tmp.
CONTINUE.
ENDIF.
<fs_123> = intern-value.
AT END OF row.
CLEAR tb_data.
MOVE-CORRESPONDING: intern_tmp TO tb_data.
APPEND tb_data.
CLEAR intern_tmp.
ENDAT.
CLEAR intern.
ENDLOOP.
**paste this code and you can see the data in ur tables dynamically.
Thanks
Nitin Sachdeva -
Selection Screen - How to populate more than 1 field with help input
Hello all,
I have a selection screen in which 4 fields are defined.
Help input is available for the first field. On selecting the entry in the popup, I would like the 4 fields to be populated with the corresponding values.
Try transaction CV01 for a sample of what I want:
Selecting from the popup will populate all 4 fields.
Thanks in advance,
Alain Cyr.Please see the following program, it should show you exactly what you need to do.
report zrich_0002 .
parameters: p_bukrs type t001-bukrs,
p_butxt type t001-butxt,
p_ort01 type t001-ort01,
p_land1 type t001-land1.
data: dynfields type table of dynpread with header line.
data: return type table of ddshretval with header line.
at selection-screen on value-request for p_bukrs.
call function 'F4IF_FIELD_VALUE_REQUEST'
exporting
tabname = 'T001'
fieldname = 'BUKRS'
dynpprog = sy-cprog
dynpnr = sy-dynnr
dynprofield = 'P_BUKRS'
tables
return_tab = return
exceptions
field_not_found = 1
no_help_for_field = 2
inconsistent_help = 3
no_values_found = 4
others = 5.
read table return with key fieldname = 'P_BUKRS'.
* Add it back to the dynpro.
dynfields-fieldname = return-retfield.
dynfields-fieldvalue = return-fieldval.
append dynfields.
* Get the company code from db and add to dynpro
data: xt001 type t001.
clear xt001.
select single * into xt001
from t001
where bukrs = return-fieldval.
dynfields-fieldname = 'P_BUTXT'.
dynfields-fieldvalue = xt001-butxt.
append dynfields.
dynfields-fieldname = 'P_ORT01'.
dynfields-fieldvalue = xt001-ort01.
append dynfields.
dynfields-fieldname = 'P_LAND1'.
dynfields-fieldvalue = xt001-land1.
append dynfields.
* Update the dynpro values.
call function 'DYNP_VALUES_UPDATE'
exporting
dyname = sy-cprog
dynumb = sy-dynnr
tables
dynpfields = dynfields
exceptions
others = 8.
start-of-selection.
Welcome to SDN! Please remember to award points for helpful answers and mark you post as solved when solved completely. Thanks.
Regards,
Rich Heilman -
Infopath: How to load data in one field based on value selected in another field
We have a drop down list field in the infopath form and we have some more fields that should change depending on the dropdown selection.
How can we achieve this please ?
Thank you !Hi Prajk, sounds like you want to do cascading dropdowns. If so, see the link below. If you're just trying to enter information into a field (not a dropdown) based off the value of the dropdown, then set a rule so that if dropdown = "this," set
the field's value to "this."
http://blogs.msdn.com/b/bharatgupta/archive/2013/03/07/create-cascading-dropdown-in-browser-enabled-infopath-form-using-infopath-2010.aspx
cameron rautmann -
How to populate a sharepoint 2010 from the active directory.
I want a list of all the computers in the active directory,
another one with all users.
I want also to populate a sharepoint 2010 list from the sharepoint user profiles.
Thanks
szWhile
the contacts list is usually filled out for contacts that are outside the company, there are times when you would use a contacts list to store internal and external resources. Wouldn’t it be nice if you didn’t have to re-type your internal contacts’
information that are already in the system? Now you can with a little InfoPath customization on the contacts list.
Here’s our plan:
Create the contacts list, and open in InfoPath
Create a data connection to the User Profile web service
Customize the form adding some text, a people picker and a button
Create InfoPath rules that will populate the contact fields from the user fields in the User Profile store
Let’s get going! Before we begin, make sure you have InfoPath 2010 installed locally on your computer. I also want to give credit Laura
Rogers and Darvish Shadravan’s book Using
Microsoft InfoPath 2010 with Microsoft SharePoint 2010 Step by Step. I know it looks like a lot of steps, but it’s easy once you get the hang of it.
So obviously we need a contacts list. If you don’t already have one, go to the SharePoint site where it will live, and create a contacts list.
From the list, click the List tab on the ribbon, then click Customize form:
So now we have our form open in InfoPath 2010. Let’s add our elements to the form.
Above all the fields, let’s add some text instructing users what to do with the the field we’re about to add (.e.g To enter an existing user’s information, choose the user below).
Insert a people picker control by clicking the Person/Group Picker control in the Controls section of the ribbon. This will add a column to the contacts list called group.
Below the people picker, insert a button control from the same section of the ribbon as above. With the button still highlighted, click the Control Tools|Properties tab on the ribbon.
Then in the Label box, change the text to something more appropriate to our task (e.g. Click here to load user data!).
You can drag the button control a little larger to account for the text.
We should end up with something like this:
Before we can populate the fields with user data, we need to create a connection to the User Profile Service.
Add a data connection to the User Profile Service
Click the Data tab on the ribbon, and click the option From Web Service, and From SOAP Web Service.
For the location, enter the URL of your SharePoint site in the following format – http://<site url>/_vti_bin/UserProfileService.asmx?WSDL. Click Next.
Note - for the URL, it can be any SharePoint site URL, not just to the site where your list is.
For the operation, choose GetUserProfileByName. Click Next.
Click Next on the next two screens.
On the final screen, uncheck the box for “Automatically retrieve data when form is opened”. This is because we are going to retrieve the data when the button is clicked, also for performance reasons.
Now we need to wire up the actions on our button to populate the fields with the information for the user in the people picker control.
Tell the form to read the user from the people picker control
Click the Home tab on the ribbon.
Click the button control we created, and under the Rules section of the ribbon, click Manage Rules. Notice the pane appear on the far right.
In the Rules pane, click New –> Action. Change the name to something like “Query and load user data”.
Leave the condition to default (none – rule runs when button is clicked).
Click the Add button next to “Run these actions:”, and choose “Set a field’s value”.
For Field, click the button on the right to load the select a field dialog. Click the Show advanced view on the bottom. At the top, click the drop down and choose the GetUserProfileByName
(Secondary) option. Expand myFields and queryFields to the last option and highlightAccountName. Click ok.
For Value, click the formula icon. On the formula screen, click the Insert Field or Group button. Again click the show advanced view link, but this time leave the data
connection as Main. Expand dataFields, then mySharePointListItem_RW. At the bottom you should see a folder called group (the people picker control we just added to the form). Expand this, then pc:Person,
and highlightAccountId. Click Ok twice to get back to the Rules pane.
If we didn’t do this and just queried the user profile service, it would load the data of the currently logged in user. So we need to tell the form what user to load the data for. We take the AccountID field from the people
picker control and inject into the AccountName query field of the User Profile Service data connection.
Load the user profile service information for the chosen user
Click the Add button next to “Run these actions:”, and choose Query for data.
In the popup, for Data connection, click the one we created earlier – GetUserProfileByName and clickOk.
We’re closing in on our goal. Let’s see our progress. We should see something like this:
Now that we have the user’s data read into the form, we can populate the fields in the contact form. The number of steps to complete will depend on how many fields you want to populate. We need to add an action step for
each field. I’ll show you one example and then you will just repeat the steps for the other fields. Let’s update the Job Title field.
Populate the contact form fields with existing user’s data
Click the Add button next to “Run these actions:”, and choose “Set a field’s value”.
For Field, click the button on the right to load the select a field dialog. Highlight the field Job Title.
For Value, click the formula icon. On the formula screen, click the Insert Field or Group button. Click the Show advanced view on the bottom. At the top, click the
drop down and choose theGetUserProfileByName (Secondary) option. Expand the fields all the way down until you see the Value field. Highlight it but don’t click ok, but click the Filter
Data button, then Add.
For the first dropdown that says Value, choose Select a field or group. The value field will be highlighted, but click the field Name field
under PropertyData. Click Ok.
In the blank field after “is equal to”, click in the box and choose Type text. Then type the text Title.
Click ok until you get back to the Manage Rules pane. The last previous screen will look like this.
We’re going to update common fields that are in the user’s profile, and likely from Active Directory. You can update fields like first and last name, company, mobile and work phone number, etc. For the other fields, the
steps are the same except the Field you choose to update from the form, and the very last step where you enter the text will change. Here’s what the rules look like when we’re done:
We’re all done, good work! You can preview the form and try it now. Click Ctrl+Shift+B to preview the form. Once you’re satisfied, you can publish the form back to the library. Click File –> Quick
Publish. Once it’s done, you will get confirmation:
Now open your form in SharePoint. From the contact list, click Add new item. Type in a name, and click the button and watch the magic happen! -
How to Map Proces form field with Resource form field?
Hi,
How to Map Proces form field with Resource form field while creating Process form in Form designerAre you talking about Provisioning ?
then you do that in Data Flow under Process Defintion in OIM 10g
In OIM 11g you use Request Dataset. In that you can directly map fields to process form. -
How Do I Display A Hidden Form Field On Executing A Button (Yes Again But In More Depth)
Hi,
Yes, I just asked this question but was not specific enough. Ive looking for code within a JavaScript that will enable a hidden form field within a PDF to be displayed.
What I am attempting to do is to display form field 'Text1" when the button is pushed executing a check of the system date. Im looking for the code to execute the following:
If the system date is equal to or greater then '2009/02/01' (yyyy,mm,dd), then display 'Text1'.
I'm using Adobe pro 8.
Thank You for any help.You could so something like the following in the Mouse Up event of the button:
// Get system date
var Now = new Date();
// Get cutoff date
var End = util.scand("yyyy/mm/dd", "2009/02/01");
// Set the visibilty of field Text1 based on the date
getField("Text1").display = (Now > End) ? display.visible : display.hidden;
George -
How to populate an item first time with a computation ?
Hi
I have a form based on a table. When a new record is created, I want to populate an item with a value retrieved from a sql query. This is why I made an item (named P26_EMAIL) computation based on a nice sql query.
select email from acl_employees
where upper(userid) = upper(:APP_USER)This computation is fired only when a new record is created.
The P26_EMAIL (text field) item source type is DATABASE COLUMN and source used is "Always, replacing any existing value in session state".
Which means that my nice computation value is "erased" by the item when it is computed by APEX.
I am trying to see how to make my item computed on creation of the record, and rest of the time value derived form databse, and cannot get to this result.
Do you have an idea on how to do this ? (without using a trigger)
Thank you very much for your input.
ChristianHi Mani,
What modules do you have? What kinds of signals are you measuring?
Have you deployed your shared variable library on your host PC?
Regards,
Jeremy_B
Applications Engineer
National Instruments -
How to make a list item field with DATE data type?
I have a column with DATE data type. Using forms 6i I want to generate a poplist list item field with this column while the value of the elements in the list to will be day names like SATURDAY,SUNDAY,MONDAY. if we change the data type from date to char, it will work properly but now with DATE data type behind it, it gives the following error message
"FRM-32082: Invalid value for given item type.
List WEEKREST
Item: WEEKREST
Block: EMPRESTS
Form: MODULE3
FRM-30085: Unable to adjust form for output."
Using forms 6i how to make a list item field with DATE data type which can hold day names?Set your date column as a hidden (non-displayed) field. Create your list item with the varchar2 day names. Create the list item as a non-base-table field that accepts the text values of day names. On that field, create a when-validate-item trigger that translates the text into a real date, which it then uses to set the value of the actual base-table item.
-
Getting two session varibles into one hidden form field
In a hypothetical exaple, if my first session variable is kt_user_name and it's value is bestperson, and my second variable session is kt_exerreference and it's value is ex1a, I'd like have the value submitted in the hidden form field to be bestpersonex1a (without any spaces if possible). This is the code that I have for the hidden form field that submits the server variables:
<br />
<br />
<form>
<input type="hidden" name="exerreference" id="exerreference" value="<?php echo $_SESSION['kt_user_name'].$_SESSION['kt_login_user']; ?>" />
<br />
<br />But the form also has a php section above the head that seems to add the values to the databse. Here is the beginning of the code with the the first 4 values:
<br />
<br />// Add columns
<br />$ins_exer1->setTable("exer1");
<br />$ins_exer1->addColumn("user_name", "STRING_TYPE", "SESSION", "kt_user_name"."kt_login_user");
<br />$ins_exer1->addColumn("exerreference", "STRING_TYPE", "SESSION", "kt_user_name");
<br />$ins_exer1->addColumn("Shapes_present_with_target", "STRING_TYPE", "POST", "Shapes_present_with_target");
<br />
<br />My question is how do I also configure the code in the 2nd string of this "Add Columns" code to insert both server variables? When I put one server variable as the value in this code (0n line 2), it only inserted the one session varialbe value (not 2 as are in the form field). As you can see, I currently have "kt_user_name"."kt_login_user" which is givig me server errors.
<br />
<br />Here's another idea that didn't work yet:
<br />
<br />// Add columns
<br />$user = $_SESSION['kt_user_name'].$_SESSION['kt_login_user'];
<br />$ins_exer1->setTable("exer1");
<br />$ins_exer1->addColumn("user_name", "STRING_TYPE", "SESSION", "$user");
<br />$ins_exer1->addColumn("exerreference", "STRING_TYPE", "SESSION", "kt_user_name");
<br />$ins_exer1->addColumn("Shapes_present_with_target", "STRING_TYPE", "POST", "Shapes_present_with_target");
<br />
<br />Any ideas on the correct syntax?
<br />
<br />Thanks for any help.</form>Günter,
<br />
<br />I think I did as you suggested. I put this as the form field:
<br />
<br />
<form>
<input type="hidden" name="exerreference" id="exerreference" value="<?php echo $_SESSION['kt_user_name']; ?><?php echo $_SESSION['kt_login_user']; ?> <br />" />
<br />
<br />and changed back the Add columns section to this:
<br />
<br />// Add columns
<br />$ins_exer1->setTable("exer1");
<br />$ins_exer1->addColumn("user_name", "STRING_TYPE", "SESSION", "kt_user_name");
<br />$ins_exer1->addColumn("exerreference", "STRING_TYPE", "SESSION", "kt_user_name");
<br />
<br />The form does submit now, but only the kt_user_name server varible is showing up in the exerreference field of the databaswe, not also the kt_login_user server variable.
<br />
<br />Any ideas on what to do to get it working right? Do I need to modify the exerreference string in the Add columns section?
<br />
<br />Thanks - Dale</form> -
i paid for exportpdf and every time i try to use tool on pdf, it asks me to subscribe. i have to log into website EVERY time. not acceptable. Some forms can't be saved so having to log in and only use webtool to upload a saved pdf won't work.
as well, how can i export only form fields that were filled in if I can get pdf to save to computer?Hi kstine,
I can see why that would be frustrating! Have you tried selecting Stayed Signed In underneath the Adobe ID and Password boxes when you try to log in?
What did you use to create the PDF form? If you used FormsCentral, form data is saved to your online FormsCentral account. If you have Acrobat, you can export form data as described here: Adobe Acrobat X Pro * Manage form data files
Best,
Sara -
How to create Using Formatted Text Field with multiple Sliders?
Hi i found the Java Sun tutorial at http://java.sun.com/docs/books/tutorial/uiswing/components/slider.html very useful, and it tells how to create one Formatted Text Field with a Slider - however i need to create Formatted Text Field for multiple Sliders in one GUI, how do i do this?
my code now is as follows, and the way it is now is scroll first slider is okay but scrolling second slider also changes value of text field of first slider! homework due tomorrow, please kindly help!
// constructor
label1 = new JLabel( "Individuals" );
scroller1 = new JSlider( SwingConstants.HORIZONTAL, 0, 100, 10 );
scroller1.setMajorTickSpacing( 10 );
scroller1.setMinorTickSpacing( 1 );
scroller1.setPaintTicks( true );
scroller1.setPaintLabels( true );
scroller1.addChangeListener(this);
java.text.NumberFormat numberFormat = java.text.NumberFormat.getIntegerInstance();
NumberFormatter formatter = new NumberFormatter(numberFormat);
formatter.setMinimum(new Integer(0));
formatter.setMaximum(new Integer(100));
textField1 = new JFormattedTextField(formatter);
textField1.setValue(new Integer(10)); //FPS_INIT
textField1.setColumns(1); //get some space
textField1.addPropertyChangeListener(this);
//React when the user presses Enter.
textField1.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "check");
textField1.getActionMap().put("check", new AbstractAction() {
public void actionPerformed(ActionEvent e) {
if (!textField1.isEditValid()) { //The text is invalid.
Toolkit.getDefaultToolkit().beep();
textField1.selectAll();
} else try { //The text is valid,
textField1.commitEdit(); //so use it.
} catch (java.text.ParseException exc) { }
label2 = new JLabel( "Precision" );
scroller2 = new JSlider( SwingConstants.HORIZONTAL, 0, 100, 8 );
scroller2.setMajorTickSpacing( 10 );
scroller2.setMinorTickSpacing( 1 );
scroller2.setPaintTicks( true );
scroller2.setPaintLabels( true );
scroller2.addChangeListener(this);
textField2 = new JFormattedTextField(formatter);
textField2.setValue(new Integer(10)); //FPS_INIT
textField2.setColumns(1); //get some space
textField2.addPropertyChangeListener(this);
//React when the user presses Enter.
textField2.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "check");
textField2.getActionMap().put("check", new AbstractAction() {
public void actionPerformed(ActionEvent e) {
if (!textField2.isEditValid()) { //The text is invalid.
Toolkit.getDefaultToolkit().beep();
textField2.selectAll();
} else try { //The text is valid,
textField2.commitEdit(); //so use it.
} catch (java.text.ParseException exc) { }
// State Changed
public void stateChanged(ChangeEvent e) {
JSlider source = (JSlider)e.getSource();
int fps = (int)source.getValue();
if (!source.getValueIsAdjusting()) { //done adjusting
if(source==scroller1) {
System.out.println("source ==scoller1\n");
textField1.setValue(new Integer(fps)); //update ftf value
else if(source==scroller2) {
System.out.println("source ==scoller2\n");
textField2.setValue(new Integer(fps)); //update ftf value
} else { //value is adjusting; just set the text
if(source==scroller1) textField1.setText(String.valueOf(fps));
else if(source==scroller2) textField2.setText(String.valueOf(fps));
// Property Change
public void propertyChange(PropertyChangeEvent e) {
if ("value".equals(e.getPropertyName())) {
Number value = (Number)e.getNewValue();
if (scroller1 != null && value != null) {
scroller1.setValue(value.intValue());
else if (scroller2 != null && value != null) {
scroller2.setValue(value.intValue());
// ACTION PERFORMED
public void actionPerformed(ActionEvent event) {
if (!textField1.isEditValid()) { //The text is invalid.
Toolkit.getDefaultToolkit().beep();
textField1.selectAll();
} else try { //The text is valid,
textField1.commitEdit(); //so use it.
} catch (java.text.ParseException exc) { }
if (!textField2.isEditValid()) { //The text is invalid.
Toolkit.getDefaultToolkit().beep();
textField2.selectAll();
} else try { //The text is valid,
textField2.commitEdit(); //so use it.
} catch (java.text.ParseException exc) { }
...if :p3_note_id is null
then
insert into notes (project_id, note, notes_month, notes_year) So, p3_note_id is NULL.
Another option is that you have a trigger on table NOTES that generates a new note_id even for an update.
Maybe you are looking for
-
İ couldnt purchase and buy gems in store
İ have a problem with my itunes accounts.when i want to buy in-app features i got an error that; "Please comtact with itunnes support for completing this process" İ checked my device settings and tried my account with another ios device but result no
-
Impossible to recharge my iPhone since new IOS 4.3
I've started to receive push telling me that "this accessories wont be able to charge the iphone" but I had the phone in my hand and it wasn't plugged to any cable or device. Even when I've plugged it in the wall outlet with the apple cable, I was re
-
Upgrading from 9.2 to 10.2
I have a Powerbook G3 Wallstreet (256MB RAM, 10GB HDD) with OS 9.2.2 preinstalled but I don't have the disks. I plan to upgrade to Jaguar 10.2 and understand that I will have to reformat the hard drive to create a <8GB partition. However, while resea
-
Question regd. ALE distribution
Hi Experts, My client has a requirement for outbound HR interface. The interface basically transfers IDocs from R/3 to XI and from XI to an ftp location A. But the client also want an option to simulate the interface. For the simulation run of the in
-
Anyone using Delphi and COM SDK?
I'm using Delphi connecting to iTunes. I use the "iTunesApp:=CoiTunesApp.Create;" to connect which works nicely. Interested in exchanging methods.