Comments (5)
Is it possible to hide fields
Yes, there are several ways. There's the Grid Legend Control panel shows you the code for controlling which fields are made visible. Or, you can control the queryString and the outfields returned by the Query. See line #358: featureEditor.outFields = featureEditor.localEnum().OUTFIELDS;
Is there a way to show the date in a date format?
Definately. The base code just uses a generic parser that doesn't care about what the data is. So, take a look in the featureEditor.queryRecordsByPage() method. in the "for" loop at line #493 you can add code to check if key.toString() matches your date field name and then do a proper conversion using a pattern like this or something similar: var date = new Date(1375315200000); var day = date.getDate(); var month = date.getMonth() + 1; var year = date.getFullYear(); and the combine those into the correct looking string.
from feature-service-editor-js.
Cool, how about showing domain values instead of codes? Thank you!
from feature-service-editor-js.
Ah yes. This would follow a coding pattern similar to what I mentioned above for the date conversion. You would need to detect when that field is matched. Then you could either read those values from a hand-coded array or a database and swap them out as appropriate. I'm not sure how many codes you have.
from feature-service-editor-js.
Thank you so much for this! I will be definitelly using this in the pages of my web app that are build with Javascript!!! Thank you!!!
from feature-service-editor-js.
You bet, let me know if you have any more suggestions or comments. I'll go ahead and close this out.
from feature-service-editor-js.
Related Issues (11)
- Occasionally double to click edit functionality fails.
- Dgrid dirty bit not working after feature service reload
- FeatueTable only reading? HOT 3
- Feature Service Editor does not show the records HOT 8
- Not Editable HOT 6
- Update to JS API v3.10
- Incorrectly treats editable FeatureService as not editable
- Move editing functionality into separate libraries
- id undefined error when canceling row delete
- Legend not working at JS API v3.10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from feature-service-editor-js.