Code Monkey home page Code Monkey logo

Comments (7)

feather812002 avatar feather812002 commented on June 4, 2024

I check the code into details about this issue in today ,
I found maybe we need more work around this ,
My code only setting then the type is "text" and "keyword", the default value will be add into field.
in follow format :

<field listdisplayseparator="newline" listinputseparators="comma semicolon newline" linespacing="1" spacebefore="1" spaceafter="1" useappletinbrowser="false" allowtabout="false" defaultfocus="false" storelocally="false" alignPardef="left" listPardef="none" type="text" kind="editable" computeaftervalidation="false" allowmultivalues="false" width="100pt" height="30pt" bgcolor="#ffffff" name="test">
            <code event="defaultvalue">
              <formula>@Now</formula>
            </code>
</field>

So, maybe the datetime also in this format.
I add this type , but for other type : color,number,richtext,timezone,names,etc,all follow this format ?
and maybe we need check this into details from the dxl export from Designer , then we can let the defaultvalue work correct for these all types.

from moonshine-ide.

feather812002 avatar feather812002 commented on June 4, 2024

Now, I let the default value work for all types on above format ,but maybe it will broken the ODP build.
I can't sure all types work on this format.
So, if you build fail with the default value, let me know and post the correct dxl format from Designer,
Then I will update it in next.

from moonshine-ide.

feather812002 avatar feather812002 commented on June 4, 2024

image
The client objects,contain 4 types, it look like not support for all object and type,
so , I think maybe we need more careful in here.

from moonshine-ide.

JoelProminic avatar JoelProminic commented on June 4, 2024

To test, I built a form in Moonshine with default values for each of the core types. The default values were populated as expected:
image

TODO:

  • Test multivalue types
  • Test more types
  • Test the other Client Objects - this might be outside the scope of this issue.

from moonshine-ide.

JoelProminic avatar JoelProminic commented on June 4, 2024

@feather812002, if you can run the missing test cases (and document your tests in the issue), that would be helpful. You should be able to test like this:

  1. Create a Form
  2. Add a new field for each type, and set a default value
  3. Save the Form
  4. Build the database
  5. Open the database in the local Notes client
  6. Open the form, and check that the default values are populated.

If you are missing something you need to run these tests, let me know. I know you don't have access to Domino Designer, but that should not be required here.

from moonshine-ide.

JoelProminic avatar JoelProminic commented on June 4, 2024

Testing from @feather812002

09:11:33: I also test the default value , from my test,
most type should work fine
image
image

09:12:10: I can open it with Designer and all default value show correct

from moonshine-ide.

JoelProminic avatar JoelProminic commented on June 4, 2024

Here is a quick test of the each of primary field types in the Notes client. I see the default values are showing like I expect, so this looks good:
image

from moonshine-ide.

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.