Error on show view vs. edit view
See original GitHub issueI’m getting an error with the following field on ‘show view’ only. Works just fine in ‘edit view’. Any idea what I’m doing wrong?
TypeError: Cannot read property 'updated_date' of undefined
at p.n.getInput (maField.js:25)
at p.n.fieldHasValidation (maField.js:36)
at p.n.getFieldValidationClass (maField.js:46)
at Object.get (angular.js:12474)
at p.$digest (angular.js:14404)
at angular.js:14609
at o (angular.js:4940)
at angular.js:5328
user.editionView()
.title('Edit User')
.fields(
nga.field('updated_date', 'datetime')
.label('Updated Date')
.format('medium')
.editable(false)
.template(maFieldTemplate('updated_date'), true),
user.creationView().fields()
);
user.showView()
.title('User')
.fields(user.editionView().fields());
function maFieldTemplate(value)
{
return '<ma-field ng-if="entry.values.' + value +
' !== undefined && entry.values.' + value +
' !== null && entry.values.' + value +
' !== \'0\'" field="::field" value="entry.values[field.name()]" entry="entry" entity="::entity" form="formController.form" datastore="::formController.dataStore"></ma-field>';
}
Issue Analytics
- State:
- Created 8 years ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
Error when trying to edit SharePoint View
I am trying to edit a view in my SharePoint List. When I select edit current view, I get an error. When I...
Read more >Show Error on the tip of the Edit Text Android
When any view get focus, you are setting no error and when focus changed, you check whether there is valid input or not...
Read more >User and Workspace Settings - Visual Studio Code
User and Workspace Settings. You can configure Visual Studio Code to your liking through its various settings. Nearly every part of VS Code's...
Read more >Unable to edit account settings or add a new view
To edit account settings or add a new view, you need to have the Editor role. If you do not have this permission...
Read more >How to fix the Office 365 Mac editing error
By far, the most common reason for “Your account can view documents but it doesn't allow editing on a Mac” error is having...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for the tip!
One more question, I’m getting and error trying ma-column. Any idea what I’m doing wrong?
This is my function.
And this is how it’s used,
@taraujoz having the same issue currently. Are you transforming your data at all in
RestangularProvider.addResponseInterceptor(...)
method?