NetTalk Central

Recent Posts

Pages: 1 ... 7 8 [9] 10
81
Web Server - Ask For Help / Re: Table update Netwebform with popup memory forms
« Last post by rjolda on August 21, 2025, 02:17:44 AM »
Hi Johan,
Maybe this will shed some light on what is going on under the hood.....
Consider this:

!Access:MailBoxes.Open()
!Access:MailBoxes.UseFile()
!MAI:MailBoxNumber = p_web.GSV('MAI:MailBoxNumber')
!Access:MailBoxes.Fetch(MAI:PrimaryKey)
!p_web.FileToSessionQueue(MailBoxes)  <<<<<<<<<<<<======================
!Access:MailBoxes.Close()

This populates the SSV for each field!!!!  This happens at the beginning of the FORM After Files are OPEN..


These ae the working statements:
p_web.FileToSessionQueue(file) copies an entire file record buffer to the session data queue.
p_web.FileToSessionQueue(file, Net:AlsoValueQueue) copies the entire record buffer to both the session data queue, and the value queue at the same time.

So, you manipulate SERVER VALUES of the data through the form.  ( One of the reasons it is done that way is because the "form" is not persistent.  Net Talk goes in and out of the form several times (stages) before it closes - so to keep the data persistent, the field data is stored in SERVER VALUES ( which do persist).  Note: SERVER VALUES for each field are persistent and can be changed elsewhere and be updated such that the NEW VALUE is really the one that gets written to the record when SessionQueueToFile is called.

When ALL IS DONE then the SERVER VALUES containing the field values for the record are written back into the file in one go of it:

p_web.SessionQueueToFile(file) primes a record buffer with contents from the session data queue.

After a little more cleanup, the Form is done and the record has been updated.

As an aside, sometimes I need to update another file.  Rather than do the whole File to Queue and back, I will fetch the record that I want and stuff in the new value and update it.  e.g.
item:ihid = 100
if Access:ITEMS.Fetch(ITM:IHID_KEY) = Level:Benign
   itm:amtinstock = 25
   itm:descrip = p_web.GSV('My item 100')
   Access:ITEMS.Update()
else
  ! some error message
end
THis sequence remains "in scope" as it processes it all together.

Hope this might help a little.
Ron





82
Web Server - Ask For Help / Table update Netwebform with popup memory forms
« Last post by JohanR on August 20, 2025, 11:56:16 PM »

Hi,

I have a table update FORM, the master.

On it I have a few buttons that call small popup forms that also update some of the same table fields, the popup form are memory forms.
These fields are sometimes display fields on the master FORM, sometimes not.

It all seems to work and the table fields from the popups are updated and saved, but still testing the process to make sure all is reliable.

The way I undestand is that the Table update form will write the record from the session variables?

Is there anything to follow to make this process 100% reliable?
eg. call a certain sync routine to ensure all is good?

Is there perhaps a webinar or resource that discusses simialr process that will be of use?


thanks

Johan
83
Quote
Sv should opena Discord server !!!

Bruce has created one.  It's fairly active.
84
Sv should opena Discord server !!!
85
Hi
news.softvelocity.com has become so slow it is not useable.   I am using Firefox and I can download the headers - however, I cannot retrieve any messages..... it just waits and waits.  I had set up a Clarion12 link but that doesn't seem to work for me.  Is this a Firebird issue or a newsgroup issue.   Is there a solution?
THanks,
Ron
86
Web Server - Ask For Help / Re: Icons for Menu
« Last post by rjolda on August 14, 2025, 09:28:49 AM »
SOLVED!
For Icon education look at NetTalk Webinar from Today - August 14, 2025. 
\Ron
87
Web Server - Ask For Help / Re: How to put a Linefeed in a Tooltip
« Last post by Johan de Klerk on August 14, 2025, 05:21:23 AM »
After a bit of searching I found this 2010 solution from Rob Mikkelsen to use: &#010;

https://www.nettalkcentral.com/forum/index.php?topic=1720.msg6457#msg6457

Works perfect in the Tooltip for the Linefeed.
88
Web Server - Ask For Help / How to put a Linefeed in a Tooltip
« Last post by Johan de Klerk on August 14, 2025, 01:53:06 AM »
Hi,

I have this text in my Tooltip:
Select for Orders. Else leave as NONE.

I would like it to show as two lines in the Tooltip:
Select for Orders.
Else leave as NONE
if the user hovers over the field.

I have tried: Select for Orders.<br /> Else leave as NONE.
but it shows the >br /> in the text and no Linefeed.

Any help would be appreciated.

Regards

Johan de Klerk
89
Web Server - Ask For Help / Re: Icons for Menu
« Last post by rjolda on August 13, 2025, 05:21:43 AM »
I see the method:
NetWebServerWorkerBase.CreateIcon             Procedure(<String pIcon>, <String pIconGroup>, <String pClass>, Long pType=-1)
class1  cstring(255)
spacer  cstring(255)
  code
  class1 = self.CreateIconName(pIcon,pIconGroup,pClass,pType)
  if not omitted(pIconGroup) and pIconGroup <> ''
    spacer = '<span class="ui-' & clip(pIconGroup) & '-icon-space"></span>'
  end
  return '<span class="' & class1 & '"></span>' & spacer

MakeIcon method - takes several parameters.  Trying to figure out how to get the right information in to the method to make my fontAwesome icon RED.
Ron
90
Web Server - Ask For Help / Icons for Menu
« Last post by rjolda on August 12, 2025, 03:42:54 PM »
Hi All,
Struggling to figure out this ICON stuff, especially Icons in CSS. 
NT 14.21  C11
I have added the fontAwesome.css to my app.
I have a Menu item: HOME  to which I added the Icon:  'fas fa-heart' .   Great!  I get  a black heart on my HOME button.  But, I want a RED heart icon.  I tried various permutations to get a RED heart but no luck. 
e.g 'fas fa-heart' & 'style="color:red;"'   No luck.
There has to be a trick to this with some specific NT language.
Anyone can help?
Thanks,
Ron
Pages: 1 ... 7 8 [9] 10