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

Pages: 1 [2] 3 4 ... 13
16
Web Server - Ask For Help / Mobile Mode Issues Part II
« on: July 30, 2015, 01:53:19 PM »
Hi Bruce,

The maximum size limit for attachments is 70mb. These files were only 3mb and 1.2mb in size so it's not a file size limit.

Here are the links to download them straight from my FTP:

Item 1: www.futureit.biz/downloads/testing/Item1.mp4
Item 2: www.futureit.biz/downloads/testing/Item2.mp4

I've tested both links and they play in my Firefox browser!

To be honest I got a bit mixed up before. Items 1 and 2 is the easiest to to reproduce. Fixing all of them is a priority. As Items 1 and 2 are happening when a user presses the field then I'm assuming these are actually the same issue.

Item 3 is slightly different to items 1 and 2 and is harder to reproduce. BUT it would be good to see how you would approach this as this was originally coded by my predecessor and I have not had time to revisit it for a better solution.

I am wondering why you are still testing on iOS 7. iOS 9 is almost ready to be released and you haven't upgraded to 8 yet? If you are not seeing the issues in 7 then you have to upgrade to 8 to see them and properly provide the support that we require.

When the webinar is available please point me to the link and i'll take a look at it.

Regards,
Trent

17
Web Server - Ask For Help / Re: Mobile Mode Issues
« on: July 30, 2015, 01:58:08 AM »
Video for item 1 is attached. Change the extension to mp4 to view.

[attachment deleted by admin]

18
Web Server - Ask For Help / Re: Mobile Mode Issues
« on: July 30, 2015, 01:49:57 AM »
Here is a video of item 3 in action. Change the file extension to mp4.

EDIT - this is actually item 2.

[attachment deleted by admin]

19
Web Server - Ask For Help / Re: 8.57 compilation error
« on: July 30, 2015, 01:31:09 AM »
ffs... thanks Peter.

20
Web Server - Ask For Help / Re: Mobile Mode Issues
« on: July 30, 2015, 01:14:14 AM »
Have you tested on an iOS 8 device?

21
Web Server - Ask For Help / Re: 8.57 compilation error
« on: July 29, 2015, 02:51:24 PM »
Hi Bruce,

With 8.57 I'm getting 434 errors when compiling that didn't happen in 8.56:

Unknown procedure label: packet.JsonEncode(st:xml)

Regards,
Trent

22
Web Server - Ask For Help / Re: Mobile Mode Issues
« on: July 29, 2015, 04:50:11 AM »
Hi Bruce,

I've updated the app to demonstrate how the drop field is hidden and unhidden. The results are the same and I am still able to replicate all 3 issues. New app attached.

Using NT8.57.

Don't have any iOS 7 or below devices to test with.

Only item 3 is happening in both desktop and mobile mode on Windows 7, 8.1, Mac OSX and iOS 8, using IE, Firefox, Safari and Mobile Safari. Does not happen on Chrome for Android (don't have Chrome on my desktop).

Items 1 and 2 are only happening in mobile mode on an iPhone. Don't have any Android phones to test with, or Windows phones but my Android tablet using Chrome for Android does not have these problems.

Item 1 is very easy to replicate. Just go to the login screen in mobile mode on a phone, and press the 'Login' field. You may need to refresh the page first to see the issue.

Item 3 happens every single login for me.

Regards,
Trent

[attachment deleted by admin]

23
Web Server - Ask For Help / Re: Mobile Mode Issues
« on: July 29, 2015, 12:28:55 AM »
Hi Bruce,

Item 3 - the queue was just for demonstrating purposes. We are actually using a MS SQL table in the live app and this issue is occurring with the MS SQL table drop. In the live app the drop is hidden until the user enters their Username and Password, then hits 'Login', the form goes through 'ValidateUpdate > End', if the user needs to select something from the drop then the form is set to retry, a SSV is set and the drop is unhidden. Could you shed some light on why this would be happening on a MS SQL table drop?

Forget about the prompt for the hidden 'loc:hash' field - this is exactly what was set in example number 3 'BasicWithLogin'. Maybe the example needs updating :)

Items 1 and 2: I really need you to replicate this. I get it straight away when testing on an iPhone 4S with iOS 8.1.3 using Safari. My colleagues get this on their iPhones too. Demo'ing to customers and having this happen on multiple devices is not acceptible. I can definitely replicate this issue on the demo app and also my live app. Would you like a video?

Regards,
Trent

24
Web Server - Ask For Help / Mobile Mode Issues
« on: July 22, 2015, 10:51:23 PM »
Hi Bruce,

I'm getting quite a few issues in mobile mode when testing on an actual mobile phone - I'm using an iPhone 4S:

1) On a simple login form if the user presses the 'Login' field to type in their username it automatically takes them to the 'Password' field instead.
2) Same login form, the user presses a drop list and the 'Password' field is selected instead with the keyboard showing.
3) Same login form, the user first enters the 'Login', then the 'Password', then selects the drop value, the drop does not select the value correctly and the user has to select it twice to get it to work.

All of these issues can be replicated in the app attached to this post. Please use a mobile phone when testing.

Instructions for item 1:

1) Start the webserver.
2) On a mobile phone, navigate to the website.
3) Press the 'Login' menu item.
4) Press the 'Login' field, it should go straight to the 'Password' field instead. If it does not, please refresh/reload the page then press the 'Login' field.

