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

Pages: 1 2 [3] 4 5 ... 7
31
Hi All,

I've got a site that worked beautifully last year, but this year when I went to make some changes and recompile it for my client using NetTalk 6.50, I am finding that the SessionID is not being set at all for any page.

I check the value of p_web.SessionID straight after p_web.NewSession() on a page, and get the value 'null'.

What could be happening here to cause this?  I have no idea what the previous version was compiled under.  It would have been a much earlier version of 6.

I had to untick the boxes for 'Change Session in Log In/Out' and 'Delete Session On Logout' like I have for other apps that I have upgraded to newer versions, but would these be causing the issue?  All I have done is add a couple of fields to two forms.

Thanks,
Devan

32
Web Server - Ask For Help / Tree controls in NetTalk?
« on: January 28, 2013, 10:09:55 PM »
Hi all,

I've been caught on other programming related tasks in the past couple of months and havent had the chance to look at NetTalk 7 yet (even though I've bought it!)...

Just got a request for a web service that uses tree controls quite extensively... actually - tree controls with check boxes!  I know that jQuery has some tree control libraries, but have any been incorporated into NetTalk easily so I can populate from a database quickly?

Just to clarify, I am looking to have something similar to the following on the web service:

Code: [Select]
Colours
|
|- [  ] Warm
|      |
|      |- [  ] Red
|      |- [  ] Orange
|       - [x] Yellow
|
 - [  ] Cool
       |
       |- [x] Blue
       |- [  ] Purple
        - [  ] Green

33
This may not strictly be a NetTalk issue, but I thought I would raise it here for the gurus...

I am using an In Memory table on one of my NetWebBrowse/NetWebForms.  It is basically a temporary table that gets used to generate a PDF report then discarded when the user moves on.

Problem is, I am getting the occasional error: 'Access Denied - Could not get write access to 'memtablename' so trying read-only'.  <- Note: This is a dialog box that pops up on the server.  The user never sees anything in the browser.

It doesn't happen all the time - only once in every 5 or 6 attempts to save information.  What is happening here?  I didn't think Memory tables could have this sort of issue?  Certainly wouldn't be deadlocks happening on a memory table.... would there?

Cheers,
Devan

34
Web Server - Ask For Help / Issues with multi line text input fields?
« on: November 13, 2012, 11:17:18 PM »
Hi all,

Just got some feedback from a customer after I pushed out a patch I compiled last week using NetTalk 6.44.

I have a couple of screens which have multi line input text boxes, and some of the users are reporting that when they type a block of text into these fields, the screen update is lagging behind their physical typing by about 3 or 4 seconds.  Strangely, it is not happening on Macs running Safari, but is happening on other PC's running Firefox and Internet Explorer.

I cannot duplicate that here under Chrome on my development PC.  Anyone else had strange behaviour on the multi line input boxes with their browsers?

Thanks,
Devan

35
Ok, our NetTalk app is out in the field well and truly now, and we are getting some feedback from users.

There are a couple of areas where we go from:

Home Page -> Browse Orders -> Update Order (includes Browse Line Items) -> Update Line Item

Quite a few users now have said that when they are adding or modifying an order, and they go to the screen to Update Line Item and then change their minds and 'Cancel' the update, they are returned all the way back to the Home Page, and not to the Update Order page as expected.  New orders are lost (not saved) and if they were modifying, the changes are not saved either.

It only seems to be happening on older Android browsers (version 2.2 and prior).  I've tested on the iPhone and it works OK for me all the time.  Same with checking within Chrome using Mobile mode.  Oddly, one of our customers said he tested in IE8 using mobile mode (i.e. with ?_mobile_=1 at the end of the URL) and it failed in IE8 yet worked in Firefox.  I have IE9 here and it seems to work OK in that when I tried to replicate his steps.

Are there some known browser quirks out there which will cause this?

Thanks,
Devan



36
Web Server - Ask For Help / Has 6.44 broken Lookups?
« on: September 19, 2012, 10:46:18 PM »
I just upgraded my project from 6.40 to 6.44 and recompiled to test some new functionality, and I am noticing that on the Mobile side of things, the Lookups don't appear to be working as they were before.

Any form that calls a Lookup brings up the lookup browse, but when a record is selected, the Lookup window remains there and I cannot click on the items in the browse any longer.

Also, I am seeing a 'Next' and 'Previous' buttons on the bottom of the screen when the Lookup is open, which I don't remember seeing there before.  They don't seem to do anything, but are confusing to see on the screen...

Was it the jQuery changes that broke this?

Cheers,
Devan

