Other OutSystems sites...
OutSystems Website
About Agility Blog
OutSystems Network
Login
Signup
Forums
Academy
Forge
Ideas
Forums
›
Technology & Integration
›
RichWidgets\Input_Calendar and an button to activate it, doesn't fire OnChange
RichWidgets\Input_Calendar and an button to activate it, doesn't fire OnChange
Joop Stringer
Rank: #16
Posted on 2012-05-16
thumbs_up_ico
0
thumbs_down_ico
0
reply
post_link_ico
If I use a button to activate the calendar, it doesn't seem to fire the onchange of the input field ... anybody else has the same experience ?
To be sure what I do, create a button next to a dateInput field, add the richwidget, assign the input field AND assign the button to activate it.
The button activates the calendar, but after selecting a date it doesn't fire the onchange of the input field ....
Rebecca Hall
Rank: #48
Posted on 2012-05-16
thumbs_up_ico
0
thumbs_down_ico
0
reply
post_link_ico
After the 6.0 upgrade, the code in the Input_Calendar button was moved from the OnChange to the OnClick. If you change the button code to "onclick()" instead then the problem will be resolved.
Joop Stringer
Rank: #16
Posted on 2012-05-17
thumbs_up_ico
0
thumbs_down_ico
0
reply
post_link_ico
Nope, that's not what I mean.
With v6 in the richwidget you can also have a button to trigger the calendar to open, not clicking in the input field. By personal request :-) ....
That all works like a charm. However if then a date is selected, the onChange of the input field is not triggered ...
Felix Carrion
Rank: #1268
Posted on 2012-05-17
thumbs_up_ico
0
thumbs_down_ico
0
reply
post_link_ico
This is just what I need too. A button to trigger the calendar to open. The users I'm working with want to choose how they fill in a date with IE, whether they wanted to type the date themselfs or use the calendar input widget.
Rebecca Hall
Rank: #48
Posted on 2012-05-18
thumbs_up_ico
0
thumbs_down_ico
0
reply
post_link_ico
I was able to duplicate this. In the extended functions I set the onblur event to be "onchange()" and the event was triggered correctly after a date was selected from the calendar. The "OnUpdate" needs to be set to the Input Id as well.
João Rosado
Rank: #35
Posted on 2012-05-18
thumbs_up_ico
0
thumbs_down_ico
0
reply
post_link_ico
Hi all,
Note: I didn't try anything out, didn't even try to replicate the problem.
But just as a warning before everyone starts setting javascript events to detect changes: Native browser events are NOT triggered when values are changed by javascript.
Also events like onblur usually have browser specific behaviors.
That said, if that is the current widget behavior is not triggering the On Change action built-in on the platform, I recommend creating a small sample eSpace and submitting it as an issue.
Regards,
João Rosado
Joop Stringer
Rank: #16
Posted on 2012-05-19
thumbs_up_ico
0
thumbs_down_ico
0
reply
post_link_ico
@Rebecca: to me this seems like a bug in the widget !
@Joao: then Outsystems needs to fix the component to work properly. Outsystems knows now :-)
But keep on looking in the mail. A sample OML is coming your way... by the way to me this is not tested properly before it has been sent out to the publie :-)
Rebecca Hall
Rank: #48
Posted on 2012-05-21
thumbs_up_ico
0
thumbs_down_ico
0
reply
post_link_ico
CloneOfCommonWidgets.oml
I agree with the bug issue ... I'm wondering if it is how the OnUpdate action is getting set. I have included our example with the "bandaid" in place.
Joop Stringer
Rank: #16
Posted on 2012-05-21
thumbs_up_ico
0
thumbs_down_ico
0
reply
post_link_ico
Thanks rebecca,
I've just pointed support to this issue.
Hope they'll understand and fix it :-)
Joop Stringer
Rank: #16
Posted on 2012-05-24
thumbs_up_ico
0
thumbs_down_ico
0
reply
post_link_ico
News from support:
We’ve managed to reproduce the reported behavior.
In order to fix it in future revisions of the Platform, we’ve forwarded this information to our R&D.
In the meanwhile, the workaround suggested in the forums can be used to overcome this problem.
Joop Stringer
Rank: #16
Posted on 2012-07-11
thumbs_up_ico
0
thumbs_down_ico
0
reply
post_link_ico
@Outsystems: Any news on this item ??
João Rosado
Rank: #35
Posted on 2012-07-12
thumbs_up_ico
0
thumbs_down_ico
0
reply
post_link_ico
Hi Joop,
I did a fix for it after my last reply here.
It's already on the
6.0.1.19
, so I guess It will be available on the next 7.0 revision also.
Regards,
João Rosado
Eric Oud Ammerveld (Running PS version 7.0.1.7)
Rank: #36
Posted on 2012-07-12
thumbs_up_ico
0
thumbs_down_ico
0
reply
post_link_ico
João Rosado wrote
:
Hi Joop,
I did a fix for it after my last reply here.
It's already on the
6.0.1.19
, so I guess It will be available on the next 7.0 revision also.
Regards,
João Rosado
João,
Are you able to upload an OML with that just widget?
I've been trying to get this thing working since 08:30 this morning and just saw this thread.
Regards,
Eric
João Rosado
Rank: #35
Posted on 2012-07-12
thumbs_up_ico
0
thumbs_down_ico
0
reply
post_link_ico
Hi,
Don't have a example eSpace at the moment with it, but it doesn't need anything special to work.
Just make sure you are using the RichWidgets from the SystemComponents distributed on 6.0.1.19+
(Note that at the time of this post there is no 7.0 release with that fix)
Regards,
João Rosado
Eric Oud Ammerveld (Running PS version 7.0.1.7)
Rank: #36
Posted on 2012-07-12
thumbs_up_ico
0
thumbs_down_ico
0
reply
post_link_ico
Ok, extracted the richwidgets.
It's a small change.
Thanks!
Quick Reply
Notify me by email when someone answers to my post
attachment
Choose File
No file chosen
Submit
Login to reply
Something on your mind?
Login to Start a Discussion
Top Forums Posters
Gonçalo Martins
Davide Marquês
Ricardo Silva
Charles Colaço
Richard Pearson
Statler & Waldorf
Fábio Silva
Justin James
Robert Chanphakeo
Kilian Hekhuis
See leaderboard
Online Training
On-demand video lessons to help you learn at your own pace.
Learn More