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

Pages: [1] 2 3 ... 8
1
Web Server - Ask For Help / Mem Form Field
« on: April 21, 2024, 11:37:23 AM »
Hi  Using NT14.18 and C11.0.136
I have some Entry fields on a MemForm. ( Strings).
Can I make Entry Fields ( strings )  - READ ONLY?
Is there a way to set an attribute - I am looking up data on 1 tab.
On Tab 2 - if there is no data in the table that I looked up  then I want them to Enter Last Name and First name, etc.
If the data exists, then I just want to SHOW the Last Name and First name, etc and not allow modification.
Or do I have to hide/unhide Last name String (Entry) and Last Name (Display) based on the condition?
Thanks,
Ron

2
Web Server - Ask For Help / Using MemForm again
« on: April 21, 2024, 03:50:40 AM »
Hi, Using NT14.18 and C11.0.136
I am using a Memform called in Change mode.  I am collecting data and using it to write to 3 different tables.
I am putting my code in the ValidateUpdate Routine ( which calls the do CompleteForm and do ValidateRecord routines) and it calls these first.
However, if I open the memform and click the "Save" button for the form, it starts writing to my 3 tables and then pops up a message that required fields are not filled in... However, I want it to get the required fields FIRST.  Is there a statement like IF ALL FIELDS ARE VALIDATED then go ahead and write to the tables.  If NOT ALL VALIDATED then remind them to fill in the required fields?
Thanks,
Ron

3
Web Server - Ask For Help / Using MEmform
« on: April 21, 2024, 03:28:50 AM »
Hi, Using NT 14.18 and c11.0.13630. 
I am calling a MemForm in Change Mode.

Question 1: I am capturing a local field with a alphanumeric field on Tab1.  I want to display this field which is saved as a Session Variable on Tab2 - 'thisVIN'. I save it as p_web.SSV('thisVIN', thisVIN).  I have tried various Display field methods such as displaying the TEXT  of p_web.GSV('thisVIN').  I have tried displaying it as a Session Variable using p_web.GSV('thisVIN').  No luck.  What is the trick?

Thanks,
Ron

4
Hi,
I want to display a different menu and possibly a different start screen when the users log onto my program with a mobile phone.  I am using @media <600 to trap small screens.  My menus do change to the hamburg menu.  I have created custom css for the small screens to display correctly.  However, I want to change some behavior of the app on mobile scren.

1. I want to change the menu items - some so display and some not to display.  How does that  get done?  I doubt that i can capture @media < 600 and use it as a condition.  The other way that I can think of is to add a class attribute to the menu items and change their properties in the css.  Which is doaboe or better?

2. I want to display a page with "3 Action Buttons" when they log in on a mobile phone.  One way would be to give it a class name and hide it and use CSS to display if it is in on a small screen.

Any help will be appreciated.
Thanks,
Ron

5
Hi All,
I have edited custom.css to make the font on my mobile phone screen so that it is x-small.
I have managed to edit a lot of the text in the browse grid to x-small text with the following css in custom.css.
@media screen and (max-width: 640px){
        .nt-body-div{font-size: x-small}
   .nt-child-grid{font-size: x-small}
}

However, what I really want to do is make the whole grid presentation SMALLER
THe following is the Class that I want to make SMALLER in its entirety.
What are the CSS settings to make the whole Browse Grid ( class=" nt-child-grid" ) shrink to  only 50% of its
size?
Thanks,
Ron