Instructions for item 2 - assuming you have done steps 1 to 3 above:

1) Reload the page so it has no values.
2) Press the drop list. The 'Password' field is selected instead.

Instructions for item 3:

1) Reload the page so it has no values.
2) Enter the 'Login'.
3) Enter the 'Password'.
4) Press the drop list and select a value. Notice the value is not saved and you have to repeat the selection.

Please let me know if you need more information.

Regards,
Trent

[attachment deleted by admin]

25
Hi Bruce,

Forget about the last post, got it all working now! Thank you for your help.

Regards,
Trent

26
Hi Bruce,

I've setup the new table and this works but you cannot Save or Cancel the form. Attached is an example, the "encryption" is very basic, didn't want to spend too much time on it:

1) Compile and run.
2) Open this link: http://localhost:88/MailboxesFormControl?el:boxnumber=ThisIsAnEncryptedValue1234&PressedButton=change_btn
3) Login - seems to work ok.
4) Try to Save and Cancel to form - Save produces an error and Cancel does nothing.

Regards,
Trent

[attachment deleted by admin]

27
Thanks Bruce :)

Hi Michelis,

The 'OnClick' function is just for pure javascript. So to make it work in the OnClick field:

window.location.href = "mailto:?subject=This is a Subject&body=This is the body part of the email%0D%0A%0D%0ASent from App Name - www.appwebsite.com"

If you need to use clarion code for the email To, Subject or Body then you will need to omit the code in the embeds and handcode it.

Regards,
Trent

28
>>>you can't.

This isn't entirely true. You can send emails using the client's email client using Javascript:

p_web.Script(p_web.WindowOpen('mailto:?subject=This is a Subject&body=This is the body part of the email%0D%0A%0D%0ASent from App Name - www.appwebsite.com','_self'))

In all major browsers the 'mailto' will ask the user which mail client they want to open, including (but not limited to) Gmail, Outlook and Hotmail: http://css-tricks.com/snippets/html/mailto-links/

It even works on mobile devices.

This also allows for the end user to include their own signature in the email without having to store the signature in a database.

The only problem is you cannot attach a file to the email.

Regards,
Trent

29
Hi Bruce,

I'm doing a stringtheory.base64encode (with wrapping disabled) to 'encrypt' the ID. When an end user that receives a URL with the encrypted ID in it, they click the link and the form decrypts the ID number. See attached example:

1) Take a look at the MailboxesBrowseControl > SetQueueRecord embed - this is a demonstration of the 'encryption' side.
2) Open localhost:88 and go to the Mailboxes browse. Have DebugView open.
3) Copy the 'External URL'.
4) Logout.
5) Paste the 'External URL' into the browser address and press enter.
6) Login.
7) You will see the key is not primed and the 'Pre-Update' routine is not even called. DebugView will show that the ID is decrypted successfully, the Mailboxes file got an error when trying to open, and the record was fetched successfully.

Regards,
Trent

[attachment deleted by admin]

30
Hi Bruce,

Thank you, this works well for an unencrypted URL.

But if you wanted to encrypt the URL it does not seem to work. By that I mean the form does not seem to be in Change mode and you cannot open any files. Where ever I put the decrypt code and I can see that the SysID if being decrypted correctly but the record is not fetched.

If I try to fetch the record manually after decrypting I get an error 30 when opening the file:

Code: [Select]
  if p_web.GetValue('ds')
    if not p_web.GSV('MRL:SysID')
      p_web.SSV('LOC:MRLErr',0)
      st2.SetValue(p_web.GetValue('ds'))
      if st2.Len()
        debug('Before decode: '& st2.GetValue())
        st2.Base64Decode()
        debug('Opened link from DataServer email - MRL:SysID = '& st2.GetValue()) !<<<< This shows the correct SysID
        p_web.SSV('MRL:SysID',st2.GetValue())
        p_web.OpenFile(MaintReportLog)  !<<<< This shows the error 30
        if errorcode()
          debug('Error on p_web.OpenFile(MaintReportLog), errorcode('& errorcode() &') error('& error() &')')
        end!If
        clear(MRL:Record)
        MRL:SysID = p_web.GSV('MRL:SysID')
        p_web.SetSQLTimeout(MaintReportLog,net:on)
        if access:MaintReportLog.tryfetch(MRL:KeySysID)
          debug('Error on access:MaintReportLog.tryfetch(MRL:KeySysID), errorcode('& errorcode() &') error('& error() &')')
          p_web.SSV('LOC:MRLErr',1)
        ELSE
          debug('Fetched MRL:SysID successfully')
        end!If
        p_web.SetSQLTimeout(MaintReportLog,net:off)
        p_web.CloseFile(MaintReportLog)
      ELSE
        p_web.SSV('LOC:MRLErr',1)
      end!if
    end!If
  ELSE
    p_web.SSV('LOC:MRLErr',0)
  end!if

  if p_web.GSV('LOC:MRLErr') = 1
    p_web.SSV('LOC:MRLErr',0)
    p_web.Script(p_web.WindowOpen('MaintLogFilter?err=1','_self'))
  end!If

I've tried putting that in the 'Procedure Setup', 'Pre-Update' and 'Before Heading' embeds.

The 'Pre-Update' routine is not called either.

Regards,
Trent

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