View Full Version : Problem whit the definitions of Imput Mask Settings ??
steven
07-24-2006, 04:16 AM
Hi :)
I have tried to create a imput object on AMS6 and i have some problem to create it as i want.
I was trying to create a imput object with approximately 50 bytes and with spaces between those bytes, the AMS6 wont let me create so larger objects.
This pict show us the max of what the program can do:
http://img213.imageshack.us/img213/8422/untitled1fb0.gif
AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA
This is what i would like to do:
http://img225.imageshack.us/img225/5945/untitled2jb3.gif
AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA
Can somebody help me whit that code, please ? :yes
steven
07-24-2006, 06:26 AM
Is it possible to do it other way?
(Sorry about my poor english :o )
steven
07-24-2006, 10:45 AM
Is it possible to do it other way?
(Sorry about my poor english :o )
How can i create a input object whit this configuration without using the function Input Mask ?
http://img225.imageshack.us/img225/5945/untitled2jb3.gif
steven
07-25-2006, 03:51 AM
An input mask is a special pattern that controls what the user can type into a MaskedInput dialog or input object at run time. The mask can be any combination of regular text characters (literal characters) and special characters. Each special character, as outlined below, represents one "place" in the edit field where the user can type a character. Different special characters allow different kinds of characters to be typed in their "place" by the user. For example, the # character only allows a digit between 0 and 9 to be typed in its place, and the ? character only allows a letter between a and Z.
Note: The special characters you use in the input mask determine what the user will be allowed to type into the edit field.
Does anyone knows a way to put more special characters in a input object?
Help me please :huh :huh
Brett
07-25-2006, 09:32 AM
Try setting it with script on the On Show event of the page that the input object is on (example assumes that your input object is called "Input1"):
tblProps = Input.GetProperties("Input1");
tblProps.MaskText
= "AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA";
Input.SetProperties("Input1",tblProps);
steven
07-25-2006, 10:04 AM
Tks Brett for your help :yes
i have tried to do it but when i try to do the preview i received this error :rolleyes
http://img97.imageshack.us/img97/7685/untitled1mp5.jpg
:huh
http://img114.imageshack.us/img114/7375/untitled2mf2.jpg
:yes
Tks for your help
Be sure to replace the name of your input for "Input1". More than likely you named yours something else, and therefore the table doesn't exist.
steven
07-25-2006, 10:21 AM
Tks for your help Worm:yes
The object is defined is defined as INPUT1.. :yes
Now i have to study a little more to create that table, just as you say.. :)
Can you help me creating the table that i need to my input object?
Sorry about the poor english :)
steven
07-26-2006, 06:21 AM
where I can create the table.. and how should it look like :huh
On Page Properties or in the Object Properties :huh anyone can give me a hand on this please :rolleyes
I am newbie in this and iappreciate all help :yes :yes
tks guys ;)
create a table like this:
MyTable={}
steven
07-26-2006, 08:47 AM
Can you help me whit the full code .. i have tried to create but :(
Input1 = {tblProps}
tblProps = Input.GetProperties("Input1");
tblProps.MaskText = "AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA";
Input.SetProperties("Input1",tblProps);
or
tblProps = {input1}
tblProps = Input.GetProperties("Input1");
tblProps.MaskText = "AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA";
Input.SetProperties("Input1",tblProps);
in the project nothing happens :huh
http://img99.imageshack.us/img99/9794/untitled1ov8.jpg
and this is what a would like that appends when i typed in the input object.
http://img99.imageshack.us/img99/6049/untitled2ux4.jpg
tks for your help :yes
This should work.
-- This part creates an empty table
tblProps = {};
-- This part fills the table with the properties of the object named "Input1"
tblProps = Input.GetProperties("Input1");
-- This part replaces the mask with the one you want in the table
tblProps.MaskText = "AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA";
-- This part writes the table including the new mask back to the object named "Input1"
Input.SetProperties("Input1", tblProps);
steven
07-26-2006, 09:15 AM
it dosent work :( :(
whem i place some charaters in the input object, they apears just like i have writen and not like this
http://img225.imageshack.us/img225/5945/untitled2jb3.gif
Tks for you help TJS
i am desperate with this code ;( ;(
When you view the properties of the Input Object, what is the "Input Style" set to? It should be "Input Mask". You can add this to the code to ensure it is set that way.
-- This part creates an empty table
tblProps = {};
-- This part fills the table with the properties of the object named "Input1"
tblProps = Input.GetProperties("Input1");
-- This part sets the input object to use input mask
tblProps.InputStyle = 2;
-- This part replaces the mask with the one you want in the table
tblProps.MaskText = "AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA";
-- This part writes the table including the new mask back to the object named "Input1"
Input.SetProperties("Input1", tblProps);
Edit: Seems to work when I try it....
Darryl
07-26-2006, 09:27 AM
When I was looking into your problem, I noticed that it appears the Input Mask does not work on Input Objects set to multiline. At this point, I'm not sure if it is a bug or by design (but incorrect in the docs). I know that the Password option is not supported for multiline, so that one may not work either. I did get the single line to work though.
I've logged the issue to be looked into.
REF: 13410
steven
07-26-2006, 09:43 AM
When I was looking into your problem, I noticed that it appears the Input Mask does not work on Input Objects set to multiline. At this point, I'm not sure if it is a bug or by design (but incorrect in the docs). I know that the Password option is not supported for multiline, so that one may not work either. I did get the single line to work though.
I've logged the issue to be looked into.
REF: 13410
That it.. the problem whas the multine ON :eek:
The code work just fine. ( Tks Brett and TJS)
I apreciates your help and i hope that the next verios of AMS support the multiLine Input Mask.
Tks very mutch for all help..
:yes :yes
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.