This is the element:
<div class=" ">
<div id="sm_browsec_auto_small_screen-parent-container" class=" nt-child-grid" data-elem="child-table">
<div class=" nt-child-grid-cell" data-elem="child-cell" valign="top">
<div id="sm_browsec_auto_small_screen_div" class="nt-browse exists">
<div id="sm_browsec_auto_small_screen_header_div" class=" nt-header nt-browse-header"> See Autos</div>
<div id="sm_browsec_auto_small_screen_locator_b_div" style="display: none;"><table class=" nt-locator" data-loc="table">
<tbody><tr class=" nt-flex nt-locator-row" data-loc="row">
<td data-loc="prompt">
<div class="nt-locator-prompt"> :</div></td>
<td data-loc="input">
<div><input type="search" name="locator1sm_browsec_auto_small_screen" id="locator1sm_browsec_auto_small_screen" value="" class=" nt-locator ui-widget nt-entry ui-corner-all" data-do="lo" data-imm="true" size="20" placeholder="Search"></div></td>
<td data-loc="buttons">
<div id="sm_browsec_auto_small_screen_locate_b" class=" nt-flex nt-locator-button-set"><button type="button" name="" id="dLqg" value="Search" class="nt-flex nt-button nt-button-with-icon nt-locate-button ui-button ui-corner-all ui-widget" title="Click here to start the Search"><span class=" ui-icon ui-button-icon ui-icon-lightbulb"></span><span class="ui-button-icon-space"></span>Search</button>
</div></td>
</tr>
</tbody></table>
</div>
<div id="sm_browsec_auto_small_screen_table_resize_div" class="nt-" style="width: 500px; height: 500px;"><div id="sm_browsec_auto_small_screen_table_div" class=" ui-widget">
<table id="sm_browsec_auto_small_screen_tbl" class=" nt-browse nt-browse-table nt-browse nt-browse-table" data-elem="browse-table" style="opacity: 1;">
<thead class=" nt-browse-head nt-browse-table-header">
<tr id="sm_browsec_auto_small_screen_head" class="nt-browse-row nt-browse-table-row nt-browse-row-header sm_browsec_auto_small_screen-row-header ui-sortable" data-elem="browse-header-row">
<th data-col="1" id="head_66" class=" nt-browse-table-cell nt-browse-header-all-table nt-browse-header-not-selected ui-corner-top nt-browse-header-cant-select" data-elem="browse-header-cell" data-colname="Other66ServiceRequest">
<div class="nt-flex nt-browse-table-cell"><div class="nt-browse-header-text-cell">Service Request</div></div></th><!-- endCell [1] headerCell -->
 

6
Web Server - Ask For Help / Mixing Small screens in Web App
« on: February 28, 2024, 05:36:56 AM »
Hi All,
Using NT14.18 and C11.013630
Before I build a PWA, my clients are going to run a web site mostly on their browser.  There are a few screens that they will do on their mobile phones.  Before I build the mobile phone app, I want to make and test the small screens in my web app. So, can I have the web app deliver a "mobile screen" version of the procedure when a mobile phone is used?  I will have lets say 2 procedures - 1. Pick Services - Browser and 2. Pick Services - mobile phone.  How can I have the app deliver the correct screen (2) when used on mobile phone?
Thanks,
Ron

7
Hi
NT 14.16  C 11.0.136
I have a web MEMORY form which I call to have the end user enter a new password and then to repeat the new password to make sure  that they are the same.
Where Do I put the code to check if the password and repeat new password fields have the same content?
Do I put the code under the Immediate Validation for repeat new password field?
Thanks,
Ron

8
Web Server - Ask For Help / Net Talk - Scan a document
« on: February 12, 2024, 02:46:01 PM »
Hi,
NT 14.16  C11.0.136
My clients want to scan a document and save it in my NetWeb Program.
How might I accomplish this?   Would they have to pull up a scanner program in Windows and scan the document and then in the web app pick the file with the document?  Is it easier to accomplish in the Web App?
Thanks,
Ron

9
Hi,
Basic question which I am having problems solving.  NT14.16, C11.0.136.
SendEMail procedure has:
  Prototype:  (EmailParametersGroup pEmail),long,proc
  Parameters:  (EmailParametersGroup pEmail)


THis works correctly ( on same thread):
  If SendEmail(parms) = 0
    .....
   end

However, i want to send E mail on its own thread:
START(SendEmail,35000,parms) gives "No Matching Prototype error"

What am I missing?
Thanks,
Ron

10
Web Server - Ask For Help / Logic to force user to change initial password
« on: February 12, 2024, 03:06:50 AM »
Hi,
NT 14.16
Clarion 11.0.13630
My kiosk users are going to be given an initial password.  I want them to set their own password when they first log into the program ( for security ).  How can i accomplish this?  Should I re-direct them to another login reset page or do it directly in code in the login page for the site?  Other suggestions on how to handle this?
Thanks,
ROn

