Insert time as numeric value within field
How would I have the form automatically insert the time for example into a text field. I ultimately am trying to create a unique order number value that will (don't have to be sequential or anything) and thought maybe I could format the time of submission.
Any help would be greatly appreciated!
Thanks,.
D
The time would not be included in the form itself (if you saved a PDF of the response that data would not be included) but you are able to download the responses as an Excel spreadsheet which does include the time submitted.
I am not sure if this would be helpful, but you can set it up so you recieve email notifications which can include the form data, in the email notification there is a line for "Total Responses:", which if you do not delete existing responses should give you a unique # per submission if you printed out those notifications.
Thanks,
Josh
Similar Messages
-
Automatic calculation of numeric value enter in Survey
while creating Survey in Survey Suit we enetr numeric value in field .
my requirement is that can we do automatic calculation of these numeric
values in Survey its self
Regards,
Anup Reche
9268133864Hi Anup,
Check if the following links help you:
/people/gregor.wolf3/blog/2006/07/22/create-run-and-analyze-an-e-mail-campaign-with-a-survey-part-1
/people/gregor.wolf3/blog/2006/05/11/advanced-campaign-automation-in-mysap-crm-40-teaser
http://help.sap.com/saphelp_nw04/helpdata/en/02/739fe7a80746caa668958d558993ae/frameset.htm
Hope this helps!
Regards,
Saumya -
Make field read only untill value within pciklist is choosen
Hello,
I am trying to establish if it is possible to make a field read-only until a value within a pick list is chosen. Basically we have a pick list called structure and if the field value called "Aligned" is selected then I want the text field called Aligned Name to be available for import all other times this field should not be available.
Has anyone done anything similar? I'm guessing that this could only be achieved through WF but I haven't been able to find any code to make fields read only.For those of you unable to download the document from MetaLink3 here it is:
As an example to illustrate this requirement, let’s say that once there is a checkbox field called "My_Check_Box". When this field is checked, the "Account Type" field need to become a required for entry by the user. To do this follow these steps:
1. In the Admin> Application Customization, select the appropriate Object and go into the Object Field Setup.
2. Edit the field called "My_Check_Box" and enter a Field Validation expression so it uses the following expression:
=[<bMy_Check_Box_ITAG>] AND NOT([<AccountType>] IS NULL AND [<bMy_Check_Box_ITAG >]='Y')
3. Enter an explicit error message.
This expression means that when the checkbox field is checked, the Account Type becomes required. Your custom error message will be raised when checking the checkbox, leaving the account type unpopulated and trying to save the account record.
4. Edit the Account Type field and enter the following expression as Field Validation:
=[<AccountType>] AND NOT([<AccountType>] IS NULL AND [<bMy_Check_Box_ITAG >]='Y')
5. Enter an explicit error message.
That validation handles the user case where a user changes the Account Type value from a NOT NULL value to a NULL value. Your custom error message will be raised when emptying out the account type from a populated value to nothing while the checkbox is checked and trying to save the account record.
Note that the expression in both fields validations begins with the field variable on which the statement is being written.** -
Numeric value out of range (null) - Inserting a double
Allright,
I can't figure this out to save my life.. I am refusing to put my code up because I am trying to insert into a DB Table with 140 some fields, so I will explain as best I can.. I am trying to insert a double into my DB.. I have been getting a numeric value out of range error on insertion. Just to see if it was a db problem, I shortened my query to 4 fields and two of them being the doubles for insertion. They inserted fine. So needless to say, i presumed that my insert statement for the 140 fields query was off. I double checked it and everything seems to be in order. I still get the error. I can assure that everything matches up.. my SQL string looks like this :
SQL = "INSERT INTO TABLE 1 (VAL1, VAL2, VAL3 ... VAL146) VALUES (?, ?, ? .... ?);
and my preparedStmt :
ps = con.prepareStatement(SQL);
ps.setInt(1, val1);
ps.setInt(2, val2);
ps.setString(3, val3);
ps.setDouble146, val146);
ps.executeUpdate();
Please help me solve this..
EdThe name of the table is FAC.
Here is the query:
INSERT INTO FAC (FAC_SK, KEY, ACTIVITY, BE_NUMBER,CATEGORY, CC, CLASS_LVL, CONDITION, COORD_BASIS, COORD_DATUM, COORD_DERIV,DOMAIN_LVL, EVAL, GRAPHIC_CC, GRAPHIC_ED_NUM, GRAPHIC_SCALE, GRAPHIC_SERIES,LAST_CHG_USERID, MIDB_TIMESTAMP, OPER_STATUS, OSUFFIX, PROD_LVL_CAP,PROD_LVL_REQ, RECORD_STATUS, RES_PROD, COORD, DATETIME_CREATED,DATETIME_LAST_CHG, FAC_NAME, GRAPHIC_AGENCY, GRAPHIC_ED_DATE,GRAPHIC_SHEET, REVIEW_DATE, ACCESS, AFFILIATION, AIR_DEF_AREA,ALLEGIANCE, BE, CAPACITY, CAPACITY_EVAL, CAPACITY_MAX, CAPACITY_UM,CLASS_RATING, CMD_CNTL_COMM, CODEWORD, CONDITION_AVAIL, CONTROL_MARK,COORD_DERIV_ACC, COORD_DERIV_ACC_UM, COORD_ROA, COORD_ROA_CONF_LVL,COORD_ROA_UM, CPFL, CRITICAL_INDUSTRY, DECLASS_ON, DEGREE_INTEREST,ELEVATION, LAT, LON, ELEVATION_ACC, ELEVATION_CONF_LVL, ELEVATION_DATUM,ELEVATION_DERIV, ELEVATION_DERIV_ACC, ELEVATION_DERIV_ACC_UM, ELEVATION_MSL,ELEVATION_MSL_ACC, ELEVATION_MSL_CONF_LVL, ELEVATION_MSL_DERIV, ELEVATION_MSL_DERIV_ACC,ELEVATION_MSL_DERIV_ACC_UM, ELEVATION_MSL_UM, ELEVATION_UM, FOREIGN_TECH_CC,FOREIGN_TECH_PERCENT, FPA, FUNCT_PRIMARY, FUNCT_SECONDARY, GEOIDAL_MSL_SEPARATION,GEOIDAL_MSL_SEPARATION_UM, ILAT, ILON, INTEGRATION, LINE_QTY, MED_DIAGNOSTICS,MED_MASS_CASUALTY, MIL_AREA, MIL_GRID_SYS, MODERNIZATION, MSN_PRIMARY, MSN_PRIMARY_SPECIALTY,MSN_SECONDARY, MSN_SECONDARY_SPECIALTY, OPEN_STG_COVERED, OPEN_STG_FILLED, OPEN_STG_TOTAL,OPEN_STG_UM, OUTPUT, OUTPUT_EVAL, OUTPUT_MAX, OUTPUT_RATE, OUTPUT_UM, PERIODICITY, PIN,POL_SUBDIV, POP_AREA, POP_AREA_PROXIMITY, POWER_DISTRICT, POWER_DISTRICT_SUB, POWER_SOURCE,RECUP_INTRVL, RECUP_INTRVL_MAX, RECUP_INTRVL_UM, RECUP_LOSS_IMPACT, RECUP_REPAIR_PRIORITY,RELATIVE_RANKING, RELEASE_MARK, ROLE_LVL, ROLE_TYPE, SCALE, TDI, TGT_RESTR, TURN_AROUND_TIME,WAC, WATERBODY, ADDRESS_NAME, CAPACITY_DATE, CAPACITY_EVAL_DATE, COORD_DATETIME,DATETIME_BEGIN, DATETIME_END, DATETIME_FIRST_INFO, DATETIME_LAST_INFO, DECLASS_ON_DATE,LOC_NAME, MAX_DEMO_USE, MIL_GRID, OUTPUT_DATE, OUTPUT_EVAL_DATE, PLACE_NAME, POSTAL_CODE,SCENARIO_SET, STREET_NAME, STREET_NUM, SYMBOL_CODE, UTM) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);
The query works fine if I have no value for the two doubles : LAT and LON..
If I have a value for them, the thing gives me an error:
Numeric value out of range (null)
If you see anything wrong with that query.. Let me know..
Takizzle -
Searching for numeric values in a text field / SQL Server
Hi all,
here's a problem that I've been trying to solve for several days: I try to select rows from an MS SQL Server via JDBC that contain a certain numeric value at a certain position in a long varchar field.
I'm using queries like
select * from table where substring(field_1, 37, 7) like '1011234';Those queries always return an empty ResultSet. If I use the same queries in WinSQL, I get correct results (several rows).
The application code is working in principle; if I search for a text instead of a numeric value, for example select * from table where substring(field_1, 4, 5) like 'Paper'; , I get a complete ResultSet.
I've tried many variations (= instead of like, search in the entire field (without substring but with like '%1011234%'), with or without ', and more), but that didn't change anything.
It's also most probably not caused by the JDBC driver; I have tried JTDS first, and then the MS driver (newest versions) - no difference.
One idea was that the sort order is not correct, tried some COLLATE settings, but that didn't help so far. In this context I'd like to know how to determine the collation sequence of a certain column.
Another thing I tried was using CAST, for example SELECT * FROM table WHERE CAST(SUBSTRING(field_1, 37, 7) as bigint) = CAST('1011234' as bigint); or SELECT * FROM table WHERE CAST(SUBSTRING(field_1, 37, 7) as bigint) = CAST(1011234 as bigint);, but that didn't help either.
Some facts:
Server: Microsoft SQL Server, version 09.00.2047
Driver in WinSQL: SQLSRV32.DLL, version 03.85.1117
JDBC-Driver:
- JTDS, version 1.2
- Microsoft SQL Server 2005 JDBC Driver, Version 1.2
JVM: jre1.5.0_11
I didn't find anything on Google, or in this forum, or other forums. I really hope someone here can help me. Thanks in advance!
Best regards,
UicaYour note suggests to me that this is a coding problem, not a JDBC or SQL problem unless you are hitting a bug in the SQL Server JDBC driver. Others may have ideas from what you have written, but I think it would be helpful to see the actual code that you are executing that does not bring back the results that you are expecting (don't forgot to use code tags to format your code correctly).
It might also be helpful to execute a query (from within your Java code) to ensure that you are connecting to the right database, accessing the correct table and that your substring is using the correct offset. The query would look something like this (and then of course display the list of results):
SELECT substring(field_1, 37, 7) from table -
How to insert, as an input variable within formula, the total time window on scope (i.e. 20ms/div x 10 div = 200ms)?
BELOW IS AN EXAMPLE OF ISSUE:
FORMULA FOR ACTION INTEGRAL:
STATISTICS:
Input variable: DPO4034(CH1);
Check Box: number of samples.
FORMULA
Input variable 0: DPO4034(CH1); alias: x0
Input variable 1: "Total Time Window on Scope???"; alias: x1
Input variable 2: Number of Samples (CH1); alias: x2
Under Operation Setup: Formula
Y= (x0^2)*(x1/x2)
Output: Processed Data 1 (CH1)
THEN USING STATISTICS:
Input signal: Processed Data 1 (CH1)
Check Box: SUM
Output: CH1 Action Integral [A^2s]
Solved!
Go to Solution.Hi again Catherine,
I have now added another TekScope (TDS3032B) along with the DPO4034 and run the same work-around on the TDS3032B using CH1 as the "real" signal channel and CH2 as the "burst width" channel. However, the value returned for CH2 is nominally 99E+36 (min 99E+36, max 99E+36) with very few retrievals of correct burst width (~200ms). Seems the SignalExpress program is unable to consistently retrieve from TDS3032B the actual burst width (scope's time scale/window) and defaults to 99E+36 value. Any ideas on what is occurring and how to make it work? Attached are some screen captures to help guide discussion.
Regards,
Michael
Attachments:
TDS3032B - incorrect burst width.png 301 KB
TDS3032B - correct burst width.png 287 KB
DPO4034 - always correct burst width.png 302 KB -
Assigning a numerical value to the answers of a multiple choice text field
I have searched and searched thru a million articles but there does not seem to be a simple way to do this, and I hope like heck that I am just overthinking it. I tend to fall back on years of coding and completely miss a simple answer when doing this
kind of thing so I hope someone can help.
I'm developing a scorecard. I have a list that has a form on it that asks a series of questions on it. Some are yes/no.
I want to assign the numerical value of "1" to "yes", and "0" to "No".
This is so that when I create the actual scorecard, I can add up all the answers and generate a calculated score.
Example:
Was this incident properly classified?
[Dropdown]
Yes
No
Do I need an extra column assigning the values? Can I assign the values within the column itself? Any assistance will be really helpful.there are several options:
- calculated column with something along the lines of =IF([dropdowncolumn] = "YES", 1, 0)
- separate lookup list with values
- if you're using infopath, your column could be numeric, and just use a DropDown as the visualization, and populate the DDL with key/values of "Yes"/1 and "No"/0 (though in this case, when viewing the list as a native grid, the column
would only show 1/0, not "yes / no"
- depending on how you're creating the scorecard, use a yes/no (boolean) column and just convert during the calculation
lots of options come to mind.
Scott Brickey
MCTS, MCPD, MCITP
www.sbrickey.com
Strategic Data Systems - for all your SharePoint needs -
Non numeric value in numeric field giving error
Hi All
I am using BAPI for creating sales order. If user is giving non numeric value in Quantity field it is giving error. Because quantity field data type is Double.
Please Help.
Thanks
RaktimHi Banerjee,
Create a String/int/long Context variable and point it to UI Input element.Do the validation for correct input value. once the validation is succesful assign that value to RFC BigDecimal variable by Explicit casting.
Hope this might solve your problem .
Thanks
Madhan -
How do I copy/paste full numerical-only account strings into the Projects WebADI template when the account segment fields in the template require use of the dropdown because they're formatted as alpha-numeric values? I'm using the Integrator named "Projects - Transaction Import" and a custom Layout created based on the seeded Layout named "Transaction Import - Accounted". Do I need to somehow change my Layout to make the Document accept numerical values instead of requiring alpha-numeric values? I need to be able to populate the Document with a large amount of transactions and cannot feasibly go through every transaction to add the alpha-valued name of the account segment to every segment that requires it. The segments in particular causing the problem are "Expnd Type" and "Organization Name" which are both alpha-numeric and as such contain the segment number and name; I need to be able to only have to enter the Natural Account Number (6-digit number only) and the Organization Number (5-digit number only).
How do I copy/paste full numerical-only account strings into the Projects WebADI template when the account segment fields in the template require use of the dropdown because they're formatted as alpha-numeric values? I'm using the Integrator named "Projects - Transaction Import" and a custom Layout created based on the seeded Layout named "Transaction Import - Accounted". Do I need to somehow change my Layout to make the Document accept numerical values instead of requiring alpha-numeric values? I need to be able to populate the Document with a large amount of transactions and cannot feasibly go through every transaction to add the alpha-valued name of the account segment to every segment that requires it. The segments in particular causing the problem are "Expnd Type" and "Organization Name" which are both alpha-numeric and as such contain the segment number and name; I need to be able to only have to enter the Natural Account Number (6-digit number only) and the Organization Number (5-digit number only).
-
How do I keep fields hidden until a numeric value is entered including 0
I have a field that keeps other fields hidden until a numeric value is entered into it...
My current script is:
var showHide = event.target.value > 0
? display.visible : display.hidden;
this.getField("Increase DecreaseRow1").display = showHide;
this.getField("Amended BudgetRow1").display = showHide;
And it works except when a "0" amount is entered, the fields remain hidden. I need to allow the "0" amount to unhide the fields so, I've tried changing it to:
var showHide = event.target.ValueAsString != ""
? display.visible : display.hidden;
this.getField("Increase DecreaseRow1").display = showHide;
this.getField("Amended BudgetRow1").display = showHide;
but that makes the fields I want hidden visible, even without an entry.
Any ideas?
I'm using Adobe Acrobat XI Pro.
Thanks in advance for any help!I use the custom JavaScript validation of:
if(event.value == 0) event.value = "";
for the field with the calculation. If one uses a currency symbol or the percentage format then additional coding is needed to set the format to a number without the currency symbol for zero values and the desired format for the currency or percentage. -
How to restrict the user to enter only numeric values in a input field
How to restrict the user to enter only numeric values in a input field.
For example,
i have an input field in that i would like to enter
only numeric values. no special characters,alphabets .
reply ASAPHi Venuthurupalli,
As valery has said once you select the value to be of type integer,once you perform an action it will be validated and error message that non numeric characters are there will be shown. If you want to set additional constraints like max value, min value etc you can use simple types for it.
On the project structure on left hand side under local dictionary ->datatypes->simple types create a simple type of type integer
The attribute which you are binding to value property ;make its type as simple type which you made
Hope this helps you
Regards
Rohit -
How to check non-numeric value in a field
Hi all,
I have a field 'MVALUE'. HOw can I check if I have a non-numeric value in my field. Let us say if I have a value '<25' in this field. How can I check if the value in this field is non-numeric. The field MVALUE is of CHAR datatype.
Please help. Waiting.........Might have to add a space in the string...
if not mvalue co ' 0123456789'.
* error
endif.
if you allow decimals and commas...
if not mvalue co ' .,0123456789'.
* error
endif. -
Change a numeric value to a date field
If someone could please help I would appreciate to know how to change a numeric value to date value. Example: I ave a number 20080312 and I would likefor the field to read as follows in a date format, 03/12/08. i am not sure how to convert.
Thanks Jim DyerHi Use,
CDate("20080312");
Regards,
Vinay -
Type conversion from numeric value to time format
hi guys,
i hvae column called (Time in seconds).i need to convert the numeric value of one column into time format HH:MM:SS. for example 3012 =00:50:12.
how can i proceed the same in the front end.
Thanks & Regards,
NanduHi..
here is the code.. (assuming 10000 in the following code is your seconds, replace that with your value...)
cast(TRUNCATE(10000/3600,0) as varchar(2)) || ' : ' || cast(TRUNCATE(60*((10000/3600)-(TRUNCATE(10000/3600,0))),0) as varchar(2)) || ' : ' ||cast(60*((60*((10000/3600)-(TRUNCATE(10000/3600,0))))-(TRUNCATE(60*((10000/3600)-(TRUNCATE(10000/3600,0))),0))) as varchar(2)) You can also use floor instead of truncate...
Above will give only h:m:s format if hh (or) mm (or) ss are between 0 and 9. So, you may need to add case when condition before each concatenation: if hh is between 0 and 9 then need to concatenate with 0 else the same code...
Thanks... -
How to check whether a field contains at least one numeric value
how to check whether a field contains at least one numeric value..
Hi,
I hope that this code will works.
constants:
c_digit_grp TYPE char11 VALUE '0123456789', " Digit group
* Data Declaration
data :
str type string.
* if you want check entire string and pass entire string
if str CA c_digit_grp.
* write your logic ---this block will execute atleast one numeric value exists in the string
Endif.
Regards
Bhupal Reddy
Maybe you are looking for
-
Hi, Problem: fIt seems that this model of printer has a built in protocol which makes the printer inoperable if any of the colour cartridges are past their expiry date. Attempts to print solely in black are also being prevented because of this. Does
-
Which Idoc type for Quality release process and Inventory reconciliation/adj. with 3PL
Dear experts, could you please provide your suggestion on which Idoc type to use for following two scenarios between Client and 3PL vendor (Logistic provider): 1st scenario: - Products are released in QM in clients SAP. As a result of this action sto
-
Overwrite Standard Validation message to Custom message
Hello Gurus, I searched and have gone through lot of resources but did not find solution and came up with this question. I have a scenario where I can not make action(Save) as validation independent. So, I tried using IF_WD_MESSAGE_MANAGER methods in
-
Currently in our system if a user does a drop down to select a GL account the drop down shows all the available GL accounts to them. Is there a way to limit the GL by user? Same thing for cost center? Anything like match code exist in SRM? Any sugges
-
ITunes won't allow me to access my previous purchases to download an older album.
iTunes originally had me download half an album twice and I didn't know that before I bought it. So they have finally fixed it and I want to get the fixed version by redownloading the album from my previous purchases. When I go to click on the purcha