You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2020/01/13 10:52:37 UTC
[GitHub] [royale-asjs] pashminakazi opened a new issue #675:
mx:NumberValidator is validating NumericStepper source incorrectly
pashminakazi opened a new issue #675: mx:NumberValidator is validating NumericStepper source incorrectly
URL: https://github.com/apache/royale-asjs/issues/675
Project Details are :
https://paste.apache.org/cpo8y
Test case is available on VDI.
Go to Accounts Payable from Select in Menu
Go to Bank Reconciliation from Setups in Menu
File : com/dbz/modules/GL/dbzBankReconSetup.mxml
When i am entering **9999** into NumericStepper it turns into **100** and validation of numericStepper using mx:NumberValidator is incorrect
Flex Vs Royale Video :

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [royale-asjs] aharui commented on issue #675: mx:NumberValidator is
validating NumericStepper source incorrectly
Posted by GitBox <gi...@apache.org>.
aharui commented on issue #675: mx:NumberValidator is validating NumericStepper source incorrectly
URL: https://github.com/apache/royale-asjs/issues/675#issuecomment-574035205
I cannot understand the problem from watching these videos. What values are not validating and when? Your description above described the code, but not the values that are causing a problem. From watching the video, it looks like the validator is correctly saying that "0" is invalid since the minValue is set to 1 in the code you showed.
Instead of making more videos, try making a simple test case.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [royale-asjs] aharui commented on issue #675: mx:NumberValidator is
validating NumericStepper source incorrectly
Posted by GitBox <gi...@apache.org>.
aharui commented on issue #675: mx:NumberValidator is validating NumericStepper source incorrectly
URL: https://github.com/apache/royale-asjs/issues/675#issuecomment-574028376
What value is not validating?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [royale-asjs] pashminakazi commented on issue #675:
mx:NumberValidator is validating NumericStepper source incorrectly
Posted by GitBox <gi...@apache.org>.
pashminakazi commented on issue #675: mx:NumberValidator is validating NumericStepper source incorrectly
URL: https://github.com/apache/royale-asjs/issues/675#issuecomment-574031906
In dbzBankReconSetup
<mx:NumberValidator id="vldrc_ACCOUNT_START" enabled="{rc_ACCOUNT_START.enabled}" source="{**rc_ACCOUNT_START**}" property="value" required="true" minValue="1" maxValue="9999999" allowNegative="false"/>
source="{**rc_ACCOUNT_START**}" is **NumericStepper**
<s:NumericStepper id="**rc_ACCOUNT_START**" x="153" y="35" width="100" height="22" maximum="9999999" maxChars="7" tabIndex="3" change="isModified=true"/>
On save button fn_ValidateForm is called which is validating NumericStepper values.
if(vldrc_ACCOUNT_START.enabled && vldrc_ACCOUNT_START.validate().type == ValidationResultEvent.INVALID) {
return;
}
It should not return from here because i am giving right value for NumberValidator **vldrc_ACCOUNT_START** so why it is returning ?
it is not returning in Flex. i am giving same values in Royale
it means the validation is not correct
Flex vs Royale Video

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [royale-asjs] pashminakazi edited a comment on issue #675:
mx:NumberValidator is validating NumericStepper source incorrectly
Posted by GitBox <gi...@apache.org>.
pashminakazi edited a comment on issue #675: mx:NumberValidator is validating NumericStepper source incorrectly
URL: https://github.com/apache/royale-asjs/issues/675#issuecomment-574995216
I can't understand the problem
In a simple test case
https://paste.apache.org/fflx8
when i give a value of numericStepper 1 and click save button it doesn't return and execute else part that Alert.show("Validation is working");
if(vldrc_ACCOUNT_START.enabled && vldrc_ACCOUNT_START.validate().type == ValidationResultEvent.INVALID) {
return;
}
Alert.show("Validation is working");
means validation is correct.
In my dbzBankReconSetup everything is same then why it returns?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [royale-asjs] pashminakazi commented on issue #675:
mx:NumberValidator is validating NumericStepper source incorrectly
Posted by GitBox <gi...@apache.org>.
pashminakazi commented on issue #675: mx:NumberValidator is validating NumericStepper source incorrectly
URL: https://github.com/apache/royale-asjs/issues/675#issuecomment-576214246
I have identified the same problem in Example :
https://paste.apache.org/to6wh
If i have numericStepper with enabled=false then numericStepper is disabled and the default value of numericStepper is "0" so the debugger returns from it and i can not save the record.
in flex if there is a numericStepper enabled=false ,debugger doesn't returns from it and continues its execution
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [royale-asjs] pashminakazi commented on issue #675:
mx:NumberValidator is validating NumericStepper source incorrectly
Posted by GitBox <gi...@apache.org>.
pashminakazi commented on issue #675: mx:NumberValidator is validating NumericStepper source incorrectly
URL: https://github.com/apache/royale-asjs/issues/675#issuecomment-576206410
In Example i have selected "1" from numericStepper
value in validate function is "1"

