Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
Rebecca Hall
0
Views
5
Comments
Object Id Clearing Out
Question
I have a screen action that does an ajax refresh but it is clearing out the object id so further code is causing errors. Is this because of the ajax refresh or it is this a bug? This object had a name or it wouldn't be showing on the widgets list.
André Siébra
This is really weird... an Ajax refresh should not do that, since this Id is dinamically generated on server side. I suspect it's a bug... But you can easily workaround this, by changing the way you access this input: Use a JQuery selector to get the element (by a extended property set, or a css class) instead its dinamic Id.
Cheers,
Rebecca Hall
We did a workaround already but when you only want to target 1 object it makes it difficult to refresh just the one.
1 reply
28 Oct 2015
Show thread
Hide thread
André Siébra
Rebecca Hall
wrote:
We did a workaround already but when you only want to target 1 object it makes it difficult to refresh just the one.
But it seems you are refreshing all the table, aren't you? If you want to refresh just one element, you can try to create a hidden field with a destination Action that refresh it (Ajax refresh). So in the RunJavascript action you trigger it using $('#element').click() (or call WidgetClick action from Richwidgets). I think in the response the dinamic Id will be correctly genarated this way.
obs.: if the input is inside a TableRecord, you can concat the CurrentRowNumber property with the extended property value of the input (used by the JQuery selector) to select an specific element.
Suraj Borade
Hi Rebeca,
Do you want to pass the value of that input control or just Id? If you want to pass the value then there are other ways too.
Regards,
Suraj Borade
Rebecca Hall
We are refreshing the whole table because we are reording the items on the list. We have other components outside of the table that have the same class as the one we are trying to refresh, so rather than just refreshing the one in the table we get all of them on the screen.
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
Loading...