37
Web Server - Ask For Help / Sessions seem to not work in 6.40
« on: September 03, 2012, 10:09:30 PM »
Hi all,

I have a web app, which is pretty much all manual code, that was working right up until I upgraded to 6.40.  Now all of a sudden, it seems that the app will not 'remember' session values any longer.

I have stepped through the login code, and if I do things like:

p_web.SetSessionValue('myvar', 'something')
LOC:TestVar = p_web.GetSessionValue('myvar')


then LOC:TestVar will be ''.  Also:


p_web.ValidateLogin()
I# = p_web.GetSessionLoggedIn()


then I# will be 0 (zero) still.  It doesn't seem to be recognising that there is an active session.  What has changed between 6.3x and 6.4 that has broken this functionality?  Is there a new flag somewhere that I have to chase down?

I've checked, and p_web.SessionID returns an alphanumeric string that matches the log in the app, so I am assuming that the session has been created - it just doesn't want to exist! :)

Cheers,
Devan

38
We have a NetTalk app which runs on both the desktop and mobile platform.

There are a couple of screens which use a Form with a Browse within it.  For example, the Order Header form with the Order Lines as a Browse on the same screen with associated buttons to Add/Change/Delete Order Lines.

On the desktop version, the app works well.  Users can Add an Order Header, change details, then Add Order Lines to it and Save the Order Header ok.

On the mobile version though, whenever a user Adds a new line to the Order Lines, fills out the Order Lines form and taps 'Save':
* on iPhones, the app comes back to the Order Header screen with the following error: 'record not found: (5) Error 0: form key OHD:ID_Key' where OHD:ID_Key is the unique index for the Order Lines browse.  The new Order Line seems to have saved OK though.
* on Android devices, then app goes right back to the app home screen with no error, but the order (or the order lines) does not get saved at all.

I am thinking I have missed a critical field somewhere in the Form definition which resets the record pointer perhaps?

39
Web Server - Ask For Help / Issue with NT mobile sites and Blackberry
« on: August 21, 2012, 05:56:48 PM »
People still use Blackberry's??  Well, apparently some of our client's customers do... They have reported that when BB users try and edit a form on their site, the form fields come up black, with black writing, thus effectively making things invisible.

Aside from telling them to tell their customers to upgrade to a REAL phone, what is the alternative?  I haven't got a BB in house to test this with...


40
Web Server - Ask For Help / Browse navigation buttons on Mobile
« on: August 20, 2012, 09:21:35 PM »
Just come up with an issue with a couple of clients using the Mobile version of NT.

On any page loaded browse, we get a really nice 'toolbar' at the bottom of the mobile screen with 'Next', 'Previous', 'First', 'Last' etc. which works nicely.  However, if the browse has a 'Select' or a 'View' button at the bottom, then on most occasions, the button is HIDDEN by this toolbar, and when you scroll around the screen, the toolbar tends to become 'unstuck' from the bottom of the screen and scroll with the rest of the page, still obscuring these buttons.

I know keeping a static CSS div as a toolbar at the bottom of the screen has always been problematic on mobile Safari etc., but I thought that the jQuery people had managed to solve that?  Perhaps not?

Cheers,
Devan

41
Web Server - Ask For Help / Mobile data entry forms
« on: August 20, 2012, 06:56:06 PM »
Is there any way, in a NetWebForm on the mobile side of things, to have the field prompt appear ABOVE the field itself, rather than to the left as on the desktop forms?

Screen real estate is precious, especially in portrait mode on a mobile device, and having the option to have the prompts above the fields may go a long way towards making even simple forms look a lot neater?

Cheers,
Devan

42
We've done a few sites now with a combined desktop and mobile interface, which keeps our clients really happy.  But do you know what happens when your clients are happy?? That's right, they ask for MORE... ;)

One of the things about NetTalk using the jQuery mobile library, is that the web apps tend to look like a normal iPhone app.  This leads to clients asking us whether they can have a 'shortcut' icon on the main screen of their iPhones so that they can launch straight into the web app, as they would a normal app.

Did you know that you CAN do this.  You can also opt to hide the actual mobile Safari header and footer so that your web app takes up ALL the iPhone screen space (excluding the status bar at the very top) - just like a 'real' app.

The process of creating a shortcut on the Springboard (i.e. main screen) of the iPhone is also quite trivial, however it takes a couple of steps, and is strangely difficult to try and explain to your users over phone/email.

Enter a useful little javascript app that I found, and which we incorporate into all our new apps.  It's called add2home, and the place to download it is: http://cubiq.org/add-to-home-screen

