Numeric value
im using ECC 5.0 , here during BOM creation my ratio of FERT and ROH is 1:1.82
but when i put this value 1.82 there system gives me below message
Enter a numeric value
Message no. 00052
Plz help mei want to put value of 1.82 but system not allowing me and if i put 1.820 then system take it as 1820
plz tell me way
Hi Rahul,
Problem is seems to be with your default Decimal Notation.
Go to SU3 and then in Parameter Tab .
For Decimal Notation select value X 1,234,567,89.
Then save it and then Try to Create BOM after Re log on.
Regards,
Dhaval
Similar Messages
-
Looking for help with javascript to autofill checkboxes based on a numeric value.
I have a numeric field that I would like to have 1 - checkbox
out of five autofilled based on a numeric value.
For instance the numeric value is TotalPoints
If the TotalPoints Value is >10 autofill this checkbox
If the TotalPoints Value is 10 - 19 autofill this checkbox
If the TotalPoints Value is 20 - 49 autofill this checkbox
If the TotalPoints Value is 50 - 69 autofill this checkbox
If the TotalPoints Value is 70+ autofill this checkbox
Assistance in writing the correct script for this would be greatly appreciated.All the checkboxes have separate names.
Check box #1 is AssetClass.0 with the export value of 1
Check box #2 is AssetClass.1 with the export value of 2
Check box #3 is AssetClass.2 with the export value of 3
Check box #4 is AssetClass.3 with the export value of 4
Check box #5 is AssetClass.4 with the export value of 5
Score and StrategyUse the following calculation to determine your point score and indentify the appropriate strategy listed below.A. Add your points for questions 1 – 2.
B. Add your points for questions 3 – 12.
C. Subtract B from A. (Numeric Text Box) name is TotalPoints
Points Strategy Asset Class Mix (check boxes as named above)
0 – 10 Primarily Fixed Income: 80% Fixed Income; 20% Equity
10 – 19 Balanced Fixed Income-Oriented: 60% Fixed Income; 40% Equity
20 – 49 Balanced Equity-Oriented: 40% Fixed Income; 60% Equity
50 – 69 Primarily Equity: 20% Fixed Income; 80% Equity
70+ Equity: 95%; 5% Cash -
Popup Key LOV, NULL and "Invalid numeric value undefined for column"
Hello.
I've created an item based on database column of NUMBER type and set the following properties:
Display As = Popup Key LOV (Displays description, returns key value)
List of values definition=select 'display_value' d, 1 r from dual
Null display value=%
Null return value=
Display Null=Yes
When I select "%" in the LOV and try to apply changes to database I get error:
ORA-20001: Error in DML: p_rowid=1781, p_alt_rowid=N1, p_rowid2=, p_alt_rowid2=. ORA-20001: Invalid numeric value undefined for column N2
Error Unable to process row of table TTT.
If I set Display As = Select List, all works fine. But I need Popup Key LOV.
Could anybody help me?
I use Application Express 2.2.1.00.04Hi all,
I did my homework and solved this issue. First I would like to thank Patrick Wolf for the invaluable help he gives out on thread Re: Null value handling in LOVs The code presented here is just a minor edit to his code, but an essential one when dealing with Popup Key LOV items.
Here's what I did:
1. Create an Application Process.
Name: RemoveNulls
Sequence: 0
Point: On Submit: After Page Submission - Before Computations and Validations
Process Text:
BEGIN
FOR rItem IN
( SELECT ITEM_NAME
FROM APEX_APPLICATION_PAGE_ITEMS
WHERE APPLICATION_ID = TO_NUMBER(:APP_ID)
AND PAGE_ID IN (TO_NUMBER(:APP_PAGE_ID), 0)
AND LOV_DISPLAY_NULL = 'Yes'
AND LOV_DEFINITION IS NOT NULL
AND LOV_NULL_VALUE IS NULL
LOOP
IF (V(rItem.ITEM_NAME) = '%null' || '%' OR V(rItem.ITEM_NAME) = 'undefined')
THEN
Apex_Util.set_session_state(rItem.ITEM_NAME, NULL);
END IF;
END LOOP;
END;Error Message: #SQLERRM#Condition: None
2. You should be able to submit a Popup Key LOV with a NULL value now.
Once again, THANKS, Patrick! You rock! I'm seriously thinking of trying ApexLib now :)
Georger -
Get numerical values from 2D array of string
Hello!
I start by saying that I have a base knowledge of LabView. I'm using LabView 2011. I'm doing some communications test via Can-Bus protocol. As you can see in pictures of the block diagram and of the front panel that I've attached I'm using "Transmit Receive same Port" LabView example. It works very good but I would need to insert the 8 data bytes that I receive from the server in 8 different numerical variables so that I could use them to make some operations. How can I get numerical values from the 2D array of string that I attached?
Every example that you can provide is important!
Thank you very much!
Attachments:
1.jpg 69 KB
2.jpg 149 KBHi martiflix,
ehm: to unbundle data from a cluster I would use the function Unbundle(ByName)…
When you are new to LabVIEW you should take all the FREE online resources offered by NI on their website!
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome -
BEx report hangs- selecting Alpha numeric values
I am working on the existing customer report
customer is the selection parameter for my report.
Issue is Customer has numerical and alpha numerical values.
If i give parameter rangs of value is numerical
01 - 500 query works fine
01-50cust1
50 cust1 - 195 cust2
query hangs.
Is their any way we can improve the query performance .
for searching alphanumerica values.
I have a workbook is built based on the query.
morethan 6 queries attached in the sheet 1....sheet2
each sheet has it is own query with values.
when I refresh and execute the workbook with the customer alphanumerica values it hangs.
Query is built based on the multiprovider.
Please help me onthisHello,
Try exporting in the 'fully formated grids and text'. It shouldl give you the 'member alias' used in the report.
Looks like if you export in the 'querry ready grids and text' it will show the 'member name' as in database although the report may have used the 'member alias'.
Regards -
XDOFX if-then-else command testing of space and numeric value
Hi,
I have the following xdofx statement in a RTF template to display the value of one variable or another, depending on the value it contains: (the variable can contains both space or null or a numeric value).
<?xdofx: If Amount_1 = " then 'display amount_2' else If Amount_1 = 0 then 'display amount_2' else 'display Amount_1' end if?>
Result: When Amount_1 variable contains space or null value, then this If-then-else statement works. But When Amount_1 contains a number such as 0, it gives error "SBL-OMS-00203" (when it's checked against [=" ] in If condition). What's causing this? Is XDOFX being confused to test a variable that supposedly a character string (default by testing against [ =" ]), but find a number in the variable?
Any work around solution? (So [=" ] and [=0 ] can both be specified against a variable in an if-then-else statement in XDOFX).
Thanks a lot.
A.try
<?xdofx:if (Amount_1 =’’) then ‘display amount_2’ else if (Amount_1 =’0’) then ‘display amount_2’ else ‘display Amount_1’ end if?>or
<?xdofx:if (Amount_1 =’’) then ‘display amount_2’ else if (to_number(Amount_1) =0) then ‘display amount_2’ else ‘display Amount_1’ end if?> -
Creating a sound from an array of numeric values and playing it on speakers
How do I create take a sound I have stored as an array (or could be an arraylist if needed) of numeric values (at the moment as doubles) whiten my program and output it to speakers? I am using blueJ.
for example (0, 0.1, 0.4, 0.8, 0.9, 1, 0.8, 0.6, 0.3, 0.1, etc...) would be a very high frequency sin wave.
Edited by: alan2here on Feb 6, 2008 11:28 AMI stumbled upon this thread with a question somewhat related:
I've recorded a wave file from microphone. But what I would like is an array of numbers in the same way alan said. I'm also working on my own project involving signal processing (i'm trying to do speech recognition).
I can't really find a nice way of getting that array of numbers. I've tried to find out how wave file stores it's data, and directly read from the File object, but i figured there should be an easier way...
I used this code to read the sound:
* SimpleAudioRecorder.java
* This file is part of jsresources.org
* Copyright (c) 1999 - 2003 by Matthias Pfisterer
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* - Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* - Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
|<--- this code is formatted to fit into 80 columns --->|
import java.io.IOException;
import java.io.File;
import javax.sound.sampled.DataLine;
import javax.sound.sampled.TargetDataLine;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.LineUnavailableException;
import javax.sound.sampled.AudioFileFormat;
public class SimpleAudioRecorder
extends Thread
private TargetDataLine m_line;
private AudioFileFormat.Type m_targetType;
private AudioInputStream m_audioInputStream;
private File m_outputFile;
public SimpleAudioRecorder(TargetDataLine line,
AudioFileFormat.Type targetType,
File file)
m_line = line;
m_audioInputStream = new AudioInputStream(line);
m_targetType = targetType;
m_outputFile = file;
/** Starts the recording.
To accomplish this, (i) the line is started and (ii) the
thread is started.
public void start()
/* Starting the TargetDataLine. It tells the line that
we now want to read data from it. If this method
isn't called, we won't
be able to read data from the line at all.
m_line.start();
/* Starting the thread. This call results in the
method 'run()' (see below) being called. There, the
data is actually read from the line.
super.start();
/** Stops the recording.
Note that stopping the thread explicitely is not necessary. Once
no more data can be read from the TargetDataLine, no more data
be read from our AudioInputStream. And if there is no more
data from the AudioInputStream, the method 'AudioSystem.write()'
(called in 'run()' returns. Returning from 'AudioSystem.write()'
is followed by returning from 'run()', and thus, the thread
is terminated automatically.
It's not a good idea to call this method just 'stop()'
because stop() is a (deprecated) method of the class 'Thread'.
And we don't want to override this method.
public void stopRecording()
m_line.stop();
m_line.close();
/** Main working method.
You may be surprised that here, just 'AudioSystem.write()' is
called. But internally, it works like this: AudioSystem.write()
contains a loop that is trying to read from the passed
AudioInputStream. Since we have a special AudioInputStream
that gets its data from a TargetDataLine, reading from the
AudioInputStream leads to reading from the TargetDataLine. The
data read this way is then written to the passed File. Before
writing of audio data starts, a header is written according
to the desired audio file type. Reading continues untill no
more data can be read from the AudioInputStream. In our case,
this happens if no more data can be read from the TargetDataLine.
This, in turn, happens if the TargetDataLine is stopped or closed
(which implies stopping). (Also see the comment above.) Then,
the file is closed and 'AudioSystem.write()' returns.
public void run()
try
AudioSystem.write(
m_audioInputStream,
m_targetType,
m_outputFile);
catch (IOException e)
e.printStackTrace();
public static void main(String[] args)
if (args.length != 1 || args[0].equals("-h"))
printUsageAndExit();
/* We have made shure that there is only one command line
argument. This is taken as the filename of the soundfile
to store to.
String strFilename = args[0];
File outputFile = new File(strFilename);
/* For simplicity, the audio data format used for recording
is hardcoded here. We use PCM 44.1 kHz, 16 bit signed,
stereo.
AudioFormat audioFormat = new AudioFormat(
AudioFormat.Encoding.PCM_SIGNED,
44100.0F, 16, 2, 4, 44100.0F, false);
/* Now, we are trying to get a TargetDataLine. The
TargetDataLine is used later to read audio data from it.
If requesting the line was successful, we are opening
it (important!).
DataLine.Info info = new DataLine.Info(TargetDataLine.class, audioFormat);
TargetDataLine targetDataLine = null;
try
targetDataLine = (TargetDataLine) AudioSystem.getLine(info);
targetDataLine.open(audioFormat);
catch (LineUnavailableException e)
out("unable to get a recording line");
e.printStackTrace();
System.exit(1);
/* Again for simplicity, we've hardcoded the audio file
type, too.
AudioFileFormat.Type targetType = AudioFileFormat.Type.WAVE;
/* Now, we are creating an SimpleAudioRecorder object. It
contains the logic of starting and stopping the
recording, reading audio data from the TargetDataLine
and writing the data to a file.
SimpleAudioRecorder recorder = new SimpleAudioRecorder(
targetDataLine,
targetType,
outputFile);
/* We are waiting for the user to press ENTER to
start the recording. (You might find it
inconvenient if recording starts immediately.)
out("Press ENTER to start the recording.");
try
System.in.read();
catch (IOException e)
e.printStackTrace();
/* Here, the recording is actually started.
recorder.start();
out("Recording...");
/* And now, we are waiting again for the user to press ENTER,
this time to signal that the recording should be stopped.
out("Press ENTER to stop the recording.");
try
System.in.read();
catch (IOException e)
e.printStackTrace();
/* Here, the recording is actually stopped.
recorder.stopRecording();
out("Recording stopped.");
private static void printUsageAndExit()
out("SimpleAudioRecorder: usage:");
out("\tjava SimpleAudioRecorder -h");
out("\tjava SimpleAudioRecorder <audiofile>");
System.exit(0);
private static void out(String strMessage)
System.out.println(strMessage);
}Daniel -
How do I get my XML numeric values to show up when loaded into flash?
Hi there,
I've created an AS2 3D carousel It loads text values in the "content" section of the code below - including numbers and special characters into the .swf but...
What I can't figure out, is how to get it so that the "Tooltip" loads the text into the movieclip, but can also have numeric and special characters in it.
For example, I need the title of one of the icons on this carousel to be "3D Images," but only the "D Images" shows up from the XML text for the tooltip. The content when a user clicks on the icon can include numbers, just not the titles for some reason.
http://iongeo.com/collaboration_test_dev/video_arctic_imaging.html
I think it has something to do with the way that my text is loaded from the xml document specifically for the tooltip and tipText for the movie clip. Can numeric values be loaded into a movie clip in AS2? PLEASE HELP!
import mx.utils.Delegate;
import mx.transitions.Tween;
import mx.transitions.easing.*;
var numOfItems:Number;
var radiusX:Number = 300;
var radiusY:Number = 75;
var centerX:Number = Stage.width / 2;
var centerY:Number = Stage.height / 2;
var speed:Number = 0.05;
var perspective:Number = 130;
var home:MovieClip = this;
theText._alpha = 0;
theHeader._alpha = 0;
var tooltip:MovieClip = this.attachMovie("tooltip","tooltip",10000);
tooltip._alpha = 0;
var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = function()
var nodes = this.firstChild.childNodes;
numOfItems = nodes.length;
for(var i=0;i<numOfItems;i++)
var t = home.attachMovie("item","item"+i,i+1);
t.angle = i * ((Math.PI*2)/numOfItems);
t.onEnterFrame = mover;
t.toolText = nodes[i].attributes.tooltip;
t.content = nodes[i].attributes.content;
t.header = nodes[i].attributes.header;
t.icon.inner.loadMovie(nodes[i].attributes.image);
t.r.inner.loadMovie(nodes[i].attributes.image);
t.icon.onRollOver = over;
t.icon.onRollOut = out;
t.icon.onRelease = released;
function over()
//BONUS Section
home.tooltip.tipText.text = this._parent.toolText;
home.tooltip._x = this._parent._x;
home.tooltip._y = this._parent._y - this._parent._height/2;
home.tooltip.onEnterFrame = Delegate.create(this,moveTip);
home.tooltip._alpha = 100;
function out()
delete home.tooltip.onEnterFrame;
home.tooltip._alpha = 0;
function released()
//BONUS Section
home.tooltip._alpha = 100;
for(var i=0;i<numOfItems;i++)
var t:MovieClip = home["item"+i];
t.xPos = t._x;
t.yPos = t._y;
t.theScale = t._xscale;
delete t.icon.onRollOver;
delete t.icon.onRollOut;
delete t.icon.onRelease;
delete t.onEnterFrame;
if(t != this._parent)
var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,t._xscale,0,1,true);
var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,t._yscale,0,1,true);
var tw3:Tween = new Tween(t,"_alpha",Strong.easeOut,100,0,1,true);
else
var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,t._xscale,100,1,true);
var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,t._yscale,100,1,true);
var tw3:Tween = new Tween(t,"_x",Strong.easeOut,t._x,150,1,true);
var tw4:Tween = new Tween(t,"_y",Strong.easeOut,t._y,250,1,true);
var tw5:Tween = new Tween(theText,"_alpha",Strong.easeOut,0,100,1,true);
var tw5:Tween = new Tween(theHeader,"_alpha",Strong.easeOut,0,100,1,true);
theText.text = t.content;
theHeader.header = t.header;
var s:Object = this;
tw.onMotionStopped = function()
s.onRelease = unReleased;
function unReleased()
//BONUS Section
var sou:Sound = new Sound();
sou.attachSound("sdown");
sou.start();
delete this.onRelease;
var tw:Tween = new Tween(theText,"_alpha",Strong.easeOut,100,0,0.5,true);
var tw:Tween = new Tween(theHeader,"_alpha",Strong.easeOut,100,0,0.5,true);
for(var i=0;i<numOfItems;i++)
var t:MovieClip = home["item"+i];
if(t != this._parent)
var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,0,t.theScale,1,true);
var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,0,t.theScale,1,true);
var tw3:Tween = new Tween(t,"_alpha",Strong.easeOut,0,100,1,true);
else
var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,100,t.theScale,1,true);
var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,100,t.theScale,1,true);
var tw3:Tween = new Tween(t,"_x",Strong.easeOut,t._x,t.xPos,1,true);
var tw4:Tween = new Tween(t,"_y",Strong.easeOut,t._y,t.yPos,1,true);
tw.onMotionStopped = function()
for(var i=0;i<numOfItems;i++)
var t:MovieClip = home["item"+i];
t.icon.onRollOver = Delegate.create(t.icon,over);
t.icon.onRollOut = Delegate.create(t.icon,out);
t.icon.onRelease = Delegate.create(t.icon,released);
t.onEnterFrame = mover;
function moveTip()
home.tooltip._x = this._parent._x;
home.tooltip._y = this._parent._y - this._parent._height/2;
xml.load("icons.xml");
function mover()
this._x = Math.cos(this.angle) * radiusX + centerX;
this._y = Math.sin(this.angle) * radiusY + centerY;
var s = (this._y - perspective) /(centerY+radiusY-perspective);
this._xscale = this._yscale = s*100;
this.angle += this._parent.speed;
this.swapDepths(Math.round(this._xscale) + 100);
this.onMouseMove = function()
speed = (this._xmouse-centerX)/8000;Kglad, you are my HERO!
Thanks so much for your reply, I did not know about the embed options within flash...
Mike -
How to represent a -1 numeric value with text?
Hi All,
Question: How do I get the value of negative one (-1) in a numeric column to display as "all"?
Background: For our lottery players, they are able to opt in to various automated alerts. One column is an integer value representing one of five different thresholds for sending an alert: 10,000, 50,000, 100,000, 500,000, and -1. The -1 value
actually represents all of the other 4 values, or simply "all thresholds," meaning "send me an alert at every one of these thresholds."
What is the best way to represent the -1 value in the cube? A user won't understand that -1 is equivalent to "all choices". I could change the view so that the column is a string instead of an integer, but I assume this is going to
affect the cube in a negative way, such as unexpected sorting, etc.
I asked our resident SSAS guy if a numeric value could be displayed (not read) as "all values" while actually storing the -1 value, but all he could suggest was changing the data type and using a case statement to replace -1 with "all values."
This does not seem like a fix to me.
Is there a way to make SSAS display a negative one value as "all choices" without changing the data type of the source column itself?
Thanks,
Eric BNormally you would have a lookup on the number and a text value for the result displayed to users in the cube.
KeyValue
DisplayValue
10000
$10,000
50000
$50,000
100000
$100,000
500000
$500,000
-1
All Values -
Function module to convert character value of month into numeric value?
Hi Experts,
I need to convert a character value of a month in three alphabets to its numeric value.
e.g. 'jun' should be converted into '06' and 'jan' into '01' using a function module.Can anybody please provide me a similar function module?
TIA
Abhishektry this code:
DATA: text(20) TYPE c,
date TYPE sy-datum.
text = '06. Jul 06'.
TRANSLATE text TO UPPER CASE.
TRANSLATE text USING '. '.
CONDENSE text NO-GAPS.
CALL FUNCTION 'CONVERSION_EXIT_SDATE_INPUT'
EXPORTING
input = text
IMPORTING
output = date.
WRITE date USING EDIT MASK '__.__.____'.
Regards,
Dara. -
Error message - BSEG-WRBTR enter a numeric value
Hi,
I am having a problem with loading data using a abap program that calls RFBIBL00 program and the fb01 Transaction. The process is that the user enters the data in a excel sheet, saves as a tab deliminted txt file. The abap program reads the txt file, does some processing and submits the RFBIBL00 program with the FB01 code. When I check in SM35, it shows on the "incorrect " tab. When you display the log for the process, It is displaying "Formatting error in the field BSEG-WRBTR; see next message" and "Enter a numeric value". I am not sure where to start looking to try to correct this problem. I am tracing the abap program that submits the RFBIBL00 process and I am not finding where this is occuring. I am new to the ABAP world and I am having a hard time figuring this out. Can someone please let me know if I am proceeding in the right direction or if there is another way of solving this. I am not sure what program is generating the above error messages. If there is more information that is needed, please let me know and I will try to get it for you.
thanks in advance for the help on thisHi,
There may be two possiblities for this issue.
1. Incorrect data passed to the field BSEG-WRBTR
2. Check the Decemial Notation(Menu Path->System->status->Own profile and Defaults Tab). If it is diffrent with the entered amount format, then it will trigger error.
YOu can run the Bach in the fouground by choosing fouground radio button option in the Pop up.
Thanks,
Ramakrishna -
Assigning a Numeric Value in a Cell Based on Text in Another Cell
In advance, thanks for your assistance. I'm trying, in vain, to assign a numeric value in a cell based on text (from a dropdown menu) in another cell. For example, in cell A5 I have a dropdown list that includes the options "blue", "red", "white", and "gold." I want cell C15 to be 2 if A5="blue"; I want C15 to be 0 if A5="red"; I want C15 to be 2 if A5="white"; and, I want C15 to be 1 if A5="gold."
Tippet,
This is a job for LOOKUP.
The expression for the Result cell is: =LOOKUP(A2, Lookup :: A1:A4, Lookup :: B1:B4)
The aux. table contains the matches that you assign for the colors.
Regards,
Jerry -
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 -
Can one assign a numerical value to a variable?
Hi All,
Good afternoon,
I am currently working on a form that has strings as values in 2 different listboxes, and depending on what is selected a message pops up. Here is the script I wrote, but it does not seem to work right
var a=aKlaclistbox.raWvalue=="SSK";
var b=bZlaslistbox.raWvalue=="SGT";
a.value=1;
b.value=2;
if(a > b){
xfa.host.messagebox("You cannot select a lower officer as the rating officer");
It does not work, and I am just wondering if there is any way I can get around it so that I can compare the values. I need help from anyone on this forum.
Thanks
v/r
TammyThere's probably a better way of doing this, as, depending on how many ranks you have, it could get cumbersome. Like using an array or something like that but not sure how to accomplish that.
If there are a lot of ranks to compare I think I'd suggest reworking things so that you can use the numeric value of the list box, it will be much easier in the long run.
As I mentioned above, I don't think the following is valid code:
var a=aKlaclistbox.raWvalue=="SSK";
Nor is (unless dealing with global variables):
a.value=1;
I think you need to do something like the following (hopefully someone else around here might have a better idea!):
var a;
var b;
if (aKlaclistbox.rawValue == "SSK") {
a = 1;
if (bZlaslistbox.rawValue == "SGT") {
b = 2;
//You would need a series of else/if with the above to map the different rank values.
if (a > b) {
xfa.host.messagebox("You cannot select a lower officer as the rating officer"); -
How do I assign a numerical value to text cells in cartesian products?
Hi, this is more of a two part question.
Question 1
I need to be able to assign numerical values (Table Value £ of set up) to text cells (Set Up).
1. The table "Combinations" then uses the formula
IF($A3≤Information::$B$8, MOD(INT((ROW(cell)−3)÷PRODUCT(C$1:$G$1)), B$1), "")
to take info from the "Information" table and create all possible permutations of "Set Up"
2."List" is the printed list of "Combinations"
3."Output of list" concatenates the data from "List".
Question 2
4. How do I print out the total numerical value of the concatenated string of "Output of List" into Output (£) of List"?>
When posting code or code snippets. HTML/XML or input/output, please use the code tags. The code tags help retain the indentation and formatting of the sample. To use the code tags, select the sample and click the CODE button.
Here is how the first code snippet would have appeared in code tags.
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
float num1, num2, num3, result;
num1 = Float.valueOf(jRadioButton1.getMnemonic());
num2 = Float.valueOf(jRadioButton2.getMnemonic());
num3 = Float.valueOf(jRadioButton3.getMnemonic());
result = num1+num2+num3;
jTextField1.setText(String.valueOf(result));And while I'm on the subject of retaining the indentation of the original sample, please use one of the two common conventions for indenting code blocks. E.G.
Convention 1:
class TheClass {
TheClass() {
}Convention 2:
class TheClass
TheClass()
} -
How do u convert a numeric value to char
hi,
how do u convert a numeric value NUMBER(22) to a character value.... like a to_char() function?
i've tried the CAST function it won't work.Hi,
Use of CAST function will convert NUMBER to CHAR but it takes a lot of time if there are large number of recrods.
Syntax:
CAST(col_name AS char)
I have tried this, it worked fine for less records.
Are you getting any error while using cast function or while querying..
As far as I know it won't give error in these cases (if correct syntax used) but it will take very much time (depending on the number of records) while querying.
-Vency
Maybe you are looking for
-
Urgent: Error in script output "output could not be issued"
Hi Experts, I am using transaction VL02N and issuing output then it is giving error "output could not be issued" in development server.when I productionize it in production it is giving the proper output when no of line item is upto two if it exceeds
-
Speed/Duplex are not advertising correctly with configured values
Hi, I have a gateway which runs on Windows Embedded Standard 7 which has Intel NIC Card. I have connected this gateway and a switch in a network where switch has configured speed/duplex as 1000Mbps/Full. When I set the Speed/Duplex on my gateway's NI
-
Unable to modify or create Protection Groups in DPM 2012 R2 - Error: 31220
"DPM failed to apply the required policies to this protection group since the recovery point limit for this DPM server has been exceeded. (ID: 31220)" I am trying to add new data sources to our DPM server and continually run into the above message. I
-
Spotlight has stopped working on my brand new iMac
I've had my new 17" Intel iMac for one day...and Spotlight has all of a sudden stopped working. It happened when I connected the G4 iMac to the new one but before I even accessed the G4. I tried to search for "Migration" using Spotlight and it didn't
-
Color Balance Adj Layer Characteristics Changed from CS4- CS5?
Maybe some guru with better connections to Adobe knows the answer to this. (or maybe I just forgot). I just discovered (and I don't think it is pilot error) that the characteristic behavior of the Color Balance Adjustment Layer is different in CS5 th