How to discard non alphanumeric key in a string ?
Dear all,
To start an application that i have developped, i would like that the user write its password in the first panel but i want that each time that user enter a character in the string control Hide_Password (see attached picture), this one is automatically convert in a "." to hide the password . The real password is saved in a second string control. It is actually what my vi is doing by using a Key Up event. But now i want to prevent any non alphanumerical character to be enter in the password, especially i do not want that the user can press the menu key as <Ctrl>, <Shift>, <Alt>, <Command>, and <Option> and also the <Left>, <Up>, <Right>, <Down>. I suppose that i have to use Key Down? event by discarding all the key that i do not want but i am sure that there is a more easy way to do it.
Do you have any idea ?
Morover, If you think that there is something wrong in my vi, please let me know.
Thanks
Philippe
Solved!
Go to Solution.
Attachments:
FrontPanel.png 12 KB
BlockDiagram.png 43 KB
The real password is saved in a second string control.
One thing you shouldn't do is use a (hidden?) String control for data storage. Use the one control for data input (as a password as others have suggested) and pass the data throughout your program with a wire.
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
Similar Messages
-
Non-Alphanumeric Character in a String
I understand if we have a non-alphanumeric character in a String, we have to put a backward slash in front of that character. For example, we have to put a backward slach in front of a "backward slash". Eg. we do \\ to put a backward slash in a String.
What about a dot (.) or a dash (-)? Do we have to do the same thing?No, it's only for control characters like "newline", characters with special meaning in strings i.e. " and \ and any character that can't be represented in the character encoding of your java source file.
-
How to support non alphanumeric characters when using WORLD_LEXER?
BASIC_LEXER has an attribute of printjoins which we can specify the non alphanumberic characters as normal alphanumberic in query and included with the token. However, WORLD_LEXER doesn't have this attribute. So in order to use some non alphanumberic characters and treat them as alphanumberic characters in Oracle Text Index, such as ><$, what should I can?
Thanks in advance for any help.I use WORLD_LEXER to create Oracle Text Index to support UTF-8.
Below is the script to create table and index:
REM Create table
CREATE TABLE my_test
( id VARCHAR2(32 BYTE) NOT NULL,
code VARCHAR2(100 BYTE) NOT NULL,
CONSTRAINT "my_test_pk" PRIMARY KEY ("id"));
REM create index
exec ctx_ddl.create_preference('stars_lexer','WORLD_LEXER');
exec ctx_ddl.create_preference('stars_wordlist', 'BASIC_WORDLIST');
exec ctx_ddl.set_attribute('stars_wordlist','substring_index','TRUE');
exec ctx_ddl.set_attribute('stars_wordlist','PREFIX_INDEX','TRUE');
-- create index for Table corrosion level
CREATE INDEX my_test_index
ON my_test(code)
INDEXTYPE IS CTXSYS.CONTEXT
PARAMETERS ('LEXER stars_lexer STOPLIST stars_stop WORDLIST stars_wordlist SYNC(EVERY "SYSDATE+5/1440") TRANSACTIONAL');
INSERT INTO my_test('1', 'English word1');
INSERT INTO my_test('2', '违违');
INSERT INTO my_test('3', '违违&^|违违');
When I query:
select * from corrosion_levels r where contains(r.CORROSION_LEVEL, '{%违${|违%}') > 0
ID CODE
3 违违$(|违违
2 违违
Actually, the result what I want is: 3 违违$(|违违
So the requirement is that all non-alphanumeric characters should be treated as normal alphanumeric charcters. Please tell me how to implement it. -
Do Any One Can explain How to Create Non-Summing Key Figure??
Hi Guru's,
Can Any buddy explain how to create a Non-Summing Key Figure?
Details:
I am creating Three Key Figures, One of them are Ticket Number's.
Ticket Number supposed to be a Characteristic, but I was asked to do it as a Key Figure.
If I create it as normal KF, then the Ticket Numbers will be summed, isn't it?
Your Help much appreciated.
Regards,
BHHi,
If you are going to use that keyfigure in ODS, in Update rule you are having the option 'OVERWRITE' .
choose Overwrite for that keyfigure instead of 'Addition'.
rgrds,
v.sen. -
How to display Non Cumulative key figure data
Hi,
I want to check if there is any data for a non-cumulative key figure. While i am trying to display the data from cube or Multi provider, it is not showing this field. is there any way to check the data for this field other than using reports.
Regards,
VishnuHi,
Take Eg: Quantity of valuated stock - 0VALSTCKQTY it is combination of
Quantity Received into Valuated Stock- 0RECVALSTCK and
Quantity Issued from Valuated Stock- 0ISSVALSTCK
In report you can see only 0VALSTCKQTY Keyfigure.
And the above Two Keyfigures are filling by Routines using Process Keys.
This is for 0IC_C03 and data you can check in MB5B Tcode in ECC.
Check;
Note 745788 - Non-cumulative mgmnt in BW: Verifying and correcting data
Thanks
Reddy -
How to create non cumulative Key Figure.
Friends Let me know steps for creating Non Cumulative Key Figure, can any one tell me where can i get documents for this. points will be rewarded
Hi,
check these help links
http://help.sap.com/saphelp_nw04/helpdata/en/8f/da1640dc88e769e10000000a155106/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/95/1ae03b591a9c7ce10000000a11402f/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/80/1a6305e07211d2acb80000e829fbfe/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/80/1a6312e07211d2acb80000e829fbfe/content.htm
It's a big topic so it's not possible to write everything here.
You can search the forums also.
Thanks -
How to create non additive key figures
I don't want to add unit price in my transactional data that is loaded in my infocube. I automatically adds the unit price how to previent this in modelling the key figures.
Thank you.
JoeThis cannot be prevented. Key Figures will get added up.
One way around it is to store the quantity and the value associated with it and calculate the price at run time.
Other option is to store the price as a characterstic. If you need to use it in the queries, then use a formula variable with processing as replacement path. -
How to replace non-alphanumeric characters with " " in a String?
Hi,
Anyone can help with this?
I guess I should use the replaceAll-method??I need to keep characters that are generally ok to
use in
sentences, like ".", ",", "!", and "-" and alsoall
digits and letters
(numbers and alphabetic characters).Add those characters to the pattern in that case. Add
them just before ]
but placing the '-' char as the last in the list. -
PHP: automatically replace alphanumeric characters in a string
Quick question:
How do I program a PHP script to replace all non-alphanumeric
charters within a string, with underscores?.oO(AngryCloud)
>Yes, this does help, although it is only alphabetic.
>
>Will changing the line to this make it alphanumeric?:
>
>$new_string = preg_replace("/[^a-zA-Z0-9]/", "_",
$string);
Did you try it? ;-)
You could also use this shorter pattern:
/[^a-z\d]/i
Should be the same (\d matches decimals and the /i modifier
makes the
entire thing case-insensitive).
Micha -
How to create a non-cumulative key figure & How to make a info cube as so
Hi Experts,
How to create a non-cumulative key figure & How to make an info cube as non-cumulative cube?
Can any one kindly provide me the steps we need to performe?
Thanks in Advance,
RajHi Azael,
In the How to Papers, you will find a Guide on how to take a Sanpshot view of the Stocks(How To Handle Inventory Management Scenarios in BW). Basically if you implement the Guide, you will have another cube called ICSNAP1, which will contain stock quantities /values at the end of each month. You will therefore have to take stock at the end of the last month from that cube and add up the relevant receipts and issues to arrive at the current Stock or Stock as on a particular date.
Hope this helps!
Regards
Sriram -
How use non cumulative key figure and noncumulative key figure screenshot
how use non cumulative key figure and noncumulative key figure screenshot
Hello,
Please see this docs for Non-Cumulative and Snapshot scenario,
[How to Handle Inventory Management Scenarios in BW (NW2004)|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328]
[Non-Cumulative Values / Stock Handling|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0b8dfe6-fe1c-2a10-e8bd-c7acc921f366]
Thanks
Chandran -
How to maintain, the validity internal when we use non commulative key figu
Hi Friends,
I would like to check, I've created query on Inventary infocube, when we trying to execute the report, I'm getting the following error.
The validity internal has the initial value as lower limit
Generally, How we will maintain validity internal when we use non cumulative key figures.
Can anybody have some idea about this.
SiriYou need to maintain the validity period on which your stock can be calculated. The user will see special values when asking for stock outside this period (don't remember the special value).
It can be a fixed period (in a first step, I will recommend that). For instance : from 01.01.1000 to 31.12.9999. Thus you will never have any error.
It can also be a dynamic period (generally linked to the last data load).
Regards,
Fred -
How to best generate a unique alphanumeric key
Hi:
I have a requirement to generate a unique alphanumeric key 20 characters long.
I know that I can use sys.dbms_random.string('X', 20) but I also have a requirement to not include certain characters that could be missread, i.e. no 0 (zero), O(uppercase oh) and a few others.
My questions are:
1) Is there a way to tell dbms_random to not include certain characters in the key generation
2) If the answer to 1 is No, what would be the best way to replace the unwanted characters. I am thinking just do a translate right afterwards with a randomly generated set of characters that do not include the characters I am interested in and seeded
upon package initialization. Any other ideas.
3) Is there a better way of meeting this requirement within PL/SQL?
Thanks,
ThomasThe most safe would be to use something like below if efficient enough
select listagg(x.ltr,'') within group (order by y.step desc) key
from (select level lvl,
substr(:alphabet,level,1) ltr
from dual
connect by level <= length(:alphabet)
) x,
(with
to_base(step,num,base,quot,remain) as
(select 1 step,num,base,trunc(num / base) quot,mod(num,base) remain
from (select :sequence_value num,length(:alphabet) base
from dual
where :sequence_value between power(length(:alphabet),:key_length - 1)
and power(length(:alphabet),:key_length) - 1
union all
select step + 1,quot,base,trunc(quot / base),mod(quot,base)
from to_base
where num > 0
select step,remain
from to_base
where num > 0
) y
where x.lvl = y.remain + 1
Regards
Etbin -
Has anyone looked at the example 'Only allow alphanumeric keys' on the Example Programs section of the NI website (posted 5th May 2010)?
http://decibel.ni.com/content/docs/DOC-10378
My question is, how does this particular program differentiate the regular keys, from the none regular? Ive stepped through it numerous times now with the lightbulb on, and still fail to see how it will happily pass a Z, but not F1 or space, for example.
Regards,
Craig
Solved!
Go to Solution.On the left side of the for loop there are two arrays. The first array is empty and used to initialize the shift register.
The second array has all the allowed keys. That's the crucial bit. It only shows the first element, but it has more elements.
The loop goes over each element in that array and checks if it's in the keys which have been pressed. If it is, it adds it to the top array.
Personally, I would probably implement something like this using an event structure with the Key Down? event, but that depends on the actual requirements.
Try to take over the world! -
Purpose of Non Cumulative key figures
Whatu2019s the purpose of Non Cumulative key figures?
Hi....
There is an explanation of advantages and disadvantages of using non-cumulative key figures in "How to handle inventory management scenarios in BW" white paper:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/how%20to%20handle%20inventory%20management%20scenarios.pdf
Also Check..........
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0b8dfe6-fe1c-2a10-e8bd-c7acc921f366
http://help.sap.com/saphelp_nw04/helpdata/en/80/1a62dee07211d2acb80000e829fbfe/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/80/1a6305e07211d2acb80000e829fbfe/frameset.htm
Re: Non-Cumulative keyfigure example
Hope this helps.....
Regards,
Debjani........
Edited by: Debjani Mukherjee on Oct 27, 2008 3:46 AM
Maybe you are looking for
-
Error converting data type nvarchar to numeric 'witholding tax' (OWHT)
Hi Guys. After I have upgraded my clients 2007 PL 30 database to 8.81 PL05, and running a repair to fix inconsistincies, I am receiveing some error when opening any sales documents. It takes place when I open a sales document, or browse previous docs
-
Dear Sir, While iam making PO role VN does not exist warning mssg is appearing. i checked the partner function and also vendor master. both places VN are there can anyone tell me why this warning mssgs SK
-
Scheduling report in back ground after the previous report is executed
Hi, There is one report which will be executed manually, once that is executed my report should be executed automatically in background. Pls help me in how to do this. Thanks, Lucky
-
OO4O for C++ Class Library on UNIX?
The documentation says that there is no need to use the OLE development kit for C++ classes. Does this mean that the OLE layer is implemented within the C++ classes, and thus OO4O can be run under UNIX? (Sorry, I don't know much about Windows).
-
LabVIEW 5.0.1f1 installed on Windows 2000
I'm transferring LABView 5.01f1 programs from a W95 computer to a W2000 computer. I set all the software directories the same on both computers. When I open a .vi on the W2000 computer it had to search for many of the sub .vi's. I had to go thru all