Basically, this app will cause a little floating window to pop up over your web app screen upon startup, and prompt your user to add the web app to their home screen Springboard.  It is quite unobtrusive, and quite SMART, in that it will recognise the version of iOS and change the position and icon of the instructions to suit the version of mobile Safari.  In addition, once you add the web app to your home screen, then it will never pop up a reminder again.

Just copy the downloaded 'add2Home.css' to your 'styles' folder, and the 'add2Home.js' to your 'scripts' folder.

Then, in the IndexPage (or whatever your main holding page is called) procedure, go to the XHTML properties, and add these lines at the very top, ('Before </HEAD>') and tick 'Mobile Only':

Code: [Select]
<meta name="apple-mobile-web-app-capable" content="yes" />
<link rel="stylesheet" href="styles/add2home.css">
<script type="application/javascript" src="scripts/add2home.js"></script>

The first line is what prompts your web app to start in full screen mode on iOS devices (and some Android devices too!) - but ONLY if it is started from the home screen, which is why you really want to get your users to start your apps from the home screen :).

TIP: Create a 57 x 57 pixel PNG image that you would like to use as the icon on the home screen, call it 'apple-touch-icon.png' and save it into the 'web' folder.  Also, change the 'Title' property of the 'IndexPage' to whatever name you want to save the app as on the home screen.  This will save any further confusion on the part of your user, and means that can add your web app to the home screen with only two taps at the most.

That's it.  You be amazed at how much this reduces support calls, and increases user satisfaction that you app LOOKS like a real app...

Hope this helps,
Devan

43
Web Server - Ask For Help / Problem with mobile menus in 6.39
« on: August 15, 2012, 10:27:54 PM »
Just noticed something in 6.39 that has broken our app - I use a 'doubleDrop' menu in the header of our app.

In mobile mode, it used to convert easily to a 'right arrow' style menu, and any menus with submenu items would simply go from one right arrow menu to another right arrow menu and then onto the forms/browses as normal.

However, since upgrading to 6.39, and menu with a submenu comes up as a normal link with a blue background.  When you tap on them to go to the submenu, then the 'right arrow' menu is re-established only on the submenu.

How can we go back to the original style?  I see nowhere to embed CSS codes for mobile mode within the menu properties in the template?

EDIT: Attached screenshot.  As you can see on here 'Orders' and 'Profile' should be similar menus as the others on this page, but they are not.

EDIT2: As another (less important) issue - I've noticed (in all versions of NT6) that the first menu uses the default 'Black' theme, but then the secondary menus revert to a 'Blue' theme, then subsequent windows they call will go back to 'Black'.  It would be nice if the secondary menus also kept the same 'Black' theme all the way through.  Not essential, but nice to have.


[attachment deleted by admin]

44
Bruce,

Just a wish list item for possible future versions of NetTalk - Been coding up a web app that is to run on Desktop and Mobile devices, and I like the capability to turn columns on/off depending on the platform, but to extend that further, it would be nice to be able to change the fixed width of the browse box, as well as the number of rows displayed depending on the platform too.

I know I can use a Choose(p_web.IsMobile(), 10, 25) in the 'Rows' box in the Browse properties, but it just doesn't seem as elegant as perhaps having another 'Mobile' tab say, where we can set some of these important parameters for the mobile platform?

Or perhaps it is just TOO elegant and I am not seeing it? :)

Cheers,
Devan

45
I am implementing a mobile friendly version of a NT 6.37 site, and noticed that whenever I designate a form fields as 'Mobile Only' in the template, the generated code has an extra 'End' which is being generated and causing the compiler to freak out.  A sample code segment:

Code: [Select]
     if p_web.IsMobile()
        do Refresh::BrowseLineItemsMobile
      Else
        do Value::BrowseLineItemsMobile
          packet = clip(packet) & '</td>'&CRLF
          loc:cellstarted = 0
          do SendPacket
      End ! if p_web.IsMobile()
        if loc:cellstarted
          packet = clip(packet) & '</td></tr>'&CRLF
          loc:cellstarted = 0
        Else
          packet = clip(packet) & '</tr>'&CRLF
        End
        loc:rowstarted = 0
        loc:cellstarted = 0
      end
      do SendPacket

The second last line contains the offending extra 'End'.  I have to put in 'p_web.IsMobile()=0' in the 'Hide Condition' of the field to make it work as expected.

No problems if I use 'Both' or 'Desktop Only'.  The problem only happens in 'Mobile Only'.

Downloading 6.38 now to see if the bug has been fixed.

Cheers,
Devan

Pages: 1 2 [3] 4 5 ... 7