hao
hao

Reputation: 11

How to programmatically extract and modify properties (e.g., Grid Title, Button Caption) from WorkWithPlus generated WebPanels in GeneXus?

I'm working with GeneXus and using the WorkWithPlus framework to generate WebPanels. I need to extract certain element properties (like the title of a grid or the caption of a button) and perform batch replacements on them.

When working with standard WebPanels, I can use the WebPanel.WebForm.EditableContent.ToString() method to extract the XML of the page, then parse and modify the content. This approach works fine for regular WebPanels.

However, this doesn't seem to work for WebPanels generated by WorkWithPlus. The structure of the HTML seems to differ, and I can't access the same properties or modify them in the same way.

Has anyone worked with WorkWithPlus generated WebPanels and figured out how to extract and modify element properties such as grid titles or button captions programmatically? Any guidance on how to achieve this or alternative methods for working with these generated components would be greatly appreciated!

Upvotes: 1

Views: 77

Answers (1)

ealmeida
ealmeida

Reputation: 537

It's much easier to make these changes directly in GeneXus instead of reading and modifying the HTML.

Button.Caption = "New Caption"
&Column_var.Title = "New Title"

Upvotes: 0

Related Questions