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

Pages: 1 [2] 3 4 5
16
Web Server - Ask For Help / Re: Secwin Login with User Lookup
« on: November 20, 2023, 07:15:34 AM »
Returns to the starting page when the program first comes up with the "Login" button.

I have some code that occurs in ValidateUpdate and if I place a "STOP()" or a Trace there, it does not get to that code.

I even tried to place a trace in the "Authenticate" in the WebHandler and it does not get that point either.

Thanks
Ken

17
Web Server - Ask For Help / Secwin Login with User Lookup
« on: November 19, 2023, 02:14:27 PM »
I am using SecWin7 with NetTalk 14

I would like to allow the user to select a user from a lookup. I have added the lookup and it works to select a user from the popup, but when I enter the password and press enter, it does not attempt to log the user in. If I simply enter the user login and the password it still works normal.

What am I missing by adding the lookup?

Ken Watts

18
Web Server - Ask For Help / Headers in mobile
« on: September 20, 2023, 08:28:25 AM »
I recently converted an app in v12 to v14

One of the changes in v14 appears to be a change in the way the browse headers act in smaller screens. In Desktop, the browse has the normal column headers and then row.

When you change to mobile, the browse column headers move into the row as a prompt for each row. How can I change this back to column headers? I am using the DIV GRID method. If I change to table view, the headers disappear altogether. I am using all default styles and I reviewed the themer program and this is doing the same thing.

Thanks
Ken Watts

19
Web Server - Ask For Help / Single field on form
« on: July 28, 2023, 10:25:48 AM »
I have a memory form with a single field on it and then there is a NetWebBrowse below the field.

The user types in a value (barcode in this case). If the user then presses the TAB key, a process then builds a table and the NetWebBrowse displays the data and it works as intended.

If the user types in the barcode and presses ENTER key, the browser returns to the previous page. If the user goes back to the form, the data is there.

If I place another field on the form, then pressing the ENTER key works just like the TAB key does.

Anything I am missing here?

Thanks
Ken Watts

20
Web Server - Ask For Help / Re: NetWebClient POST
« on: February 23, 2023, 01:31:53 PM »
Bruce,

I found my mistake and getting the correct response now.

Thanks
Ken Watts

21
Web Server - Ask For Help / Re: NetWebClient POST
« on: February 22, 2023, 10:53:01 AM »
Here is the code I have tried:

NetItemImport.SetAllHeadersDefault()
NetItemImport.CustomHeader = 'Authorization: Bearer '&CLIP(GLO:AccessToken)
NetItemImport.CustomHeader = 'Accept: application/json'
GLO:URL = 'https://api.lightspeedapp.com/API/V3/Account/'&CLIP(GLO:AccountID)&'/Item.json'
NetItemImport.ContentType = 'application/json'
NetItemImport.Accept_ = 'application/json'
NetItemImport.Post(GLO:URL)

I have attached an image of the Postman setup as well.

Ken Watts

22
Web Server - Ask For Help / NetWebClient POST
« on: February 21, 2023, 06:06:19 PM »
I am working on an interface with an API and have run into a road block.

The API that I am accessing gives examples using Postman. When setting it up in Postman it works great, but it is not working in the WebClient demo.

In Postman you enter the "values" being sent in the "Header" tab. I tried placing these into the net.CustomHeader and net.SetValue, but it will not work. I also placed the json string into the post data with no luck.

I am looking for direction on translating from Postman Headers to NetTalk 12.

Thanks
Ken Watts
Wasatch Consulting Services

23
Looking To Hire / Integrate Third Party Javascript
« on: October 12, 2022, 07:16:30 AM »
I am looking for some assistance in integrating a third party barcode scanning (using the camera on a mobile phone) javascript package into NetTalk.

Please contact me at ken@wasatchconsultingservices.com

Thanks
Ken Watts
Wasatch Consulting Services

24
Web Server - Ask For Help / Re: Barcode Scanner
« on: October 11, 2022, 12:36:12 PM »
It is the camera built into the phone.

Thanks
Ken Watts

25
Web Server - Ask For Help / Barcode Scanner
« on: October 09, 2022, 12:31:53 PM »
I was trying to work with the barcode scanner plug in. The window does popup with no problem, but the clarity on the video is very poor. When I use the video on the phone camera it is very clear when looking at a barcode, but when working with the barcode scanning, the video is very fuzzy. Is there any settings to improve this at all. I would imagine if you can get a clear image in the video the process would read the barcode much easier. As it is, I have to play around for the program to actually scan anything.

