NetTalk Central

Author Topic: Missing "Insert" button in mobile mode  (Read 4369 times)

Rob Kolanko

  • Sr. Member
  • ****
  • Posts: 253
    • View Profile
Missing "Insert" button in mobile mode
« on: June 07, 2012, 11:09:21 AM »
The "Insert" button does not appear outside of the browse when NetWebBrowse is displayed in mobile mode. As an example, change the webHandler to mobile mode on the WEB1 example then compile and run. The insert button does not appear. The button does appear in desktop mode.
Also if the "Delete" button is requested on the NetWebForm, it does not appear either in mobile mode.

Rob Kolanko

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11263
    • View Profile
Re: Missing "Insert" button in mobile mode
« Reply #1 on: June 07, 2012, 11:54:51 AM »
Hi Robert,

does the Insert button appear as "Add" in the _header_ of the browse window?
(top right corner I think.)

cheers
Bruce'

Rob Kolanko

  • Sr. Member
  • ****
  • Posts: 253
    • View Profile
Re: Missing "Insert" button in mobile mode
« Reply #2 on: June 07, 2012, 12:39:21 PM »
Ok, the little "Add" button does appear on the header in the Web1 example, but  the user is going to look for the button by the "change", "delete", "view", "copy", etc. buttons which are below the browse.
Also in my case the browse in a form which has Cancel and Save buttons. The Save button must have a higher priority than the Add button, because the Save button appears in Add button positon and the Add button does not appear.

I can uncheck the "Save" and "Cancel" buttons from the NetWebForm Layout tab and added these buttons as fields, thus the "Save" and "Cancel" buttons will appear below the browse on the form in mobile mode, but the "Add" button still does not appear in the header. Thus in this case there no way to insert a record in mobile mode, if there are no records in the table.

I think most developers would like more control over where these key buttons will appear in mobile mode. Perhaps an option to place button in mobile header, otherwise place the button in the same location as with the desktop mode.

The NetWebForm "Delete" button never appears in mobile mode.

Thanks,
Rob Kolanko

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11263
    • View Profile
Re: Missing "Insert" button in mobile mode
« Reply #3 on: June 07, 2012, 01:12:02 PM »
>> I think most developers would like more control over where these key buttons will appear in mobile mode.

yes - I agree.

>> but  the user is going to look for the button by the "change", "delete", "view", "copy", etc. buttons which are below the browse.

ideally you should have the edit, and delete (if applicable) buttons "inline" in the browse row. Thus, ideally, no buttons under the browse. At least this is what most closely mimics the mobile "apps" I've seen.

It's very common (in iOs anyway) to have the "Add" button in the header at the top.

Bear in mind that you can run the site in "desktop" mode on a device if you want. So to some extent the point of "mobile mode" is to have an alternate layout - not the same layout.

cheers
Bruce


Rob Kolanko

  • Sr. Member
  • ****
  • Posts: 253
    • View Profile
Re: Missing "Insert" button in mobile mode
« Reply #4 on: June 07, 2012, 01:26:42 PM »
Ok, I agree that the layout will be different in mobile mode and with the use of in line buttons, etc. But, the following issues still exist in mobile mode:

When a browse is placed as field in a form. The browse "Add" button does appear in the header or anywhere. The inline "Add" add button does appear, but what happens when the browse has no records?

The NetWebForm "Delete" button never appears in mobile mode.

Thanks for your help,
Rob Kolanko

Devan

  • Full Member
  • ***
  • Posts: 230
    • View Profile
    • Email
Re: Missing "Insert" button in mobile mode
« Reply #5 on: August 08, 2012, 10:56:26 PM »
+1 on this issue.

If you have a form with an embedded Browse in it, e.g. for a fairly common Invoice Header/Line Items situation, there is no way to logically show the '+Add' button for the line item.  The top right of the header is taken up by the 'Save' button for the header, not the '+Add' for the Line item.

Having 'inline' buttons for 'Change' and 'Delete' is fine, but logically, putting an 'Insert' button inline is no good.  Plus the fact if you are starting with an empty browse there is no way to begin adding a new record if the button is inline.

I think the templates need to be changed to allow some level of customisation.  e.g. if the browse is embedded in a form, show the '+Add' button under the browse, otherwise top right corner of the header bar is OK.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11263
    • View Profile
Re: Missing "Insert" button in mobile mode
« Reply #6 on: August 09, 2012, 01:21:08 AM »
Hi Guys,

I've tweaked this for the 6.39 build.

Basically, if the browse has no parent (ie it's a straight-forward browse) then the Add button can(*) appear in the toolbar.
Insert buttons can(+) also be included under (or above) the browse, as part of the normal button set. (ie change, delete etc).

(*) you can force it to never be on the header if you like.
(+) you can force it to not be under the browse, if it's in the header, if you like.

Cheers
Bruce