NetTalk Central

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Bruce

Pages: [1] 2 3 ... 737
1
Web Server - Ask For Help / Re: PageFooter Session Manager issue
« on: June 14, 2024, 06:40:37 AM »
updated js file attached.
Will be in the 14.24 build.

2
Web Server - Ask For Help / Re: Button ID or class for CSS
« on: June 14, 2024, 04:40:14 AM »
>> The  name="Button1_3"  - is unique but name is not a css selector. 

of course it is. You can select on anything in sooo many different ways. Name is an attribute, and you can use attributes in selectors. Specifically;

[name="Button1_3"] {
    /* Your CSS styles here */
    color: blue;
}

attributes are used in selectors using [ and ]

Cheers
Bruce

3
Web Server - Ask For Help / Re: PageFooter Session Manager issue
« on: June 14, 2024, 04:36:58 AM »
>> But it appears (?) to be subtracting from a counter variable: this.state.timeLeft -= 1

correct. It's incorrectly assuming that the timer is running once per second, but it's obviously running slow.
It should query the local time to determine time elapsed, not just reduce it by a second.
I'll tweak it for the next build.


4
Web Server - Ask For Help / Re: PageFooter Session Manager issue
« on: June 13, 2024, 06:43:08 AM »
noted.

5
Web Server - Ask For Help / Re: Passing parameters on a Button
« on: June 13, 2024, 06:41:10 AM »
'GID=' & FIL1:GUID & '&FROMTABLE=Table1'

6
what does your line 7807, and surrounding lines look like?
Perhaps post an example of the error?

7
When a session ends you can't direct to a Form - and specifically not a login page.
Because forms require a session.

8
Web Server - Ask For Help / Re: File Upload button on MemForm
« on: May 27, 2024, 08:57:09 PM »
Very possible Jeff - make an example and post here.

9
Web Server - Ask For Help / Re: Old wizard
« on: May 27, 2024, 08:52:48 PM »
thanks

10
Web Server - Ask For Help / Re: GUID Question
« on: May 27, 2024, 08:51:54 PM »
>> A .Net developer told me that the GUID should ideally be 32 characters.

He's likely referring to the UID version 4 format.
https://en.wikipedia.org/wiki/Universally_unique_identifier
which is a 16 byte string (but often represented as 32 hex digits, with some colons.) (16 character alphabet, 0-9 and a-f)
These have about 121 bits of randomness (aka "entropy")

The Guids we tend to use in Clarion are also 16 chars long, but because it's easier to deal with text values, the alphabet is restricted to 36 characters (0-9 and A-Z). This results in approximately 83 bits of entropy.

So yes, a UIDv4 has more bits of entropy, and can hold more values than the Guid you are using. However it is harder to deal with as it can contain binary values, so needs to continually be encoded and decoded when moving to a text form.

The risk of a collision is n / 2^82 where n is the number of records in your table. (Not in the database, in the table.) If you feel that this value rises to unacceptably high levels then you can increase the length of the string, or the size of the alphabet. I would suggest this is a useful thing to do when you are expecting around 4 835 703 278 458 516 698 records - at which point the risk of a collision would be about 1 in a million.




11
Web Server - Ask For Help / Re: Colon cleansing?
« on: May 19, 2024, 10:55:24 PM »
>> and I'm not bright enough to rewrite the label text

rewriting all the prompts for an existing app, especially a larger one, sounds like a lot of work....

12
Web Server - Ask For Help / Re: disable moving columns
« on: May 17, 2024, 06:21:03 AM »
turned off in 14.22

13
Web Server - Ask For Help / Re: Colon cleansing?
« on: May 16, 2024, 08:14:06 PM »
Hi Jane,

So, yeah, it's a very "clarion" think to put colons at the end of a prompt.
However, this makes the transition to labels (which is better for screen readers) ugly. And also makes the use of floating, or fixed, labels ugly.

To make things consistent (and ultimately a lot more useful) removing the colons from prompts is desirable (and Nt14 does this for us.)

So, no, there's no easy way around that at the moment. Although there could be one if I was suitably convinced that the colon isn't just nostalgia for the DOS days.... So convince away...

Bruce

14
>> That doesn't seem right?

It is not right.
In NetWeb.Tpw,

#Group(%SetSuppressComment) (circa line 5310)

      #CASE(%SuppressPrompts)

should be

      #CASE(%SuppressComments)

Fixed for build 14.22

Thanks for the report and example Jane.

15

Plan I'm going with, if I missing the obvious let me know.
 

This is the approach I would adopt, and indeed the approach I think they recommend.

Bruce

Pages: [1] 2 3 ... 737