11
Web Server - Ask For Help / Limit number of login attempts
« on: February 11, 2024, 03:21:05 AM »
Hi
NT 14.16
Clarion 11.0.136
Want to give the user 5 tries to get password correct then get them OUT of the Login procedure back to index page.
I have set  p_web.SSV('Tries', tries) and increment each time the "SAVE button is pressed.  I tried to set loc:formaction = 'IndexPage'  when they have exceeded the number of tries but does not do anything.
What is proper way to get back to Index page?
TIA,
Ron

12
Web Server - Ask For Help / NT browse CELL Border
« on: February 05, 2024, 05:01:52 AM »
Hi,
NT 14.16
C11.0.136
I am trying to put a border on the cells in one column.  I have set the background and foreground colors using the css property for the field in the CSS tab.
However, I am using the ' Additonal CSS Properties:'  (which I used to set colors)
I ticked "Apply to Whole Cell'
CSS property:  other
Property: 'border-style'
Value: 'dashed'

This really has no effect on border.
What is recommended action to get a border on the cells of one column?
Thanks,
Ron

13
Web Server - Ask For Help / WebCam criteria for reading barcodes
« on: January 29, 2024, 07:04:10 AM »
HI,
NT 14.16
Clarion 11.0.136
I have 3 webcams - 1 is on old Logitec with autofocus, and 2 are generic web cams.  Only the Logitec will identify and read barcodes.  It seems like AUTOFOCUS is the key piece.  Is that correct?
What cameras are folks having high reliability in reading barcodes and QR codes with NT?
Thanks,
Ron

14
Hi All,
Again, I am not sure what to ask but here is the scenario.  I am looking at running a Kiosk with Raspberry PI.  I will have a browser in the kiosk which will connect to the NT server.  It will most likely be Chromium or Firefox for Raspberry Pi.  The kiosk is going to have a number of storage boxes.  At some point when the customer validates information on the NT server, the server will need to send a command to the kiosk ( it will know which kiosk to send the command to - and the kiosk browser will be connected to the NT Server). The command will be something like "unlock drawer #3".  At that point, the browser in the kiosk will send a notice to the onboard serial lock controller to unlock #3.   I just don't know enough about this browser stuff to get a handle on sending information to the remote (non NT browser client and having the non NT client browser act on it.  Seems like something for javascript in the client browser?  I am starting this project with Windows Computer in kiosk so will exchange values with a a NT client running on a web socket and channel.  SO, If I go to Raspberry Pi, how can my NT server send a command to the Browser running on the kiosk?  I am not sure if I can use javascript to program the Raspberry Pi browser to watch a socket or if I need to do an API query from the kiosk browser to NT server on a regular basis?
Any thoughts and insight would be helpful.
TIA,
Ron

15
Web Server - Ask For Help / NT Paths - trying to sort this out
« on: January 22, 2024, 07:08:34 AM »
Hi All,
NT 14.13  C 11.0.136
I am trying to get a handle on PATHS for a web server.   Right now,  I am working only with the WebServer.AppPath .  All my files are in the same directory as my Web Server exe.
I am going to have a different folder for each user. i.e.  User 1 will have folder: C:\User1  and User 2 will have the folder C:\User2. 
I was going to use the SETPATH() once each user logs in and I know their specific folder.  e.g. SeTPATH('C:\User1')  or SetPath('C:\User2').  In this way, they will only see their data.  I know that the NT training book uses Variable file names but I would like to use the Setpath() to get to each data set.
Questions: 1. Is using SetPath() a valid approach to do this?
                2. If  User1 is in C:\User1 directory and UPLOADS a file to the server.   Where will it go?   WIll it go to .web\uploads relative to where the App EXE is running or will User 1 have an UpLoads directory in C:\User1

I have the option of making USER 1 and USER 2 folders beneath the web folder so I am not all over the disk - is that preferable?   
Thanks for any insight.
Ron

Pages: [1] 2 3 ... 8