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 - Johan de Klerk

Pages: 1 [2] 3 4 ... 15
16
Hi Vinnie,

Thanks for the reply.

My field name is Rep:WhichReport
This is one of many fields on my NetWebForm.

I only want to change the Prompt Text and ToolTip for this one field on the form.

Regards

Johan de Klerk

17
Web Server - Ask For Help / How to change Prompt Text and ToolTip in Code
« on: October 08, 2023, 01:13:13 AM »
Hi,

I need to change the Prompt Text and ToolTip in code depending on conditions.

If p_web.GSV('Option') = 1
    PromptText = 'Select Option 1:'
    ToolTip = 'This will give you the Customer Report'
ELSIF p_web.GSV('Option') = 2
    PromptText = 'Select Option 2:'
    ToolTip = 'This will give you the Invoices Report'
ELSIF p_web.GSV('Option') = 3
    PromptText = 'Select Option 3:'
    ToolTip = 'This will give you the Orders Report'
ELSE
    PromptText = 'No Option Selected:'
    ToolTip = 'Please Select a option for the Report'
END

Any help would be appreciated.

Regards

Johan de Klerk

18
Web Server - Ask For Help / Re: Conditionally Hide Insert Button on Browse
« on: September 14, 2023, 03:35:23 AM »
Hi Bruce,

Thanks for the quick reply.

However this is not a inline insert button.

The Insert Button is Below the Browse.

Regards
Johan de Klerk

19
Web Server - Ask For Help / Conditionally Hide Insert Button on Browse
« on: September 14, 2023, 02:25:58 AM »
Hi,

I have a browse with the Insert Button below the browse.

I want to Hide the Insert button with code like this:

IF p_web.GSV('HideTheInsertButton') = 'YES'
    !Hide - What code should I put in here?
ELSE
    !UnHide - What code should I put in here?
END

Could someone please help with the code to Hide and Unhide the Insert Button.

Regards
Johan de Klerk
C10, NT 11.57

20
Web Server - Ask For Help / How to determine if Form is in View mode
« on: September 12, 2023, 04:09:47 AM »
Hi,

Clarion Ver: 10.0.12799
NetTalk Ver.: 11.57

This has been driving me nuts for a full day now.

In my PreUpdate  Routine in the embed after ! Start of Pre Update After Primes" I have code to check if the Form is in View mode.
IF Loc:ViewOnly = TRUE
    p_web.SSV('Loc:MessageDisplayMessage','Record in View Mode ? No Editing Allowed')
    ! Assign correct values from Related Tables
ELSE
    p_web.SSV('Loc:MessageDisplayMessage','Please Change Fields as Required')
    ! Clear Certain Fields to force new values
END

I have put debug statements in the embed to check the values of:
Loc:ViewOnly
loc:action
loc:act

When I click on the InLIne View Button on the Browse my code runs 3 times in this embed.
This is the results from the Debug statements:
Loc:ViewOnly = 1
loc:action = View
loc:act = 5
Loc:ViewOnly = 1
loc:action = View
loc:act = 5
Loc:ViewOnly = 0
loc:action = Change
loc:act = 2
It changes from View to Change so it is messing up my code.

I would appreciate if someone can put me on the right track.

Regards
Johan de Klerk

21
Web Server - Ask For Help / URL on Save not Working - Memory PopUp Form
« on: September 18, 2021, 11:22:40 PM »
Hi,

I have a NetWebForm that opens as a PopUp and is a Memory form.
This NetWebForm is called from a PopUp Browse.

In the NetWebForm I have set the:
URL on Save to 'SaveBrowseURL'
URL on Cancel to 'CancelBrowseURL'

However it returns to the original NetWebBrowse and completely ignores the URL on Save and URL on Cancel.
Does anyone have an idea of how I can fix this or what I am doing wrong.

Regards
Johan de Klerk
C10, NT 11.53

22
Web Server - Ask For Help / How to Enable and Disable CancelButton
« on: September 14, 2021, 04:55:40 AM »
Hi Bruce,

I have made my NetWebForm ViewOnly on a certain condition.
This works perfect.

Only one problem.
The Cancel Button is also Disabled.

