PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WEBDEV 2024 → Updating tables from fields
Updating tables from fields
Iniciado por Joel, set., 18 2008 5:31 PM - 3 respostas
Publicado em setembro, 18 2008 - 5:31 PM
If a page has fields from several tables, when you do a "PagetoFile()" and "Hadd()", will the system take care of getting the fields into the correct tables as long as they are linked correctly? If not, is there a method other than "PagetoFile()" that can handle this scenario?
Publicado em setembro, 19 2008 - 9:34 AM
The short answer: Yes.

Just be sure not to link the same field twice in the Screen.
Publicado em setembro, 20 2008 - 2:02 AM
I can't that to work. suggestions?

Hilario Perez Corona wrote in news message <463338f38ee2c7669ff40356da246a91@news.pcsoft>:
The short answer: Yes.

Just be sure not to link the same field twice in the Screen.


Publicado em setembro, 25 2008 - 8:56 AM
Can you bring more information on the error? You can ask for the specific error with HError, for example:

HReset(Products)

ScreenToFile()

// Perform additional calculations

HAdd(Products)

IF HError() THEN
// The record could not be added
Error(HErrorInfo())
END


Also you can put a breakpoint in the HAdd function to see the values of the files before adding the record to the file.


Cheers!

Hilario Perez Corona
Nabu Tecnologia en Software