Coder Social home page Coder Social logo

Add Form type about solution.js HOT 7 CLOSED

MikeTschudi avatar MikeTschudi commented on May 27, 2024
Add Form type

from solution.js.

Comments (7)

MikeTschudi avatar MikeTschudi commented on May 27, 2024
  • create Solution
    • Get Survey2Service relationship
    • Save attached zip to Solution item
  • deploy Solution
    • Restore relationship
    • Restore zip

from solution.js.

shoe913 avatar shoe913 commented on May 27, 2024

@MikeTschudi @chris-fox

Testing this, everything looks fine. Just one quick question about the following scenario.

  • Solution A contains a survey
  • Solution B contains a different survey which uses the same feature service as Solution A
  • Solution C contains both surveys which reference the same feature service

If Solution A is deployed, and then Solution B is deployed, a single feature service should be created and share by both solutions, correct?

Currently, Solution A and Solution B both get their own version of the feature service. This is not the behavior I expected. I was anticipating one version of the feature service which is shared by the two solutions.

Solution C works as I would expect and a single feature service is shared by both surveys.

from solution.js.

chris-fox avatar chris-fox commented on May 27, 2024

@shoe913, did you test this with Ryan's app or the Deploy Solutions test app? Ryan's app is the only one that has the reuse logic enabled so you need to use that to see the behavior your describe.

from solution.js.

shoe913 avatar shoe913 commented on May 27, 2024

Cool, that is what I wanted verification on. I'll test in Ryan's app to verify that behavior.

Thanks!

from solution.js.

shoe913 avatar shoe913 commented on May 27, 2024

Ryan's App did the trick, this looks good to me.

from solution.js.

shoe913 avatar shoe913 commented on May 27, 2024

@MikeTschudi @chris-fox

Further testing revealed some issues with forms. It looks like they are being added as part of the template or as a dependency. Both tests use the default sample form. They copy app doesn't seem to read the form and deploying also fails.

When making both of the templates below, I shared the form to the group used to create the solution template.

Template added Manually:
https://localdeployment.maps.arcgis.com/home/item.html?id=4a52e9e465084329a769bd78c1d30ec6

Template read as Dependency:
https://arcgis4localgov2.maps.arcgis.com/home/item.html?id=7faeba4455f74bb99b380082e8dc739c

Looks a little fishy to me that the two items are not consistent. I'm guessing this is at play when actually deploying the templates.

from solution.js.

shoe913 avatar shoe913 commented on May 27, 2024

On further inspection, everything looks good.

from solution.js.

Related Issues (20)

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.