Is there a command I can use right at the end of the GenerateForm Routine to enable the CancelButton?

Something like:
IF loc:viewonly = 1
    Enable(CancelButton)
END

Regards
Johan de Klerk
Clarion10
NT11.53

23
Hi Bruce,

You are the man.

Thank you very much.
This is going to make live so much easier for me.

Regards

Johan de Klerk

24
Hi Bruce,

Thanks for the good news for NT12.

This will help if I upgrade my apps from NT11.

One more question.

Can it be made to work if the user is not logged in and goes to a page where no login is required?

Regards

Johan de Klerk

25
Hi Bruce,

C10 & NT11.50 question.

I have my sessiontimeout set to 5 minutes.

There are some pages (some requiring being logged in and some not requiring being logged in) where lots of information is required and the users sometimes needs to go and lookup the details.
By the time they have the information the 5 minutes has expired and the session deleted.
On these specific pages I would like to make the sessiontimeout = 15 minutes or even longer but not interfere with the rest of the application/users/pages 5 minute sessiontimeout.

Is this possible?

Regards

Johan de Klerk

26
Web Server - Ask For Help / Re: NetTalk 11.49 CheckBox problem
« on: January 19, 2021, 12:07:07 AM »
Hi Bruce,

Thank you very much.

Regards

Johan de Klerk

27
Web Server - Ask For Help / NetTalk 11.49 CheckBox problem
« on: January 18, 2021, 02:33:41 AM »
Hi Bruce,

I upgraded to 11.49.

When I compiled I got errors on all my CheckBoxes.

When I checked the TRUE and FALSE VALUES was made blank by 11.49.
Changing them back to TRUE=1 and FALSE=0 fixed the problem.

I have a lot of forms that uses quite a lot of CheckBoxes.
Some forms have 30 CheckBoxes on them.

Regards

Johan de Klerk

28
Web Server - Ask For Help / Re: NT12.04 Icons missing on buttons
« on: January 15, 2021, 01:59:39 AM »
Hi Niels,

Bruce picked it up at last nights WebInar.
Bruce said he would do a 12.05 release to fix it.

Download 12.05 that should correct it.

Regards

Johan de Klerk

29
Web Server - Ask For Help / Re: WebSockets Refresh Question (NetTalk 12)
« on: December 23, 2020, 09:50:07 PM »
Hi Bruce,

Thanks for the reply.

This will create a lot of unnecessary traffic on the webserver, if the webserver is very busy and have a 1000 companies and users are continuously updating data.
Is there a way to make it more clever that it knows who to send it to only for that particular company?

What is going to happen for instance:

On the Browse & Form.
If user 1 (Company 1) has a browse/form open with his data and user 2 (Company 2) changes something.
Let's say both companies have a customer number 1
Company 1
Customer Number: 1
Customer Name: Johan
Address: Rustenburg
Company 2
Customer Number: 1
Customer Name: Bruce
Address: Cape Town

user 1 (Company 1) changes the Address for Customer 1 to Pretoria.
Will it interfere with Customer 1 at company 2?

Sorry if I am asking stupid questions.

Regards

Johan de Klerk

30
Web Server - Ask For Help / WebSockets Refresh Question (NetTalk 12)
« on: December 23, 2020, 01:34:38 AM »
Hi Bruce,

I have one WebServer EXE.
Many companies each with their own Data Files in their own folders under the WebServer folder.
c:\mywebserver\Company1\MyDatafiles.TPS
c:\mywebserver\Company2\MyDatafiles.TPS
c:\mywebserver\Company3\MyDatafiles.TPS
Etc.
When a user logs in I open the data files for the company he is allocated to.

Lets say I have 5 users logged in per company, 10 companies.
That means 50 users are logged in.

On the Browse.
If user 1 (Company 1) changes something and the WebSockets fire up to refresh the Browse.
Will it send the Refresh to all 50 users or only to the 5 users that are currently working on Company 1?

On the Form.
If user 2 (Company 2) changes something and the WebSockets fire up to refresh the Form.
Will it send the Refresh to all 50 users or only to the 5 users that are currently working on Company 2?

Regards

Johan de Klerk

Pages: 1 [2] 3 4 ... 15