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.


Topics - Johan de Klerk

Pages: 1 [2] 3
16
Web Server - Ask For Help / NT 11.30 & StringTheory 3.20 Errors Compiling
« on: February 26, 2020, 01:31:36 AM »
Hi Bruce,

Updated to NT 11.30 yesterday.
Compiling my app today lots of errors:
1) No matching prototype available - C:\Clarion10\Accessory\LibSrc\Win\StringTheory.clw:228
StringTheory.Append Procedure(string newValue, long pClip = false, <string pSep>)
2) Unknown procedure label - C:\Clarion10\Accessory\LibSrc\Win\StringTheory.clw:230,3
self.Append(newValue,pClip,pSep)
3) Field not found: APPEND - C:\Clarion10\Accessory\LibSrc\Win\StringTheory.clw:230,8
self.Append(newValue,pClip,pSep)
4) Unknown identifier: NEWVALUE - C:\Clarion10\Accessory\LibSrc\Win\StringTheory.clw:236,38
if band(pClip,st:NoBlanks) > 0 and newValue = '' then return.
5) Unknown identifier: PCLIP - C:\Clarion10\Accessory\LibSrc\Win\StringTheory.clw:236,11
if band(pClip,st:NoBlanks) > 0 and newValue = '' then return.
6) Unknown identifier: SELF - C:\Clarion10\Accessory\LibSrc\Win\StringTheory.clw:239,6
if self._DataEnd < 1

and lots more

Regards

Johan de Klerk

17
Web Server - Ask For Help / Using HOLD(XXX,1) to Lock a Record
« on: September 08, 2019, 03:09:29 AM »
Hi,

Sorry for the long post.

I am having a problem in my app and wonder how everyone else is handling it.

This is what i have now:
In my stock program branches can request stock and a field (StkRequested) in the stock record is updated with the quantity.
The main store can also book in stock and the Quantity (InStock) is updated.
Stock can also be booked out to the branches and the "InStock" is updated as well as the "StkRequested".

What I have seen is that when multiple branches are requesting stock and the store is booking stock in and out at the same time most of the time the "InStock" & "StkRequested" quantities goes completely wrong.

When the stock is booked in/requested I think it still uses the current value in memory and the addition and deduction is done on the currently loaded values.

My thinking is the record is loaded when the form opens and with multiple forms open by all the users I will have to use some sort of Record Locking (HOLD)

At this stage my code looks like this when I update the record:
StoreStock:Guid = BranchStoItmReq:StoreStockGuid
IF ACCESS:StoreStock.FETCH(StoreStock:Guid_Key) = LEVEL:BENIGN
    StoreStock:QNTYForBookout -= p_web.GSV('OrgQNTYRequested')
    StoreStock:QNTYForBookout += BranchStoItmReq:QNTYRequested
    ACCESS:StoreStock.UPDATE()
END

How would I implement Record Locking in my code above.

Regards

Johan de Klerk

18
Web Server - Ask For Help / How to Force Refresh of a Line in a Browse
« on: September 04, 2019, 09:29:15 PM »
Hi Bruce,

I have a Customer Browse (popup).
I have a Inline Button, this Button calls a Browse, InvoiceList, (as popup) with a list of Outstanding Invoices.
The customer clicks on a invoice and a popup form opens to allow for payment.
In the PostUpdate of the form I update the customers outstanding balance.
When closing the InvoiceList browse I need to refresh the customer line to show the updated outstanding balance.
At this stage you need to close and then open the Customer Browse to see the new outstanding balance.

How would I do this?
What command do I need to use?
In which embed do I put the code?

Regards

Johan de Klerk

19
Hi Bruce,

Even if the field on the browse has been set as "No Sorting" the tool tip still shows: Click here to sort by xxx
if you hover with the mouse over the header.

I think the tool tip should not show at all if No Sorting is ticked.

Clarion 10, NT 11.19.

Regards

Johan de Klerk

20
Hi Bruce,

After generating my PDF file and displaying it on the Form in the Media Control.
Click on the Print icon.
It prints the PDF but it is only a quarter of the page in the top left hand corner.

Is there some setting that needs to be set to print the full A4 page?

Regards

Johan de Klerk

21
Hi Bruce,

Going from a Menu Item to a Form as "Page", Action=Insert, does NOT Prime the Records.
When you open the Browser go directly to: Form as Page - Not Working - Not Priming Fields
See attached example.

Going from a Menu Item to a Form as "Popup", Action=Insert, does Prime the Records.
Going from a Browse to a Form as "Popup" or "Page" does Prime the Records.

Regards

Johan de Klerk

22
Hi,

If you run the attached program the PDF report does not work.

If the Options Form is opened as a Popup then the URL On Save is ignored and PDF report is not displayed.

If the Options Form is not in Popup then the URL On Save is working and the PDF report is displayed.

For what I want to do it must work from Popup Form to Popup Form.
My whole app is Popups.

Does any one have any idea how to make this work please.
I have to demo the app on Monday to a very-very big customer.

Regards

Johan de Klerk

23
Web Server - Ask For Help / Ver 11.18 not accepting set field lengths
« on: July 26, 2019, 05:53:51 AM »
Hi Bruce,

In 11.16 I have set the field lengths and it worked perfect.
The field was 60 characters and the ? for the Lookup button was right at the end.
It also displayed the full Description.

Now with 11.18 it is all messed up.
Full description is not displayed and the Lookup button is very wide.
Now changes to the field settings, just recompiled with 11.18.

Regards

Johan de Klerk

24
Hi Bruce,

I have a string with lots of values separated by a ,

I want to use ST.Split to get them out and compare them to see what the next option is.

