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

Pages: [1] 2 3 ... 7
1
Web Server - Ask For Help / Countdown Clock
« on: March 21, 2018, 12:08:28 AM »
I would really like to create a large Countdown Clock.  Something like:

3 Years 7 Months 3 Days 4 Hours and 27 Seconds

with the time changing in real time - just like the 'Session expires in HH SS'  I'd like it to be triggered by a Menu Item 'Countdown Clock'.

Can this be done easily?

Keith

2
I have an application with 7 graphs (Insight Graphing).  The first 6 work perfectly with data input from static files. In all of these cases I specify the Y-axis min and max values (auto scale OFF).

The 7th is loaded from a file which contains data based on 'Owner' and Owner can be changed via a drop-down on the Window that encloses the graph.  When a new Owner is chosen and a Button ('Refresh Data') is pushed the Server Side code deletes all of the records in the file and reloads with those from the new Owner.

On the Button, the Graph Procedure is set to Refresh.  When the graph first displays it is ok.  When it is subsequently displayed with new Owner data it gets bigger, and then bigger until it overflows the screen

The Y axis Min is set to 0 and Max is set to 60.  None of the Y value data points exceed 46.

Any idea about what can be wrong?

Thanks

Keith

3
Web Server - Ask For Help / Modifying profile - problems
« on: February 20, 2017, 11:26:50 PM »
This is not an NT problem but I'm trying to modify my Forum Profile and get errors viz:

