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,

I have tried:
p_web.SetOption(loc:options,'yearRange', '-117')

I think it might be the '117' that is causing my Date Picker not to show.

Any help will be appreciated.

Regards

Johan de Klerk

17
Hi,

I have the same Memory Form that is called as a POPUP from a inline button on a browse and it can also be called from a menu item.
Depending from where it is called from certain fields will be readonly or hidden.

How would I determine from where/who it was called from?

Regards

Johan de Klerk

18
Hi Vinnie,

Thank you very much.

It works perfect.

Regards

Johan de Klerk

19
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

20
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

21
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

22
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

23
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

24
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

25
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

26
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

27
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

28
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

29
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

30
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

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