B4J Question Maintaining b4j layout files using JavaScript

Mashiane

Expert
Licensed User
Longtime User
Hi

Im curious about something. I have pre-defined b4j templates using custom views. I'd like to..

1. Read a b4j file, via input file component.
2. Read each view using predefined name. For example a layout has 7 views, all are known.
3. Update some properties of the view I need to update, especially custom properties as I am using custom views.
4. Do this for a number of views inside the layout.
5. Save the updated layout with a new file name and be able to use it in developing apps.

Reading & Writing the b4j file should be done in javascript. I know I can just do this with normal b4j, but I dont want / need that.



For those adventurous. How can one achieve this? I tend to believe nothing is impossible, but I have not applied myself.

Thank you for taking time to read this.
 

William Lancee

Well-Known Member
Licensed User
Longtime User
I presume you are talking about ".bjl" files.

"All" you have to do is convert the "BalConverter" class to Javascript!

https://www.b4x.com/android/forum/t...e-layouts-files-to-json-and-vice-versa.41623/

This reminds me of my old school English teacher who told us to read a book over the weekend and be prepared to answer questions.
"It is easy", he said. "Read the first half"...PAUSE... "and then read the second half"

The person challenged to do this will need more than a weekend
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…