Hmmm...

JohnC

Expert
Licensed User
Longtime User
I wonder if this can be used to allow ChatGPT to design/edit the UI for projects, not just generate/edit code:


Yeah, ChatGPT could generate all the views via code at runtime, but then you loose the advantages of being able to use the designer to touch things up visually.

Maybe create two batch files:

1) Convert the .BAL files for the current project to JSON, then zip up the project so it can be uploaded to ChatGPT for edits.
2) When ChatGPT is done with the edits you requested (UI and/or code), it will generate the new JSON files (if it modified the UI) and a second batch file will convert them back to .BAL files.

Hmmm....
 

stevel05

Expert
Licensed User
Longtime User
Possibly, if you could get it to understand the JSON layout, which would be no mean feat :). Have you studied it? There is a lot of information in it.
 

JohnC

Expert
Licensed User
Longtime User
I was thinking of manually creating a layout with all the built-in views placed on it. Then take a screen shot of the designer view of that layout, then convert the layout to JSON and then upload both parts to ChatGPT to see if it can figure out the relationship between the different views in the layout and the JSON description of them.

I recently used ChatGPT to help reverse-engineer the protocol for a BLE smartwatch and it did a good job in figuring things out which would have taken me a long time to do it.
 
Last edited:
Top