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 ... 5 6 [7]
91
Web Server - Ask For Help / The ability to use local variables
« on: September 29, 2013, 01:24:06 AM »
I'm sure that I don't fully understand variables and would like some advice.

Suppose I have a Form procedure on which I want to display messages based on data entered.  A message might be: 'Rotational mass (kg) min = 1% of vehicle weight,  max = 30% of vehicle weight, set to default'.  This is just informational.  It is not stored in a database.

For this case can I declare a Local Variable - loc:message1, set it in the server side code and create the session variable viz:

if <certain conditions apply>
   loc:message1 =  'Rotational mass (kg) min = 1% of vehicle weight,  max = 30% of vehicle weight, set to default'
else
   loc:message1 = ''
end
p_web.ssv('loc:message1',loc:message1)

Then, if I Reset Message1 on the Form this should be ok.

But my question is whether there is any possibility that loc:message1 will get changed by another 'user' between when my code decides to post the above message and the execution of the p_web.ssv?

This question stems from the fact that the exe is being used by many users (and all have access to loc:message1).  But if server side code is triggered can that code ever be interrupted or does it always run to completion?  If it always completes before control is passed to another request then loc:message would be safe.

But suppose the server side code contains an IO loop which raises the possibility that the exe will get scheduled off the CPUs will it still run to completion before control is relinquished?  If it does (and loc:message1 is still safe) then that raises the question of the responsiveness of the exe which depends on request being handled in short time frames - but it is possible to write code in the server side that runs for 5 minutes and that would destroy responsiveness for other requests unless it was interrupted (which would make loc:message1 unsafe).

So, more questions than answers in my head - your advice and experience will be appreciated.

Note: When I started this 'message' business I used a file variable but then discovered that if I wanted the message available on multiple tabs then I had to have multiple file variables which seemed cumbersome and perhaps unnecessary.  The above question arises out of my desire to limit file variables (And if someone could tell me how I can use the same variable on different tabs without getting a compile error I would appreciated that too)

Thanks

Keith


92
Web Server - Ask For Help / Placement of fields on a form
« on: September 27, 2013, 08:41:14 PM »
I have already had a round of advice (mainly from Bruce) about Form Field Placement but now have another question.

It relates to the placement of fields in rows that are disparate in terms of their number and length.  It seems that within NT assumptions are made re field placement on some rows that take into account the number and length of fields overall.  this means that (in my case) they don't look as good as they could and they waste form real estate.

My full dissertation is contained in the attached document.

All comments gratefully accepted.

Thanks

Keith


[attachment deleted by admin]

93
Web Server - Ask For Help / Allow web server application to be minimised
« on: September 26, 2013, 01:21:10 AM »
What do I need to do to allow the web application to be able to be minimised on the server?

I think for a Clarion Windows app you just added an icon for the app and that gave you the "-"  button (top right hand corner).  In is default mode the web app doesn't have this button  so what do you need to do?

Thanks

Keith

94
Web Server - Ask For Help / Skipping a read-only field
« on: September 19, 2013, 12:21:47 AM »
For a form with a mix of regular and read-only fields is there any way of skipping the read-onlys?

Currently when you tab off an entry field the cursor can go to a read only. 

Any tips, thanks Keith

95
I just wanted to understand if there were any limitations on deployment and the number of users that could be supported and the transaction volume for our beautiful NetTalk applications.

I have attached a document because its content didn't do too well in this box  :)

I would appreciate comments.  I sort of think that everything that I've said is possible but it would be nice to be sure.

Cheers

Keith



[attachment deleted by admin]

96
Web Server - Ask For Help / Column lineup in a Form
« on: July 07, 2013, 12:40:22 AM »
Hi, I'm trying to line up columns on a Form and to see whether there is anything that can be done to make the Prompt and Value line up in a more decorous way.

See the attached document for a description and screen shots.

Thanks

Keith

[attachment deleted by admin]

97
Web Server - Ask For Help / NT 7.14 and compile errors
« on: July 04, 2013, 03:56:01 PM »
I have just updated from NT7.0 to NT7.14 and got the following compile error on an application:

Error: Cannot call procedure as a function.

The code in question started with this:

packet = clip(packet) & p_web.Script('startCountDown('& int(

and was pointing to 'startCountDown'.  This app compile and ran ok with 7.0

Keith

98
Web Server - Ask For Help / Auto Complete
« on: June 28, 2013, 03:44:07 PM »
Not sure whether I should have posted this on the C* user site  :-*

If you look at the attached doc you will see two pictures.  the first shows an autocomplete box after typing 'sc' (SCE: is the prefix of my table).  It looks like field names but has 'isinvalid' attached and the SCE:comment filed is noted as long when it's string.

The second picture shows the autocomplete box if I type 'sce:' which look correct.

What's going on here?

Thanks

Keith

[attachment deleted by admin]

Pages: 1 ... 5 6 [7]