In my Setup, I am selecting any number from numericStepper it is returning 0
value in validate function is "0"

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [royale-asjs] pashminakazi commented on issue #675:
mx:NumberValidator is validating NumericStepper source incorrectly
Posted by GitBox <gi...@apache.org>.
pashminakazi commented on issue #675: mx:NumberValidator is validating NumericStepper source incorrectly
URL: https://github.com/apache/royale-asjs/issues/675#issuecomment-574027499
Range is working now but NumericStepper is validation is not working

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [royale-asjs] pashminakazi opened a new issue #675:
mx:NumberValidator is validating NumericStepper source incorrectly
Posted by GitBox <gi...@apache.org>.
pashminakazi opened a new issue #675: mx:NumberValidator is validating NumericStepper source incorrectly
URL: https://github.com/apache/royale-asjs/issues/675
Project Details are :
https://paste.apache.org/cpo8y
Test case is available on VDI.
Go to Accounts Payable from Select in Menu
Go to Bank Reconciliation from Setups in Menu
File : com/dbz/modules/GL/dbzBankReconSetup.mxml
When i am entering **9999** into NumericStepper it turns into **100** and validation of numericStepper using mx:NumberValidator is incorrect
Flex Vs Royale Video :

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [royale-asjs] aharui commented on issue #675: mx:NumberValidator is
validating NumericStepper source incorrectly
Posted by GitBox <gi...@apache.org>.
aharui commented on issue #675: mx:NumberValidator is validating NumericStepper source incorrectly
URL: https://github.com/apache/royale-asjs/issues/675#issuecomment-575011428
I compiled and ran the test case and the Alert showed up.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [royale-asjs] aharui closed issue #675: mx:NumberValidator is
validating NumericStepper source incorrectly
Posted by GitBox <gi...@apache.org>.
aharui closed issue #675: mx:NumberValidator is validating NumericStepper source incorrectly
URL: https://github.com/apache/royale-asjs/issues/675
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [royale-asjs] aharui closed issue #675: mx:NumberValidator is
validating NumericStepper source incorrectly
Posted by GitBox <gi...@apache.org>.
aharui closed issue #675: mx:NumberValidator is validating NumericStepper source incorrectly
URL: https://github.com/apache/royale-asjs/issues/675
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [royale-asjs] aharui commented on issue #675: mx:NumberValidator is
validating NumericStepper source incorrectly
Posted by GitBox <gi...@apache.org>.
aharui commented on issue #675: mx:NumberValidator is validating NumericStepper source incorrectly
URL: https://github.com/apache/royale-asjs/issues/675#issuecomment-575011682
If the validate() method is returning INVALID, you will have to debug into it and understand why.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [royale-asjs] pashminakazi commented on issue #675:
mx:NumberValidator is validating NumericStepper source incorrectly
Posted by GitBox <gi...@apache.org>.
pashminakazi commented on issue #675: mx:NumberValidator is validating NumericStepper source incorrectly
URL: https://github.com/apache/royale-asjs/issues/675#issuecomment-574995216
I can't understand the problem in a simple test case
https://paste.apache.org/fflx8
when i give a value of numericStepper 1 and click save button it doesn't return and execute else part that Alert.show("Validation is working");
if(vldrc_ACCOUNT_START.enabled && vldrc_ACCOUNT_START.validate().type == ValidationResultEvent.INVALID) {
return;
}
Alert.show("Validation is working");
means validation is correct.
In my dbzBankReconSetup everything is same then why it returns?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services