GithubHelp home page GithubHelp logo

Comments (5)

andygup avatar andygup commented on September 27, 2024

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.

ionara avatar ionara commented on September 27, 2024

Cool, how about showing domain values instead of codes? Thank you!

from feature-service-editor-js.

andygup avatar andygup commented on September 27, 2024

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.

ionara avatar ionara commented on September 27, 2024

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.

andygup avatar andygup commented on September 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.