2: file_get_contents(http://www.nettalkcentral.com/images/comprofiler/./tn5956_516f658f6c557.jpg) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: HTTP request failed! HTTP/1.1 416 Requested Range Not Satisfiable

File: /home/clarionc/public_html/nettalkcentral.com/components/com_smf/smf.class.php
Line: 1365

Is anyone else having problems?

Keith

4
Web Server - Ask For Help / Conditionally colouring a field
« on: February 15, 2017, 02:17:35 PM »
HI

I want to use a dropdown box to enter text into a field.  Depending on the text chosen I want to then colour the field eg: Dropdown items: Horrid, Bad, Annoying, Ok  Colours: Red, Orange, Yellow, Green

I understand that it is not possible to attach CSS to the field that will perform the equivalent of an If then elseif etc and I have a suggestion that a combination of JavaScript and Styles could solve the problem.  A friend has written a test script - see attachment.

If this is along the right lines how could I incorporate this into the code - there is a place for JavaScript on the field (Client side tab).

Thanks

Keith

5
Web Server - Ask For Help / Security message after converting to C10
« on: October 22, 2015, 05:32:07 PM »
I have recently converted to C10.  One of my applications triggers the security dialog box which asks whether 'you want the following program to make changes to your computer?'.  This appears after every compile.

I have started from scratch with this by renaming it and moving to a new directory but to no avail.  What happens on the first execution is that I get the message (above) to which I reply 'yes' and then I get the Windows Firewall message 'Windows firewall has blocked some features of this program' to which I press the 'Allow Access' button.  After that I just get the 'do you want the program to make changes' message.

Has any one seen this - any ideas on what might be causing it?

The same program worked fine (no messages0 in the C9.1 environment.

Thanks

Keith




6
Web Server - Ask For Help / Receiving data from a cell phone
« on: September 01, 2015, 12:26:38 AM »
Hi

Has anyone got any tips about how to go about receiving a stream of data from a cell phone?

Situation would be that a phone app has a batch of data, say in CSV format, and is to send it to a NetTalk program which will load it into a DB.

Thanks

Keith

7
Web Server - Ask For Help / Lookups
« on: August 19, 2015, 06:43:04 PM »
Hi  (I have started a new topic on this because the other thread was getting long and I wanted to start again because things have changed and moved on)

I have discovered some very peculiar things after exhaustively investigating this problem.  Firstly a recap of the current situation:

I now have a running application which includes 3 separate forms and lookups on a Districts file.  Districts has two fields, Country and District.  This running application works perfectly as regards these lookups in two cases viz:

- standard browse form
- option where a form is opened in change mode (no browse)

The third case does not work all the time - form opens in insert mode.  Specifically what happens here is that I prime country with 'New Zealand'(and this appears correctly as a radio field on the opened form) but after popping up the Districts browse, seeing the correct districts for that country (I have a filter in the browse on current country, if upper(p_web.GSV('FND:Country')) not= upper(Dis:Country) then CYCLE.) and selecting a district, the value does not get displayed in the district field.

Now, if you change country, say to 'Australia', and lookup again, the correct new districts are displayed in the browse and selection causes the receiving field to be properly populated.  From then on you can go back to any country and get the right answer.  So, its only on the first time access of the loookup for this 'insert mode' case that the procedure fails.

Also, 'Building Applications with NetTalk' says that if the lookup browse is a popup (which mine is) then the only field that you can get back is the primary key field (in my case RecordId) and that a way around that, if you want to actually put the description back into the database field (i.e. non-normalised data) then add an assignment, in this case fnd:address4 = dis:name.  However, my testing seems to indicate that this is not necessary.  If you specify the Value field as dis:name and do not do the extra assignment then the district name is correctly stored. I would appreciate a comment on that - have things changed since the book was released?

Lastly, a weird thing happens when I change the option for the lookup browse from popup to not. The browse appears as before (but full screen) and after selection, the page is redisplayed but the user is logged out and only the login menu option is available!  This is either a bug or I have done something silly but either way I would like to know the answer just as a matter of interest.

My questions then are why does this 'insert mode' case not return the selected data to the field first time, is the 'Book' out of date and what about 'not popup'?

Thanks

Keith

 


8
Web Server - Ask For Help / Site javascript error
« on: August 10, 2015, 06:57:16 PM »
Hi

On an app which is running on a remote server we are seeing an error (in red) which momentarily displays saying 'Site javascript error' or 'Error in site javascript'.

If I access the site from a remote PC I never see any errors and never have any format problems but access from the same site where the server is (and presumably a more immediate connection) displays the errors and sometimes the error stays on the screen and the formatting of the page is lost.

Any pointers?

Keith

9
Web Server - Ask For Help / Field Lookup problem
« on: July 22, 2015, 01:29:41 AM »
Hi

I have 3 different forms on which I have a District field which is populated by a Lookup on the Districts table which has two fields - Country and District Name. 

In the browse of District which is used for the selection I have code which filters the display viz:

      if upper(p_web.GSV('FND:Country')) not= Dis:Country then CYCLE.     

which means that if the country is Australia then Australian states are shown but if United Kingdom then a list of Counties is shown.

I have completed the Lookup template identically for the 3 forms (see picture' Lookup').  The Value field is a single component primary key.  There is no table relationship between the form (Resorts) and the lookup (districts).

One form is a standard browse/form situation where the form can be updated or a new record inserted and in both cases the lookup populates the receiving field.

Another form is called directly in 'Change' mode (no browse) and again, the lookup works perfectly.

The third form is called directly in 'Insert' mode and fails to populate the field on the first try.  The correct Districts display but after selection the field remains blank.  If you immediately try the lookup again there are no districts displayed.   If you then change the Country (and therefore the selection criteria) and redo the lookup it works and seems to work thereafter (at least for a few tries).

Any ideas on why this would be happening in this particular case.

Thanks

Keith



[attachment deleted by admin]

10
Web Server - Ask For Help / Second level menu getting squished
« on: July 22, 2015, 01:03:21 AM »
Hi

I have a Menu Item at Level 1 - FindaResort - which has 5 level 2 items.  The menus are displayed 'open' and all of the items are visible after a user logs in - see picture Menu1.  However if the user contracts the FindaResort item and expands it, there is a squishing - see picture Menu2.

You can sometimes un-squish it by expanding and contracting the other items but no reliably and I couldn't find any setting that I have missed in the template.

There's plenty of real estate - any ideas what I could have done wrong?

Keith

[attachment deleted by admin]

11
Hi

I have a file which has a field 'Business Type' which can have the values 0-3.  I want to have this field in the Browse but with an alpha decode of the numeric viz 0 means 'Inactive', 1 means 'Free' etc.

So, I added four conditions to the 'Conditional' tab on the template for the field viz: p_web.gsv('FND:BusinessType')=0 and set 'Display' to 'Inactive' with a picture of '@s8' and so on for the other three options.

What was displayed though was 'Inactive' for all of the Browse records whether the 'Business Type' was 0 or not.  The generated code looked good viz:

    if false
    elsif p_web.gsv('FND:BusinessType')=0 ! alternative condition for column
      loc:extra = ''
      packet.append(p_web.DivHeader('browseFindaPet_FND:BusinessType_'&FND:RecordId,,net:crc,,loc:extra))
              packet.append( p_web.CreateHyperLink(p_web._jsok(Left(p_web.mformat('Inactive','@s8')),(Net:HtmlOk*0)+(Net:UnsafeHtmlOk*0)),,,,loc:javascript,,,(Net:HtmlOk*0)+(Net:UnsafeHtmlOk*0),,,'browseFindaPet'))
    elsif p_web.gsv('FND:BusinessType')=1 ! alternative condition for column
      loc:extra = ''
      packet.append(p_web.DivHeader('browseFindaPet_FND:BusinessType_'&FND:RecordId,,net:crc,,loc:extra))
              packet.append( p_web.CreateHyperLink(p_web._jsok(Left(p_web.mformat('Free','@s4')),(Net:HtmlOk*0)+(Net:UnsafeHtmlOk*0)),,,,loc:javascript,,,(Net:HtmlOk*0)+(Net:UnsafeHtmlOk*0),,,'browseFindaPet'))

It looks as if the display should vary depending on the value of FND:BusinessType but it doesn't.

I am obviously misunderstanding something about how this works.

Thanks for any help.

Keith

12
Web Server - Ask For Help / Menus and Mobile
« on: May 10, 2015, 06:39:48 PM »
HI

I am creating a tailored Mobile set of procedures for my app.

I display the Menu, select a Browse and then a Form but the Menu is no longer displayed and the only way to get back to it is via the 'back' arrow on the browser (i.e. when on the form 'back' displays the browse and 'back' again displays the Menu.

Of course, when running in non-mobile mode the menu is always displayed and available.

Is this the way that 'Mobile' works or is there something I am missing?

Thanks

Keith

13
Web Server - Ask For Help / Catering for Mobiles
« on: April 27, 2015, 01:32:48 AM »
Hi

I recently released an app to a selected group of enthusiasts (and have written about it under 'Links to sites'  http://202.78.140.106:24010 ) and I found that a lot of activity was via mobile devices of small screen size.  My app revolves around information displayed on a Form under six tabs of which three are pretty dense in terms of fields which are typically arranged in a tabular format (i.e. labelled rows and columns).

I had imagined that with so much data to display that no one would remotely consider trying to run the app on phone - but they did  >:( 

I have since read as much as I could find about how to cater for Mobiles. I can understand Browses and can easily adjust the template settings per recommendations and that will work well.  But its the Form that is the problem.  I have attached two displays MobileD1 and MobileM1 which show what one of the tabs looks like on a Desktop and on my desktop with 'Force Mobile' mode selected (and the display looks much the same on a real phone).

The other tabs on the form (especially the dense one) are equally unusable.  I suspect that this chaos has something to do with how I have achieved the formatting which for the desktop is well structured and briefly this is what I have done:

The row headings are the prompts for the first fields in the row (for which the column heading is 'RPM')the other fields in the row have a null prompt.  the column headings ('RPM , 'Torque Nm' etc are individual Display fields.  They all line up because they all have the same template attributes 'last in line' = No and 'last in Cell' (except the last one in each row of course).

A couple of questions at this stage - why would the formatting go so horribly wrong on a Mobile and is it even sensible to expect a similar result as for a large real estate device? 

And if the answer is that tabular formatting (at least as I have implemented it) is a no-no for mobiles then does that mean that you would need to develop another application with a different style for them?

Thanks

Keith

[attachment deleted by admin]

14
This is not a new topic really, I have asked this question before but have just come back to it and still can't get it to work.

My original question was how to send the cursor to the login Form Field that was in error (I have three fields on my Form - Business, User and Password).

Bruce said in reply:

"Loc:Invalid is set during validation to the field that you consider to be invalid, and hence the field that will regain the focus. So for example in example 3 the embed code reads;

    loc:invalid = 'Loc:Login'
    p_web.SetValue('retry','LoginForm')
    loc:Alert = 'Login Failed. Try Again.'

which will put the user back on the login field. But it could have been

    loc:invalid = 'Loc:Password'
    p_web.SetValue('retry','LoginForm')
    loc:Alert = 'Login Failed. Try Again.'

which would then put the user back on the password screen.
"

And of course this is perfectly correct, readily understood and is exactly the way that Example 3 works.

BUT - it doesn't work in my application where I code:

                 loc:invalid = 'loc:password'
                 p_web.SetValue('retry','LoginForm1')
                 loc:Alert = 'Invalid password. Try again.'           

The only difference between mine and Web3 is that my Login Form has a different name (but it was derived from the Web3 Form) - not that I think that matters.  What happens is that the Alert message appears and after clicking 'Ok' the cursor cannot be seen and it certainly is not in the Password field.

This is just an irritation but I would like to know what could be different about my Form that would generate this behaviour.

Thanks

Keith


15
Web Server - Ask For Help / 8.38 Browse problem
« on: February 26, 2015, 04:21:39 PM »
Hi

Have just updated to 8.38.  Immediately noted that some of my Browses failed to load the Form after clicking the in-row  'Change' button.  However, double clicking the row loads the Form.

I will experiment some more with why some Browses and not others but thought there may be a quick answer.

update --
This is browser dependent.  Firefox and Chrome work (no change in behaviour) but IE11 doesn't (some Browses fail to load Form on 'Change' but ok on 'Double Click').

I have 'Double Click Select when Selecting' set in WebServer Defaults for Browse.

Thanks

Keith

Pages: [1] 2 3 ... 7