I want to use:
ST.Free()
Loc:MyString = 'M,P,ER,PO,D,XW,T,H,E,MX'
ST.SetValue(Loc:MyString)
ST.Split(',')
LOOP MyRecs# = 1 TO ST.Records()
    IF ST.GetLine(1) = 'M'
        DoSomething
    ELSIF ST.GetLine(1) = 'PO'
        DoSomethingElse
    END
END
ST.Free()

Regards

Johan de Klerk

25
Web Server - Ask For Help / How to format fields on a NT Web Form
« on: July 06, 2019, 09:00:34 PM »
Hi Bruce,

I am busy making my NT Web app look better.
The strings I have done and it looks great.

The Date does not want to change the length of the display.

I have set it up as follow:
Type: Date
On the Date Tab:
Width (Chars): 10
Picture: @D6
Max Length: 10
However it keeps on making the Date Entry field very long.

What do I need to do to make it work?

Regards

Johan de Klerk

26
Hi Bruce,

Downloaded NetTalk Ver 10.17 this morning.

Compiled NetMaps demo app.

Get two errors:
Unknown procedure label - C:\Clarion10\Accessory\LibSrc\Win\NetMaps.Clw:970,3
Field not found: DRAWAREAS - C:\Clarion10\Accessory\LibSrc\Win\NetMaps.Clw:970,8

I did a Refresh Classes on all the templates.
On this line: self.DrawAreas(false)

UPDATE: Downloaded latest version and all fixed.

Regards

Johan de Klerk

27
Hi,

I have a Browse on a Memory form with a ID field (Local Variable).
I have Search and Clear Buttons just for the users to make it easy for them.
On the form I also want to display data from another table.

I have the Search button working and the browse displays the correct records.

I need help with the Clear Button and the displaying of the fields from the file.
I would appreciate any help please.

I have modified a NT example app and have attached it here.

Thanks in advance.

Regards

Johan de Klerk

28
Web Server - Ask For Help / More than one area to display on same Map
« on: December 20, 2015, 10:52:53 PM »
Hi Bruce,

I have a requirement to setup up different areas on the same map and they must all show at the same time with different colors or dynamicly filtered to only display one if need be.

For instance area 1 is assigned to a certain reaction officer 1, area 2 is assigned to reaction officer 2 and so on for as many reaction officers is working at that stage.

Hope it makes sense.

Can it be done?

Regards

Johan de Klerk


29
Web Server - Ask For Help / NetTalk 8.60 - Error in NetSmppBase.clw
« on: August 31, 2015, 08:50:16 AM »
Hi Bruce,

Just updated to 8.60.
Compiled and got the following errors in NetSmppBase.CLW

1)
Error: Unknown Identifier
on line
m_time                  group(NET_SYSTEMTIME)

2) Error: Label in prototype not defined: NET_SYSTEMTIME
in this section
if delivery <> ''
self.scheduled_delivery.SetDate(delivery)
end
if valid <> ''
self.validity_period.SetDate(valid)
end

Clarion 10.0.0.11897
All the latests versions of the Capesoft tools.

Regards

Johan de Klerk

30
Web Server - Ask For Help / C9.1-11139, NetTalk 8.22, ClarionCL
« on: August 01, 2014, 06:03:36 AM »
Hi,

I would appreciate any help if at all possible.

I have a NTWeb app that I have just converted from C6.3 and NT 7.34 to C9.1-11139 and NT 8.22.

I am new to C9.1 so it could even be me. :-(
However all my Win32 apps Generates and Builds 100% with the same command lines.

I generate it using the command line:
clarioncl /win /ag c:\clubinfo\flyingdaybookings.app

I then get these errors:
C:\Clarion9.1\accessory\template\win\netweba.tpw(141,3): error GENE000: (netweba.tpw) Error: Cannot close file Flyin_nw.$$$
C:\Clarion9.1\accessory\template\win\netweba.tpw(164,3): error GENE000: (netweba.tpw) Error: Cannot close file FlyingDayBookings_ni.$$$
error GENE000: File C:\ClubInfo\FlyingDayBookings_ni.$$$ is still open error GENE000: File C:\ClubInfo\Flyin_nw.$$$ is still open

I then generate it again using using the same command line:
clarioncl /win /ag c:\clubinfo\flyingdaybookings.app
This time no errors and generates 100%.

I then build it using using the command line:
MsBuild.exe /nologo /t:build /p:ClarionBinPath=c:\clarion9.1\bin\ /p:Configuration=Release C:\clubinfo\flyingdaybookings.sln

I then get these errors:
C:\ClubInfo\obj32\release\Flyin_nw.clw(123,3): error : Invalid MEMBER statement
C:\ClubInfo\obj32\release\Flyin_nw.clw(123,3): error : Expected: <statement> <EOF> <INT> <REAL> <DECIMAL> <STRING> <LINEBREAK> ( ; ACCEPT ASSERT CHOOSE INCLUDE OMIT RAISE TRY SECTION COMPILE BEGIN PRAGMA
C:\ClubInfo\obj32\release\Flyin_nw.clw(140,1): error : Procedure doesn't belong to module: NETWEBRELATIONMANAGER
C:\ClubInfo\obj32\release\Flyin_nw.clw(156,1): error : Procedure doesn't belong to module: NETWEBFILENAMED
C:\ClubInfo\obj32\release\Flyin_nw.clw(182,1): error : Procedure doesn't belong to module: NETWEBSETSESSIONPICS
C:\ClubInfo\obj32\release\Flyin_nw.clw(214,1): error : Procedure doesn't belong to module: NETWEBSETPICS

Has anyone seen this?
Is there a solution or somewhere that I can look and fix this.

Thanks in advance.

Regards

Johan de Klerk




Pages: 1 [2] 3