Entering negative numbers into a field
How do I allow an item (non-base table) to accept negative numbers that are entered in the following way, "x-". I know that you can have a format mask with "x-". But that will not help me in this situation. Thanks in advance for your help!
I dont kno what is your exact requirement. But if you are trying to accept a -ve number you can just enter -30 in a number field. but if you want 30- to be entered in a field then you can not do it directly. The workarround may be create a character field let the user enter the 30-. Possibility is that he may enter alphabetic or alpha numeric ,in this case take the substring of the field and check if it is a number field or not. if its not then do raise a message and raise form_trigger_failure to force the user to enter a valid number.
like
If NOT isnum(substr(:field1,1,length(:field1)-1) Then
message ('Please enter a valid number');
Raise Form_Trigger_failure;
End If;
Hope this will help.
Similar Messages
-
How to enter text & numbers into text field?
I am designing a form for our Labor cases, and in the Case# field, which I have established as a (text field), I wish for the user to input the following as example:
2014-DAA-000012
I would like for the dashes to show automatically as does the social security number. Any takers on this? Thank you!Hi,
you can use patterns to format you input a little bit.
You need 2 patterns in your text field:
One for displaying ...
text{9999-AAA-999999}
... and one for editing.
text{9999AAA999999} -
I am looking for a way to enter multiple dates into a field without the form becoming too long.
This will be used by an old school bookeeper who needs the form to fit on one page.
Any ideas?Hi,
If you don't need the field to provide a date picker, verify it's a date, or don't need to sort the dates in the table, you can just use a text area field, and have your form filler enter the dates comma separated. Otherwise you'd have to add multiple fields. However, you can lessen the space each field takes up veritically, by using the "Labels Left" option (in the toolbar).
Thanks,
Todd -
Trying to have today's date dynamically entered into a repeating table row textfield when the button is clicked to create each repeating row. The user can then enter addtional text into the same text field next to the date.
Example:
[4/25/2012] This is the text the user entered.
Today's date is populated in each update row created when the "Update Row" button is clicked.
The following script works but only for the first instance, not the second, third, forth, etc...
Click event: (JavaScript, client)
this.resolveNode('Table2._RowB').addInstance(1);
xfa.resolveNode("Table2.RowB.#subform.Update").rawValue
Thank you,
~DonHi Don,
Does this solution cover the above problem? https://acrobat.com/#d=VjJ-YsXLKmV6QU84JrAAIw
Niall -
Is it possible to enter only numbers in the field
Hi expers,
I want that when my user is giving input in the empno field of my form in enter query mode , he or she will be able to enter only the number not anything other then number . is it possible via oracle forms 6i.
If yes ,please let me know.
and another thing is that how can i get this type of output.
'abc','efg','kkk'
declare
cursor abc is select empname from emp;
output varchar2(2000);
begin
for i in abc loop
output := output ||'''||i.empname||'',';
end loop;
end;
can you please say how can i disable the cotes (') the secode cotes because it is giving trouble in java in term of disableing we use / is there anything like that in oracle.
Regards
RajatHi aweiden
Thanks for your answer the second question ,i want that in the output variable i want to store the name of the employee in this fashion.
When i am givig dbms_output.put_line(output) the output should be like that.
'Rajat','aweiden ','kumar','sachin'
I am trying to append the name of the employee with the variable output.
The cursor is fecting the name of one employee in each itaration.
in the 1st itaration the value of output will be -'Rajat'
in the 2nd itaration the value of output will be - 'Rajat','aweiden'
and so on.
But when i am trying to append the '(single cotes) before and after the name it is giving trouble.
What i have done is;
for i in abc loop
output := output ||' ' '||i.empname||'',';
end loop;
but it is not working.
can you tell me how can i get the deserve output.
Regards
Rajat -
What format do you use to enter landline numbers into your contact list
Every time I try to phone some one on a land line number from my contact list my phone to New Message screen
Hi firemandodd,
What you describe sounds complicated. Would you consider this instead?
Set up one table with a Team column, perhaps like this:
Then filter by a team, giving you this:
Then you can uncheck or delete the filter to see the full list again:
That way you keep things simple and can view an individual team whenever you need to.
You can also sort on the Team column:
Giving you something like this (all the people on one team listed together):
SG -
How to enter negative value in a currency field
Hi Experts,
Please help me how to allow to enter negative value in a field on report selection.
I created a currency field on a report selection using PARAMETERS.
I can enter positive value in the field. But, I cannot enter negative value.
SAP shows an error message 00 126 "Specify positive values only".
I know I can place check ON at "with sign" option of the field in case I create the screen by myself.
However, I cannot do it on screen 1000 created by report program.
Thanks,
GeorgeHi ,
I know I can place check ON at "with sign" option of the field in case I create the screen by myself.
Prabhu--> Just Create a new Domain( select "WITH SIGN") and date elemet,And Use Data Element in your report.
regards
Prabhu -
Using numberd buttons to enter text into a field
Hi all, was wondering if I had 10 seperate sprites acting as
buttons on a page, which will be numbered 0 -9, is it possible to
use them to enter text into a field. e.g.
If the user presses the sprite with a number 1 on it, would
it be possible to have a 1 displayed in an edit field. I need to
pretend as though im using a remote.
thanksYou can create a behavior that will allow you to set a
variable for each
button. When you assign the behavior to your button sprite,
it'll
prompt you to enter the ButtonNumber property. Haven't tested
this yet,
but something like this should work:
global gNumberEntered
property ButtonNumber
on getPropertyDescriptionList
description = [:]
addprop description, #ButtonNumber, [#comment:"Enter number
to assign
to this button", #format:#integer, #range:[1,10], #default:
1]
return description
end getPropertyDescriptionList
on mouseup
sprite(the currentSpriteNum).member = member("buttonOver")
gNumberEntered = ButtonNumber
cursor -1
end
on mouseEnter me
sprite(the currentSpriteNum).member = member("buttonOver")
cursor 280
end
on mouseDown me
sprite(the currentSpriteNum).member = member("buttonDown")
end
on mouseLeave me
sprite(the currentSpriteNum).member = member("buttonUp")
cursor -1
end -
Splittling numbers in one field into multiple sections
Good Morning,
I am currently working on a project where a user inputs required information on digital entry form, which then auto populates the inputted data onto multiple documents. While a majority of the data maintains the same format integrity throughout the documents, I am running into issues with documents that deviate from that standard input format. For example, when users enter the following numbers, they are entered as one line of text:
However, the output on a required document splits these numbers into multiple sections:
The output document is not maintained by my organization and I cannot make changes to the document formatting. Can anyone assist me in finding a way to split the single line text into the mutliple fields as shown?If you're importing the form data into the second form, create the NCPDP# field and make it hidden. The create three visible fields to hold the three parts of the number, for example: NCPDP2.1, NCPDP2.2, and NCPDP2.3
You can then use a custom Validate script for the hidden NCPDP field that's something like the following:
// Custom Validate script
(function () {
// Do nothing if field is blank
if (!event.value) return;
// Populate the other fields if the string length is correct
if (event.value.length === 7) {
getField("NCPDP2.1").value = event.value.slice(0, 2);
getField("NCPDP2.2").value = event.value.slice(2, 6);
getField("NCPDP2.3").value = event.value.slice(6);
} else {
// What do you want to do here if the string length isn't 7?
Look up the slice string method in any decent JavaScript reference for more informatio on how it works. Note that you can make the subfields into combs fields to match the spacing of the boxes. -
I want to copy and paste a long list of phone numbers into the 'to' field of messaging. All it does is become one long number instead. I have even tried commas in between. Any ideas? (They are NOT contacts)
That's not how iMessage was designed to work. It works with your contacts. You start typing a phone number or email address and you'll se a list of hint from auto-complete. After you select a suggestion, start typing another address. If the addresses you want are not in your contacts, you'll need to enter each of them manually.
-
On a website I need for my work, I must log-in with username & password. Firefox remembers my name & password perfectly. However, in another section on that same website, when I am filling in calendar information, it enters my my username in the "Location" field. Unfortunately, that is my work ID which is confidential. When I don't notice, it posts it on the very public calendar. Also, it enters my password into a password field (masked), so that no one can rsvp.
It doesn't appear that I can edit the Saved Passwords/Exception in Firefox Options, so I am looking for suggestions!
I want the saved name password at http://workname.com
but not incorrectly at http://workname.com/info/*.*If there is a password field on a web page and you have saved a password then Firefox may try to fill that password and enter the name in the field just above that password field.
You can look at:
* Saved Password Editor: https://addons.mozilla.org/firefox/addon/60265
*Form History Control: https://addons.mozilla.org/firefox/addon/12021
You may want to disable saved form fill to prevent Firefox from filling the name.
* [[Form autocomplete]]
* http://kb.mozillazine.org/Deleting_autocomplete_entries -
Auto populate text fields with a trigger such as entering text into input fields in ADF
Hello all,
I am not able to auto populate text fields with a trigger such as entering text into input fields in ADF.
I tried AdfFacesContext.getCurrentInstance().addPartialTarget(val); in the back end using setter method of input text field.
its not working ..
is there any way to achieve it
Regards,
ShakirHi,
Always mention your JDev version.
The valueChangeListener would fire only when you set the autoSubmit property of the field to true. Can you elaborate your requirement? What do you mean by related data? Are you performing some sort of search?
If you want to get the value you entered on the field, just set autoSubmit to true and get the new value from the valueChangeListener. If your requirement is something like as and when you type, do something, you need to check out this approach :https://blogs.oracle.com/groundside/entry/auto_reduce_search_sample
-Arun -
I am creating a list of words with special characters in some of them. I get to a point where I cannot enter data directly into the cell. I have to use the data entry bar at the top in the toolbar. Any solutions available?
This is the table I am creating...
From row 25 on, I am only able to enter data into the cell through the toolbar at the top and not directly into the cell itself. I believe that this problem originates from the special characters I have inserted in the previous records because if I do not use special characters, then the spreadsheet acts flawlessly. Have there been issues in Numbers with data entry, the size of a table, and using special characters?I would try removing the rows with "special" characters one at a time to see which one is causing the problem
-
I am using an update statement to enter a number into an
access databse where the field is set as an interger format. The
syntax used in the update statement is order = '#form.order#',
When this is processed I revieve the following error:
ODBC Error Code = 37000 (Syntax error or access violation)
[Microsoft][ODBC Microsoft Access Driver] Syntax error in
UPDATE statement.
SQL = "UPDATE tbl_images SET mnname = 'Whitney Looking',
dimensions1 = '5', dimensions2 = '7', dimmeasure = 'Inches',
denomination = '£', price = '42.00', bgcolour = 'DADAFC',
medium = 'Inks', order = 19, framedorunframed = 'Framed', approved
= '0', makeimagelive = '0', subject = 'Animals' WHERE
tbl_images.imageid=2356"
I assume this is caused by the database recieving the number
in a text rather than interger format.
Could someone please let me know how I need to format the
update statement to over come this (or whether this may be casued
by another issue
Thanks
NeilDan's point about using a column named "order" is most likely
the culprit. Words like SELECT, WHERE and ORDER are reserved words
in SQL and should be avoided as names for database fields. Try
changing the name of your database field and running the query
again.
Also, I noticed the fields "approved" and "makeimagelive"
seemed to also contain bit or integer values. Try using the same
formatting with those fields as you did with the order field.
In fact, you can replace all of your query values with
<cfqueryparam> and let coldfusion decide which ones will
received surrounding quotes based on the cfsqltype. -
Auto populate Infopath 2013 fields after entering a data into a textbox.
Firstly can I please say I am sorry to be revisiting this but I just can sort it out!!
I have 3 fields in a SharePoint 2013 list, Code, Section, SubSection, after some guidance I am trying to use rules to populate Section/SubSection when a Code is entered. I am getting the Data for the three Fields from an XML file. The form can see
the XML data fine. Here's the BUT.. I cant seem to get the quering correct to autofil the other two fields.
I promise this is the last time I shall ask for help on this!
TIA
JonThanks Cameron.
No that’s not what I need, not Cascading Drop Downs, I want TextBox’s to be populated.
I have 3 fields, Code, Section, and SubSection, when a user enters a code into the first box, a rule queries the list, I(I have XML or SharePoint List) to populate the Section/SubSection with
the data relating to the Code.
So far I have a rule that on FormLoad when the Code field changes it queries the XML list for the info. The problem I have it I can’t get the query correct.
Thanks
Jon
Maybe you are looking for
-
PDA Mouse Down Event on Picture Control
While using the Mouse Down Event on the Picture Control for LabVIEW 7.1 PocketPC PDA, I want to get the xy coordinates on where the user tapped on the pict control. Any ideas or workarounds? Robert
-
DBI - creating drilldown on reports
Could someone help me. How do I create a drilldown from one report to another (like the seeded reports) eg. start with a report at PO header level and then drill to individual PO lines in another report
-
Has anyone else had account balance out of date error before! I lost almost 7 dollars off of a new Itunes gift card after redemption!
-
The TX is exactly what I need. I have been a happy customer of the TX since it first came out. My one and only complaint is that the touchscreen goes bad quickly. If you fixed that, this is the only device I ever want to carry! With the Outside the B
-
Hi guys, I'm very new to web service technology & need your help writing a simple soap client to call a web service. the soap request should be : POST /lightboxedit/LBEDataService.asmx HTTP/1.1 Host: abourne.dyndns.org Content-Type: application/soap+