Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder Binaries » View Thread |
Messages 1 to 5 of 5 total |
Create GUID - Javascript |
Tue, Feb 21 2017 1:33 PM | Permanent Link |
Walter Matte Tactical Business Corporation | Use external JS to generate GUID. Walter Attachments: TestGuid.zip |
Thu, Mar 8 2018 8:23 PM | Permanent Link |
Frederick Chin | Walter,
/* Use external JS to generate GUID. */ Are GUIDs guaranteed to be unique and be used as a replacement for autoinc fields? -- Frederick |
Fri, Mar 9 2018 4:22 AM | Permanent Link |
Walter Matte Tactical Business Corporation | There are other JS implementations that are better.
Walter |
Fri, Mar 9 2018 5:12 AM | Permanent Link |
Matthew Jones | Walter Matte wrote:
> There are other JS implementations that are better. It is an interesting question as to why there is no built-in GUID generator in Javascript. But it does depend on what you need to achieve. When I was working on how I was going to generate them, I decided I didn't like the quality of the javascript ones - and so I just have my code keep a cache of GUIDs that it keeps topped up by asking the server (Delphi) for more. This is kept in local storage, so it isn't much cost. It strikes me that you could easily have the server send a prefix for clients to use, which could then guarantee system uniqueness. But that gets to awkward design, and again, pity it is not standard. -- Matthew Jones |
Fri, Mar 9 2018 8:43 AM | Permanent Link |
Frederick Chin | Walter Matte wrote:
/* There are other JS implementations that are better. */ I suppose that as a test to see if the GUID is unique, I could store it in a field with a primary index and if the storage fails, I would know that the GUID is not unique and I need to get another one. -- Frederick |
This web page was last updated on Thursday, March 28, 2024 at 06:05 PM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |