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

Pages: [1] 2 3 ... 18
1
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 -->
 

2
Poul,
A good place to start is on your web folder app which is running.  On the window - go to Settings Tab  (Log - Performance- Settings Tabs on top).
Settings Tab - will have 4 tabs (Site-Certificate-Headers-Proxy)
On the Site Tab - 4th field down:  "Web Folder"  - THIS HAS TO BE the LOCATION THAT YOUR APP IS RUNNING FROM.
If this path is NOT set correctly, then it will be pointing to an incorrect folder from which the running application CANNOT DOWNLOAD the correct assets....
So, that is the first place that I go to.
Ron

3
Hi Jeff,
Are you on a form or a MemoryForm?  The way I look at this is that a regular form is an almost linear progression of stages - as opposed to an ACCEPT LOOP which we are used to working with in windows.  As such, the embeds and thinks that we want to do ( like close a form and update another's fields) does not work the way we expect.  Bruce has said it, and I have found that using your forms and tables on a MemoryForm (personally I think that this name is misleading but it serves the purpose) allows me to be able to do those kind of things.  The MemoryForm allows you to have something analogous to the Accept Loop functioning in that you can open and close controls and STAY WITHIN the MEMORY FORM PAGE and do this and that until you are done doing what you want to do.  This is just the nature of the way browsers and internet work. For example, I have a browse and I want to have several drop down filters for it.  The best way to get it done is on a Memory Form. Can move info and update other controls ( tables...) and stay on the same page.   If you haven't started working with MemoryForms, I suggest that you start.  Take your related forms and browses and simply put them into a Memory Form.  Then you can work with them and move information between them much easier.
Ron

4
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

5
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

6
Web Server - Ask For Help / Re: Net Talk - Scan a document
« on: February 13, 2024, 02:51:50 AM »
THanks for the replies,  gives me lots to think about as to how we will address the problem.  Ron

7
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

8
Hi
From Net Talk Documentation:
 Calling the SendEmail Procedure
The SendEmail procedure can be acalled from any other procedure. It might be a button, or a menu item, or it might happen in source code when some event occurs. To call SendEmail follow these steps:
Create a local variable in the procedure;
parms group(EmailParametersGroup).
Where you want to send the email, prime the components of the parms parameter
clear(parms)
parms.pEmailTo = 'bruce@capesoft.com'
parms.pEmailFrom = glo:UserEmail
parms.pEmailSubject = 'Great Release'
parms.pEmailCC = ''
parms.pEmailBCC = ''
parms.pEmailFileList = ''
parms.pEmailEmbedList = ''
parms.pEmailMessageTextST.SetValue('Well done on a great release')
parms.pEmailMessageHTMLST.SetValue('<html>...</html>')
Call the SendEmail procedure. You can do this on another thread;
START(SendEmail,25000,parms)   <<<<<<<<=========================
or on the same thread (in which case you get a returned value;
result = SendEmail(parms)


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 / Re: Help with NT 14.13 API
« on: February 06, 2024, 10:55:48 AM »
Jeff,
GREAT!  Let us know if you want us to try and break it.
Ron :)

13
Web Server - Ask For Help / Re: Help with NT 14.13 API
« on: February 06, 2024, 08:53:47 AM »
HI Jeff,
I have found that looking at code in Embeditor Source is the best way to look at what is going on.  Also, at times I have gone to the NetTalk source clw files to chase down what it is doing....
I would think that there would be an api "action" setting - e.g. = Insert, Read (get), Delete.  I might attempt to Hijack a "READ" type API and manually do my checks and inserting and return a value.
In my thinking, I would not worry about sending and error message to an Institution which is NOT IN MY TABLES.  I would send a verification message about a "Valid Insert"
Ron

14
Web Server - Ask For Help / Re: NT browse CELL Border
« on: February 06, 2024, 05:32:17 AM »
Solved!
I unchecked the "Apply to Whole Cell"  on teh CSS for the column
and CHECKED the "APPLY to CONTENTS"
Now I get my border around the cell!
Ron

15
Web Server - Ask For Help / Re: Help with NT 14.13 API
« on: February 06, 2024, 03:28:11 AM »
HI Jeff,
I can't see all of your code.  However, it sounds like you are using 'built in'  action models.  i.e. You are calling for a record insert so that the system does attempt to do that.  You then test the condition later down the tree and if the patient is there - fine.  If not, you have an orphan record hanging around - sounds like that.

I have not played with the API yet _ but I am going to be getting very friendly with it later this week as it is on my schedule!  I would maybe HIJACK the code BEFORE the system does the requested INSERT ( Bruce usually leaves embeds around these things) and run your code first.  If no instituion then then you jump out BEFORE the actual insert and return them a message that it could not be completed.

My second thought is if the system has already primed I would consider something like:
IF SELF.Request = InsertRecord AND SELF.Response = RequestCancelled
   Access:MyFile.CancelAutoInc
END
This would "Undo" the Primed Inserted record.
Ron

Pages: [1] 2 3 ... 18