BITTE helfen Sie uns HEUTE mit einer SPENDE
Helfen Sie das LibreOffice Forum zu erhalten!

❤️ DANKE >><< DANKE ❤️

> KEINE WERBUNG FÜR REGISTRIERTE BENUTZER!<
Ihre Spende wird für die Deckung der laufenden Kosten sowie den Erhalt und Ausbau 🌱 des LibreOffice Forums verwendet.
🤗 Als Dankeschön werden Sie im Forum als LO-SUPPORTER gekennzeichnet. 🤗

base report extension

Base ermöglicht es Ihnen, Ihre Daten in einer Datenbank direkt mit LibreOffice zu bearbeiten.
Antworten
steph07
Beiträge: 2
Registriert: Mo 5. Nov 2018, 14:14

base report extension

Beitrag von steph07 » Di 6. Nov 2018, 17:03

Hello,
I installed basereport extension and it works fine except to print the data of the record running in a form.
the button calling the report is in a form named Spanc1
Could you give me an example of syntax for use of:
###FORMFIELD(<MainForm><SubForm><GridName><ColumnName>)###
my Mainform’ name is “Formulaire”
my GridName is called “ControleTable1”
my ColumnName is called “Etat”
I’ve tried
FORMFIELD(“Formulaire”“ControleTable1””Etat”)
FORMFIELD(“Formulaire”.”ControleTable1”.”Etat”)
FORMFIELD(“Formulaire” ”ControleTable1” ”Etat”)
FORMFIELD(“Formulaire”/”ControleTable1”/”Etat”)
and I got every time ###SQLERROR###

Thank’s.

gogo
Beiträge: 1072
Registriert: Sa 5. Feb 2011, 19:07

Re: base report extension

Beitrag von gogo » Do 8. Nov 2018, 10:24

Hi Steph,

###FORMFIELD(<Formulaire><ControleTable1><Etat>)###

should work.

I wonder why you get a ###SQLERROR### as you should get a messagebox like:
"Error! The control " & sName & " could NOT be found in " & sPathToObject & "!"

A ###SQLERROR### should appear in case of a not-SQL-string only... I think :?

Using quotation marks inside " ... ###FORMFIELD(<Formulaire><ControleTable1><Etat>)### ... " will lead to unexpected results, as they cause misinterpretation of the string for sure. That's why I choosed the <...> notation. I think I never lined out, that the use of "(", ")", ">" and "<" will cause problems ...
g
2008 LucidL./MaverickM./WinXP LibreOffice 3.3.2 > 02/13 LinuxMint13/Xubuntu > 09/13 Debian Wheezy+LO3.5.4.2 > 01/15 Debian Jessie KDE+LO4.3.3.2/Mint17 openbox auf USB+LO4.2.8.2 > 03/16 ArchLin & LO5.1+ff > 02/18 Kubuntu

An alle, die das LibreOffice-Forum nutzen:


Bitte beteiligen Sie sich mit 7 Euro pro Monat und helfen uns bei unserem Budget für das Jahr 2024.
Einfach per Kreditkarte oder PayPal.
Als Dankeschön werden Sie im Forum als LO-SUPPORTER gekennzeichnet.

❤️ Vielen lieben Dank für Ihre Unterstützung ❤️

Antworten