I have looked at other javascript plug ins, but I am struggling to figure how to incorporate the javascript plug in with NetTalk.

Thanks
Ken Watts

26
Hi Bruce,

I discovered that the issue was resolved when I removed the fields from the "reset" list in a drop down box and add "DO Refresh::DateField" to the "Add Server Side Code" embed instead. Maybe the issue was the timing when the fields were being refreshed. The fields are hidden and so the fields where being refreshed based on the selection in a drop down.

Thanks
Ken Watts

27
Using NetTalk 12.46

When I use "DO REFRESH::DATEFIELD" on a date field, the datepicker stops working. Is there something that needs to be done in addition to the refresh to make sure the datepicker is available for the date field?

Thanks
Ken Watts

28
Web Server - Ask For Help / Re: Search question
« on: August 31, 2022, 08:50:02 AM »
Bruce,

I have trim the code down to

if p_type = Net:Search
        strf.Trace('Start of search')
        strf.SetValue(p_Filter)
        strf.Trace()
        IF strf.CountWords() > 1
            strf.Trace('More that 1 word')
            strf.Split(' ','"')
            strf.Trace()
            LOOP i = 2 to strf.Records()
                strf.SetLine(i, '+' & strf.GetLine(i))
            END
            strf.Join(' ')
            strf.Trace()
            ReturnValue = parent.MakeFilter(strf.GetValue(),p_sub,p_Str,p_Type,p_Case)             
        END
        strf.Trace('End of search')
    END

I placed the traces and debug is returning

[st] Start of Search
[st]
[st] End of Search

So the "p_Filter" is coming back is blank.

Ken Watts

29
Web Server - Ask For Help / Re: Search question
« on: August 30, 2022, 12:55:37 PM »
Bruce,

Thanks for the reply. I added code to the MakeFilter procedure in the WebHandler as follows:

p_web.MakeFilter PROCEDURE(String p_Filter,String p_Sub,String p_Str,Long p_Type,Long p_Case=0)

ReturnValue          ANY

! Start of "NetTalk Method Data Section"
! [Priority 5000]
strf                    StringTheory
i                       Long
! End of "NetTalk Method Data Section"

  CODE
  ! Start of "NetTalk Method Executable Code Section"
  ! [Priority 2500]
        if p_type = Net:Search
            strf.SetValue(p_Filter)
            IF strf.CountWords() > 1
                strf.Split(' ','"')
                LOOP i = 2 to strf.Records()
                    IF CLIP(UPPER(strf.GetLine(i))) = 'AND' OR CLIP(UPPER(strf.GetLine(i))) = 'OR' OR CLIP(UPPER(strf.GetLine(i))) = '&'
                        strf.DeleteLine(i)
                    ELSE
                        CASE SUB(strf.GetLine(i),1,1)
                        OF '-'
                        OF '+'
                        OF '|'
                            strf.SetLine(i,SUB(strf.GetLine(i),2,len(strf.GetLine(i)) -1))
                        ELSE
                            strf.SetLine(i, '+' & strf.GetLine(i))
                        END
                    END
                END
                strf.Join(' ')
                p_Filter = strf.GetValue()
                ReturnValue = parent.MakeFilter(p_Filter,p_sub,p_Str,p_Type,p_Case)             
            END
        END
  ! Parent Call
  ReturnValue = PARENT.MakeFilter(p_Filter,p_Sub,p_Str,p_Type,p_Case)
  ! [Priority 7500]
 
  ! End of "NetTalk Method Executable Code Section"
  RETURN ReturnValue


This is not having any effect. When I enter two words, I am still needing to add the "+" key to get the desired result.
When I placed a stop right before "strf.SetValue(p_Filter)" to display the "p_Filter" field it is showing nothing there.

Do I have this in the right place?

Thanks for your help
Ken Watts

30
Web Server - Ask For Help / Search question
« on: August 29, 2022, 07:31:58 PM »
I have a client that would like to change the behavior of the search field. At the moment I have it on "Search" so that they can enter multiple words. You can add the "+" to the beginning of a word to require that the word must appear in the resulting records. They would like to have the "+" added by default. Is there any method to do this?

Ken Watts

Pages: 1 [2] 3 4 5