What I’m trying to do:
I need to print out to the console a list of a form’s components. I have a blank form that I add components to in code… pdfrenderer uses this form to create a report… so in the IDE the form has no components
At the end of my server call to pdfrenderer, I want to print out the console (server log) a list of all components to see if something stray is getting added.
I don’t see anything in the documentation to do this:
for component in form.components:
print(component)
now… when I search, I see nothing anywhere my app that is named GetCVEs. It sounds like a function I would write… what is that “GETCVEs” position in the component name? the name of the form is A1Base…
I don’t think you can see the name of a component programmatically, unless it has changed recently (here is a very old FR about it)
You can read other properties, including tag, you can also get the dom node and read the html attributes, but I don’t think you can get the Anvil name.
So the <GetCVEs.aa_cover.aa_cover object> is an instance of the aa_cover component which is located in the aa_cover file which is within the GetCVEs app.
bingo… that’s what I’m seeing… hoping that all of this leads me to solve my problem with pdfrenderer always appending a blank page on my reports… Trying to see if there’s something on one of the components. Thx again
I found an app that calls a function in my core app, which is why I had set up my core app as available as a dependency. I don’t need this other app, but I don’t see how to remove that in my core app. When I go to dependencies, and then I delete GetCVEs… when I close that dialog box it reinserts that name.