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 - Poul Jensen

Pages: 1 [2] 3 4 ... 13
16
Web Server - Ask For Help / Re: Browse VCR buttons show inside browse
« on: January 16, 2024, 09:28:07 AM »
These settings seem to be the culprit:


17
Web Server - Ask For Help / Re: No locator in mobile
« on: January 16, 2024, 03:36:14 AM »
The screenshot from mobile has a locator on the default sort-order only.
But how can I change to the other sort orders?

In desktop I click on the header, but that is not shown on the mobile.

/Poul

18
Web Server - Ask For Help / Re: Browse VCR buttons show inside browse
« on: January 15, 2024, 09:30:05 AM »
Further info:

It is all themes, and also other buttons show inside browse box.
See Save and Cancel button in this pic:


19
So easy  :-[

If I place the fields to update on the Field --> Client side --> Reset list then all works as expected.

/Poul

20
Hi,

It can be done manually.

1) Go to a site like this and create your icon images:  https://realfavicongenerator.net/
2) In the app, Webhandler, SetCustomHTMLHeaders you place this:

Code: [Select]
self.MetaHeaders = '  ' & |
    '<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">' & |
    '<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">' & |
    '<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">' & |
    '<link rel="manifest" href="/site.webmanifest">' & |
    '<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">' & |
    '<meta name="msapplication-TileColor" content="#da532c">' & |
    '<meta name="theme-color" content="#ffffff">'

3) Distribute the created icon images and files in the web folder.
4) The user then opens your app, and creates the shortcut from the menu, Add to home Screen:

/Poul




21
Web Server - Ask For Help / Re: Browse VCR buttons show inside browse
« on: January 14, 2024, 11:12:49 PM »
Hi Bruce,

This is standard Shoestrap3, I have not done any custom css other than setting the prompts leftaligned.

/Poul

22
Thanks Richard and Bruce,

are the values you are updating (and saving away) on the form itself?
or just other values in the record?

Are you aware that the "server side" code will run when the user clicks on "save"?
So your "updating code" will run here as well?

Personally I would not "interim" save the record before the user clicks on save, because it would make the "cancel" into a "sort-of" cancel.
So I think your root pattern is wrong anyway. Perhaps change your pattern so the correct values are set into the record, and session-values, but you don't actually save the record in the "server side code".

I am not convinced that the code is run twice - when I click the button and when the record is saved.
Because this is what I am doing in the event:
- Make a new workorder (child record of the record shown)
- Updating a date field on the record shown to the next date to be serviced.

And there is only one new child record created.

So what is NOT working is setting the date field on the shown record.

The code is this:

Code: [Select]
   MCus:NaesteCheck  =  MSagH:Lev_Dato_start + int(MCus:Interval * 30.4166)   
   p_web.SSV('MCus:NaesteCheck  ', MCus:NaesteCheck  )
   Access:MobCustomers.Update()


I would have thought  that the p_web.SSV('') would update the screen value but it does not.

So I guess my real questions is:  how can I update the screen value from an embed?
Or - as Richard suggests: how can I refresh the shown record with the disk values?

/Poul
 

23
Web Server - Ask For Help / Re: No locator in mobile
« on: January 14, 2024, 10:54:09 PM »
Morning Bruce,

This is not disconnected app.  It is a straight web-app.  And the locators are shown in desktop screen size.

/Poul

24
Web Server - Ask For Help / Update a record while it is shown on a form
« on: January 14, 2024, 08:44:48 AM »
Hi,

I have a NetWebForm with a record and a button.
When I click the button I run some code that changes the record shown using embed Validate::Field Routine --> 5 Add server side code here.
That works fine, and the record on disk is updated.

If the user then clicks the save button, the old values are saved and overwriting the values I have saved.

I have tried in above embed to set the screen values by p_web.SSV('Field'), but that does not update the values shown.

How to get around this?

tia
/Poul

25
Hi,

1) How can I get locator and sort orders for other fields than default sort field when in mobile?

2) Why is columns not leftaligned in mobile - I have selected that on the CSS tab for the fields.

Se below pics from desktop and from mobile.

tia
/Poul


26
For info:  This setting works with a standard TSplus installation:

/Poul


27
Yes it does so for now I will leave it as is.

28
Hi Alberto,

Being new to NT  -  well been away for more than 6 years anyway  :) so I am strugling a bit here, but I have this code:

Code: [Select]
p_web.SSV('ShowStartStop', 0)
p_web.SSV('ShowVarelinier', 0)
p_web.SSV('ShowVarelinierKnapper', 1)
CASE p_web.GetSessionValue('MSagH:Status')
OF 0
    p_web.SSV('ShowStartStop', 1)
    p_web.SSV('l:Status', 'Ny')
OF 1 OROF 2 OROF 22
    IF INSTRING( '.XLS', UPPER( p_web.GetSessionValue('MSagH:SKStype') ), 1, 1)
        p_web.SSV('ShowStartStop', 0)
    ELSE
        p_web.SSV('ShowStartStop', 1)
    END
    p_web.SSV('ShowVarelinier', 1)
    p_web.SSV('l:Status', 'Startet')
OF 3
    p_web.SSV('ShowVarelinier', 1)
    p_web.SSV('ShowVarelinierKnapper', 0)   
    p_web.SSV('l:Status', 'Afsluttet')
OF 4
    p_web.SSV('ShowVarelinier', 1)
    p_web.SSV('ShowVarelinierKnapper', 0)
    p_web.SSV('l:Status', 'Faktureret')
END

And then I indeed check on the individual buttons / fields for the session variables 'ShowStartStop', 'ShowVarelinier' and 'ShowVarelinierKnapper'.

Are there better ways?

/Poul

29
Web Server - Ask For Help / Re: Cosmetics on a NT form
« on: January 11, 2024, 10:41:27 PM »
Thanks Niels,

Much appreciated.

/Poul

30
Web Server - Ask For Help / Re: Browse VCR buttons show inside browse
« on: January 11, 2024, 10:40:58 PM »
Solution for now is to place the buttons on top of browse.

/Poul

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