B4J Question VForm and Dynamic Data

noxius3

Member
I started learning BANAnoVuetify. Many solutions to my questions were found on the forum.
But I faced a problem that I can't handle. To write to MySQL I use VForm.
Everything works perfectly. However, you wanted to add a column to the database indicating the user who made the changes or made a new record.
I have that data. Written to page.setdata("user",username).
How can I specify this data for a VForm to write correctly to the database?

And one more thing. When exporting pdf from vTable, the console shows that the data is generated, but then this error occurs

B4X:
TypeError: Cannot read properties of null (reading 'autoTable')
    at _B.autotable (app.js:28689:293595)
    at _B.topdf (app.js:28898:1918443)
    at _B.exporttopdf (app.js:28898:1916975)
    at banano_bvad3authentication_viewtwo.dtprojects_pdf_click (app.js:28987:82167)
    at a._cb (app.js:28898:1503410)
    at fn (app.js:52:21669)
    at a.r (app.js:52:10234)
    at fn (app.js:52:21669)
    at t.$emit (app.js:52:43813)
    at a.click (app.js:298:93744)
app.js:28689 pdf.SetPageNumbers
app.js:28689 noOfPages = pdf.internal.getNumberOfPages()
app.js:52  TypeError: Cannot read properties of null (reading 'internal')
    at _B.getnumberofpages (app.js:28689:296133)
    at _B.setpagenumbers (app.js:28689:296809)
    at _B.topdf (app.js:28898:1918469)
    at _B.exporttopdf (app.js:28898:1916975)
    at banano_bvad3authentication_viewtwo.dtprojects_pdf_click (app.js:28987:82167)
    at a._cb (app.js:28898:1503410)
    at fn (app.js:52:21669)
    at a.r (app.js:52:10234)
    at fn (app.js:52:21669)
    at t.$emit (app.js:52:43813)
pn @ app.js:52
dn @ app.js:52
l
 
Last edited:
Top