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 - Ubaidullah

Pages: [1] 2 3 ... 9
1
Web Server - Ask For Help / Redactor options
« on: January 22, 2024, 02:17:05 PM »
Hi Bruce,

Where can I find the valid options available to be set for Redactor?

When I put this in the embed before RedactorInit, I am getting a GPF:

loc:options =  'autoresize: false'


Regards,
Ubaidullah Nubar.

2
Web Server - Ask For Help / Re: HTML text not displaying in view form
« on: January 22, 2024, 06:03:26 AM »
Thanks. That was it.

There were <bold> tags that are considered unsafe.

So, what is the recommended way to display text that is entered via the editors? Is it possible to display the editor in read-only mode?

The use case is that some users can edit descriptions with formatting using the editor. Other users should be able to only view the formatted text. This is obviously user-generated content so I wouldn't want to allow unsafe HTML as you recommend but at the same time need to allow users to view the text correctly.

Regards,
Ubaidullah Nubar.

3
Web Server - Ask For Help / HTML text not displaying in view form
« on: January 20, 2024, 11:44:27 AM »
Hi,

I have a Text field on a NetWebForm. I have the Redactor HTML editor enabled and it edits it correctly. I can also view the formatting when in edit mode.

But when the NetWebForm is called in View mode, the Text field displays the HTML tags instead of displaying it with the HTML formatting. The field is set as "Allow xHTML".

What should I do for the HTML formatting to display correctly in view mode?

Thanks
&
Regards,
Ubaidullah Nubar.

4
Web Server - Ask For Help / Re: Which editor to use for simple formatting
« on: January 04, 2024, 12:34:20 AM »
Bruce, thanks for the reply.

Are there any plans to update redactor to redactor X or CKEditor to version 5?
TinyMCE seems to be v4 while the latest is v6.

The nice thing about redactor is that I can paste an image into the editor. But it replaces any other image pasted earlier as the image gets written to web\uploads as image.png and each paste overwrites the previous one.

5
Web Server - Ask For Help / Which editor to use for simple formatting
« on: January 03, 2024, 08:39:14 AM »
Hi,

I want to provide an input box where the user can write text and do basic markup like bold, color, etc.
I don't want to overwhelm the user with too many options.
I also want to be able to programmatically insert text in specific places so need to be able to handle the markup.

Which of the available editors (TinyMCE/Redactor/CKEdit/ACE) would be suitable for this task?

Thanks
&
Regards,
Ubaidullah Nubar.


6
Web Server - Ask For Help / Re: Vertical spacing between fields
« on: November 27, 2023, 03:35:48 AM »
I am looking for the right place for the css.

Where do I place the css to do it globally?

Any pointers will be helpful.

Thanks
&
Regards,
Ubaidullah Nubar.

7
Web Server - Ask For Help / Vertical spacing between fields
« on: November 24, 2023, 09:24:13 PM »
Hi,

How do I change the vertical spacing between fields on a form for all fields?

Regards,
Ubaidullah Nubar.

8
Web Server - Ask For Help / Number Picture in NetWebForm
« on: November 24, 2023, 04:31:18 AM »
Hi,

I have a number field in a NetWebForm. I want it to display a value of 2000 as 2,000.00 (commas and decimal).

In a browse it is easy to set the picture to @n10.2 but how do I do it in a form?

Regards,
Ubaidullah Nubar.

9
Web Server - Ask For Help / Re: Description field in Lookup Settings
« on: November 16, 2023, 08:22:14 AM »
Figured this out. It uses any string field that has a unique key defined as the description field. Else, it will use the second field.


10
Web Server - Ask For Help / Description field in Lookup Settings
« on: November 16, 2023, 01:56:26 AM »
Hi,

When generating a NetWebForm using the wizard, the Lookup Settings tab for a fields gets populated when there is a relation defined.

Question: what determines which field is picked for the Description field? Is there a way to set this in the dictionary? It seems, it uses the second field in the table. Wondering if there was a way to define this at the dictionary level.

Regards,
Ubaidullah Nubar.

11
Web Server - Ask For Help / Must be in table validation and NetWebForm
« on: November 14, 2023, 03:43:06 PM »
Hi,

When a field has validation set in the dictionary to "Must be in Table", the NetWebForm will display a message with the table name.

Is there a way to display the table description instead of the name?

So, instead of the user seeing this message:

Department: Must be in table DPT001

the message shows up like this:

Department: Must be in table Departments

where Departments is the description of the table DPT001.

This is an external system so I don't have control of the tables names.

One option I am thinking is to change the table label to a descriptive one and use the path name for the actual table name.

Regards,
Ubaidullah Nubar.


12
Web Server - Ask For Help / Re: Generate GUID in SQL - Part 2
« on: October 03, 2023, 10:19:24 PM »
Bruce,

Thanks for your detailed answer.

It's not that developers are unable to create a random string. I geeked out a bit on this and found that this is a real issue. Which is why I was attempting to generate the GUID on the server side.

https://web.archive.org/web/20190121220947/http://devoluk.com/google-chrome-math-random-issue.html

https://github.com/ramsey/uuid/issues/80

Also, some SQL docs consider UUIDs as a sub type of strings. But I understand what you are saying that it is really a 128 bit number represented as a hex string.

Anyway, I will go with your advise and leave the GUID generation on the client side. The field is going to be a primary key after all so I can recommend them to test for failure on insert.

Regards,
Ubaidullah Nubar.

13
Web Server - Ask For Help / Re: Generate GUID in SQL - Part 2
« on: September 28, 2023, 09:35:52 AM »
I was thinking of issues that can arise if the other developers don't generate the GUID correctly.

Most examples online (How to create a GUID / UUID in JavaScript ?) suggest making GUID of length 32 such as ?550e8400-e29b-11d4-a716-446655440000?.

Can StringTheory's MakeGuid generate 32 bit GUIDs to keep it consistent?

Regards,
Ubaidullah Nubar.


14
Web Server - Ask For Help / Generate GUID in SQL - Part 2
« on: September 27, 2023, 04:31:10 AM »
Hi Bruce,

Last time this was discussed (Generate GUID in SQL), the recommendation was that the GUID should be generated by the client program.

I am currently designing a database and the client will be developing their software on it using languages other than Clarion. There will also be a Nettalk Web app.

To avoid issues with GUID values coming from the other apps, I am leaning towards setting the GUID columns with a default of NEWID() on the server ( or left(replace(newid(),'-',''),16) to make the value similar to st.MakeGUID() ).

Question is, what do I need to do in Nettalk so it gets the GUID value correctly? Not sure if setting PROP:ServerAutoInc would be enough as the docs say that this value is reset every time and ADD is performed.

Regards,
Ubaidullah Nubar.

15
Web Server - Ask For Help / Re: View uploaded files
« on: June 14, 2023, 08:05:43 PM »
Can the Media Form Field type be used to display or preview PDF files?

Regards,
Ubaidullah Nubar.

Pages: [1] 2 3 ... 9